Fade In

Blitz3D Forums/Blitz3D Beginners Area/Fade In

po(Posted 2003) [#1]
Hey, i was just wondering how you could make a nice fade in and out effect for something like logo's before the game starts.


po(Posted 2003) [#2]
oh yeah, I have some sound that goes with and I want it to fade in with the logo.


Rimmsy(Posted 2003) [#3]
3d or 2d?

3d: create a sprite that fills the camera (go here: http://blitzbasic.com/codearcs/codearcs.php?code=456 colour it black and fade its alpha.

2d: bit harder. You'll need this: http://blitzbasic.com/codearcs/codearcs.php?code=659 or this: http://blitzbasic.com/codearcs/codearcs.php?code=658. In fact, the graphics code arc is full of stuff you could use.

if you're successul, post em here so we can see.


po(Posted 2003) [#4]
yeah it's 3D.


po(Posted 2003) [#5]
and internal error popped up when i tried going to the 3D link, so.... yeah......


Mustang(Posted 2003) [#6]
If you are using fullscreen 3D, the SetGamma is very handy:

http://www.blitzbasic.co.nz/b3ddocs/command.php?name=SetGamma&ref=2d_cat


Rimmsy(Posted 2003) [#7]
dude, remove the ")," from the link.


Ross C(Posted 2003) [#8]
you can use the gamma for 2d as well i believe?


Mustang(Posted 2003) [#9]
you can use the gamma for 2d as well i believe?


I think so... but note that it has to be used with fullscreen mode, windowed won't work.