Original Post
I was looking for a good modification to my particle system, and i stumbled upon the Soft Particles sample from DXSDK. I got the main idea but i really didnt get their code(especially the part about the gradient density, what was that about????).
I just want to see if i got the main idea:
- Get a depth map from the scene geometry.
- Render the particles as usual(as camera-aligned particles), and specify a sphere for each one.
- Based on the difference between the depth of the geometry and the depth of each particle, calculate the alpha value so it will be invisible when the scene geometry occludes with each particle.
- Use alpha blending
- Done.
Did i miss something???
the sample in the SDK did specify a section about volumetric noise textures which i really didn't get, can someone explain it for me???
I just want to see if i got the main idea:
- Get a depth map from the scene geometry.
- Render the particles as usual(as camera-aligned particles), and specify a sphere for each one.
- Based on the difference between the depth of the geometry and the depth of each particle, calculate the alpha value so it will be invisible when the scene geometry occludes with each particle.
- Use alpha blending
- Done.
Did i miss something???
the sample in the SDK did specify a section about volumetric noise textures which i really didn't get, can someone explain it for me???