Re: [osg-users] Why to reset OSG settings every time while rendering in Android

2012-09-24 Thread Koduri Lakshmi
Hi, I came to know that the "QCAR::Renderer::getInstance().drawVideoBackground()" statement clears the OpenGLES context. I think this is the reason to reset the OSG setting every time. I tried to restore the OpenGLES context as follows. Store the State object at initial time and restore it af

Re: [osg-users] Why to reset OSG settings every time while rendering in Android

2012-09-21 Thread Koduri Lakshmi
Hi, I got the mistake but not able to fix it. I am using a 3rd Party AR library (QCAR). It is setting the background with a statement "QCAR::Renderer::getInstance().drawVideoBackground();". If I comment this line then the model remains forever on screen but there is no background. If I remove

[osg-users] Why to reset OSG settings every time while rendering in Android

2012-09-20 Thread Koduri Lakshmi
Hi, Hi, I am new to Android programming. I followed the osgAndroidExampleGLES1 and developed a small example. It is working well but have a small issue. First of all I will give my complete code here Code: #include"osgModel.hpp" OsgMainApp osgM; void OsgMainApp::readModel() { loaded