Jump to content
  • Advertisement

Archived

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

zaasz

Direct3D transformations

This topic is 5533 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 everyone, here''s my problem: i want to rotate an object in D3D. So i set world transformation matrix everytime the method Render (of that object) is called. That means that if i have 1000 objects i have to set the matrix 1000 times. Isn''t there other way? Something like call Rotate method {of the object) which will recalculate the vertices of the object. I think it''s the same with textures and materials. Every object have to set up these properties again and again. And this seems a little confusing to me. Can someone help?

Share this post


Link to post
Share on other sites
Advertisement
Do you have 1000 copies of your geometry in memory? That is what you would need in order to do what you say: Apply the transformation to the vertices as a cumulative effect. The transformation is not a big hit, not compared to the memory requirements of distinct meshes or the hit of either doing the transformations yourself (on the CPU), or doing them on the GPU then reading the data back.

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!