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 

Rendering multiple screens


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
njr3
Newbie


Joined: 31 Oct 2018
Posts: 1

PostPosted: Wed Oct 31, 2018 8:46 pm    Post subject:
Rendering multiple screens
Reply with quote

Hi,

I'm fairly new to the the osg community but I'm currently trying to create a program that will span over 4 screens (same view different angles).

I tried to setup viewer.setUpViewAcrossAllScreens() but it crashes claiming the following:

    Error: win32windowingsystem::getsampleopenGLcontext() - unable to create an OpenGL rendering context
    Grapicswindow has not been created succesfully.
    Error: win32windowingsystem::getsampleopenGLcontext() - unable to create an OpenGL rendering context
    Grapicswindow has not been created succesfully.
    Error: [screen #0] GraphicsWindowWin32::makeCurrentImplementation() - Window not realized; cannot do makeCurrent.
    Warning: detected OpenGL error 'invalid operation' at Before Renderer::compile
    Warning: detected OpenGL error 'invalid operation' at start of GLOBjectsVisitor::apply(osg::Drawable& drawable)


Any help would be great !

Thanks,
Nat
Back to top
View user's profile Send private message
mp3butcher (Julien Valentin)
Appreciator


Joined: 17 Feb 2010
Posts: 519
Location: France

PostPosted: Sat Nov 03, 2018 2:16 pm    Post subject:
Reply with quote

Hi,

hack example osgwindows (https://github.com/openscenegraph/OpenSceneGraph/blob/master/examples/osgwindows/osgwindows.cpp)

and replace traits.readDisplay with traits->setScreenIdentifier()


Cheers,
Julien

_________________
Twirling twirling twirling toward freedom
Back to top
View user's profile Send private message Visit poster's website
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 Add multiple OverlayNode. osgsim General 0 Sun Jun 09, 2019 2:30 am View latest post
No new posts Rendering a Depthmap lucasamparo General 2 Tue Jun 04, 2019 6:27 pm View latest post
No new posts Running multiple (independent) viewer... Aneoshun General 2 Wed May 22, 2019 4:49 pm View latest post
No new posts Layered rendering with a geometry shader AnyOldName3 General 8 Tue May 14, 2019 11:25 pm View latest post
No new posts off screen rendering with OSG Sorin General 0 Mon May 13, 2019 8:14 am 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