Advertisement

Blending a DirectDrawSurface that is not a texture

Started by March 02, 2000 06:55 PM
1 comment, last by Ro 24 years, 6 months ago
I want to be able to change the colors of my background image - fade in/out. The image isn''t a 3D texture and is just a regular offscreen surface. Is alpha blending the only way to accomplish this or is there some other method? If alpha blending is the only way I think unless the surface is a 3D texture then alpha blending can''t be used. Also the reason that I''m not using a 3D texture is because the image is really big and not a power of 2 (e.g. 1000x500). Thanks for any help!
If your image is a palettized image it can be done by fading the palette. Otherwise you will most likely have to make your own fade function where you fade each pixel in the image.
Advertisement
I never thought of doing that! Thanks, you''re a lifesaver

This topic is closed to new replies.

Advertisement