Skip to main content
gamedev.net
🔒 Locked

Drawing Order

Started by Zumichu May 19, 2003 at 7:29 PM 2 replies 350+ views
Original Post
Zumichu
Zumichu
I wonder if someone can help me understand what''s going on here. I''m drawing textured quads with OpenGL using and orthographic projection. One quad is a background, and I draw the other quads on top of it: DrawBackground(); DrawQuads(); anyway, opengl is actually drawing the other quads before the background quads. If I switch the order of the two function calls, I get what I want: DrawQuads(); DrawBackground(); Why in the world would that happen? thanks.
[I did absolutely nothing, and it was everything that I thought it could be]
dede
dede
My random guess, is your Alpha value/blending is messing it up...
Zumichu
Zumichu
yep, it was the depth test.

thanks!
[I did absolutely nothing, and it was everything that I thought it could be]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.