C++ Learning Community Forum
August 01, 2010, 03:20:49 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Hello. Smiley
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Opengl transparency issues  (Read 762 times)
oscar_spencer
N00b!!1
*
Posts: 4


View Profile
« on: September 08, 2007, 08:06:34 AM »

it seems to me that when i use opengl to draw transparent textures,
the ordering is important to the final outcome.

apparently i must reverse order the drawing of all of my transparent
textures so that the pixels already drawn behind them are the correct ones.

is there any way to change this, so that i dont need to order my drawing?

im using an alpha testing function as follows:
glEnable(GL_ALPHA_TEST);
glAlphaFunc(GL_GREATER, 0);

im also using a depth test:
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);

any help is good! thanks.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!