• Advertisement
Sign in to follow this  

Managing objects in the scene

This topic is 4330 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! I'm a total newbie in graphics programming, just started to play with EmptyProject from DirectX SDK (i use C# and MDX). I'd like to create something like solar system (many objects rotating around other objects, which are also rotated and transleted etc). I've done it with just 3 "planets" - sun, earth and its moon. However i.e. for the moon i need to manually specify to multiply matrices of the sun, earth and the moon. It would be really painful to do it i.e. for 40 planets and their moons. What is the name of a solution (because there must be one :) ) that would allow me just to specfiy relations between objects (i.e. one object is rotating around another, or translated) and additionaly specfiy some new properties (i.e. rotation around itself, speed etc). Could you give me some links to implementation of a simple version of such thing (preferably in C#)? Thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
What you want are scene graphs (ID3DXMATRIXStack).

Link

I haven't done much searching for links on the subject but if you simply look for ID3DXMATRIXStack on google, you should get some hits.

Share this post


Link to post
Share on other sites
Thanks!

And do you know maybe any examples of C# implementations?

[edit] I've just found one: retinax

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement