Jump to content

Particle Color


fixxorion

Recommended Posts

Hi all!

I'm learning particles in Houdini now, but have run into some problems...

I created a Particle SOP, appended a Point SOP to it to change the point color based on the distance from the origin, and it shows up great in the viewport. However, when I go to render it out, it shows up as white!?! Appending a Shop SOP with a different shader worked, but that has nothing to do with the point color. I'm really at my wit's end here...please help me. :(

Thanks,

fixxorion

Link to comment
Share on other sites

relax :), here's why:

Mantra, houdinis renderer, works with shaders, and not all of them are written with consideration. In order for an attribute (such as point color) to be passed over to the shader, the shader actually has to look for it. Some shaders will do this ( I belive the vex super material does) but others do not. However, if you find out what attribute it's using for color, you can actually rename your color attribute, so that it gets passed in correctly.

Take for example the Vex constant shader. If you render your points with it, they'll all be white. Now append an Attribute sop. In the first rename field, rename Cd to clr . Now try your render again. If all goes right, you should now see colored points :). The secret is knowing what attribute the shader looks for. If you go into shops, keyframe the color chanels and scope them. You'll see that they're named clrr clrg and clrb. From this you can gather that the color attribute is clr (and rgb is appended to that).

Hmn... I hope this was somewhat clear. This was actually discussed a few times in this forum, so maybe you can do some searching to find more info :)

Cheers,

Jens

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