Discussion:
[osg-users] Rendering multiple screens
Nathalie Ruano
2018-10-31 20:46:56 UTC
Permalink
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

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75159#75159
Julien Valentin
2018-11-03 14:16:20 UTC
Permalink
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

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75168#75168

Continue reading on narkive:
Loading...