Hi Sergey, On 23 July 2013 18:40, Sergey Kurdakov <[email protected]> wrote:
> > GraphicsWindowX11::init() - eglInitialize() succeded eglMajorVersion=1 > > iMinorVersion=4 > > GraphicsWindowX11::init() - window created =1 > > Warning: TexGen::apply(State&) - not supported. > > Warning: Material::apply(State&) - not supported. > > Warning: TexGen::apply(State&) - not supported. > > I will look with debugger tomorrow. but a small question - is such > output is expected on linux or is it osg bug? > > > Regards > Sergey > > > > > On Tue, Jul 23, 2013 at 8:19 PM, Sergey Kurdakov <[email protected]> > wrote: > > Hi, > > > > I try to make some experiments with OpenGL ES 2.0 on both windows and > linux, > > and while I myself is searching for answers ( I think will resolve in > > coming days ), I will share few observations for anyone concerned. > > > > I have following problem with latest development code. > > > > On windows > > > > using http://code.google.com/p/angleproject/ and > > https://github.com/fantasydr/sdl-gles and SDL viewer example I > > attempted to have > > OpenGL ES 2.0 with visual studio compiler > > > > ( I used recommended settings ) > > > > Cmake settings for OpenGL ES 2.0 > > OSG_GL1_AVAILABLE OFF > > OSG_GL2_AVAILABLE OFF > > OSG_GL3_AVAILABLE OFF > > OSG_GLES1_AVAILABLE OFF > > OSG_GLES2_AVAILABLE ON > > OPENGL_INCLUDE_DIR /pathtogles/include/ > > OPENGL_LIBRARY /pathtogles/lib/libGLESv2.so > > OPENGL_egl_LIBRARY /pathtoegllib/libEGL.so > > OSG_GL_DISPLAYLISTS_AVAILABLE OFF > > SG_GL_MATRICES_AVAILABLE OFF > > OSG_GL_VERTEX_FUNCS_AVAILABLE OFF > > OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE OFF > > OSG_GL_FIXED_FUNCTION_AVAILABLE OFF > > OSG_CPP_EXCEPTIONS_AVAILABLE OFF > > > > While mostly it works - it compiles and runs, it fails to compile > > build-in osg shaders ( though I checked to have D3Dcompiler_46.dll in > > bin folder otherwise http://code.google.com/p/angleproject/ will not > > work outside visual studio ), > > > > You might find my OpenGL ES/SDL cpp file in attachment. > > > > to check further problem I also compiled osg on linux with mesa es > > 2.0 support (on latest ubuntu ) > > with exact paths for opengl > > > > OPENGL_egl_LIBRARY /usr/lib/x86_64-linux-gnu/mesa-egl/libEGL.so.1 > > > > OPENGL_gl_LIBRARY /usr/lib/x86_64-linux-gnu/mesa-egl/libGLESv2.so > > > > somehow I also get problems in release build I get from osgviewer with > cow.osg > > > > the output reads > > > > GraphicsWindowX11::init() - eglInitialize() succeded eglMajorVersion=1 > > iMinorVersion=4 > > GraphicsWindowX11::init() - window created =1 > > Warning: TexGen::apply(State&) - not supported. > > Warning: Material::apply(State&) - not supported. > > Warning: TexGen::apply(State&) - not supported. > OpenGL ES 2.0 does not support TexGen or Material, and in fact has fixed function pipeline at all. When using OpenGL ES 2.0 you need to use shaders exclusively, there is the osgUtil::ShaderGenVisitor that can attempt to convert some fixed function scene graphs across to shaders for you but it's not very sophisticated so can only handle quite simple scene graphs. For all real work with GLES 2.0 you'll need to use custom shaders. Robert.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

