"Fade" effect essentially broken…?

When using the “fade” effect to move to a new scene, rather than have the entire scene fade to black (like a fade out at the end of a movie), all of the individual display objects in my scene simultaneously change their alpha values. This results in objects becoming transparent, revealing what is behind them.

For example, If my character is standing in front of a couch, as the scene fades away the couch becomes visible through the character. This makes the fade effect useless for anything but still images.

I’m currently using the public build (894). Has this behavior changed in more recent builds? Are there plans to fix this?

Thanks!

  • David [import]uid: 149111 topic_id: 31557 reply_id: 331557[/import]

This is with storyboard yes? I had same problem trying to use fadeout. [import]uid: 75779 topic_id: 31557 reply_id: 126110[/import]

Yup, this is with storyboard. Were you able to do anything to work around the problem? [import]uid: 149111 topic_id: 31557 reply_id: 126196[/import]

While it would be nice if storyboard fade worked the way you like, here’s a possible work-around (I say possible because I haven’t tried it – it’s theoretical until you give it a shot)…

Before you leave do display.captureScreen() which takes a screenshot and positions it on top of everything else.

Now that you have all the “real” objects hidden from view, set their alpha values to 0.

Add the newly created screenshot to the storyboard view and then fade out to your new screen.

Jay
[import]uid: 9440 topic_id: 31557 reply_id: 126202[/import]

@Jay: Genius! That worked beautifully. Great idea. I had never even heard of display.captureScreen() before. Thanks a lot! [import]uid: 149111 topic_id: 31557 reply_id: 126203[/import]

Glad I could help. :slight_smile:

Jay [import]uid: 9440 topic_id: 31557 reply_id: 126204[/import]

It turns out that @Jay’s trick works great for fading out, but fading is is more problematic. If I capture the screen before the fade in, it captures black. I tried just capturing my Camera displayGroup (which holds everything that gets inserted into the scene), but that too is just black.

So I’m half-way there. [import]uid: 149111 topic_id: 31557 reply_id: 126230[/import]

If you want it to fade to black, then you can simply add a new black rectangle with an alpha of 0 to the front of the stage, transition it’s alpha from 0 to 1, change scenes, then transition back to 0.

The fade effect from the storyboard sounds more like a dissolve, which can be a tricky effect to do on a GPU due to how transparency is normally handled. [import]uid: 134101 topic_id: 31557 reply_id: 126239[/import]

@Ntero: Thanks for the tip. I’m considering moving in that direction; I just think that that’s how the “fade” effect should behave by default. [import]uid: 149111 topic_id: 31557 reply_id: 126313[/import]

This is with storyboard yes? I had same problem trying to use fadeout. [import]uid: 75779 topic_id: 31557 reply_id: 126110[/import]

Yup, this is with storyboard. Were you able to do anything to work around the problem? [import]uid: 149111 topic_id: 31557 reply_id: 126196[/import]

While it would be nice if storyboard fade worked the way you like, here’s a possible work-around (I say possible because I haven’t tried it – it’s theoretical until you give it a shot)…

Before you leave do display.captureScreen() which takes a screenshot and positions it on top of everything else.

Now that you have all the “real” objects hidden from view, set their alpha values to 0.

Add the newly created screenshot to the storyboard view and then fade out to your new screen.

Jay
[import]uid: 9440 topic_id: 31557 reply_id: 126202[/import]

@Jay: Genius! That worked beautifully. Great idea. I had never even heard of display.captureScreen() before. Thanks a lot! [import]uid: 149111 topic_id: 31557 reply_id: 126203[/import]

Glad I could help. :slight_smile:

Jay [import]uid: 9440 topic_id: 31557 reply_id: 126204[/import]

It turns out that @Jay’s trick works great for fading out, but fading is is more problematic. If I capture the screen before the fade in, it captures black. I tried just capturing my Camera displayGroup (which holds everything that gets inserted into the scene), but that too is just black.

So I’m half-way there. [import]uid: 149111 topic_id: 31557 reply_id: 126230[/import]

If you want it to fade to black, then you can simply add a new black rectangle with an alpha of 0 to the front of the stage, transition it’s alpha from 0 to 1, change scenes, then transition back to 0.

The fade effect from the storyboard sounds more like a dissolve, which can be a tricky effect to do on a GPU due to how transparency is normally handled. [import]uid: 134101 topic_id: 31557 reply_id: 126239[/import]

@Ntero: Thanks for the tip. I’m considering moving in that direction; I just think that that’s how the “fade” effect should behave by default. [import]uid: 149111 topic_id: 31557 reply_id: 126313[/import]