PDA

View Full Version : Fading an object in/out



Andrew Jameson
03-31-2003, 01:32 AM
Just curious ... I figured out how to fade an entire screen but how do you go about fading an object say a cube or sphere ?

Thanks

Andrew

Orzech
04-01-2003, 10:22 AM
Well, if you already know how to fade entire screen it shouldn't be any problem to fade an object. Hope you are using alpha blending for your fading, aren't you? So you can just draw some rectangle in the place of the object you want to fade and just change the transparency. Another way is to change the color of the object right away without drawing any rectangels.

Hope it helped!

Orzech