typewriter
01-13-2009, 03:50 PM
I implimented some standard trees with the 2 perpendicular quads, using a transparent PNG for the tree texture.
Now, the tree in the foreground correctly shows the transparency through to the skybox, but obscures the other trees like a "cloak of invisibility". But it only does this when viewing the trees from *one direction*, not the other.
The trees are all part of the big "world" object. I am using glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA). Face culling is off.
I must be missing something regarding transparent texturing.. this effect is kinda cool but not the simple thing I'm doing after! Any ideas?
Now, the tree in the foreground correctly shows the transparency through to the skybox, but obscures the other trees like a "cloak of invisibility". But it only does this when viewing the trees from *one direction*, not the other.
The trees are all part of the big "world" object. I am using glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA). Face culling is off.
I must be missing something regarding transparent texturing.. this effect is kinda cool but not the simple thing I'm doing after! Any ideas?