what I am trying to do is to create a solar system. several ellipses revolve around a central point to simulate solar system. i know that i could use translate function to make it happen. however, what I am hoping to is to achieve the effect by changing the value of x, y, rather than using the built-in function. has anyone done this already. please advice.
First thing to understand in 3D is that you don’t draw on a canvas but place things (box, sphere…) in a room:
z is the depth (away from you into the screen is actually -z, positive z is towards you out of the screen).
X axis is normal: right and left
but y is now basically the height of the shape above the floor in your room.
Hence, when you want to make the circles (lying flat, parallel to the floor) they are made with x and z whereas y is constant (just the height of the solar system in the universe / above the floor).
Can you say more about why you want to do this? Is your goal to have absolute coordinates for each body you are rendering? Translate and pushmatrix pretty basic to rotation systems – translating to 0,0 of the circle / ellipse simplifies all the math.