Jump to content
  • Advertisement
Sign in to follow this  
sakky

Fading Textures

This topic is 4462 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 can't figure this out, Google doesn't give me anything either. I need to fade a texture using it's diffuse color that I change. I have this fade in transition that uses a texture with the effect and I change the alpha values to get the effect of fade ins and fadee outs. But I can't get the texture to fade with the qaud. What type of arguments do I need to pass the device for texture stages and/or alpha blend (if need be different)?

Share this post


Link to post
Share on other sites
Advertisement
Perhaps use second texture which has all pixels set to your target color, then blend the original texture with your color texture?

Share this post


Link to post
Share on other sites
Does setting ColorOperation to mod between Texture and Diffuse also work for Point Sprites? I have a particle engine set up this way and the alpha component of my texture is working beautifully, but the alpha component of my diffuse color for the vertex is being ignored (the RGB of the diffuse is working fine, though).

Do you have to do something extra to get this to work for Point Sprites?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!