Archived

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

alpha with alpha?

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

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