Mail Archives: djgpp/1998/01/31/13:02:07
Ted Gress writes:
>Has anyone else had problems with screenfading in Allegro 3.0 using 24
>bit true color??
If you mean using the fade_in() and fade_out() routines, they won't work
in truecolor modes because there is no palette to do the fade with. I
know this sounds silly, but a simple fade-to-black is quite a tricky
thing to implement in a truecolor mode. It can be done by repeatedly
drawing translucent black rectangles to gradually darken the image, or
using the lighting code to blit a series of images onto the screen while
changing the brightness, but I think this will be too slow to get a nice
smooth fade. Your best bet is probably just to think of some other cool
transitional effect, and avoid the fade altogether!
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa
- Raw text -