Francois Sillion (Francois.Sillion++at++imag.fr)
Thu, 20 Feb 1997 16:43:55 +0100 (MET)
I am following up on a message I sent this morning, because I have
since found out an interesting bit of information :
First a reminder of my problem:
> I have the following problem when using the APPCULLDRAW multiprocessing
> mode (i.e. no fork) :
>
> The first frame shows up OK, but then all lighting disappears,
> and the frame stats are drawn in an incomplete manner: the colored
> bars appear correctly and are updated for each frame, but all the
> text disappears.
>
> I only discovered this recently since I was using the APP_CULLDRAW
> multiproc. mode until very recently., and everything works in
> that other mode. I don;t quite understand what
> could cause this since I amm now using the single process mode (having
> problems going the other way would not surprise me so much!).
>
> Any ideas about where to look ? I don't even know where to start:
> my scene is allocated using pfMallocs, all channels, pipes etc
> belong to a shared memory structure (but why should it matter
> when I only have one process ?)...
>
> This is Performer 2.0 on IRIX 5.3.
I should explain that I am calling pfFrame from the redraw callback
of a GLX widget (GlwMDrawingArea). At the beginning of the callback,
I first call GLwDrawingAreaMakeCurrent to assign the proper graphics
context, using a GLXContext which is created in the "init" callback
of the same widget.
When I use the APPCULLDRAW mode, the display is messed up as described
above, and the problem disappears if I do not call GLwDrawingAreaMakeCurrent,
in a scaled-down app with only one window.
However I need to have several graphics window, only one of them is the
performer window, and therefore I need to call GLwDrawingAreaMakeCurrent.
I figured that maybe this would happen automatically
in pfFrame, but apparently not so, since when I suppress this call
the (non-lit) graphics appears in one of the other (OpenGL) windows.
Could some kind soul please help me to figure out how to properly
manage a performer display inside a GLX widget, when I have other
graphics windows ? Again, this ONLY raises problems when in APPCULLDRAW
MP mode, not when I use APP_CULLDRAW.
I am puzzled...
+------------------+------------------------------------------------------+
| Francois SILLION | iMAGIS - GRAVIR/IMAG, B.P. 53, 38041 Grenoble Cedex 9|
| ' | France. Tel:+33 4 76 51 43 54 - Fax:+33 4 76 44 66 75|
+------------------+----------+-------------------------------------------+
| Francois.Sillion++at++imag.fr | http://w3imagis.imag.fr/~Francois.Sillion |
+-----------------------------+-------------------------------------------+
=======================================================================
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:54:41 PDT