Realtime fadeouts in your games.

Community Forums/Showcase/Realtime fadeouts in your games.

Simon S(Posted 2003) [#1]
This is a bit of code I've had lying about for ages that I've finally fashioned into something useful for the Blitz community.

http://www.blitzcoder.com/cgi-bin/showcase/showcase_showentry.pl?id=simon__s11302003023418&comments=no

Some nice fullscreen fadeouts that you can run at the same time as your main code. This allows for some fairly stylish transitions between screens and adds a bit of polish to the overall look.

It's meant for B+ but B2D/3D users could rem out the lockedpixels stuff and use the rest.

Oh and does anyone have a graphics card that does rgb as 5,5,5 in 16 bits, I've yet to write code that works with that and would like to test it.

Enjoy.


jfk EO-11110(Posted 2003) [#2]
Useful stuff - thanks for sharing!


Mustang(Posted 2003) [#3]
Cool!


Filax(Posted 2003) [#4]
Great Job ! i use it now :) ! i really love the image
pixelate ! and the image bounce :) remember amiga and
Scala Multimedia :)


RiK(Posted 2003) [#5]
Great work Simon, well done!


Simon S(Posted 2004) [#6]
Alrighty, I'm ressurecting this topic from the grave to just to say I've added a bit more to the functionality of the fades.

You can now use it on images of any size, and call as many fades at a time as you like. Combined with masks you can create all kinds of interesting appearing/dissapearing effects for characters on screen, and some very flashy menu screens.

Should be useful to someone, and feel free to add a fade to it if you feel you can outdo some of the effects in there. I'm sure there are plenty of ideas I haven't thought of.


I've also added B2D/B3D versions for those without Blitz+

Have fun.


IPete2(Posted 2004) [#7]
Filax,

I am still using Scala!

After all these years (it's on PC now of course!)

IPete2.


Bremer(Posted 2004) [#8]
Thats very useful, thanks for sharing.


Beaker(Posted 2004) [#9]
You might find this interesting:
http://www.blitzbasic.com/codearcs/codearcs.php?code=184

It uses dissolve 'gradient maps' to make any dissolve you like. It also compacts the resulting .DIS dissolve file very efficiently (I'm still pleased with how small they got).

Only downside is that I never made a version that works with any resolution (never had the need or time), so its stuck at 640x480 or 800x600 (depending on which version you have).


Koriolis(Posted 2004) [#10]
Or this http://www.blitzbasic.com/codearcs/codearcs.php?code=744
I guess it's the same idea, didn't check MasterBeaker's code.


Simon S(Posted 2004) [#11]
Hey both very cool. I'd more or less finished the fade program (it does what I need) but I'm pretty tempted to adapt some of Koriolis' code and stick it in (Giving credit where credit's due, and with permission of course).

Thanks for that, good ideas and good coding in there.


Koriolis(Posted 2004) [#12]
Permission granted, credit appreciated :)