<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
  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<br>
<br>
if (prim->verts[0].rgba[3]<1.0F) return;<br>
<br>
at line number 1766 of gl2ps.c (version 1.32). i.e. function
gl2psAddPlanesInBspTreeImage () will look like<br>
<br>
  if((*tree == NULL) && (prim->numverts > 2)){<br>
    if (prim->verts[0].rgba[3]<1.0F) return;<br>
    head = (GL2PSbsptree2d*)gl2psMalloc(sizeof(GL2PSbsptree2d));<br>
    for(i = 0; i < prim->numverts-1; i++){<br>
<br>
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,<br>
--Shahzad<br>
<br>
Travis Cobbs wrote:
<blockquote
 cite="midc139d2840805071044o7ef85e3l5be81069fdafe23f@mail.gmail.com"
 type="cite">The GL2PS_OCCLUSION_CULL setting culls faces that are
behind transparent polygons, even when GL2PS_BLEND is properly used. 
This produces very ugly output.  Here is an example:<br>
  <br>
  <a href="http://www.halibut.com/%7Etcobbs/ldraw/private/CAR-Cull.zip">http://www.halibut.com/~tcobbs/ldraw/private/CAR-Cull.zip</a><br>
  <br>
Unfortunately, if I don't use the GL2PS_OCCLUSION_CULL option, my file
comes out about 10 times bigger.  It does look correct, though.  Here
is the same file (WARNING: really big SVG inside the zip):<br>
  <br>
  <a
 href="http://www.halibut.com/%7Etcobbs/ldraw/private/CAR-NoCull.zip">http://www.halibut.com/~tcobbs/ldraw/private/CAR-NoCull.zip</a><br>
  <br>
I know that gl2ps hasn't received much in the way of updates lately
(even on the CVS snapshot), so if anyone could even suggest what needs
to be done to fix the problem, I'll give the fix a try myself.<br>
  <br>
Thanks.<br>
  <br>
--Travis Cobbs<br>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
gl2ps mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gl2ps@geuz.org">gl2ps@geuz.org</a>
<a class="moz-txt-link-freetext" href="http://www.geuz.org/mailman/listinfo/gl2ps">http://www.geuz.org/mailman/listinfo/gl2ps</a>
  </pre>
</blockquote>
<br>
</body>
</html>