Blending and Depth Testing

This is a discussion on Blending and Depth Testing within the Game Programming forums, part of the General Programming Boards category; Alright, I've started my own particle engine, and it's been doing great, but the trick is, it looks nice when ...

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    13

    Blending and Depth Testing

    Alright, I've started my own particle engine, and it's been doing great, but the trick is, it looks nice when you blend just the particles, and the particles only. The trick is you would have to draw the particles first, but you have to do it with depth testing disabled, which means everything else draws on top of it. Heres what it looks like:

    When its drawn last, and blends with everything:
    http://server5.uploadit.org/files/Rasico-Compare1.jpg
    http://server5.uploadit.org/files/Rasico-Compare2.jpg

    Depth Testing Enabled when Drawing:
    http://server5.uploadit.org/files/Rasico-Compare3.jpg

    Any soultions?

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    Based on the pictures I don't understand what you are getting at.

    Please explain more.

  3. #3
    Registered User
    Join Date
    Mar 2004
    Posts
    13
    If you look at the pictures, you see how they blend into different colors depending on the background, yes this is normal, but not the desired result. I only want the particles to blend withthemselves, but if they are drawn first, then anything else drawn is on top of them since depth testing is enabled while those particles are rendered. I'm looking for a way so I can get the particles to only blend with each other, but not the backgrounds, but I really don't know how to do that .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem in mouse position
    By Arangol in forum Game Programming
    Replies: 6
    Last Post: 08-08-2006, 08:07 AM
  2. Why only 32x32? (OpenGL) [Please help]
    By Queatrix in forum Game Programming
    Replies: 2
    Last Post: 01-23-2006, 02:39 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21