• Advertisement


This topic is now archived and is closed to further replies.

D3DXMatrixOrthoLH and D3DXMatrixPerspectiveFovLH

This topic is 5652 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was wonder, is there a different between the Minimum/Maximum z-value of the view volume passed in the D3DXMatrixOrthoLH and the Near/Far clipping planes when setting the D3DXMatrixPerspectiveFovLH? The default values for D3DXMatrixPerspectiveFovLH is 1.0f and 100.0f respectively. Thus, every object with z-value of 1.0f will not be seen right? In D3DXMatrixOrthoLH, most examples that I see uses 0.0f and 1.0f. If I want to do a 2D game, what's the key here? And one more thing, for 2D, I usually set the camera position at 0.0f and its "look-at" at 1.0f. Does it matter here? [edited by - vbisme on October 1, 2002 11:40:45 AM]

Share this post

Link to post
Share on other sites

  • Advertisement