R, G and B with animation

Talk about making games.

R, G and B with animation

Postby Troodon » Sun Dec 24, 2006 9:37 am

Hi,
I have a one coloured blue animation. Can I change it with rgb functions or do I have to make it white?
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby makslane » Sun Dec 24, 2006 1:17 pm

No. RGB variables act like a filter. So, you can use to change the intensity of each color component in the original animation.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Troodon » Sun Dec 24, 2006 3:49 pm

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.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Fuzzy » Sun Dec 24, 2006 5:28 pm

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.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Postby Troodon » Mon Dec 25, 2006 2:43 pm

Ok, thanks threefingerpete!! :D
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Game A Gogo » Mon Dec 25, 2006 6:49 pm

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...
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Troodon » Mon Dec 25, 2006 7:11 pm

Ok. I see. :)
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest