I am modding this game (Return To Castle Wolfenstein), particularly by adding another renderer to it (Direct3D 11). I'm doing this to gain experience in large scale game development. So far I was able to replace all the setup code, the shader parser, texture loading etc, but I am only able to render part of the main menu and the models, without the map geometry. What I would like to know is where in the code is the camera orientation matrix?
To render the models I set the world matrix to:
SetWorldMatrix(backEnd.or.modelMatrix); inside RB_RenderDrawSurfList()
Which works fine in game but in the main menu things are off.
I know though that backEnd.viewParms.world.viewOrigin represents the camera's eye position.
I'm including screenshots of the menu and of in-game cinematic.
Thanks.