Re: [Plib-users] transparent cube
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2001-06-27 13:45:51
|
Marc Escher wrote: > > At 09:36 AM 6/26/01 -0700, you wrote: > >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 ) ; > >} > > Thanks, that does the job well enough. It's only "right" when all the translucent surfaces are the same colour though. If you use textured alpha for things like trees, the above hack is a disaster. That's why IT MUST NOT BE COMMITTED INTO PLIB. Be very careful not to make this change in the directory where you do your PLIB CVS checkin's. ----------------------------- Steve Baker ------------------------------- HomeMail : <sjb...@ai...> WorkMail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://agtoys.sf.net http://prettypoly.sf.net http://freeglut.sf.net http://toobular.sf.net |