Quoting email@hidden:
> I am trying to render multiple Bezier surfaces however I have having
> depth problems. To render one piece I am using the code...
>
> glPushMatrix();
> glMap2f(GL_MAP2_VERTEX_3, 0, 1, 3, 4,
> 0, 1, 12, 4, &upperPosCtrlPoints[0][0][0]);
> glMapGrid2f(20, 0.0, 1.0, 20, 0.0, 1.0);
> glEvalMesh2(GL_FILL, 0, 20, 0, 20);
> glPopMatrix();
> The second piece that I render always shows through the first piece.
> I am certain I have the normals facing the right direction. In my
> init method I have GL_DEPTH_TEST and GL_MAP2_VERTEX_3 enabled, as
> well as GL_AUTO_NORMAL and back face culling. Any thoughts would be
> welcome!
Does your context have a depth buffer? You have to ask for one when you create
the context. Forgetting is a common mistake. Also see the OpenGL FAQ:
http://opengl.org/resources/faq/technical/depthbuffer.htm
--
Derek Ledbetter
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden
This email sent to email@hidden