[osg-users] Latest OSG cannot realize viewer under Android
Jordi Torres
jtorresfabra at gmail.com
Thu Oct 20 07:30:35 PDT 2016
Hi Michael,
I'm sorry I don't have the time now to dig into the problems you have. But
I strongly recommend you base your work in
http://www.openscenegraph.org/index.php/documentation/platform-specifics/android/178-building-openscenegraph-for-android-3-4,
I've tested it a number of times with success. Then you can make use of
osgAndroid if you target GL_ES 1 ( https://github.com/miragetech/osgAndroid ).
If GL_ES 2 is a must you are on your own, but I tested it with success some
time ago.
Cheers.
2016-10-20 15:45 GMT+02:00 michael kapelko <kornerr at gmail.com>:
> Since I can't find the starting point for Android with latest OSG, I'll
> try to dive back into year 2011 to the point where it first worked for Jorge
> Izquierdo Ciges who wrote the first Android docs:
> http://www.openscenegraph.org/index.php/documentation/
> platform-specifics/android/44-building-openscenegraph-for-
> android-3-0-3-0-1
> I'll recreate mid-2011 development environment and challenge my luck.
>
> 2016-10-20 1:38 GMT+07:00 Robert Osfield <robert.osfield at gmail.com>:
>
>> 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.
>>
>> Robert.
>>
>>
>> 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::getWindowingSyst
>> emInterface()
>> > 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-opens
>> cenegraph.org
>> >
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
--
Jordi Torres
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161020/291811cc/attachment-0003.htm>
More information about the osg-users
mailing list