Welcome! Log In Create A New Profile

Advanced
Re: Drawing conditional lines
avatarMay 10, 2013 01:50PM
This is because alpha blending is applied to the pixel color that's present at the time of rendering the transparent poly. If you draw something else later on that's further away gl will ignore it based on the z buffer.

To prevent this you need to render all solid things before you render any transparent stuff. You also might need to sort individual poly/parts when using multiple transparent colors in a single scene. If you don't do that the colors won't blend naturally.
SubjectAuthorViewsPosted
Sticky Drawing conditional lines (14 Posts) Santeri Piippo580May 08, 2013 12:24PM
Sticky Re: Drawing conditional lines (0 Posts) Travis Cobbs252May 08, 2013 01:46PM
Sticky Re: Drawing conditional lines (0 Posts) Tim Gould227May 08, 2013 02:20PM
Sticky Re: Drawing conditional lines (0 Posts) Travis Cobbs252May 08, 2013 03:32PM
Sticky Re: Drawing conditional lines (0 Posts) Santeri Piippo269May 08, 2013 03:41PM
Sticky Re: Drawing conditional lines (0 Posts) Travis Cobbs246May 08, 2013 04:10PM
Sticky Re: Drawing conditional lines (0 Posts) Santeri Piippo245May 08, 2013 03:03PM
Sticky Re: Drawing conditional lines (0 Posts) Alex Taylor264May 10, 2013 09:00AM
Sticky Re: Drawing conditional lines (0 Posts) Roland Melkert248May 10, 2013 12:13PM
Sticky Re: Drawing conditional lines (0 Posts) Santeri Piippo258May 10, 2013 12:27PM
Sticky Re: Drawing conditional lines (0 Posts) Roland Melkert327May 10, 2013 01:50PM
Sticky Re: Drawing conditional lines (0 Posts) Steffen158November 27, 2014 05:33PM
Sticky Re: let's make this thread sticky (0 Posts) Tim Gould170November 27, 2014 08:08PM
Sticky Re: Drawing conditional lines (0 Posts) Nils Schmidt80December 26, 2014 05:07AM



Sorry, only registered users may post in this forum.

Click here to login