Alpha transition Help needed

amigoniamigoni Member Posts: 78
edited November -1 in Working with GS (Mac)
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

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Yep, I saw this in the Graphics section, and have no idea how to answer it!

    An artist would obviously be of better help!

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • firemaplegamesfiremaplegames Member Posts: 3,211
    Here's some quick colors you can try:

    (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.
  • netdzynrnetdzynr Member Posts: 296
    I took a stab at it -- tweak color as needed.

    http://gamesalad.com/game/play/76501

    [ Edit ]
    As usual, FMG gets in there first. :-)
  • amigoniamigoni Member Posts: 78
    @firemaplesgames Peggie Nights intro is exactly the effect I am trying to recreate but more purples during the transition. I already have something that is ok, but I am getting weird green transitions between the red and blue.

    @netdzynr Thank you so much. I had something similar but your color suggestions are much better. I will keep tweaking.
  • crapscraps Member Posts: 353
Sign In or Register to comment.