Jump to content
  • Advertisement
Sign in to follow this  
lo

set the range

This topic is 5464 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

hi all! I would like to ask sg. again: How can I set the range of a camera. Because if something is 'far' away from me, I can't see it because dx doesn't draw it. bye, lo.

Share this post


Link to post
Share on other sites
Advertisement
ok :)
D3DXMatrixPerspectiveFovLH...
I searched it on the msdn. now it works.

bye, lo.

Share this post


Link to post
Share on other sites
I suggest you look up the View and World Transformation in the directx documentation.

Your application should contain a call to D3DXMatrixLookAtLH, which specifies the eye point, the lookat point and the direction of up in your world (these are the 2nd, 3rd and 4th parameters).

So if you want to change the eye point, find the 2nd parameter (probably called vFromPt), and alter its x, y and z coordinates.

Share this post


Link to post
Share on other sites
Yes, the D3DXMatrixPerspectiveFovLH specifies the near and far clip panes of the viewing fustrum. If you have a massive scene you want to keep the far clip pane relatively low or you may get some slowdown

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!