Alpha transition Help needed
amigoni
Member Posts: 78
Ok. I am trying to create a transition from Sunset, to night, to Sunrise.
The way I am doing this is using 3 images one for each state and using the alpha value I am transitioning one in while transitioning the other out.
Posted this in the Graphics section but no bite. Hope someone can help.
The problem that I am having is that the colors in between, while both say are at alpha .5 are not very realistic for a sunset or sunrise.
I need help creating the proper color background or maybe even changing some of the colors in order to make the transition as realistic as possible. Does anyone that knows color theory well know how to do this?
Thanks
The way I am doing this is using 3 images one for each state and using the alpha value I am transitioning one in while transitioning the other out.
Posted this in the Graphics section but no bite. Hope someone can help.
The problem that I am having is that the colors in between, while both say are at alpha .5 are not very realistic for a sunset or sunrise.
I need help creating the proper color background or maybe even changing some of the colors in order to make the transition as realistic as possible. Does anyone that knows color theory well know how to do this?
Thanks
Comments
An artist would obviously be of better help!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
(This would be just for a rectangle actor with no graphics that goes behind your artwork.)
Full sun:
R: 1.0
G: 1.0
B: 0.86
Dusk/Dawn:
R: 0
G: 0.23
B: 0.23
Night:
R: 0
G: 0
B: 0
And you can use Interpolate to adjust the colors. Something like this:
Interpolate: self.Color.Red To: 0 [3 seconds]
Interpolate: self.Color.Green To: 0.23 [3 seconds]
Interpolate: self.Color.Blue To: 0.23 [3 seconds]
Timer After 3 seconds Run to completion
-----Interpolate: self.Color.Red To: 0 [3 seconds]
-----Interpolate: self.Color.Green To: 0 [3 seconds]
-----Interpolate: self.Color.Blue To: 0 [3 seconds]
Timer After 6 seconds Run to completion
-----Interpolate: self.Color.Red To: 0 [3 seconds]
-----Interpolate: self.Color.Green To: 0.23 [3 seconds]
-----Interpolate: self.Color.Blue To: 0.23 [3 seconds]
Timer After 9 seconds Run to completion
-----Interpolate: self.Color.Red To: 1 [3 seconds]
-----Interpolate: self.Color.Green To: 1 [3 seconds]
-----Interpolate: self.Color.Blue To: 0.86 [3 seconds]
That will give you a basic starting point to work from. You can try tweaking the reds to have sunsets etc.
Have you ever seen the intro for Peggle Nights? Where it goes from day to night?
It is a truly a masterpiece.
If you have never seen it, I highly recommend you check it out.
The game is a masterpiece as well. It's for Mac/PC... not the iPhone yet.
http://gamesalad.com/game/play/76501
[ Edit ]
As usual, FMG gets in there first. :-)
@netdzynr Thank you so much. I had something similar but your color suggestions are much better. I will keep tweaking.