Advertisement

GL_DEPTH_TEST and particle engine from lesson 19

Started by January 03, 2003 01:35 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?
lo, a nice trick i used was to draw all the opaque objects first then disable writes to depth buffer and draw all my particles. although this works and looks ok you should consider ordering your particles and draw them back to front to get the correct blending effect [but i didnt bother \o/]

cheers, Fusi0n.

"We are what we repeatedly do. Excellence, then, is not an act, but a habit." - Aristotle
http://fusi.basscut.net"We are what we repeatedly do. Excellence, then, is not an act, but a habit." - Aristotle

This topic is closed to new replies.

Advertisement