Jump to content

rest length to color range


herr.ja

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
Link to comment
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.

Link to comment
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

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...