Angus Dorbie (dorbie++at++multipass.asd.sgi.com)
Thu, 26 Jun 1997 15:32:48 -0700
Without more detail I'd suggest a pushmatrix and popmatrix either side
of the pfDraw would probably be a good idea.
Cheers,Angus.
On Jun 26, 10:40am, Christopher Geyer wrote:
> Subject: pfDraw() in channel draw callback
> I'm having trouble trying to rendering inside the channel's draw callback.
> I'm using IRIX 5.3, Performer 2.0.2. I'm in PFMP_CULL_DL_DRAW mode.
>
> If I try to do this:
>
> DrawFunc( pfChannel *chan, void *data )
> {
>
> pfDraw( ) // draw the entire scene
>
> for( int j = 0; j < DLlist->getNum( ); j++ )
> {
> pfDispList *dl = ( (pfDispList*) DLlist->get( j ) );
>
> if( dl )
> dl->draw( );
> }
>
> }
>
> After the pfDraw(), it will not render the geometry in the display
> lists. However, if I comment out the pfDraw(), it will render the display
> lists.
>
> If I put the pfDraw() after drawing the display lists, it renders as
> expected. But I need to initialize the z-buffer before I render my
> display lists.
>
> What am I doing wrong? Why is pfDraw() preventing my display lists from
> rendering?
>
> Christopher
>
> ----------------------------------------------------------------------------
> Christopher Geyer | CompSci and Math '99 at the University of Pennsylvania
> 215-732-4218 | cgeyer++at++seas.upenn.edu | http://www.seas.upenn.edu/~cgeyer/
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-- End of excerpt from Christopher Geyer
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:30 PDT