Re: Using 2 glxMDrawWidget at the same time.
Brian Furtaw (brian++at++hotsauce.clubfed.sgi.com)
Fri, 4 Jul 1997 06:58:08 -0400
On Jul 3, 9:57am, Anita Kishore wrote:
> Subject: Re: Using 2 glxMDrawWidget at the same time.
> On Jul 2, 2:19pm, Frank Dea wrote:
> > Subject: Using 2 glxMDrawWidget at the same time.
> >
> > We have written a Motif application that contains an OpenGL window
> > (running Performer). Everything works great until we try to bring up
> > another window in the same application that also contains an OpenGL
> > window. Then neither window responds correctly. The second window
> > performs no drawing and the first window simply flashes a left over frame
> > buffer image (i.e., junk).
> >
> > Note, both OpenGL windows perform normally if brought up individually.
> >
> >
> > Has any one experienced this with Motif windows containing OpenGL windows?
> >
> > Let me know if more details are needed.
>
>
> As far as I know, if you are using Performer to render into both your windows,
> then you either need to use two channels or two pipes for
> rendering (the Performer book has more details on it). If performer is being
> used in only one window, the other is just a Motif window to draw something,
> then you need to create them in separate processes.
>
> -anita
> kishore++at++triavest.com
>
> --
> Anita Kishore
> =======================================================================
> 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 Anita Kishore
You may want to try creating a different ApplicationShell as the
parent of the second OpenGL drawing area, something like this...
Widget altWindow = XtAppCreateShell(
argv[0], // application name
"Inventor", // class name
applicationShellWidgetClass, // widget class
theDisplay,
NULL, 0);
...I borrowed this from the Inventor sample code, its just a hunch.
Brian
--
o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o
Brian Furtaw (brian++at++sgi.com)
VisSim Technical Consultant
12200-G Plum Orchard Drive Office:(301)572-3293 Fax: (301)872-3293
Silver Spring, Maryland 20904 OpenGL/ImageVision/OpenInventor/Performer
=======================================================================
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:34 PDT