can anyone tell me a way to make a bitmap to fade into another one in real time without using Dx ?? assuming the bitmap is fullscreen and i want the fade to take place within 2 sec
OK guys, now tell me how to do it in Dx
Printable View
can anyone tell me a way to make a bitmap to fade into another one in real time without using Dx ?? assuming the bitmap is fullscreen and i want the fade to take place within 2 sec
OK guys, now tell me how to do it in Dx
It is impossible to do in realtime, unless you use raw assembly.
Z.
anjulpa, your counters that apears in all your posts are loaded 3 times, making them count too much
Tell Me How to do it in directx
tell it in anyone of directx 7 and directx 8, i can work with anyone as long as it works :)
PLZ DX :) ;) :p :o :eek: :o :rolleyes: :cool: :D
In Direct3D(DX8), the easiest way I can think of is to draw a large rectangle over the whole screen, colored black, with an alpha color of 0..1, where 0 is no darkening, 1 is full black.
Z.
If you want to fade out, that is. If you want to cross-fade you should take one quad textured with the first image and another textured with the second image. Have the alpha of the first at 1.0 and of the second at 0.0. For the fade you simply slowly increase the second to 1.0 while at the same decreasing the first to 0.0.
Btw you can try the same thing without DX using AlphaBlend, but there's a good chance it won't be fast enough. And it is only supported from Win2k and Win98 upwards, no WinNT or Win95.