Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

RPGman

alpha with alpha?

This topic is 6198 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

Is there any way to use a TGA w/ alpha channel, _AND_ be able to blend it without using sorting?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
do you mean for multitexturing?
otherwise i think you have to because of how transparency is done

Share this post


Link to post
Share on other sites
RPGman, to awnser your question : no. At least in OpenGL the equasion for blending is basicially

Factor1 * SourceColor + Factor2 * DestColor

You prolly already knew that, but since the source/destination colors are dependended on to make the final color... the final color is dependent on those colors AND more specifically what order they were in... if you rendered back to front, your blending would look correct, and front to back (w depth buffering enabled) you wouldn''t get any transparency at all) It''s kinda complicated but to quickly awnser your question again no. I would reccomend re evaluating what you wanted to do, and then think of how to render them. Alot of transparency is just simple objects such as explosions or smoke, and if you just rendered those in a seperate pass you should be GTG. Ither way I hope it helps!

CodeSmith the Pixel Pusher
www.cs.trinity.edu/~csmith8

Share this post


Link to post
Share on other sites
i figured it wouldnt work, but i was hoping there was some sort of hack or something that someone knew.... anyway, thanks for the info...

Share this post


Link to post
Share on other sites
>>Is there any way to use a TGA w/ alpha channel, _AND_ be able to blend it without using sorting?<<

im not to sure what this means? sorting?

Share this post


Link to post
Share on other sites

  • 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!