Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Oriented bounding box transformations

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

Would it be better to: 1) Transform a bounding box and its normals via Direct3D using vertex buffers and whatnot (rather long winded, but quicker?) 2) Transform via standard code (i.e. using a seperate BOX struct) running the rotation and translation of the box alongside the mesh but seperate from Direct3D? Am I making sense? Dave.

Share this post

Link to post
Share on other sites
I assume that your oriented bounding box isn''t rendered - it''s just used for collision or whatever.

In that case, it doesn''t make sense to transform it (rotate it, ...etc) by Direct3D, because the only way to do this is to do ProcessVertices(). ProcessVertices() always runs in software (i.e. it''s equivalent to looping through your vertices and transforming them yourself).

So, don''t do that. It''ll just waste your time creating buffers for your vertices and all.

Muhammad Haggag

Share this post

Link to post
Share on other sites

  • 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!