info-inventor-dev
[Top] [All Lists]

RE: OpenInventor on SUN, X error

To: 'Jan Böhm' <jan.boehm@xxxxxxxxxxxxxxxxxxxx>
Subject: RE: OpenInventor on SUN, X error
From: "Connolly, Steven V." <connolsv@xxxxxxxx>
Date: Tue, 13 Feb 2001 17:15:20 -0500
Cc: "'info-inventor-dev@xxxxxxxxxxx'" <info-inventor-dev@xxxxxxxxxxx>
Sender: owner-info-inventor-dev@xxxxxxxxxxx

  Thanks for the input. I guess I'm more comfortable with an application (vs
system) fix for the problem though. 

 I have had luck implementing a software fix for the 'overlay plane'
problem. When compiled with a newly created "NO_OVERLAY_PLANES" flag,
OpenInventor does not create the popup menus in the overlay planes. Now all
the functionality of the viewers (decorations, popup menus, thumbwheels,
etc.) appear to work with one exception.

 When using the middle mouse button to translate the scene in the X or Y
direction, the object zooms out of view very quickly as though the
translation amounts are accumulating exponentially. I'll bet this is a
common thing for those who have experience with X and Motif interfaces. If
you have any ideas, please let me know. Thanks.

For those interested in the details for the "NO_OVERLAY_PLANES" flag...

 Taking from the example on p. 366 of Mark Kilgard's "OpenGL Programming for
the X Window System" which I somehow miraculously found, In the methods:

    "SoXtFullViewer::buildPopupMenu()"
    "SoXtFullViewer::buildFunctionsSubmenu()"
  "SoXtFullViewer::buildDrawStyleSubmenu()"
  "SoXtMtlEdit::buildPulldownMenu()"

  I made a change along the lines of:


#ifdef NO_OVERLAY_PLANES  // my addition.
// this line replaces the lines below (see last
// two args!
popupWidget = XmCreatePopupMenu(mgrWidget,
                      "menu", NULL, 0); // <-my add! 
#endif // my addition.
  
#ifndef NO_OVERLAY_PLANES  // my addition
// the following lines up to the last #endif are
// untouched from the original source.
// create popup and register routine to pop the menu 
n = 0;
#ifdef MENUS_IN_POPUP
SoXt::getPopupArgs(XtDisplay(mgrWidget), SCREEN(mgrWidget), args, &n); 
#endif   
popupWidget = XmCreatePopupMenu(mgrWidget, "menu",
                                     args, n); 
      
#ifdef MENUS_IN_POPUP 
// register callbacks to load/unload the pulldown //colormap when the
pulldown menu is posted. 
SoXt::registerColormapLoad(popupWidget,
                     SoXt::getShellWidget(mgrWidget));  
#endif   
#endif // no overlay planes.


 - NOTE:  SoXtRenderArea has a bunch of methods for rendering into the
overlay planes. I did not alter these.

---------------------------  
   Steven Connolly
   CSC/Pratt & Whitney
   connolsv@xxxxxxxx
 ---------------------------



> ----------
> From:         Jan Böhm[SMTP:jan.boehm@xxxxxxxxxxxxxxxxxxxx]
> Sent:         Tuesday, February 13, 2001 5:50 AM
> To:   Connolly, Steven V.
> Cc:   'info-inventor-dev@xxxxxxxxxxx'
> Subject:      Re: OpenInventor on SUN, X error
> 
> <<File: jan.boehm.vcf>>
> Unfortunatley, I haven't gotten as far as you in compiling, so I can not
> try for myself: Isn't it that ffbconfig controls the overlay visulas on
> Sun?
> 
> > ffbconfig -defoverlay false
> 
> will disable overlays, resulting in 
> > ffbconfig -propt
> 
> --- OpenWindows Configuration for /dev/fbs/ffb0 ---
> OWconfig: machine
> Video Mode: 1152x900x76
> Default Visual: Non-Linear Normal Visual
> Visual Ordering: Linear Visuals are last
>                  Overlay Visuals are last
> OpenGL Visual Expansion: enabled
> Server Overlay Visuals: disabled
> Extended Overlay: disabled
> Allocated WIDs: 32
> Gamma Correction Value: 2.220000
> Gamma Correction Table: Available
> 
> 
> Jan
> 
> 
> -- 
> -----------------------------------------------------------------
>     _/_/_/ _/  _/        Jan Boehm  Dipl.-Inform. M.Sc.
>    _/_/_/    _/   _/_/   Institut fuer Photogrammetrie
>   _/_/_/ _/ _/_/ _/ _/   Universitaet Stuttgart
>  _/_/_/ _/ _/   _/_/     Geschwister-Scholl-Str. 24
>           _/   _/        D-70174 Stuttgart
> -----------------------------------------------------------------
> Tel : +49-711-121-4110   Email : jan.boehm@xxxxxxxxxxxxxxxxxxxx 
> Fax : +49-711-121-3297   WWW   : www.ifp.uni-stuttgart.de
> -----------------------------------------------------------------
> 

<Prev in Thread] Current Thread [Next in Thread>