How can I make the screen or a picture fade in/fade out with DirectX? :confused:
Printable View
How can I make the screen or a picture fade in/fade out with DirectX? :confused:
It shouldn't be so difficult to write it....
Just draw a small black(if your fading to black) surface(5*5) for every X pixels.
Put this in a loop and then make sure that the size of X gets smaller every time you run it.
(Just an idea on doing it).
Or you can use the much faster gamma ramp controls to adjust the main surface's gamma values... the only requirement is that the end user has a video card which supports it, but all modern 3D cards do... this also allows you to do effects like when you're shot in a 3D shooter (red screen)...
There's an example at http://www.vbexplorer.com/directx4vb/