   fading images quickly
  How would I go about fading images quickly.  I know I could draw with ARGB but and with each loop, loop through the image and increase the A value but that is probably too slow.  I''m doing an extra loop each time. 
  When you say loop through the image do you mean go through every pixel in the texture altering the alpha value?  Or do you mean every vertex? ;  Every pixel. ;  You can take advantage of alpha blending. Create a large empty surface with alpha value 0.0 (fully transparent), then slowly increase it until it reaches 1.0 (fully opaque).edit: just realized this is in opengl forum.   [edited by - alnite on February 10, 2004 6:33:33 PM];  I don''t know what you mean.I know I can set this propertyglEnable(GL_BLEND);glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);But how to I fade an image where I can plug in a value? ;  You don''t even need to use blending.  If you make any calls to glColor3/4f, change them from glColor3/4f(r, g, b) to glColor3f(r * fade, g * fade, b * fade), where fade is a floating point value that varies from 1 (fully lit) to 0 (fully faded out).  If you don''t have any glColor calls then just add a glColor3f(fade, fade, fade) at the start of your rendering loop.Enigma ;  That will fade just the image I am drawing out and not anything behind it? ;  It will fade to the object to black.  You''ll need to put a glColor3f(1, 1, 1) after the object you are fading.  If you want to be able to see through   the object as it fades then you will need to do alpha blending.  For this use the code you posted before and add a glColor4f(r, g, b, fade) before your object and a glColor3f(r, g, b) after it.  If you''re not currently making any glColor3/4f calls then r, g and b should all be 1, otherwise they should be the values you were specifiying for the objects.Enigma. ;  perfect.  Thanks! ;  Actually, it is almost perfect.When I use glColor to fade, the images behind the fading image don''t show through, just the glColor background.That is a major problem.How can I blend and also see the images behind the fading image? 