Jump to content
  • Advertisement
Sign in to follow this  
quang

how to determine whether object in viewport or not

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

uhm i want to display only object in which i see in view port so is there any function in DX that help me in that?????

Share this post


Link to post
Share on other sites
Advertisement
Project the co-ordinates of the object into homogenous clip space, then clip from there. In homogenous clip space, I believe that a vertex is inside the frusum if the following are false:

-w > x > w
-w > y > w
0 > z > w

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!