Jump to content

Particle color(shader) using particle attributes


Tom

Recommended Posts

Hi, I would like to know how I can render particle color with ramp using Life attribute from particles, but I want to do this with shader not coloring particles itself, so I can save some memory from particles.

I usualy do this by adding color POP in particle network and change color to Ramp and lookup to Life.

Thanks in advance,

Tom

Link to comment
Share on other sites

Hi, I would like to know how I can render particle color with ramp using Life attribute from particles, but I want to do this with shader not coloring particles itself, so I can save some memory from particles.

I usualy do this by adding color POP in particle network and change color to Ramp and lookup to Life.

Thanks in advance,

Tom

You can make the age a real attribute manually in SOPs (otherwise it's a first component of life[2]), and use it in a shader. So in VOPSOP/POP, you add normalized attribute nAge = age/life, and down the chain in a shader, create the parm nAge to drive your ramp with it.

Link to comment
Share on other sites

You can make the age a real attribute manually in SOPs (otherwise it's a first component of life[2]), and use it in a shader. So in VOPSOP/POP, you add normalized attribute nAge = age/life

Ok, this is easy...

, and down the chain in a shader, create the parm nAge to drive your ramp with it.

Now I quite dont understand this. I tryed to make this but it didnt worked. Could you make a simple .hip?

Shaders are real pain (for me) when it comes to modifying them :D

Edited by Tom
Link to comment
Share on other sites

Here you go, as easy as can be. This is H12 hip file.

Thanks! I actualy failed on exporting VOPSOP attribute, I did it with Parameter node with Export on Always :D

My shader workflow was same as in your example.

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