Jump to content
  • Advertisement
Sign in to follow this  
Shadekf

Quick Direct X Graphics Query

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

Hey guys, Simple question. If an object is drawn outside the current camera view is direct x graphics smart enough to not waste time drawing those objects. It's a simple act to limit what is drawn I know, but I don't want to waste processing time running a check if direct x is going to deal with it on its own. Thanks in advance guys and girls.

Share this post


Link to post
Share on other sites
Advertisement
As far as I know it is still processed until the clipping stage in the pipeline.Thats why its common practice to implement frustum culling to discard objects that are not seen.

Share this post


Link to post
Share on other sites
Clipping in DirectX is done at the triangle level, after vertices have been transformed. If you can determine that a large number of triangles will be off-screen with a simple AABB-frustum check, then you save all of those vertices being transformed and clipped.

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!