PDA

View Full Version : Strange problem after using a third party library



james_xu
03-02-2015, 07:11 PM
1654

Right is my 3D model.
It appears as the left after using a third party.
I have no idea what the third party setting will lead the problem.
Someone can give me a help?

Thanks.

James Xu

GClements
03-02-2015, 07:32 PM
It looks like differences in winding order (clockwise versus counter-clockwise), back-face culling, or Z direction (positive Z into screen versus out of screen).

james_xu
03-02-2015, 11:33 PM
It is caused by back-face culling.
Without using the third party lib, it's ok that I use glCullFace(GL_BACK).
With the third party lib, it's ok if I change the GL_BACK to GL_FRONT.
How to switch it back?

Thanks.
James Xu

james_xu
03-02-2015, 11:58 PM
I have fix the problem with glFrontFace(GL_CCW);

Thanks.
James Xu