Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple Bezier Surfaces



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!
 _______________________________________________
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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.