Feedback

What's your question?

By: [ Editor ] Asked

How can I use my per particle attributes to control the shading of each instance?

Hello Maya wizards,

I instanced a cube on my particles and each particle has a different color. I would like each instanced cube to have its corresponding color. This would be to render in Mental Ray.

What rendering node would allow me to do this?

Any help would be most appreciated.

  • -1

manny [ Editor ]

Try using the particleSamplerInfo node to run the colorGain of your shader. Use a white ramp so colorGain can assign the color.

Hhhhmmmm...Why not just control the color of the shader? Just a suggestion. Haven't tried it.

NN comments
ultragotcha
-

The problem is the same as above. See my answer to bflat: particleSamplerInfo doesn’t seem to be aware of the context of the particle corresponding to the geometry instance being rendered. So the user values (userScalarPP or userVectorPP) only seem to apply to rendering particles (–>cloud shader), not the instancer.

or Cancel