Jump to content
Sign in to follow this  
JJ FX

scale source by velocity

Recommended Posts

Hi, 

I want to scale my source by velocity. What I mean is when the source is moving fast I want more density, and less when its moving slow. How can I do that?

Share this post


Link to post
Share on other sites
float _speed = length(@vel);
_speed = fit(_speed, 0, ch("max_vel"), 0, 1);
_speed = chramp("remap_speed", _speed);

@density *= _speed;

in a volume wrangle

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×