| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi,
I have code which draws a white filled rectangle and on it a black cross.
My depth test is LEQUAL, and I’m drawing everything at depth 0 (2D drawing mostly).
The code looks something like this:
glColor3f (1, 1, 1);
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
glBegin(GL_QUADS);
DrawRectVertices(…);
glEnd();
glColor3f (0,0,0);
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
glBegin(GL_LINES);
DrawCrossVertices(…);
glEnd();
This works fine on all computers we have except those with ATY RV250 card. On these machines the cross in NOT seen.
Playing around with it I got it to be seen in 2 ways:
1) disable the depth test completely.
2) Remove the 2nd call to glPolygonMode which sets it to GL_LINE and stay with GL_FILL.
Since the same problem appeared in other places around our application I’m pretty convinced that using GL_LINE polygon mode somehow disrupts the depth test of objects at the same depth.
Does anyone have any ideas??
Thanx,
Yaron Tadmor
_______________________________________________ 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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.