|02-18-2013, 04:41 PM||#1|
Assigning random colors to Pflow
Is it possible to assign colors per particle without Box #2/3?
I am currently working on a project where the goal is to display light reflections over the course of a year. Where the reflected light intersects the target, I would like to place my particle (I have that script) and color/material it based on the month it happens in.
|02-19-2013, 09:30 AM||#3|
Join Date: Mar 2002
Yes, you can use a Script Operator and the function
setParticleMapping < index >particleIndex < int >mapChannel < point3 >mapValue
with mapChannel set to 0 to affect the Vertex Color channel.
Then add a Material with Vertex Color Map in the Diffuse slot to the PFlow and you are ready to go!
For example, set up a PFlow with Speed set to Random 3D and values 100.0 and variation 100.0. Then add a Script Operator and put this in it:
Add a Material Static, drop a Standard material, assign Vertex Color Map to Diffuse channel and render in Scanline - fast particles will be green, slow particles will be red...
|02-19-2013, 09:30 AM||#4|
Join Date: Sep 2003
Thread automatically closed
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.
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
|Thread Closed share thread|
|Thread Tools||Search this Thread|