Jump to content
  • Advertisement

Archived

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

DangerDave

Oriented bounding box transformations

This topic is 5425 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
Advertisement
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.

Peace,
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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!