Drawing conditional lines


Re: Drawing conditional lines
#11
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.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Drawing conditional lines - by Santeri Piippo - 2013-05-08, 19:24
Re: Drawing conditional lines - by Tim Gould - 2013-05-08, 21:20
Re: Drawing conditional lines - by Roland Melkert - 2013-05-10, 20:50
Re: Drawing conditional lines - by Steffen - 2014-11-28, 1:33

Forum Jump:


Users browsing this thread: 2 Guest(s)