Jump to content
  • Advertisement
Sign in to follow this  
VISQI

Soft Particles Sample from DXSDK

This topic is 2599 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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???

Share this post


Link to post
Share on other sites
Advertisement
You got it pretty much right for texture mapped billboards.

The 3D noise texture is used as a fog/smoke density/intensity function. They do this to achieve a volumetric effect instead of using a texture on a billboard. Somewhat like volumetric fog. Think of each particle as a sphere filled with uneven smoke.

Henning

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!