Jump to content
  • Advertisement
Sign in to follow this  
TLAK1001

How to create a specific field of view

This topic is 4197 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 have a 3D game that relies on the objects being in the 4th quadrant (+,-) in order to function properly. Is there a function similar to MatrixPerspectiveLH that will allow me to set my camera from (0,0) to (640,-480) EXACTLY? Thank you for your help Tlak

Share this post


Link to post
Share on other sites
Advertisement
If you need a perspective projection matrix, then no - you'll have to calculate the matrix by hand. If you can use an orthoganal projection matrix, then you can use D3DXMatrixOrthoOffCenterLH().

Share this post


Link to post
Share on other sites
Yeah, Ortho matrices are not a problem. I'm still working on implementing the function you suggested, but it looks helpful

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!