pfDraw() in channel draw callback

New Message Reply Date view Thread view Subject view Author view

Christopher Geyer (cgeyer++at++seas.upenn.edu)
Thu, 26 Jun 1997 10:40:27 -0400 (EDT)


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


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:30 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.