Page 1 of 1

Best way to fade

PostPosted: Sat Dec 17, 2005 2:14 am
by ericdg
What is the best way to fade into and out of a scene.

I used the transp in a script, but it is very processor intensive on a pocket pc.

Would it be better to go with an animation? How does everyone else fade?

PostPosted: Sat Dec 17, 2005 2:52 am
by Joshua Worth
I did a fade with an animation once. All I did was open the Gimp (http://www.gimp.org) for transparency, and Did a gradiant to black. That worked! :wink:

PostPosted: Sat Dec 17, 2005 6:17 pm
by BeyondtheTech
Create a a full-screen image or canvas actor full of black, then change the transparency of the actor to 1 in the Create Actor Event. Subtract a small value in the Draw Actor Event. When the transparency hits 0, then you can Change the View position and continue.

PostPosted: Sun Dec 18, 2005 1:50 pm
by marathon332
I wonder which fade method is less processor intensive? Code or an animation?

Does anyone know? Makslane?

PostPosted: Sun Dec 18, 2005 2:20 pm
by makslane
I don't think has any performance differences between two methods.
(Please, tell me if I'm wrong)

PostPosted: Sun Dec 18, 2005 2:20 pm
by Game A Gogo
i would say the "beyondTheTech" method, cause the other method, it needs to load up the image of fading, so i sugest the " beyondTheTech" cause it will reduce the game size after exportation

PostPosted: Sun Dec 18, 2005 10:22 pm
by ericdg
beyondthetech, what do you mean by change the view position.

I put a full screen black actor over my current view, and used transp in a draw actor script to increase the transparency. Once the black actor is transparent you can click on the other actors as normal.

Anything else I should do after this. It just really seems to slow down the scene until the black image is transparent.

I also tried to fade out the scene by doing the same but by starting transparent and ending up black. This really puts a strain on even a 400mhz ppc processor.

Is this normal or am I doing something wrong.

PostPosted: Sun Dec 18, 2005 10:43 pm
by Game A Gogo
yes, this is normal, even on my 450mhz, i cant do a something, maybe try the other thechnic, if only makslane could add an action, screen fading then u could choose the color and everything, but unfortunetly...we cant.

ill try to figure another way.
if you want

PostPosted: Mon Dec 19, 2005 1:19 pm
by ericdg
Thats ok. If I do a quick fade in, and no fade out, its not too bad.

Games just look so much better with a little fade, IMHO.