Jump to content

expressions for coloring particles


Thalie

Recommended Posts

Dear all!!

I'm trying to get an expression in order to color randomly the particles in light brown, dark brown, very dark brown and a little bordeaux tints!

In the shader, I was trying to guess what kind of rand($PT) expression could work, but couldn't find any correct one!

to this picture, I would like to give a feeling of sand! what would be your advice!

Tx all

Link to comment
Share on other sites

Hello.

Just quick out of my heard!!!

I think its possible to pipe your particles through a VOPSOP. Inside there you can create a RGB to HSV conversion and

then make a random on the V (value).

Remember to make a HSV to RGB before piping it back to your globals.

Hope it helps

Erik

duckling

Edited by Ezz
Link to comment
Share on other sites

Just to give you another solution, you could append to your particles a color node, inside your pop network, then inside it choose ramp, set your colors and add to the lookup value the expression rand($ID)....

Link to comment
Share on other sites

Just to give you another solution, you could append to your particles a color node, inside your pop network, then inside it choose ramp, set your colors and add to the lookup value the expression rand($ID)....

Better to do the lookup with a vop sop after the particle network - outside of the particle network - that way if you want to change the color you don't have to resimulate the particles.

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