Sign in to follow this  

transparencies

This topic is 4036 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm using the ID3DXSprite helper class for all my images and I want to have images fade out or fade in but I don't know a very reasonable way to do this. Right now I made several dds files with different alpha channels applied to them, well, really one large picture with the images tiled but that's a lot of extra work and the possible images may be too high to consider them all so is there a way to do this? A generic way that can be applied to any image?

Share this post


Link to post
Share on other sites
The ID3DXSprite Draw function supports a simple recolour of your bitmap image. You can do a fade in/out by simply dimming the alpha channel.

For more information, consult the DirectX SDK Documentation. Look for the ID3DXSprite::Draw function, the last function argument controls the colour modulation.

Share this post


Link to post
Share on other sites
Quote:
Original post by Sc4Freak
The ID3DXSprite Draw function supports a simple recolour of your bitmap image. You can do a fade in/out by simply dimming the alpha channel.

For more information, consult the DirectX SDK Documentation. Look for the ID3DXSprite::Draw function, the last function argument controls the colour modulation.


You know I misunderstood what that argument meant. I thought it was a color key so whatever color I gave draw wouldn't appear on the screen.

Share this post


Link to post
Share on other sites

This topic is 4036 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this