PDA

View Full Version : Order of execution?



12-11-2001, 07:00 AM
I'm new to OpenGL (I think everybody says that here.) And I've been writing little demos to test my knowledge.

I just wrote a demo that was to test alpha blending. I drew a quad, all of the corners were different colors, and one corner had an alpha value. Then I added a quad in the background with different color values (no alpha) and wrote the code so the first would spin.

Now here's the problem, the alpha was showing up the background color untill
I switched the order that the quads show up in the code.

Am I doing somthing wrong? or is that just the way it is?

12-11-2001, 07:07 AM
Well, I have new info.

This problem happens whether I specify depth in the verteces themselfs or if I use
glTranslatef