Particle colour
by Chris Labombard · in Torque Game Engine · 10/22/2005 (4:25 pm) · 4 replies
I cant figure out how to set the colour of the particles in my effect, realtime.
I tried setting a blending colour, but it didnt do anything.
Can anyone point me in the right direction ?
Im assuming I need to do this :
What exactly is it ?
I tried setting a blending colour, but it didnt do anything.
Can anyone point me in the right direction ?
id.setBlendColour("1 0 0");Im assuming I need to do this :
setBlending() - (blendStatus?, [srcBlendFactor], [dstBlendFactor]) - Sets the Rendering Blend Options.
What exactly is it ?
About the author
I have been a professional game programmer for over 5 years now. I've worked on virtually every platform, dozens of games and released a few of my own games, including 2 iPhone titles and a title waiting release on Big Fish Games.
#2
10/22/2005 (4:48 pm)
Toby - that will allow me to set the colour realtime ?
#3
10/22/2005 (5:32 pm)
I'd love to be able to change particle sizes on the fly... i should check into that.. if you can change colors on the fly... why not size? Hopefully an answer will arise.
#4
10/25/2005 (6:25 pm)
And i would like to change the colour of a whole particle system attached to a vehicle individually for each spawned vehicle - is there a way? Changing the colour of the datablock changes ALL particle systems :(
Torque Owner Toby W. Allen
All you have to do is change the color in the particle editor. Set the alpha to negative (I think - othwise it's possitive) and you can then use the particle color.
Toby.