Jump to content
  • Advertisement
Sign in to follow this  
tomba

OpenGL fading effect with tga?

This topic is 4552 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 load and render a 32bit , uncompressed tga file in OpenGL. i want to create a fade in and out effect by controling the transpareny level. i am working on a 2d project, so just sprite transparency effect is needed. how would i do this?

Share this post


Link to post
Share on other sites
Advertisement
Short answer: the keys are to enable blending, set the appropriate blend mode, and render your graphics in the proper order. You can find more info in the Red Book or at the Nehe site (or through google).

[Edit: If it's just sprite transparency you're interested in, you might look into alpha functions instead.]

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!