From: c937161++at++student.dtu.dk
Date: 03/24/2000 02:10:26
Hey Performers,
After some struggling with transparency I'm almost done with this cool
glow effect for lights. It's a billboard and to prevent it from being
occluded when it's partially covered by another object I use the following
callbacks:
static int preDraw( pfTraverser *trav, void *data )
{
glDisable( GL_DEPTH_TEST );
return PFTRAV_CONT;
}
static int preDraw( pfTraverser *trav, void *data )
{
glDisable( GL_DEPTH_TEST );
return PFTRAV_CONT;
}
The problem is that this ofcause makes it visible at all times. It should
be turned off when the center of the light is covered. How do I do
that? In pure OpenGL I'd probably use the feedback buffer somehow.
I'm using Performer 2.3 for Linux.
Btw. thanks to SGI for porting Performer to Linux - it really, really
rocks big-time :-)
-- Hans Palbøl
This archive was generated by hypermail 2b29 : Fri Mar 24 2000 - 02:12:56 PST