Fader - Fade to transparent?

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
admgamer
Posts: 21
Joined: Tue Feb 12, 2008 10:49 am

Fader - Fade to transparent?

Post by admgamer »

Hello again,

Say you fade to black because the player preses ESC...all fine and dandy.

But if they press ESC again you want to fade out to a transparent background (with the meshes etc that were there before)

Would this require some sort of overlay as the Fader object can only fade from colour to colour, not to transparent.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

just use fadeIn(...) !!! :lol:
a look at the API can do miracles... :twisted:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
admgamer
Posts: 21
Joined: Tue Feb 12, 2008 10:49 am

Post by admgamer »

See i've tried fadeIn and looked at the API but this doesnt seem to work as youd think.

Say if i click ESC, screen fades to black (which used fadeOut)

But then fadeIn seems to flicker the screen and fade to black again, when I expected it to do the reverse.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

hmm, I have no problems using it...
maybe you did something wrong, probably with the event receiver (a code snippet would help there) ???
Or do you use an older Irrlicht version ???
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply