[gl2ps] Showing hidden lines
Sergi Diaz
sergi at mcneel.com
Tue Jun 26 16:33:43 CEST 2007
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,
--
Sergi Diaz
Penguin Development Team
McNeel Europe
www.penguin3d.com
www.rhino3d.com