Good morning folks.
I got a very strange problem here.
ANYTHING I draw on the screen appears "mirrored", as if all x-coordinates would have
their own negative value. Example:
I go to the origin of the "word coordinate system": (0,0,0) There I draw 2 lines: A black one
from (0,0,0) to (0,0,50) and a green one from (0,0,0) to (50,0,0). When starting, the black line
is being drawn as expected, straight upward. But the green one goes from the origin 50 steps
to the LEFT!!!
Here's the code:
//Green Line in x-direction
gl.glColor3f(0.0f, 1.0f, 0.0f);
gl.glLineWidth(3);
gl.glBegin(gl.GL_LINES);
gl.glVertex3d(0, 0, 0);
gl.glVertex3d(50, 0, 0);
gl.glEnd();
//Black line in z-direction
gl.glColor3f(0.0f, 0.0f, 0.0f);
gl.glLineWidth(3);
gl.glBegin(gl.GL_LINES);
gl.glVertex3d(0, 0, 0);
gl.glVertex3d(0, 0, 50);
gl.glEnd();
The camera is set via
glu.gluLookAt(eyeX, eyeY, eyeZ,
centerX, centerY, centerZ,
0, 1, 0);
then
setCamera() {
centerX = 0;
centerZ = 0;
eyeX = centerX;
eyeZ = centerZ-50;
}
As you can see, all y-coordinates are always 0, so that everything lies "flat" in the world.
Can anybody help me? I'm sure there's some stupid line of code in here, but I can't
figure it out. It's very urgent (it always is, I guess

), but we gotta finish our program
today, so any help would be much appreciated!!!
Thx in advance & desperate greetings, Morte