Advertisement

GL_DEPTH_TEST and particle engine

Started by January 03, 2003 01:34 PM
0 comments, last by KeGA 22 years, 2 months ago
i have a small problem i hope =), when i disable depth test the particle engine looks really good but is rendered over other objects in my scene, if i have depth test enabled the particle engine looks really ugly, but dont render on top of other objects. this is how i render it first render cubes, then render particles. i have tried rendering the particle engine first but then the particle engine is under the cubes instead. how do i solve this?
disable depth test
enable blending

draw particals here

disable blending
enable depth test

draw rest of scene

its the only way.


- Jono AH
- JonoRule #1: If you build it, they will come -- to hack and cheat.

This topic is closed to new replies.

Advertisement