Irrlicht Android Error "called unimplemented OpenGL ES

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
balrajbalraj007
Posts: 16
Joined: Sun Mar 27, 2011 3:53 pm

Irrlicht Android Error "called unimplemented OpenGL ES

Post by balrajbalraj007 »

Following is the error which the Logcat is showing on running the irrlicht application on android Sydney example:-

Application is starting and then shutting down without showing any error on the device when i see the logcat this the error which i am getting.

Code: Select all

04-08 08:46:32.092: INFO/ActivityManager(58): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.ellismarkov.irrlicht/.IrrlichtTest }
04-08 08:46:32.322: INFO/ActivityManager(58): Start proc com.ellismarkov.irrlicht for activity com.ellismarkov.irrlicht/.IrrlichtTest: pid=585 uid=10042 gids={1015}
04-08 08:46:33.372: DEBUG/dalvikvm(585): Trying to load lib /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so 0x43e37b28
04-08 08:46:33.612: DEBUG/dalvikvm(585): Added shared lib /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so 0x43e37b28
04-08 08:46:33.612: DEBUG/dalvikvm(585): No JNI_OnLoad found in /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so 0x43e37b28, skipping init
04-08 08:46:33.692: INFO/Irrlicht(585): Error in unpack
04-08 08:46:33.702: INFO/Irrlicht(585): not handled /mnt/sdcard
04-08 08:46:34.152: DEBUG/libEGL(585): egl.cfg not found, using default config
04-08 08:46:34.172: DEBUG/libEGL(585): loaded /system/lib/egl/libGLES_android.so
04-08 08:46:34.252: INFO/log(585): Irrlicht Engine version 1.7.0-beta
04-08 08:46:34.262: INFO/Irrlicht(585): CIrrDeviceAndroid::CIrrDeviceAndroid
04-08 08:46:34.262: INFO/Irrlicht(585): CIrrDeviceAndroid::createDriver
04-08 08:46:34.292: INFO/log(585): OpenGL-ES2 initialized
04-08 08:46:34.292: INFO/Irrlicht(585): OGLES2 initialized
04-08 08:46:34.302: INFO/log(585): Using renderer: OpenGL ES-CM 1.0
04-08 08:46:34.302: INFO/log(585): Android
04-08 08:46:34.312: INFO/log(585): GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix GL_OES_EGL_image GL_OES_compressed_ETC1_RGB8_texture GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap 
04-08 08:46:34.312: INFO/log(585): load shader: /mnt/sdcard/Irrlicht/COGLES2FixedPipeline.vsh
04-08 08:46:34.322: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.322: INFO/log(585): C
04-08 08:46:34.322: INFO/log(585): Error reading fixed pipeline vertex shader.
04-08 08:46:34.322: INFO/log(585): C
04-08 08:46:34.332: INFO/log(585): Error reading fixed pipeline fragment shader.
04-08 08:46:34.332: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.332: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.332: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.342: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.342: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.342: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.342: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.342: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.342: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.342: INFO/log(585): GLSL shader program failed to link
04-08 08:46:34.342: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.342: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.342: INFO/log(585): XԯXԯ
04-08 08:46:34.372: INFO/log(585): Error linking fixed pipeline shader program.
04-08 08:46:34.372: INFO/log(585): Shader loaded
04-08 08:46:34.372: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.372: INFO/log(585): load shader: /mnt/sdcard/Irrlicht/COGLES2Renderer2D.vsh
04-08 08:46:34.372: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.372: INFO/log(585): C0C
04-08 08:46:34.372: INFO/log(585): Error reading fixed pipeline vertex shader.
04-08 08:46:34.372: INFO/log(585): C0C
04-08 08:46:34.372: INFO/log(585): Error reading fixed pipeline fragment shader.
04-08 08:46:34.372: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.372: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.372: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.372: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.372: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.372: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.372: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.372: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.372: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.372: INFO/log(585): GLSL shader program failed to link
04-08 08:46:34.372: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.372: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.372: INFO/log(585): XԯXԯ
04-08 08:46:34.372: INFO/log(585): Error linking fixed pipeline shader program.
04-08 08:46:34.372: INFO/log(585): Shader loaded
04-08 08:46:34.372: ERROR/libEGL(585): called unimplemented OpenGL ES API
04-08 08:46:34.483: INFO/DEBUG(30): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
04-08 08:46:34.483: INFO/DEBUG(30): Build fingerprint: 'generic/google_sdk/generic/:2.2/FRF91/43546:eng/test-keys'
04-08 08:46:34.483: INFO/DEBUG(30): pid: 585, tid: 591  >>> com.ellismarkov.irrlicht <<<
04-08 08:46:34.483: INFO/DEBUG(30): signal 11 (SIGSEGV), fault addr 00000014
04-08 08:46:34.492: INFO/DEBUG(30):  r0 00000010  r1 00000002  r2 454dfbdc  r3 00000001
04-08 08:46:34.503: INFO/DEBUG(30):  r4 00228e48  r5 00000000  r6 81420f08  r7 00228ee0
04-08 08:46:34.503: INFO/DEBUG(30):  r8 00000001  r9 813fc7a4  10 00228060  fp 454dfc90
04-08 08:46:34.503: INFO/DEBUG(30):  ip 00000000  sp 454dfbb0  lr 8119751c  pc 81193524  cpsr 60000010
04-08 08:46:34.862: INFO/DEBUG(30):          #00  pc 00193524  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
04-08 08:46:34.862: INFO/DEBUG(30):          #01  pc 00197518  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
04-08 08:46:34.872: INFO/DEBUG(30):          #02  pc 0018ed60  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
04-08 08:46:34.892: INFO/DEBUG(30):          #03  pc 0018f4f8  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
04-08 08:46:34.892: INFO/DEBUG(30):          #04  pc 0018f570  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
04-08 08:46:34.912: INFO/DEBUG(30):          #05  pc 00159e14  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
04-08 08:46:34.912: INFO/DEBUG(30):          #06  pc 0015a00c  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
04-08 08:46:34.932: INFO/DEBUG(30):          #07  pc 00368afc  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
04-08 08:46:34.932: INFO/DEBUG(30):          #08  pc 00368c24  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
04-08 08:46:34.942: INFO/DEBUG(30):          #09  pc 00159684  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
04-08 08:46:34.952: INFO/DEBUG(30):          #10  pc 00013974  /system/lib/libdvm.so
04-08 08:46:34.952: INFO/DEBUG(30):          #11  pc 0003ddf0  /system/lib/libdvm.so
04-08 08:46:34.952: INFO/DEBUG(30):          #12  pc 000371b6  /system/lib/libdvm.so
04-08 08:46:34.962: INFO/DEBUG(30):          #13  pc 000432ec  /system/lib/libdvm.so
04-08 08:46:34.972: INFO/DEBUG(30):          #14  pc 00018714  /system/lib/libdvm.so
04-08 08:46:34.972: INFO/DEBUG(30):          #15  pc 0001e8c4  /system/lib/libdvm.so
04-08 08:46:34.972: INFO/DEBUG(30):          #16  pc 0001d790  /system/lib/libdvm.so
04-08 08:46:34.982: INFO/DEBUG(30):          #17  pc 00053eec  /system/lib/libdvm.so
04-08 08:46:34.992: INFO/DEBUG(30):          #18  pc 00054102  /system/lib/libdvm.so
04-08 08:46:35.002: INFO/DEBUG(30):          #19  pc 0004825a  /system/lib/libdvm.so
04-08 08:46:35.002: INFO/DEBUG(30):          #20  pc 0001103c  /system/lib/libc.so
04-08 08:46:35.012: INFO/DEBUG(30):          #21  pc 00010b20  /system/lib/libc.so
04-08 08:46:35.012: INFO/DEBUG(30): code around pc:
04-08 08:46:35.023: INFO/DEBUG(30): 81193504 e1a02006 e8bd4070 eaffffa7 e8bd8070 
04-08 08:46:35.023: INFO/DEBUG(30): 81193514 e590c01c e92d4070 e1a04000 e08c0181 
04-08 08:46:35.023: INFO/DEBUG(30): 81193524 e5900004 e1a05002 e3700001 0a000039 
04-08 08:46:35.023: INFO/DEBUG(30): 81193534 e79cc181 e3a01c8b e2811052 e15c0001 
04-08 08:46:35.023: INFO/DEBUG(30): 81193544 0a00003d 9a000013 e3a02c8b e282205b 
04-08 08:46:35.023: INFO/DEBUG(30): code around lr:
04-08 08:46:35.032: INFO/DEBUG(30): 811974fc e1a00004 ebffef7b e28d2028 e522500c 
04-08 08:46:35.032: INFO/DEBUG(30): 8119750c e1a03008 e1a00004 e3a01002 ebffeffd 
04-08 08:46:35.032: INFO/DEBUG(30): 8119751c e1a00004 e28dd028 e8bd87f0 00289ae4 
04-08 08:46:35.042: INFO/DEBUG(30): 8119752c 00000d6c 00000f98 00000fd8 00000e98 
04-08 08:46:35.042: INFO/DEBUG(30): 8119753c 002652c8 00241ee0 e92d40f0 e59f60f4 
04-08 08:46:35.042: INFO/DEBUG(30): stack:
04-08 08:46:35.042: INFO/DEBUG(30):     454dfb70  00228e48  [heap]
04-08 08:46:35.042: INFO/DEBUG(30):     454dfb74  afc008e3  /system/lib/libstdc++.so
04-08 08:46:35.042: INFO/DEBUG(30):     454dfb78  00228e48  [heap]
04-08 08:46:35.042: INFO/DEBUG(30):     454dfb7c  811959f4  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
04-08 08:46:35.052: INFO/DEBUG(30):     454dfb80  00000000  
04-08 08:46:35.052: INFO/DEBUG(30):     454dfb84  454dfbe0  
04-08 08:46:35.052: INFO/DEBUG(30):     454dfb88  00228f08  [heap]
04-08 08:46:35.052: INFO/DEBUG(30):     454dfb8c  00000038  
04-08 08:46:35.062: INFO/DEBUG(30):     454dfb90  00000038  
04-08 08:46:35.062: INFO/DEBUG(30):     454dfb94  df28d554  
04-08 08:46:35.062: INFO/DEBUG(30):     454dfb98  002288f0  [heap]
04-08 08:46:35.062: INFO/DEBUG(30):     454dfb9c  00228e48  [heap]
04-08 08:46:35.062: INFO/DEBUG(30):     454dfba0  00000000  
04-08 08:46:35.072: INFO/DEBUG(30):     454dfba4  81420f08  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
04-08 08:46:35.072: INFO/DEBUG(30):     454dfba8  df002777  
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbac  e3a070ad  
04-08 08:46:35.072: INFO/DEBUG(30): #00 454dfbb0  00228e48  [heap]
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbb4  00000000  
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbb8  81420f08  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbbc  8119751c  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
04-08 08:46:35.072: INFO/DEBUG(30): #01 454dfbc0  00000000  
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbc4  00000000  
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbc8  813fc7a4  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbcc  454dfbe4  
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbd0  00000000  
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbd4  454dfbe4  
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbd8  00000000  
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbdc  00000000  
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbe0  ffffffff  
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbe4  00000005  
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbe8  00228060  [heap]
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbec  00000000  
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbf0  00227f64  [heap]
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbf4  00228e48  [heap]
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbf8  ac4195c5  /system/lib/egl/libGLES_android.so
04-08 08:46:35.072: INFO/DEBUG(30):     454dfbfc  002287f0  [heap]
04-08 08:46:35.072: INFO/DEBUG(30):     454dfc00  00228800  [heap]
04-08 08:46:35.102: INFO/DEBUG(30):     454dfc04  8118ed64  /data/data/com.ellismarkov.irrlicht/lib/libirrlicht.so
04-08 08:46:36.412: DEBUG/Zygote(32): Process 585 terminated by signal (11)
04-08 08:46:36.422: INFO/ActivityManager(58): Process com.ellismarkov.irrlicht (pid 585) has died.
04-08 08:46:36.452: INFO/WindowManager(58): WIN DEATH: Window{4400d1e0 com.ellismarkov.irrlicht/com.ellismarkov.irrlicht.IrrlichtTest paused=false}
04-08 08:46:36.452: INFO/WindowManager(58): WIN DEATH: Window{4401be70 SurfaceView paused=false}
04-08 08:46:36.552: INFO/BootReceiver(58): Copying /data/tombstones/tombstone_04 to DropBox (SYSTEM_TOMBSTONE)
04-08 08:46:36.752: DEBUG/dalvikvm(58): GC_FOR_MALLOC freed 2670 objects / 505240 bytes in 185ms
04-08 08:46:36.752: INFO/UsageStats(58): Unexpected resume of com.android.launcher while already resumed in com.ellismarkov.irrlicht
04-08 08:46:36.762: WARN/InputManagerService(58): Got RemoteException sending setActive(false) notification to pid 585 uid 10042
04-08 08:46:36.952: DEBUG/dalvikvm(58): GC_FOR_MALLOC freed 315 objects / 239448 bytes in 145ms
04-08 08:46:59.501: DEBUG/SntpClient(58): request time failed: java.net.SocketException: Address family not supported by protocol
04-08 08:47:03.272: INFO/CheckinService(173): Preparing to send checkin request
04-08 08:47:03.292: INFO/EventLogService(173): Accumulating logs since 1302232476176
04-08 08:47:03.802: DEBUG/dalvikvm(173): GC_FOR_MALLOC freed 1909 objects / 475392 bytes in 156ms
04-08 08:47:04.042: INFO/CheckinTask(173): Sending checkin request (28150 bytes)
balrajbalraj007
Posts: 16
Joined: Sun Mar 27, 2011 3:53 pm

Post by balrajbalraj007 »

Hey can anybody tell me that why i am getting this problem...

Code: Select all

02-16 13:35:05.622: ERROR/libEGL(782): called unimplemented OpenGL ES API 
kine
Posts: 18
Joined: Tue Mar 23, 2010 9:40 am

Post by kine »

those unimplemented opengl call shouldn't be the problem...
The problem is probably lying in shader linking, that's why both my version and Ellis's one don't work. The problem is in back linking shader variables... irrlicht want to cast shaders variables with its own variables to use shaders with its materials. As you can read, in ogles2fixedpipeline and ogles2normal ( and others) is an array of char that contains variables. those variables names should math the shader's one. The problem is that the shader's variables within the shader are reported differently depending on the mobile (for ex my samsung S doesn't report exactly the same variables that a nexus one), and this is due to poor ogles2 implementation and different truncations on devices, as far I as know.

So either use opengles1 or have a look to these files and modify them, maybe using a trace on shader variables reading in irrlicht
balrajbalraj007
Posts: 16
Joined: Sun Mar 27, 2011 3:53 pm

Changed to OpenGL 1 error "Could not bind texture"

Post by balrajbalraj007 »

Hey thanks for the reply i have changed to OPENGL ES 1 but now when my application is running its unable to load the texture the loagcat is showing "Could not bind texture problem" i have tried everything but it cannot load any texture...

Code: Select all

01-07 03:11:10.684: INFO/log(28446): Irrlicht Engine version 1.7.0-beta
01-07 03:11:10.684: INFO/Irrlicht(28446): CIrrDeviceAndroid::CIrrDeviceAndroid
01-07 03:11:10.684: INFO/Irrlicht(28446): CIrrDeviceAndroid::createDriver
01-07 03:11:10.684: INFO/log(28446): Using renderer: OpenGL ES-CM 1.1
01-07 03:11:10.684: INFO/log(28446): Qualcomm
01-07 03:11:10.684: INFO/log(28446): GL_AMD_compressed_3DC_texture GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_APPLE_texture_2D_limited_npot GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_OES_blend_equation_separate GL_OES_blend_func_separate GL_OES_blend_subtract GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_depth_texture GL_OES_draw_texture GL_OES_framebuffer_object GL_OES_matrix_palette GL_OES_packed_depth_stencil GL_OES_point_size_array GL_OES_point_sprite GL_OES_read_format GL_OES_rgb8_rgba8 GL_OES_stencil_wrap GL_OES_EGL_image GL_OES_texture_cube_map GL_OES_texture_env_crossbar GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_texture_mirrored_repeat GL_QCOM_binning_control GL_QCOM_extended_get GL_QCOM_tiled_rendering 
01-07 03:11:10.694: INFO/log(28446): GL_INVALID_ENUM
01-07 03:11:10.694: INFO/log(28446): Could not bind Texture
01-07 03:11:10.694: INFO/Irrlicht(28446): createDevice r=3048792 w=320 h=480
01-07 03:11:10.694: INFO/Irrlicht(28446): getVideoDriver r=3049488
01-07 03:11:10.694: INFO/Irrlicht(28446): resize w=320 h=519
01-07 03:11:11.194: INFO/log(28446): Loaded mesh
01-07 03:11:11.214: INFO/log(28446): Loaded texture
01-07 03:11:11.214: INFO/Irrlicht(28446): add texture
01-07 03:11:11.214: INFO/Irrlicht(28446): beginScene
balrajbalraj007
Posts: 16
Joined: Sun Mar 27, 2011 3:53 pm

Error: Cannot bind the texture

Post by balrajbalraj007 »

Hi,

When i run the irrlicht code on android device Sony Xperia Arc
I am getting a error Cannot bind the texture where as when i am running the same code on emulator it is working fine.

Can anybody tell me that what is the solution for this?

Error:

Code: Select all

01-07 03:11:10.684: INFO/log(28446): Irrlicht Engine version 1.7.0-beta
01-07 03:11:10.684: INFO/Irrlicht(28446): CIrrDeviceAndroid::CIrrDeviceAndroid
01-07 03:11:10.684: INFO/Irrlicht(28446): CIrrDeviceAndroid::createDriver
01-07 03:11:10.684: INFO/log(28446): Using renderer: OpenGL ES-CM 1.1
01-07 03:11:10.684: INFO/log(28446): Qualcomm
01-07 03:11:10.684: INFO/log(28446): GL_AMD_compressed_3DC_texture GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_APPLE_texture_2D_limited_npot GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_OES_blend_equation_separate GL_OES_blend_func_separate GL_OES_blend_subtract GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_depth_texture GL_OES_draw_texture GL_OES_framebuffer_object GL_OES_matrix_palette GL_OES_packed_depth_stencil GL_OES_point_size_array GL_OES_point_sprite GL_OES_read_format GL_OES_rgb8_rgba8 GL_OES_stencil_wrap GL_OES_EGL_image GL_OES_texture_cube_map GL_OES_texture_env_crossbar GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_texture_mirrored_repeat GL_QCOM_binning_control GL_QCOM_extended_get GL_QCOM_tiled_rendering
01-07 03:11:10.694: INFO/log(28446): GL_INVALID_ENUM
01-07 03:11:10.694: INFO/log(28446): Could not bind Texture
01-07 03:11:10.694: INFO/Irrlicht(28446): createDevice r=3048792 w=320 h=480
01-07 03:11:10.694: INFO/Irrlicht(28446): getVideoDriver r=3049488
01-07 03:11:10.694: INFO/Irrlicht(28446): resize w=320 h=519
01-07 03:11:11.194: INFO/log(28446): Loaded mesh
01-07 03:11:11.214: INFO/log(28446): Loaded texture
01-07 03:11:11.214: INFO/Irrlicht(28446): add texture
01-07 03:11:11.214: INFO/Irrlicht(28446): beginScene
SG57
Posts: 66
Joined: Fri May 18, 2007 5:51 am

Re: Irrlicht Android Error "called unimplemented OpenGL ES

Post by SG57 »

This is still an issue as I am getting the same problem, does anybody have a fix? I will look for an answer myself and post back with results if no one else can

EDIT

Lot of work later and a crap load of asserts and debug logs, I can't help but feel it's the underlying android ogl... I"m using android ndk r7, perhaps the newest android ndk (ndk7) somehow bugged glBindTexture. The problem is in COGLESTexture.cpp line 214 ish:

Code: Select all

Driver->setTexture(0, this);
The error occurs in setTexture, more specifically:

Code: Select all

                glBindTexture(GL_TEXTURE_2D,
                        static_cast<const COGLES1Texture*>(texture)->getOGLES1TextureName());
OR Perhaps the use of a static_cast may have broke it in the later ndk's what with the newer support for stl-c++, possibly bugging it?

It's nearly 4 am here so no more for me, but tomorrow I may look into reverting back to ndk 5b, i've seen no texture issues with apps using that ndk

EDIT

Hot on the trail of the mysterious texture bind malfunction, it would seem there is a gl error even prior to generating any textures (tested by compiling without gui and testing prior to generating a texture) then goes away after generating the texture, but leads to a null texture when attempting to bind (thus unable to bind). so the glGenTexture is not working due to a gl error prior to it. I think i'll look into proton sdk's irrlicht and see if textures are workin'.

LAST EDIT!

And on that note, proton's irrlicht seems to be based off a more recent version of irrlicht (1.7.1) and has texturing working, i'll see if i can strip it out and get a barebones Android + Irrlicht. that's all i want after all :\
__________________________________
...you'll never know what it's like, living your whole life in a dream...
nerith
Posts: 4
Joined: Tue Mar 27, 2012 2:06 pm

Re: Irrlicht Android Error "called unimplemented OpenGL ES

Post by nerith »

no news on this problem ?
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Irrlicht Android Error "called unimplemented OpenGL ES

Post by mongoose7 »

Err, like, what was the GL error? Irrlicht should have printed a message, otherwise you could get the error number yourself.
Post Reply