Hi,

I spent some time on refactoring osgViewerGLES1 example in order to work with 
GLES 2.0 under Android OS, for those of you interested in running example few 
comments/conclusions:

I build OSG using cmake flags : -DOSG_BUILD_PLATFORM_ANDROID=ON 
-DDYNAMIC_OPENTHREADS=OFF -DDYNAMIC_OPENSCENEGRAPH=OFF 
-DOSG_GL_DISPLAYLISTS_AVAILABLE=OFF -DOSG_GL_MATRICES_AVAILABLE=OFF 
-DOSG_GL_VERTEX_FUNCS_AVAILABLE=OFF -DOSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE=OFF 
-DOSG_GL_FIXED_FUNCTION_AVAILABLE=OFF -DOSG_CPP_EXCEPTIONS_AVAILABLE=OFF 
-DOSG_GL_LIBRARY_STATIC=ON
This is almost the same as listed on OSG OpenGL 2.0 page, I added 
OSG_GL_LIBRARY_STATIC=ON which I presume is needed for static build, anyway it 
wasn't working without this flag enabled.

After running example I noticed few disturbing outputs:

I/com.android.osgViewerGLES2( 6136): ShaderComposer::~ShaderComposer() 0xc9408

D/com.android.osgViewerGLES2( 6136): Renderer::compile()

W/com.android.osgViewerGLES2( 6136): Warning: detected OpenGL error 'invalid 
enumerant' at Before Renderer::compile

I/com.android.osgViewerGLES2( 6136): glVersion=0, isGlslSupported=YES, 
glslLanguageVersion=0

particularly opengl version and glsl version is alarming. I will look at this 
soon.

Another issue is missing statistics, probably HUD shader is needed.

Before running example you need to fix OSG_SDK path in jni/Android.mk and model 
file path in osgViewerGLES2.cpp.


Cheers,
Marcin

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




Attachments: 
http://forum.openscenegraph.org//files/osgviewergles2_137.jpg
http://forum.openscenegraph.org//files/osgviewergles2_210.zip


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to