Jump to content
  • Advertisement
Sign in to follow this  
Medo Mex

Soft Particles and Alpha Blending

This topic is 1404 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

Hi guys,

 

The soft particles is only working correctly with non-transparent meshes.

 

How do I make the soft particles work with alpha blending (transparent meshes)?

Edited by Medo3337

Share this post


Link to post
Share on other sites
Advertisement

Not much info to go on here.

 

Soft particles do a compare against the depth value which controls a fade-to-transparent as they get close to intersecting.

 

If your transparent meshes were to write to the depth buffer that the soft particles are comparing against, then it'd probably work. Note that the depth buffer the transparent meshes need to write to may or may not be your main scene z-buffer. It may be part of a G-buffer or something.

Share this post


Link to post
Share on other sites

Can you provide more information as to what exactly isn't working correctly with your transparent meshes?

Share this post


Link to post
Share on other sites

@MJP: Since the transparent meshes are not writing to the Z buffer, the particles are not soft when intersecting with transparent mesh.

Share this post


Link to post
Share on other sites


@MJP: Since the transparent meshes are not writing to the Z buffer, the particles are not soft when intersecting with transparent mesh.

 

So then have them write to the z buffer.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!