Thanx Erik!
glDepthMask solve this problem

----- Original Message ----- 
From: "Erik Hofman" <[EMAIL PROTECTED]>
To: "FlightGear developers discussions" <[EMAIL PROTECTED]>
Sent: Friday, October 03, 2003 4:38 PM
Subject: Re: [Flightgear-devel] Alpha sorting again


> Roman Grigoriev wrote:
> > Hi guys!
> > I implement smokes and missile trails on flightgear and come across to
> > following problem:
> > ALPHA sorting
> > could you please describe me why we have this problem?
> > so here is two screenshots one from plib viewer
> > http://fgfs.narod.ru/snap2.jpg
> > and one from flightgear.
> > http://fgfs.narod.ru/snap1.jpg
> > Maybe I should adjust state?
> 
> Probably, try setting glDepthMask(GL_FALSE) just prior to drwing the 
> trails and set glDepthMask(GL_TRUE) when finished.
> 
> This might work, but is not guaranteed.
> Otherwise you have to sort the objects based on distance to the viewer 
> before drawing them.
> 
> This could be done by applying this patch to plib:
> 
> http://www.a1.nl/~ehofman/fgfs/download/Plib_ssgDList2-20020718.diff
> 
> Erik
> 
> 
> 
> _______________________________________________
> Flightgear-devel mailing list
> [EMAIL PROTECTED]
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel
> 

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to