Correct way to fade in and out images

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Scyllinice
Posts: 2
Joined: Tue Oct 14, 2008 3:38 am

Correct way to fade in and out images

Post by Scyllinice »

Hello,

What is the correct way to fade in and out a series of images?

I've tried using addImage from the GUI, creating a fader, and then copying and pasting a loop that waits the fade timer and then ends. Then I have to clear the gui, recreate the fader, and repeat the process.

That seems clunky and too static. I can't think of an easier way to do it.

Any suggestions?
robertgarand
Posts: 69
Joined: Fri Feb 22, 2008 6:47 pm
Location: montreal
Contact:

Play with transparency

Post by robertgarand »

Hi,
I would use the alpha channel and switch pic while alpha is at zero...
just use the pc clock and increase/decrease alpha every x mSec.
never tried it, but it must not be too hard to do, depending on format of images.
Hope it help,
Robert
If it can't be writen, it can't exist
Post Reply