gl.glTranslate(f,d)

Hi Guys,
I am new in jogl, and I am just trying to create a rectangle at (6,8,9) and then move it to origin (0,0,0)then rotate it at the (0,0,0). glTranslate(f,d) does not seem to handle it. It is rotating on a big circular path.
Is there any jogl command to handle this or I need to write a custom method?
A Sample code deeply apprecitaed.

Thanks
Causs.

Translation isn’t going to manipulate the rectangle but the view matrix which is being used to render it.

You might want to have a read of http://nehe.gamedev.net which builds up OpenGL really nicely from a basic beginning. I believe there are ports for Jogl hanging around but I’m not sure they’ve made it to one central site yet?

Kev

Thanks Kev,
NeHe samples are great, hundreds of thanks to all these guys who posted tutorials there.
finally I figured out what is what. glTranslate shifts the object relative to viewerport’s coordinate system not the object’s one. I think I need to modify the object’s coordinates to shift it to origin during before rendering or use gluLookAt.
Thanks again.
Causs.