Page 1 of 1

R, G and B with animation

PostPosted: Sun Dec 24, 2006 9:37 am
by Troodon
Hi,
I have a one coloured blue animation. Can I change it with rgb functions or do I have to make it white?

PostPosted: Sun Dec 24, 2006 1:17 pm
by makslane
No. RGB variables act like a filter. So, you can use to change the intensity of each color component in the original animation.

PostPosted: Sun Dec 24, 2006 3:49 pm
by Troodon
I made some tests. With 100% white animation, the rgb are working but with a 100% blue animation I couldn't even make small change. :shock:
If they are somehow working with blue animation it will be perfect for my current project.

PostPosted: Sun Dec 24, 2006 5:28 pm
by Fuzzy
No, as Makslane said, it acts as a filter. It multiplies the value of the R G and B by the color of each pixel.

So if you have a blue pixel rgb 0, 0, 255 and set the actors red r value...

actor.r = 255

You get rgb 0*r, 0, 255, which is still blue. 0 multiplied by anything is zero.

PostPosted: Mon Dec 25, 2006 2:43 pm
by Troodon
Ok, thanks threefingerpete!! :D

PostPosted: Mon Dec 25, 2006 6:49 pm
by Game A Gogo
before, you could, i think it was in the 1.2.9 versions, i forgot, you just needed to set the variable over 255, but there was no way that you could get it back to normal, so thats why its like that now, i think...

PostPosted: Mon Dec 25, 2006 7:11 pm
by Troodon
Ok. I see. :)