Fade Transition

BlitzPlus Forums/BlitzPlus Beginners Area/Fade Transition

Shack(Posted 2007) [#1]
I'd like to implement a fade transition in my program, but I have absolutely no idea how to go about programming this. Could someone give me a very basic example and explain to me how to perform this kind of action?


xlsior(Posted 2007) [#2]
BlitzPlus doesn't do native transparancies and such, so you either:

1) Need to read each pixel on the screen, apply the effect you need, and write the modified version back (which is pretty slow! you'll probably only going to get a couple of frames a second at best, not very smooth)

2) use a 3rd party library that can apply transparancy effects.

3) use one of the blitz versions that does 2D-in-3D rather than old fashioned 2D-only. Both Blitz3D and BlitzMax are much better suited for getting the effect for you want here, because they can ofload the work of doing the blending to the 3D processor on your video card.


xlsior(Posted 2007) [#3]
One way of doing a blend:




xlsior(Posted 2007) [#4]
Or here's another one I found on my HD:

Save this as "Test Fades.bb"


And save this include as "INC Fades.bb"



xlsior(Posted 2007) [#5]
Or a cross-fade:




Shack(Posted 2007) [#6]
Hmm. Okay. Thanks for the help.