Particle size increase as they age

   8494   2   0
User Avatar
Member
2 posts
Joined: Sept. 2019
Offline
Yellow!

Im opened houdini like..yesterday, so just trying to find my way in the darkness. Im trying to create a smoke trail using particles (it is a custom kinda smoke, no pyro) And I cant seem to find a good VEX code for what I need (Vex is foreign to me at this point, I try hard tho)

What I want is I guess a very simple thing - since it is kinda of a rocket smoke, I want the particles that lingers to increase in size. I searched for some vex codes and I found this one to throw into attribwrangler - @pscale = @age*fit(@age,0,@life,0,10);
But it scales also the "newborn" particles down.This is where Im at now:



I want the newborns stay at the size I set and get increased as they linger on. Is that easy peazy to achieve?

Attachments:
hudini.jpg (89.5 KB)

User Avatar
Member
2658 posts
Joined: June 2008
Offline
You can run a wrangle over a group, or use the exclamation point run over everything except what's in a group.
Try:
!justborn
Add another wrangle and explicitly set @pscale and run only over the justborn group.
Edited by Enivob - May 1, 2021 16:56:54
Using Houdini Indie 20.5
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
User Avatar
Member
9378 posts
Joined: July 2007
Offline
Store your original pscale as some different name like @pscale_orig
Then for the age scaling do something like

@pscale = @pscale_orig * fit01(@nage, 1, 10);

Or if you also want ramp control

@pscale = @pscale_orig *  fit01(chramp("scale_ramp", @nage), 1, 10);

Where @nage is a special binding that automatically computes normalized age as @age/@life as a shortcut
Edited by tamte - May 2, 2021 15:50:34
Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links