[Sidefx-houdini-list] Get life attribute with fluid

jiversen jiversen at rhythm.com
Thu Oct 8 17:52:04 EDT 2009


You could look at the "heat" field of Pyro to see this kind of thing in 
action, perhaps?

Francois Duchesneau wrote:
> Thanks for the answer Sebastian,
>
> I think I've almost set it up except for point c and d. I will try to
> understand better how the Gas Calculate work because it doesn't seem to
> work and I can't figure out the logic you told me.
>
> Here are the parameters I've set for the Gas Calculate
> Dest Field=myLife
> Source Field=source
> Calculation=Add
> Dest-pre add=$TIMESTEP
>
>
> François
>
>   
>> hey francois,
>>
>> here how i would do it, ... just freestyling i have no H at my disposal at
>> the moment
>>
>> 1) create a new scalar field & name it "myLife" and maybe set its initial
>> value to something increadibly high
>> 1.b) you can use a scalar-field vizualization node piped into this scalar
>> field to visualize the field!
>> 2) apply this to your fluid field using the apply-data dop
>>
>> 3) on your fluid solver create a gas calculate node
>>    a) which adds the contents of the source field "source"
>>    b) into the destination field "myLife"
>>    c) the calculation method you want to use could be "min", so all the
>> fluid that is added comes in with a life value of something like 1
>>    d) what you also can do is setting the dest-(pre or post) add to your
>> timestep so destiny field "myLife" gets incremented each calculation step
>>    one thing on c) i'm not sure what happens if your source field contains
>> any  fields with zero as content, if that sets all the myLife to zero
>> though
>> ?? worth trying, maybe some kind of mask or something is arround that you
>> can missuse ;)
>> 4) use an gas-advect node to advect the "myLife" Field using the "vel" -
>> Velocity Field
>>
>> give it a try
>>
>> Seb
>>
>>
>>
>> On Thu, Oct 8, 2009 at 8:53 PM, Francois Duchesneau
>> <sidefx at trinix.ca>wrote:
>>
>>     
>>> Hi everybody,
>>>
>>> I'm trying to get the life of a voxel fluid simulation in order to fade
>>> off the opacity at some point like I would do with particles. How can I
>>> do
>>> that?
>>>
>>> Thanks for your ideas.
>>>
>>> François
>>>
>>> _______________________________________________
>>> Sidefx-houdini-list mailing list
>>> Sidefx-houdini-list at sidefx.com
>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>
>>>       
>> _______________________________________________
>> Sidefx-houdini-list mailing list
>> Sidefx-houdini-list at sidefx.com
>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>
>>     
>
>
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>   


More information about the Sidefx-houdini-list mailing list