[gl2ps] GL2PS_OCCLUSION_CULL ignores GL2PS_BLEND
Travis Cobbs
tcobbs at gmail.com
Sun May 11 00:36:04 CEST 2008
2008/5/8 Shahzad Muzaffar <Shahzad.Muzaffar at cern.ch>:
> Hello,
> Please try to apply the attached patch ("patch -p0 <
> gl2ps.1.32.culling.patch" in gl2ps version 1.32 directory). Basically it
> just adds the following line
>
> if (prim->verts[0].rgba[3]<1.0F) return;
>
> at line number 1766 of gl2ps.c (version 1.32). i.e. function
> gl2psAddPlanesInBspTreeImage () will look like
>
> if((*tree == NULL) && (prim->numverts > 2)){
> if (prim->verts[0].rgba[3]<1.0F) return;
> head = (GL2PSbsptree2d*)gl2psMalloc(sizeof(GL2PSbsptree2d));
> for(i = 0; i < prim->numverts-1; i++){
>
> This will avoid adding the transparant polygons in to the BSP tree map used
> for culling. So polygon hidden under these will not be culled. Please
> recompile and test again. Cheers,
> --Shahzad
>
Thanks. That did indeed fix the problem.
--Travis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gl2ps/attachments/20080510/16641d70/attachment.html>