I have a proble to draw complex object
the surface is incorrect z buffer in opengl.
Have any solution for fix it?.
You must give us more information that just saying something is wrong. It can be a whole lot of stuff. Did you ask for a depthbuffer? Did you enable it? What depthfunction do you use? What values did you pass as near and far clipping planes?
// draw Model;
glDepthMask(GL_FALSE);
glDepthFunc(GL_EQUAL);
glEnable(GL_BLEND);
glBlendFunc(GL_ZERO, GL_SRC_COLOR);
// draw Model;
glDisable(GL_BLEND);
glDepthMask(GL_TRUE);
glDepthFunc(GL_LESS);
What is suppose to happen in your program, and what is happening now? I still don’t know whats wrong and therefore can’t help much.