RE: [Plib-users] transparent cube
Brought to you by:
sjbaker
From: Dave M. <Dav...@dy...> - 2001-06-26 16:35:41
|
We recently had a discussion about this on plib-devel. Read this http://web2.airmail.net/sjbaker1/alpha_sorting.html For my game, I simply disable Z-write translucent polygons. Here's my hack for ssgDList.cxx void _ssgDrawDList () { glDepthMask ( false ) ; for ( int i = 0 ; i < next_dlist ; i++ ) dlist [ i ] . draw () ; next_dlist = 0 ; glDepthMask ( true ) ; } YMMV, --dave -----Original Message----- From: pli...@li... [mailto:pli...@li...]On Behalf Of Marc Escher Sent: Tuesday, June 26, 2001 5:10 AM To: pli...@li... Subject: [Plib-users] transparent cube Hi, Great work, with PLIB1.4.1 !! I still have some problems with transparencies :-( . From the doc and your previews answers PLIB renders translucent polygon in no particular order. Unfortunately I have to display some objects that globally act like transparent cubes, with a correct rendering of the faces in the back. Is there a way to force the drawing order of leaves in ssg ? Or any way around to get the right result ? Thanks, Marc. |