Re: How to use OpenGL display list in Pe
Rémi Arnaud (remi++at++remi.asd.sgi.com)
Tue, 27 May 1997 10:49:37 -0700 (PDT)
Jeff Brickley wrote:
>
>
> > From: Byungsung Cho
> > Performer manual says that OpenGL display lists can be used in
> > Peroformer applications.
> > But I cannot find any example or a section describing how to use the
> > display lists.
> > Can somebody show or give pointer to example codes?
> > I have an OpenGL program to make a display list and would rather not
> > rewrite
> > in Performer.
>
> ----------
> OpenGL display lists (and any openGL command) can be used AS-IS in
> Performer, no special coding is required. However (yup, there's got to be a
> catch), timing is important (i.e. WHEN the commands are actually issued).
> The post-draw and pre-draw tasks are the best places for OpenGL, it may be
> possible to issue them at other times, but I've never been able to get it to
> work right. In addition, if you have the draw task on different CPU than
> the Application task, you CANNOT compile the drawlist on the application
> task and then issue it on the draw (trust me, I tried <grin>).... We
> successfully use many OpenGL commands during post-draw to do model
> annotations and other things....
>
If you want to generate display lists from another process than the
draw process, you could sproc (not fork) a process from the draw process,
with a openGL context that shares Display Lists with the Draw Process.
I never tried it myself, and do not have any example, but that's the
only way to share display lists (or textures) between the Draw Process
and another process.
_ / _ _
|_) _ ._ _ o /\ |_)|\ | /\ | || \
| \(/_| | || /--\| \| \|/--\|_||_/
=======================================================================
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:18 PDT