Jump to content
pan.mentolka

rest length to color range

Recommended Posts

Hi guys!

Can I ask u to help me out with the following issue?

I created 6 simple spheres, which are being inflated in 30 frames, and what I need now is to get colour information about the stretch of each vertex, and transform it into the colour (I am not sure I am describing it right). But what I basically need is that parts of the ballon that are not stretched and stay in the same position should be darker and parts that are stretched should be brighter. I need this Cd information for updating a translucent map during the animation, so where the balloon is stretched shader should make the surface more translucent and also opposite way. B)

Thank you guys so much for any advice!

 

 

Baloon_issue.hip

exaplee.jpg

Edited by pan.mentolka

Share this post


Link to post
Share on other sites

you probably want to put @rest attrib in your before sim then post sim use a wrangle and calculate the distance between @P and @rest. using the distance function, then use the float attrib for masking your transparency. You can use a ramp for more control as well in your shading network.

Share this post


Link to post
Share on other sites
15 minutes ago, Sepu said:

you probably want to put @rest attrib in your before sim then post sim use a wrangle and calculate the distance between @P and @rest. using the distance function, then use the float attrib for masking your transparency. You can use a ramp for more control as well in your shading network.

Hi houdini Master

Thanks for your swift reply!!! I had the same plan in my mind. However, can I ask you for an example in my attached scene, so I can o through it? :D

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

×