Archived

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

zaasz

Direct3D transformations

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