View Full Version : Particle Geometry Instances - Different Colour?
danylyon 04-24-2003, 04:14 PM I've got an emitter which emits Geometry Instances.
I have applied a Blinn Material with a solid colour.
Now I would like to have different colours on the Instanced Polygons... depending on the age. Prefferable applying a RAMP.
How can I do that?
Any help would be nice :)
|
|
danylyon
04-25-2003, 10:18 AM
mhmm.. anyone?
alexx
04-25-2003, 10:25 AM
this tread should be in the dynamics section..
anyway: i think mayas particle instancer cant handle something like that.. (at least up to 4.5)
cheers
alexx
danylyon
04-25-2003, 11:01 AM
argh.. not again.. well Thank you alexx :)
Mhm.. I thought my question was more about Shading and general Maya, that's why I put it in here.. sorry.
I'm going to make It different now.. but I'm already running in a new problem.
Say, I have a hundred different Polygon objects. All of them have the same Shader with a solid colour (obviously the same).
Now, I would like to have different colours.. Basically a RAMP from Pink to Blue over all those 100 objects. (with each object having a unique color)
How can I make this?
alexx
04-25-2003, 11:05 AM
if you are a bit into mel, you could create a ramp with the desired colors.
then use a rand (0,1) and plug the result in the vCoord value from the ramp. (v-Ramp presumed).
now you can read out the outColor value from the ramp (which is randomly different, when you invoke the rand(0,1) again and again..
that color value you can plug in the shaders color to have them differently colored.
cheers
alexx
CGTalk Moderation
01-14-2006, 11:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.