PDA

View Full Version : Particle age mapper


root-talis
05-02-2010, 09:33 AM
Hi.
I found a very old article about making particles. It says that there is an utility that allows me to take a color from a ramp depending on current particle's age. It is called particle age mapper and located in utilities -> particle utilities -> particle age mapper. But it is not there. Where did it go and what's the replacement?
Thank you.

akril
05-03-2010, 12:28 AM
Hi.
I found a very old article about making particles. It says that there is an utility that allows me to take a color from a ramp depending on current particle's age. It is called particle age mapper and located in utilities -> particle utilities -> particle age mapper. But it is not there. Where did it go and what's the replacement?
Thank you.

hey,
Its name is "array mapper" and it has always been there for while. Actually, on your particleShape, when you create a Ramp for the rgbPP for instance, it will automatically create a color ramp, using the ageNormalized as default normalized value (0-1) along the V Ramp, and that array Mapper to remap the previous value into a color.

root-talis
05-03-2010, 06:28 PM
Thank you for your reply.

Ok, I see. The help says that arrayMapper.outColorPP it is an array of vectors. How can I know which array element determines values for my current particle? And how can I use this (or something else) to set a particleCloud shader's color?

Thanks.

Aikiman
05-04-2010, 03:28 AM
Thank you for your reply.
Ok, I see. The help says that arrayMapper.outColorPP it is an array of vectors. How can I know which array element determines values for my current particle? And how can I use this (or something else) to set a particleCloud shader's color?
Thanks.

As mentioned when you create a new ramp it is based on particle age so normally your particles will have a lifespan which is then normalised by the arraymapper and mapped along the V side of the ramp. If your particles dont have a lifespan, ie they live forever then perhaps you can map it based on ID or world position for example.

To shade cloudy particles you need to use the particleSampler node and use the connection editor to connect rgbPP to color on the volume shader.

root-talis
05-04-2010, 07:16 AM
Ok, thank you.

CGTalk Moderation
05-04-2010, 07:16 AM
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.