Tea
06-08-2002, 11:59 PM
Hello. This is my first post here.(sorry about spelling)
Got a prob with culling faces. I've enabled it using glEnable(GL_CULL_FACE).
Then i load my scene, and i walk and mouselook , i cant' see some faces (about half of them).
There'are about 10 textured cubes in my scene, and my render loop look like this :
{
glClear buffers
glLoadIdentity
glRotates(for camera)
glTranslates (for camera)
drawcubes()
}
nothing wrong , yes?
I tryed glCullFace(GL_BACK), and glCullFace(GL_FRONT), but i still can't see some walls.
thanks!
Got a prob with culling faces. I've enabled it using glEnable(GL_CULL_FACE).
Then i load my scene, and i walk and mouselook , i cant' see some faces (about half of them).
There'are about 10 textured cubes in my scene, and my render loop look like this :
{
glClear buffers
glLoadIdentity
glRotates(for camera)
glTranslates (for camera)
drawcubes()
}
nothing wrong , yes?
I tryed glCullFace(GL_BACK), and glCullFace(GL_FRONT), but i still can't see some walls.
thanks!