Is it possible to set the current render position as an arbitrary value, and not just assign it an offset from the current location?
This is what I am doing now:
gl.glTranslatef(3.0f, 0.0f, 2.0f);
This allows me to say "I want to move left," but not "I want to go to point (2, 1, 2)." Is there any way to do the latter?
I am using OpenGL with JOGL.
Update
@Bahbar offers the following:
gl.glLoadIdentity();
gl.glTranslatef(...);
When I do this, everything but the six lines disappears. I do not know why. I have a problem with a flat clipping environment that is too close, so maybe they are too far away to be visible.
source
share