0
\$\begingroup\$

I've been following the Rastertek tutorial on deferred shading (http://www.rastertek.com/dx11tut50.html). I have implemented it in my own architectural way but have ended up with the same issue as the tutorial; if you get the source and take a look, it appears to be working fine - but if you move the camera around you can see that only the front 2 faces are being rendered, and its like as if the cube is only being rendered to some kind of invisible pane - viewing from behind it is completely invisible. In my image you can see that the model is being completely cut off. Is my 2D render texture possibly floating out in that space?

To provide the amount of code I have would be very dodgy. If you can help me out conceptually or take a look at the downloadable source code I would very much appreciate it.

Please see my attached image.

This image is from about 45 degrees to the side - it appears to be getting cut off along the red lines I've drawn (ignore the missing topside - thats just the light only going down the z plane):

\$\endgroup\$
1
\$\begingroup\$

Turns out I needed to set the camera back 1 unit so the view matrix wouldn't trim my screen down when I changed the camera yaw.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.