Cool but i thinks before clamp you need a fitrange, to better catch the right targhet. i think is better to fit 0.5-2 to 0,1 then clamp density and ramp , in this way i think you could leave a greater amplitude for this wind. But you are the master :)
Good idea! Either way totally works. I've done it with the fit method as well, and that does a better job at getting those inbetween values. The clamp might be a little easier to control if density values change significantly over time.
For VEX lovers here is code, that does same thing, while using with gasfieldwrangle *@vel += chv("wind_direction") * chramp("density_mask_ramp", fit(@density, chf("density_min"), chf("density_max"), 0, 1));*
its weird.. I tried this to go in a -Z direction and It always travelled 1 in XY and Z. like it was only receiving a float to all vectors. Checked to make sure I was in and out Vector vel. I dunno why it isn't working
You can do most of this with the pyrosolver sop. The pyrosolver sop is just a wrapper that goes around a DOP network. So, for the parts that require some custom dop operations, you can go in there and do the same.
Cool but i thinks before clamp you need a fitrange, to better catch the right targhet. i think is better to fit 0.5-2 to 0,1 then clamp density and ramp , in this way i think you could leave a greater amplitude for this wind. But you are the master :)
Good idea! Either way totally works. I've done it with the fit method as well, and that does a better job at getting those inbetween values. The clamp might be a little easier to control if density values change significantly over time.
For VEX lovers here is code, that does same thing, while using with gasfieldwrangle
*@vel += chv("wind_direction") * chramp("density_mask_ramp", fit(@density, chf("density_min"), chf("density_max"), 0, 1));*
Indeed! And that gasfieldwrangle ought to perform better as well. Thanks for sharing
really nice
Brilliant! Thank you
its weird.. I tried this to go in a -Z direction and It always travelled 1 in XY and Z. like it was only receiving a float to all vectors. Checked to make sure I was in and out Vector vel. I dunno why it isn't working
Fantastic!
WOW! thank you so much for this trick!!
can i do this with a pyrosolver sop?
You can do most of this with the pyrosolver sop. The pyrosolver sop is just a wrapper that goes around a DOP network. So, for the parts that require some custom dop operations, you can go in there and do the same.
Helpful trick