Different color on each particle

Software: Away3D 4.x

rockbuilder, Newbie
Posted: 13 December 2012 07:02 PM   Total Posts: 2

Hello :)
Is it possible to set a different color on each particle?
I’ve tried this:

animationSet.addAnimation(new ParticleColorNode(ParticlePropertiesMode.LOCAL_STATICtruetrue));

// then in the initParticleFunc

prop[ParticleColorNode.COLOR_START_COLORTRANSFORM] = new ColorTransform(
    
0001
    
Math.round(Math.random() * 0xff), 
    
Math.round(Math.random() * 0xff), 
    
Math.round(Math.random() * 0xff)); 

...but I get a “Register overflow!” error.
In fact, I don’t need the color to be animated, I just need each particle to have a different color.

Thanks for your help.

   

Avatar
Cheng Liao, Administrator
Posted: 14 December 2012 02:49 AM   Total Posts: 116   [ # 1 ]

Hello
Currently, these is no Class can implement this effect. We will add this feature in next release.
Thanks.

   

rockbuilder, Newbie
Posted: 14 December 2012 04:12 PM   Total Posts: 2   [ # 2 ]

Thank you Cheng for your reply smile

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X