Fading in Windowmode?

BlitzPlus Forums/BlitzPlus Programming/Fading in Windowmode?

Grisu(Posted 2003) [#1]
In my game Cardwar I use the gamma commands to do a screen in and out fading. This all works fine as long as I have set a fullscreen mode. When switching to window mode the fading effect simply does not take place at all?!?

Is this a bug?
Is there a way to make a screen fade in 1024x768,16,window mode?


Myke-P(Posted 2003) [#2]
Gamma is a full-screen only effect. It litterally affects the Gamma settings on your graphics card.

In other words, if you could affect the Gamma in Windowed mode, your entire WIndows desktop would fade in/out and not just your Blitz window..

Does that make sense?

Is there a way to make a screen fade in 1024x768,16,window mode?


That's too big to do in real-time using per-pixel (read/writepixelfast) but the topic below this (currently) may hold the answer: http://www.blitzbasic.co.nz/bbs/posts.php?topic=23291


Grisu(Posted 2003) [#3]
Thanks Myke!


jhocking(Posted 2003) [#4]
I have a fading in/out routine in the code archives which speeds up the read/writepixel technique by cheating, only changing every other pixel every frame.


Grisu(Posted 2003) [#5]
That might work...
Is your function free to use? link?