Jump to content
  • Advertisement
Sign in to follow this  
Kenny77

MDX Cameras

This topic is 4145 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'm looking over some tutorials, and they get into cameras, but it doesn't explain some of it.
device.Transform.Projection = Matrix.PerspectiveFovLH();

device.Transform.View = Matrix.LookAtLH();

It explains all the parameters, but not those lines.

Share this post


Link to post
Share on other sites
Advertisement
The projection matrix describes what the camera can see from it's current position. As many tutorials will tell you, the projection matrix defines the shape of the view frustum (see below), by taking parameters for the angle at the top (FOV Angle), the aspect ratio of the basis and the near and far clipping planes.



The view matrix essentially defines what the camera is looking at from what position, i.e. how the frustum is oriented around its position. This follows from the target and position parameters. For a more indepth treatise on cameras, check out this page.

Hope this helps :)

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!