Jump to content
diogomgf

Accessing the pressure scalar field in Pyro

Recommended Posts

I am trying to recreate this effect, and I can't find any info on how this techniques were implemented…

Any help ?

Thanks,
Diogo

Capture.JPG

Share this post


Link to post
Share on other sites

You can try putting "pressure" as the control field for your turbulence. Then you can work with the ramp so you can control where it will be working (high pressure or low pressure areas). Visualize it so you'll have a better visual feedback to understans what's happening.

Cheers!

  • Like 2

Share this post


Link to post
Share on other sites

Happy it worked! Remember you can always MMB over the pyro/smoke solver (starting from the 2nd simultation frame in most cases) and see which fields you already have to work with.

  • Like 1

Share this post


Link to post
Share on other sites

@merlino once again, thanks for the valuable info!

I'll share a more advanced setup I managed to create by diving a bit deeper:

In SOP level I assigned float values to points and created a vdb from points with said "mult" volume primitive. Then I used the sopscalarfield node to read those values and in the gasfieldwrangle I multiplied my "press" scalar field (created by copying the values of the pressure field) with the "mult" scalar field values. 

This way, I can use "press" field as a control field for any gas force such as disturbance... And the "mult" field serves as a mask for the "press" field.

Watchout for the "Default Operation" default value, as it is "Set Initial" and, in case you have an animated volume you may want to swap to "Set Always". Otherwise it won't update the field.

 

Dop_Scalar_Fields.JPG

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

×