- Joined
- Apr 19, 2008
- Messages
- 2,414
Hello! I've been working on a JAVA warcraft 3 model editor/viewer/importer, and I have an in-dev model display window. However, I'm really new to OpenGL and I ran into a bug that I didn't know how to fix:
When the program renders something with an alpha channel, it still writes to the depth buffer, so when it goes to write something else afterward if that thing is behind the alpha layer it still gets hidden as though it were "behind" something.
However, parts of the same geoset that had that alpha channel still show up behind the alpha channel. It's a weird bug, probably due to me not knowing entirely what I'm doing with OpenGL.
Anyone who could help would be well appreciated!
When the program renders something with an alpha channel, it still writes to the depth buffer, so when it goes to write something else afterward if that thing is behind the alpha layer it still gets hidden as though it were "behind" something.
However, parts of the same geoset that had that alpha channel still show up behind the alpha channel. It's a weird bug, probably due to me not knowing entirely what I'm doing with OpenGL.
Anyone who could help would be well appreciated!