1 Sep 2006 09:31
Problem with glCullFace(GL_BACK) in the player.c
Hello, I have a 3ds model(http://195.14.170.84/test.zip) there "culled" faces should be front side, not back. ( static void init(void)... glCullFace(GL_BACK); ) (Also I tested this model with 3d max. 3D Max shows model fine ) player.c has code: if( mat->two_sided ) glDisable(GL_CULL_FACE); else glEnable(GL_CULL_FACE); I think that after glEnable(GL_CULL_FACE) should be defined "culling" face side. I was trying to eliminate this problem, but I had failed.. Changing glCullFace(GL_BACK) to the glCullFace(GL_FRONT) http://195.14.170.84/test.zip model looks ok, but other models not. Also I noticed that changing face points direction (player.c: for i = 2 i != -1; --i) also solves defined problem. Maybe it as any attribute in the material which defines culling side?(Continue reading)
RSS Feed