Re: [Plib-users] transparent material with texture ?
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2001-05-16 16:16:38
|
Marc Escher wrote: > By the way, my scene is composed of translucent and opaque objects that > can intersect each other and I have some problems of drawing order with > the transparent objects. Is there a way in PLIB to manage that ? Can we > enable the GL_DEPTH_TEST for the opaque object and disable it for the > tranparent ones ? PLIB renders all translucent polygons in no particular order *after* it's rendered all opaque polygons in no particular order. We have been discussing a mechanism to do fairly crude range-sorting of the translucent polygons - but that's never a perfect solution. Disabling depth testing for translucent objects does not help the problem - that's a common myth. You should read my FAQ on the subject (which is not PLIB-specific). http://web2.airmail.net/sjbaker1/alpha_sorting.html The bottom line is that PLIB should allow translucent objects to interact perfectly with opaque objects regardless. HOWEVER when multiple translucent object overlap, PLIB does not get it right every time. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net http://freeglut.sourceforge.net |