[osg-users] Latest OSG cannot realize viewer under Android

Robert Osfield robert.osfield at gmail.com
Wed Oct 19 11:38:50 PDT 2016

Hi Michael,

I haven't done any development under Android myself so can't comment
on the specifics. A few general comments might help a bit perhaps.
Hopefully others in the community with Android experience will be chip
in with specifics.

The osgViewer library doesn't have any Android support built into it,
so it's not possible to just use osgViewer like you do on the desktop.
Instead you'll need to have create an GLES graphics window from within
Android and then get osgViewer to render to this via the
GraphicsWindowEmbedded adapter.  This is the route that the
OpenSceneGraph/examples/osgAndoidExampleGLES1/GLES2 take, this is what
the setUpViewerAsEmbeddedInWindow(..) call will be doing.


On 19 October 2016 at 15:26, michael kapelko <kornerr at gmail.com> wrote:
> Hi.
> I'm trying to make a minimal OSG application to work under Android.
> I closely follow GLES2 example.
> Upon viewer->realize() call I get the following errors:
> I/OSGLog: Warning:
> GraphicsContext::WindowingSystemInterfaces::getWindowingSystemInterface()
> failed, no interfaces available.
> I/OSGLog: AcrossAllScreens::configure() : Error, no WindowSystemInterface
> available, cannot create windows.
> I/OSGLog: Viewer::realize() - failed to set up any windows
> This leads to a viewer without instantiated Camera.
> Is it normal to have those errors? Is there any windowing interface for
> Android?
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list