Inverted 3d Cube


I got something very weird going on.
When I load a 3DS model or create a cube with the ofx3DUtils addon, the cube looks ‘inverted’ somehow. It doesn’t look like the faces are flipped, but rather that the order of rendering of the faces is wrong. Does anybody know what’s going on and/or how to fix this?


As I haven’t tried too much 3D modeling yet I am not far at this but I remeber that you should enable gl Depth testing


would be the command to enable.


Images are taken from (a german wiki about opengl programming with delphi (although it has very good tutorials on openGL in general))


Thanks! That did the trick!