Particle shader color

   3833   4   0
User Avatar
Member
32 posts
Joined: 5月 2006
Offline
Hi there,

I'm still newby on Houdini, but I'm trying to do some volumetric with particles. Just with particles, rendered as spheres, with a smoke shader.

The problem is, that I dont know how to transfer the Cd attribute of the particles to the color of the shader. I can't find it anywhere S

Thanks in advance!

pd i'm still on H8
User Avatar
Member
7735 posts
Joined: 7月 2005
Offline
You need to add a Attribute SOP and then rename the attribute Cd to the corresponding shader parameter name. I think for a lot of the default shaders, the default diffuse name is diff.
User Avatar
Member
32 posts
Joined: 5月 2006
Offline
Thanks! It works like a charm!

The override attributes are working only with vex or you can use them for the whole houdini?

thanks again!
User Avatar
Member
7735 posts
Joined: 7月 2005
Offline
It's a general mechanism where if an attribute name matches the shader parameter name, then it will be output by Houdini as a varying shader parameter. I believe it works the same way for RIB output as well.
User Avatar
Member
12500 posts
Joined: 7月 2005
Offline
onesk8man
The override attributes are working only with vex or you can use them for the whole houdini?

Kinda, you can use them with any VEX operation, be it a shader, sop, pop, etc. Regular C++ type operators no, I'm afraid not.
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
  • Quick Links