I need to draw a cube and a sphere inside the cube.
the prupose is to move the two object at the same time. just as you are sitting at the center of your room, then you begin to rotate. all the objects in front of you start moving in the same manner.

Code :
 

Using this viewing transformation, i can draw a cube.

Code :
 
by applying this, i can draw a sphere which can be rotate by changing the angle.

The problem is how to rotate two objects at the same time by changing the view point.




Thanks for reading and thinking

[ May 25, 2005: Message edited by: lavendersg ]