Page 1 of 1

Android problem

Posted: Wed Sep 12, 2012 2:57 pm
by hongjunyu128
hi,everyone~
i run examples on Android with Opengl es 1.0,it looks very well~
but when i change it to Opengl es 2.0,it render no model at all.

here is the log:

09-12 17:09:32.257: I/log(16698): Irrlicht Engine version 1.7.0-beta
09-12 17:09:32.257: I/Irrlicht(16698): CIrrDeviceAndroid::CIrrDeviceAndroid
09-12 17:09:32.257: I/Irrlicht(16698): CIrrDeviceAndroid::createDriver
09-12 17:09:32.257: I/log(16698): OpenGL-ES2 initialized
09-12 17:09:32.257: I/Irrlicht(16698): OGLES2 initialized
09-12 17:09:32.257: I/log(16698): Using renderer: OpenGL ES 2.0
09-12 17:09:32.257: I/log(16698): Imagination Technologies
09-12 17:09:32.257: I/log(16698): GL_OES_rgb8_rgba8....
09-12 17:09:32.257: I/log(16698): load shader: /mnt/sdcard/Irrlicht/COGLES2FixedPipeline.vsh
09-12 17:09:32.264: I/log(16698): Loading shader
09-12 17:09:33.202: I/log(16698): Loading shader
09-12 17:09:33.405: D/dalvikvm(2195): GC_EXPLICIT freed 184K, 46% free 3758K/6919K, external 0K/0K, paused 1150ms
09-12 17:09:33.452: I/log(16698): Shader loaded
09-12 17:09:33.452: I/log(16698): load shader: /mnt/sdcard/Irrlicht/COGLES2Renderer2D.vsh
09-12 17:09:33.452: I/log(16698): Loading shader
09-12 17:09:33.460: I/log(16698): Loading shader
09-12 17:09:33.475: I/log(16698): Shader loaded
09-12 17:09:33.475: I/log(16698): load shader: /mnt/sdcard/Irrlicht/COGLES2NormalMap.vsh
09-12 17:09:33.475: I/log(16698): Loading shader
09-12 17:09:33.522: I/log(16698): Loading shader
09-12 17:09:33.561: I/log(16698): p8** @X * @ @T 0□(@+ ( (T80 0
09-12 17:09:33.561: I/log(16698): Shader loaded
09-12 17:09:33.561: I/log(16698): load shader: /mnt/sdcard/Irrlicht/COGLES2ParallaxMap.vsh
09-12 17:09:33.561: I/log(16698): Loading shader
09-12 17:09:33.639: I/log(16698): Loading shader
09-12 17:09:33.702: I/log(16698): Shader loaded
09-12 17:09:33.710: I/Irrlicht(16698): createDevice r=1717472 w=320 h=480
09-12 17:09:33.710: I/Irrlicht(16698): getVideoDriver r=1718008
09-12 17:09:33.710: I/Irrlicht(16698): resize w=480 h=756
09-12 17:09:33.710: I/Irrlicht(16698): getSceneManager r=1731728
09-12 17:09:33.710: I/Irrlicht(16698): getGUIEnvironment r=3642768
09-12 17:09:33.710: I/log(16698): GLSL shader program failed to link
09-12 17:09:33.710: I/log(16698): Link Error: Vertex shader is missing.
09-12 17:09:33.710: I/log(16698): Link Error: Fragment shader is missing.
09-12 17:09:33.710: I/log(16698): GLSL shader program failed to link
09-12 17:09:33.710: I/log(16698): Link Error: Vertex shader is missing.
09-12 17:09:33.710: I/log(16698): Link Error: Fragment shader is missing.
09-12 17:09:33.717: I/log(16698): Loaded texture
09-12 17:09:33.749: I/log(16698): Loaded texture
09-12 17:09:33.796: I/log(16698): Loaded texture
09-12 17:09:33.827: I/log(16698): Loaded texture
09-12 17:09:33.874: I/log(16698): Loaded texture
09-12 17:09:33.913: I/log(16698): Loaded texture
09-12 17:09:33.944: I/log(16698): Loaded texture
09-12 17:09:33.944: I/Irrlicht(16698): begin Scene
09-12 17:09:34.030: I/Irrlicht(16698): fps=1

i have no idea,why is it~can anybody help me?thanks~~

Re: Android problem

Posted: Wed Sep 12, 2012 3:48 pm
by hybrid
for some reason the shaders don't link properly, and thus nothing can be rendered. Which version of the ogl-es renderers do you use? The ones from SVN/branches/ogl-es should work.

Re: Android problem

Posted: Thu Sep 13, 2012 1:34 am
by hongjunyu128
hybrid wrote:for some reason the shaders don't link properly, and thus nothing can be rendered. Which version of the ogl-es renderers do you use? The ones from SVN/branches/ogl-es should work.
How can i get version of the ogl-es renderers?Is it opengl es 2.0?

Re: Android problem

Posted: Thu Sep 13, 2012 8:53 pm
by hybrid
Well, those outputs seem to be disabled, removed, or simply swallowed by the Android logging. Search the forum for other logs from Android, they show the GL-ES string properly.

Re: Android problem

Posted: Fri Sep 14, 2012 1:43 am
by hongjunyu128
hybrid wrote:Well, those outputs seem to be disabled, removed, or simply swallowed by the Android logging. Search the forum for other logs from Android, they show the GL-ES string properly.
i have found that it may should load shader:......./COGLES2FixedPipeline.fsh , ........./COGLES2Renderer2D.fsh ,....../COGLES2NormalMap.fsh , ......./COGLES2ParallaxMap.fsh
but the log not show it,i think that why model and no texture is that.
but i don't know why it is~just load .vsh , do not load .fsh~
do you know that?

Re: Android problem

Posted: Fri Sep 14, 2012 7:48 am
by hybrid
Maybe because more than just the startup output is missing in your log?! I doubt that only parts of the shaders are loaded. Moreover, the linker says that both fragment and vertex shaders are missing.