13.07.2015 Views

Controlling Fluid Simulations with Custom Fields in Houdini Master ...

Controlling Fluid Simulations with Custom Fields in Houdini Master ...

Controlling Fluid Simulations with Custom Fields in Houdini Master ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 14: The preset smoke solver <strong>with</strong> the color eld added to it, as described<strong>in</strong> (5.3.1)5.3 Examples of custom eldsThe next sections will talk about how some setups can be created and what isrequired to implement the custom elds <strong>in</strong> dops for each example.5.3.1 Colour eld additionOnce the colour (Cd) attribute is transferred onto a volume <strong>in</strong> SOPS us<strong>in</strong>g thevolume attribute transfer tool, the necessary elds can be added <strong>in</strong> DOPS, thenode tree can be seen <strong>in</strong> Figure (14) :1. A Sop Vector Field, Cd, is dened to br<strong>in</strong>g <strong>in</strong> the newly dened Cd eldfrom SOPS. This eld will conta<strong>in</strong> the color <strong>in</strong>formation throughout thesimulation.2. Another Sop Vector Field, Cd_source, is dened us<strong>in</strong>g the Cd eld fromSOPS. This eld will be used to add color <strong>in</strong>formation to the Cd eld atthe beg<strong>in</strong>n<strong>in</strong>g of every frame. If this eld is animated, it is required thatthe Time and SOP Path are always evaluated. The Time parametershould be set to $T.3. Us<strong>in</strong>g a Gas Calculate <strong>with</strong> a the calculation set to Maximum, the dest<strong>in</strong>ationeld set to Cd and the source eld set to Cd_source will copy<strong>in</strong>formation from the source <strong>in</strong>to the dest<strong>in</strong>ation eld at the start of everyframe us<strong>in</strong>g a maximum operation.4. Advect the color eld by the velocity, us<strong>in</strong>g a Gas Advect microsolvers25

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!