Fading an object in/out

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

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