OpenGL - Axis Direction

Is there any easy way to flip the positive direction of an axis, say the x axis?

I tried to negate the main glScaled() call that sets up where the camera looks at the scene from. This appears to reverse the direction like I want, but all of a sudden all objects are grey. Is this a lighting problem? Or something more serious like the clockwise / counterclockwise plotting of triangles or some such problems…?

Much thanks!


When you reverse a single axis, you also reverse the winding order of vertices. This means you swap front and back faces. OpenGL material properties are specified seperately for front and back faces.

You have to set the winding order to clockwise to reverse this effect.