[gl2ps] Showing hidden lines

Andreas Micheler Andreas.Micheler at Physik.Uni-Augsburg.de
Tue Jun 26 16:57:00 CEST 2007


Sergi Diaz wrote:
> Hello? ;)
>
> Could it be that I haven't received the answer? Or it's just that nobody has
> answered me?
>
> Thanks,
>
> -Sergi
>
> -----Mensaje original-----
> De: Sergi Diaz [mailto:sergi at mcneel.com]
> Enviado el: dilluns, 18 / juny / 2007 16:26
> Para: gl2ps at geuz.org
> Asunto: Showing hidden lines
>
>
> Hello,
>
> In my application (a renderer) I have an option to show hidden lines. It
> renders the lines, or part of lines, that should be covered by triangles
> using a stipple pattern.
> To achieve this I first make a first pass rendering as usual, and then
> render the lines again using the stipple pattern, with the depth buffer
> deactivated. This way the hidden lines show up stippled and the rest of the
> lines show as normal. This works, in a bitmap, but when I try to render as
> vector a problem arises, there is no way to tell gl2ps that the depth buffer
> has been deactivated. Or I don't see it.
>
> Is there a way to achieve this? Or, if I must do it myself, where should I
> look at inside gl2ps code to add a "depth activation/deactivation token"?
>
> Oh, BTW, I can't just render lines from back faces stippled, that only works
> when objects cover their own lines, but not when covering other objects'
> lines.
>
> Thanks in advance,
>   
Have you tried using
    glDepthFunc(GL_ALWAYS) 
instead of disablingthe depth test?

Cheers,
Andreas
> --
> Sergi Diaz
> Penguin Development Team
> McNeel Europe
> www.penguin3d.com
> www.rhino3d.com
>
>
> _______________________________________________
> gl2ps mailing list
> gl2ps at geuz.org
> http://www.geuz.org/mailman/listinfo/gl2ps
>