![]() |
openscenegraph and N900
hello guys,
i've tried to use openscenegraph from the repositories but have not succeeded yet. are there anyone able to run examples from the package? could you please share your experiance? many thanks in advane. littleSev |
Re: openscenegraph and N900
How did it not work? What did you do? What did you expect?
|
Re: openscenegraph and N900
for example, after calling osglogo in terminal, i expected to get a result similar to when it run in a pc. but i got only white full screen and when i stopped the program, there were warning/error messages in the terminal.
Warning: gluTesselation not supported. Warning: gluTesselation not supported. Warning: gluTesselation not supported. Warning: font file "fonts/arial.ttf" not found. GraphicsWindowX11::init() - eglInitialize() succeded eglMajorVersion=1 iMinorVersion=4 GraphicsWindowX11::init() - window created =1 State::convertShaderSourceToOsgBuiltIns() ++Before Converted source void main() { gl_Position = ftransform(); gl_FrontColor = gl_Color; } ++++++++ -------- Converted source uniform mat4 osg_ModelViewProjectionMatrix; attribute vec4 osg_Color; attribute vec4 osg_Vertex; void main() { gl_Position = osg_ModelViewProjectionMatrix * osg_Vertex; gl_FrontColor = osg_Color; } ---------------- VERTEX glCompileShader "" FAILED VERTEX Shader "" infolog: Compile failed. ERROR: 0:8: 'gl_FrontColor' : undeclared identifer ERROR: 0:8: 'assign' : cannot convert from 'attribute 4-component vector of float' to 'float' ERROR: 2 compilation errors. No code generated. FRAGMENT glCompileShader "" FAILED FRAGMENT Shader "" infolog: Compile failed. ERROR: 0:4: 'vec4' : No precision defined for this type ERROR: 0:5: 'vec4' : No precision defined for this type ERROR: 0:6: 'gl_Color' : undeclared identifer ERROR: 3 compilation errors. No code generated. State's vertex attrib binding 2, osg_Color State's vertex attrib binding 7, osg_FogCoord State's vertex attrib binding 3, osg_MultiTexCoord0 State's vertex attrib binding 4, osg_MultiTexCoord1 State's vertex attrib binding 5, osg_MultiTexCoord2 State's vertex attrib binding 6, osg_MultiTexCoord3 State's vertex attrib binding 7, osg_MultiTexCoord4 State's vertex attrib binding 1, osg_Normal State's vertex attrib binding 6, osg_SecondaryColor State's vertex attrib binding 0, osg_Vertex glLinkProgram "" FAILED Program "" infolog: Link Error: Vertex shader was not successfully compiled. Link Error: Fragment shader was not successfully compiled. Warning: Material::apply(State&) - not supported. Warning: Material::apply(State&) - not supported. Warning: AlphaFunc::apply(State&) - not supported. Warning: TexEnv::apply(State&) - not supported. Warning: Text::renderWithPolygonOffset(..) not implemented. Warning: AlphaFunc::apply(State&) - not supported. Warning: TexEnv::apply(State&) - not supported. Warning: detected OpenGL error GL_INVALID_OPERATION at after RenderBin::draw(..) Warning: Material::apply(State&) - not supported. Warning: Material::apply(State&) - not supported. Warning: AlphaFunc::apply(State&) - not supported. Warning: TexEnv::apply(State&) - not supported. Warning: Text::renderWithPolygonOffset(..) not implemented. Warning: AlphaFunc::apply(State&) - not supported. Warning: TexEnv::apply(State&) - not supported. Warning: detected OpenGL error GL_INVALID_OPERATION at after RenderBin::draw(..) Warning: Material::apply(State&) - not supported. Warning: Material::apply(State&) - not supported. Warning: AlphaFunc::apply(State&) - not supported. Warning: TexEnv::apply(State&) - not supported. Warning: Text::renderWithPolygonOffset(..) not implemented. Warning: AlphaFunc::apply(State&) - not supported. Warning: TexEnv::apply(State&) - not supported. Warning: detected OpenGL error GL_INVALID_OPERATION at after RenderBin::draw(..) Warning: Material::apply(State&) - not supported. Warning: Material::apply(State&) - not supported. Warning: AlphaFunc::apply(State&) - not supported. Warning: TexEnv::apply(State&) - not supported. Warning: Text::renderWithPolygonOffset(..) not implemented. Warning: AlphaFunc::apply(State&) - not supported. Warning: TexEnv::apply(State&) - not supported. Warning: detected OpenGL error GL_INVALID_OPERATION at after RenderBin::draw(..) Warning: Material::apply(State&) - not supported. Warning: Material::apply(State&) - not supported. Warning: AlphaFunc::apply(State&) - not supported. Warning: TexEnv::apply(State&) - not supported. Warning: Text::renderWithPolygonOffset(..) not implemented. Warning: AlphaFunc::apply(State&) - not supported. Warning: TexEnv::apply(State&) - not supported. Warning: detected OpenGL error GL_INVALID_OPERATION at after RenderBin::draw(..) Warning: Material::apply(State&) - not supported. Warning: Material::apply(State&) - not supported. Warning: AlphaFunc::apply(State&) - not supported. Warning: TexEnv::apply(State&) - not supported. Warning: Text::renderWithPolygonOffset(..) not implemented. Warning: AlphaFunc::apply(State&) - not supported. Warning: TexEnv::apply(State&) - not supported. Warning: detected OpenGL error GL_INVALID_OPERATION at after RenderBin::draw(..) Warning: Material::apply(State&) - not supported. Warning: Material::apply(State&) - not supported. Warning: AlphaFunc::apply(State&) - not supported. Warning: TexEnv::apply(State&) - not supported. Warning: Text::renderWithPolygonOffset(..) not implemented. Warning: AlphaFunc::apply(State&) - not supported. Warning: TexEnv::apply(State&) - not supported. Warning: detected OpenGL error GL_INVALID_OPERATION at after RenderBin::draw(..) Warning: Material::apply(State&) - not supported. Warning: Material::apply(State&) - not supported. Warning: AlphaFunc::apply(State&) - not supported. Warning: TexEnv::apply(State&) - not supported. Warning: Text::renderWithPolygonOffset(..) not implemented. Warning: AlphaFunc::apply(State&) - not supported. Warning: TexEnv::apply(State&) - not supported. Warning: detected OpenGL error GL_INVALID_OPERATION at after RenderBin::draw(..) Warning: Material::apply(State&) - not supported. W |
Re: openscenegraph and N900
I'd start with trying to get the shader programs to compile. There are definite differences between OpenGL and OpenGLES.
|
All times are GMT. The time now is 14:04. |
vBulletin® Version 3.8.8