Jump to content

FX Tools: Smoke Heavy. attach Cd Ramp?


atrytone

Recommended Posts

In the FX Tools shelf that is available from SideFX there is a asset called Smoke Heavy. I would like to control the color of the smoke based on a ramp that has a lookup attached to Age or Life of the particles. It is simple enough to replace the Cd attribute in the shader with a Ramp parameter, but if I do that the color of the smoke doesn't respect the ramp.

Any assistance would be fantastic.

Thanks.

Link to comment
Share on other sites

Just adding the ramp doesn't work, as the metaballs do not have any age parameter by default (in the hda).

You need to make sure that the life/age attribute is retained until the render flag.

Then import the age parameter in the shader and use that as ramp input.

eetu.

PS: I was surprised when I added an "age" point attribute and set it to $LIFE.x, what it actually gets

set to is life[0]/life[1]. This is of course the correct age, but feels funny that Houdini would do something

'behind the user's back'

edit: This would probably be a lot faster if you set the age ramp to metaball "Cd" in SOPs, this way in

a shader it is really quite slow..

post-2678-1223291626_thumb.jpg

heavysmoke_Ramp.hip

Edited by eetu
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...