Jump to content

Change color on each collision


drGonzo

Recommended Posts

Heya -

First of all, excuse my silly questions, I am coming from 10 years of Maya and I am going through growing pains with Houdini.

I am trying to get particles to change color each time they collide. So every time they collide they should get a new random color.

I have them change color on the first collision using a collision group and color POP but after that I am stuck.

Can any one provide some suggestions?

Link to comment
Share on other sites

On the Attributes tab of the Collision POP there's an option to "Add Num Hit Attribute" which keeps track of the number of times a particle collides with something. Giving each particle a random color based on a combination of it's id and numhit attributes ($ID and $NUMHIT local variables) should do it.

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