Jump to content
  • Advertisement
Sign in to follow this  
starmole

transformation & scene graphs

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

I have a small design question for which I do not see a 'best' solution. The question seems simple - should in a scene graph a transformation be organized as a separate node owning the node that is transformed (rotated, translated, etc.) or should each node own a transformation that defines its transformation relative to the parent? However, some of the toolkits I looked at use one way, some use the other - so what do you think is the most convenient way of organizing it? Thanks for your suggestions Alex

Share this post


Link to post
Share on other sites
Advertisement
The most convenient way is certainly to allow each node it's own xform... if anyone wants a single node, that option is still open to them... just don't put anything else in the node.

Share this post


Link to post
Share on other sites
I would prefer that each node have a xform.

But you would still need a node that is just an xform. Consider a model with multiple parts. Each part would have a xform that describes its position/orientation in model space, but you still need a xform node for the entire model.

Share this post


Link to post
Share on other sites
I used to have it all seperate, and it just got unweildy to use. It really became easier when I incorporated the tranform into the base class for the node itself.

Also, for a node that does nothing but transform, just have a class inherit from the basic node. That's it. Just don't add any other functionality to the node.

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!