Advertisement

Blending & Depth Testing

Started by May 22, 2002 12:22 PM
4 comments, last by Lunchbox 22 years, 9 months ago
I''m working on an elaborate particle system for a game engine and I''ve run into a dead end. Basically, the particle engine works fine until I start adding other objects into the environment. I need to enable blending inorder to render the particles, and as a result, I must disable depth testing. I enable depth testing for while rendering the other objects, but I still get strange depth effects. I''ve done a little research on BSP tree''s, but I''m not sure if they would apply in this situation. I''ve also tryed experimenting with different masking techniques, none of which solve my problem. Any suggestions would be greatly appreciated, ..Erik
Render blended things last. Keep depth testing on.
_______________________________________Pixelante Game Studios - Fowl Language
Advertisement
Wow, that''d be really nice. I''ll let you know when I get home from work. Thanks!

..Erik
quote:
Original post by LockePick
Render blended things last. Keep depth testing on.



I think you''re *almost* right. You must keep depth testing but disable depth writing, overwise particles won''t merge together.

That''s true, my bad.
_______________________________________Pixelante Game Studios - Fowl Language
Yeah, it worked. Props to Prosper & LockePick.

This topic is closed to new replies.

Advertisement