Re: [osg-users] [Android osgViewer] OpenGL ES context lost (how do i preserve it?)
Hi, Is there anyone else that could help me fix this? If you are refering to this as documentation http://www.openscenegraph.com/index.php/documentation/platform-specifics/android/43-building-openscenegraph-for-android-3-0-2 there is nothing written about this bug or how to fix it. The only other instructions were http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/Android and there is also nothing written about how to fix this bug. In the examples itself there is only sparse documentation in EGLview.java and nothing that refers to this in OsgMainApp.hpp / OsgMainApp.cpp. I've run out of ideas what you mean by documentation and I'd be really thankful if you'd be able to help me out here. Thank you! Cheers, Bernd -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=50979#50979 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [Android osgViewer] OpenGL ES context lost (how do i preserve it?)
Hi Jorge, I'm sorry I keep bothering you, but I can't find the documentation that you're talking about. There's nothing in the folder where the examples are that I downloaded from the openscenegraph website and I can't find any other sort of documentation. Could you please be so kind and provide me with a link? I'd love to fix this issue... Thank you for your time. Cheers, Bernd -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=50918#50918 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [Android osgViewer] OpenGL ES context lost (how do i preserve it?)
Yes, it is possible, as I wrote in the docs you only have to modify the functionality. That functionality was not included in the example because there were more pending issues. 2012/10/29 Bernd Kampl > My question is: is there a way to not need to reinitialize the viewer > every time? Is this fixable? > > Cheers, > Bernd > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=50851#50851 > > > > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [Android osgViewer] OpenGL ES context lost (how do i preserve it?)
My question is: is there a way to not need to reinitialize the viewer every time? Is this fixable? Cheers, Bernd -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=50851#50851 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [Android osgViewer] OpenGL ES context lost (how do i preserve it?)
If you did exactly as it was the original example then it's the normal behaviour... because the viewer is reinitialized every time (it's stated in the docs), if not... I'm not a seer that knows what have you done in the code. 2012/10/24 Bernd Kampl > m working on an Android App based on the example AndroidExampleGLES1/2. In > my case it's GLES1, but this problem persists in both GLES versions. > The Problem occurs after the following steps (and it's easily > reproducible): > 1. run the android osgviewer app > 2. load a model > 3. put the android device to sleep (short press on power button) > 4. wake up the android device > 5. the model is gone. > > i know the error stems from losing the opengl context, which is then again > created when the device is waking up again. so the obvious > workaround/bugfix would be to preserve the opengl context. my problem is > that i don't really know how to do this. i found a few more or less helpful > comments on other web pages, but nothing to fix this particular problem yet. > maybe someone can help me to fix this, i'd then be happy to somehow put > this fix upstream (if that's possible) since that's a problem that persists > in the example files. > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] [Android osgViewer] OpenGL ES context lost (how do i preserve it?)
Hi dev community, I'm working on an Android App based on the example AndroidExampleGLES1/2. In my case it's GLES1, but this problem persists in both GLES versions. The Problem occurs after the following steps (and it's easily reproducible): 1. run the android osgviewer app 2. load a model 3. put the android device to sleep (short press on power button) 4. wake up the android device 5. the model is gone. i know the error stems from losing the opengl context, which is then again created when the device is waking up again. so the obvious workaround/bugfix would be to preserve the opengl context. my problem is that i don't really know how to do this. i found a few more or less helpful comments on other web pages, but nothing to fix this particular problem yet. maybe someone can help me to fix this, i'd then be happy to somehow put this fix upstream (if that's possible) since that's a problem that persists in the example files. Thank you! Cheers, Bernd -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=50755#50755 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org