- September 3, 2009 at 8:16 am #29913
I try to display a 3D-object by using the irrlicht engine on an Oepn GL ES 1.1 target.
Everything works fine except that the front and top texture are never displayed.
They are simply missing so I can see the backside of the object (e.g. other side of a displayed car).
Xmas 2009-09-03 09:56:56September 3, 2009 at 10:13 am #33380
It sounds like you have face culling enabled, but the mode is not matching the winding order of the polygons in your model.
You can change this in a number of ways. By changing the definition of what a front face is:Code:glFrontFace(GL_CW); // clockwise
glFrontFace(GL_CCW); // counter-clockwise
You can also specify whether to cull front or back faces:Code:glCullFace(GL_FRONT);
Additionally you could disable face culling completely:Code:glDisable(GL_CULL_FACE);
Hope that helps.September 4, 2009 at 9:19 am #33381
This changes the appearance a bit. It seems like all textures are displayed now, but the bottom is shining through now.
Ialready played a bit with cloxkwise/counterClockWise and the depth-mask but htis did not change the behavior.September 23, 2009 at 6:40 pm #33382
You may have no depth buffer or need to enable depth testing and/or depth writes.
Also, remember to clear the depth buffer each frame.
I’ve also seen a problem like this if the near plane of your view is set to 0 (this should be greater than 0 – in fact as high as you can set it without affecting your rendering is preferable).