Original Post
Hey, I''m having some trouble drawing multiple mesh objects on the screen, in different locations.
Here is a code snippet to give you an idea of what I''m trying to do. One rotating object (earth), and a satellite rotating around it. Not working!
//Draw the earth
objectOne.RotateY(Environment.TickCount/5000.0f);
device.Transform.World = objectOne;
earth.Draw();
//Draw the satellite
objectTwo = objectTwo * satScaleMat;
objectTwo = objectTwo * satTranslateMat;
objectTwo = objectTwo * satRotateMat;
device.Transform.World = objectTwo;
satellite.Draw();
If this is too hard to exaplain, is there a good tutorial which explains this? Most basic tutorials I find stop after explaining how to draw one object.