View Full Version : How can I fade?
06-15-2000, 01:23 PM
ok, this will sound kind of idiotic, but:
how can I fade to black? or from wihte to the scene?
06-15-2000, 02:11 PM
Easiest way would be to simply draw an alpha blended quad over the full scene and vary the alpha value with time. Use a black quad and increase alpha with time to fade to black. Use a white quad and decrease alpha with time to fade from white.
[This message has been edited by DFrey (edited 06-15-2000).]
06-16-2000, 05:10 AM
isn't that kind of slow?
I was thinking something like changing the RGB mask of the window we where drawing to...
If you draw the quad over the scene with multitexturing you should not loose any time at all.Without multitexturing youŽll need the time for the additional pass(makes no real difference,if you only draw ONE quad).But does speed matter in this case?
If you use it to fade in a new level of a game or something you donŽt need max framerate in this timeframe,I think.
If you have lighting enabled, there's another
nice (?) way to fade to black...just slide down the intensity of the light sources and the ambient light.
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.