atrytone Posted October 1, 2008 Share Posted October 1, 2008 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. Quote Link to comment Share on other sites More sharing options...
eetu Posted October 6, 2008 Share Posted October 6, 2008 (edited) 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.. heavysmoke_Ramp.hip Edited October 6, 2008 by eetu Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.