j-rewerts / min3d

Automatically exported from code.google.com/p/min3d
0 stars 0 forks source link

Semi-transparent textures overlay #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm having some issues using textures with semitransparent pixels. Everything 
works fine except when I need to draw one texture over the other.

For example I have an object with a semitransparent texture working as a 
background image covering all the screen.
Then I need to add another object over it as an overlay and apply another 
texture which also has some semi-transparent pixels.
The result depends on the order the objects are added to the scene.
If the background is added last, then, altohugh it's semi transparent the other 
object will not be drawn.
If the background is added first, the other object is displayed but the 
transparent pixels of the second object are not a composition of backround + 
overlay. It's just considering the pixels of the overlay object.

I guess the solution is to disables GL_CULL_FACE flag, but is there any other 
way?

Thanks!

Original issue reported on code.google.com by gabrielm...@gmail.com on 2 Aug 2011 at 2:25