OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

OSG and Xinerama


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Eric Sokolowsky
Guest





PostPosted: Fri Sep 07, 2018 12:00 pm    Post subject:
OSG and Xinerama
Reply with quote

I have been using OpenSceneGraph 3.4 with my application. Recently I tried out OSG 3.6 and everything seems to work, with the following difference. When I run my app with OSG 3.4 on a dual-monitor setup (Linux using Xinerama) the application only uses one monitor, while the same application using OSG 3.6 spreads the window across both monitors. I actually prefer my application to just use one monitor. Once upon a time, Producer had these text-based configuration files which I found to be very useful, but I'm not sure if such configuration is possible any more. Is there a way to indicate that only one monitor is to be used, using OSG API calls, environment variables, or some sort of configuration file?



Eric

------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12145

PostPosted: Sat Sep 08, 2018 7:41 am    Post subject:
OSG and Xinerama
Reply with quote

HI Eric,

The change in behaviour is actually a fix for a regressions that
happened when the Linux window managers changed. It's just the
default behavior that has changed for setUpViewAcrossAllScreens(), so
it now behaves as it should. You can adjust what happens by default
using the Producer config files still if you want, or one of the env
vars. Run osgviewer --help-env to see the env vars. The env vars

You don't have to rely upon defaults in your application for window
creation, you can explicitly set up the views windowing via on of the
include/osgViewer/config/*, or st up the Camera and Windows manually
as per the osgcamera example.

Robert.


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Eric Sokolowsky
Guest





PostPosted: Fri Oct 12, 2018 11:47 am    Post subject:
OSG and Xinerama
Reply with quote

In case this helps someone else, here are the variables that Robert referred to:


OSG_CONFIG_FILE - set to a filename where a configuration is read. I'm still trying to determine the format of this.
OSG_SCREEN - Set to a screen number. Under Linux it appears to refer to an X11 screen number (seems like it would be more useful to be an Xinerama screen number, though).
OSG_WINDOW - Same as using --window. Set to 4 values separated by spaces: x y w h; where x and y give the origin of the window and w and h is the size of the window. The window will have decorations (window bar etc.)

OSG_BORDERLESS_WINDOW - same as OSG_WINDOW but without a border. This is what I was originally looking for.





On Sat, Sep 8, 2018 at 3:40 AM Robert Osfield < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
HI Eric,

The change in behaviour is actually a fix for a regressions that
happened when the Linux window managers changed.  It's just the
default behavior that has changed for setUpViewAcrossAllScreens(), so
it now behaves as it should.  You can adjust what happens by default
using the Producer config files still if you want, or one of the env
vars.  Run osgviewer --help-env to see the env vars.  The env vars

You don't have to rely upon defaults in your application for window
creation, you can explicitly set up the views windowing via on of the
include/osgViewer/config/*, or st up the Camera and Windows manually
as per the osgcamera example.

Robert.
_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Discovering displays on X11 using Xin... Eric Sokolowsky General 0 Fri Mar 27, 2009 6:41 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP