Android ES3 context recreation issue

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
sarath_10
Gnoblar
Posts: 15
Joined: Tue Jun 11, 2013 10:38 am

Android ES3 context recreation issue

Postby sarath_10 » Tue Jan 06, 2015 5:21 pm

Hi,

I have generated Ogre1.9 with ES3 enabled.
I was able to render a model and view it. But when the app goes background and comes to foreground the model is distorted completely.

The same code if built with out enabling ES3 works fine when it switches btw background/foreground.

So should i do something else other than _createInternalResources() when app comes to foreground for ES3 ??
0 x

User avatar
c6burns
Beholder
Posts: 1511
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines

Re: Android ES3 context recreation issue

Postby c6burns » Tue Jan 06, 2015 6:05 pm

I don't think ES3 is actually supported fully in the GLES2 RenderSystem, so I would not be surprised if there are many issues lying in wait. Also how mature are ES3 drivers on the various versions of Android? I know pre-5.0 adreno drivers are far from stable or feature complete.
0 x

sarath_10
Gnoblar
Posts: 15
Joined: Tue Jun 11, 2013 10:38 am

Re: Android ES3 context recreation issue

Postby sarath_10 » Tue Jan 06, 2015 6:18 pm

The device i am targetting is google tango device.

I enabled ES3 as per this commit https://bitbucket.org/sinbad/ogre/commits/d2ef494c4a2f5d6e2f0f17d3bfb9fd936d5423bb

Also tango is Nvidea Tegra K1 64bit. Does being 64bit has anything to do with this??

How should i proceed in this particular scenario??
0 x

User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
Contact:

Re: Android ES3 context recreation issue

Postby Wolfmanfx » Tue Jan 06, 2015 7:41 pm

Question what happens during recreation? Crash - crash dump / Stacktrace?
0 x

sarath_10
Gnoblar
Posts: 15
Joined: Tue Jun 11, 2013 10:38 am

Re: Android ES3 context recreation issue

Postby sarath_10 » Wed Jan 07, 2015 7:57 am

There is no crash or error from the log. So attached the pics
Attachments
after.png
Model deformed after app switches backgroud/foreground
before.png
Correctly rendered model
0 x

User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
Contact:

Re: Android ES3 context recreation issue

Postby Wolfmanfx » Wed Jan 07, 2015 8:53 am

What about the log -
When the context is recreated I log that maybe something could not recreated?
0 x

sarath_10
Gnoblar
Posts: 15
Joined: Tue Jun 11, 2013 10:38 am

Re: Android ES3 context recreation issue

Postby sarath_10 » Wed Jan 07, 2015 11:34 am

The log doesnt seems to have any clue of whats wrong!. Its pretty much the same as the log before and after context recreation.

Also the latest Nexus 9 device also have the same GPU, so i am guessing my app wont work on it also :(

Here is the log
01-07 15:50:51.051: D/OGRE(7691): initWindow API called
01-07 15:50:51.051: D/OGRE(7691): create internal resources Start
01-07 15:50:51.131: I/OGRE(7691): ********************************************
01-07 15:50:51.132: I/OGRE(7691): *** OpenGL ES 2.x Reset Renderer Started ***
01-07 15:50:51.132: I/OGRE(7691): ********************************************
01-07 15:50:51.135: I/OGRE(7691): GL_VERSION = OpenGL ES 3.1 334.00
01-07 15:50:51.135: I/OGRE(7691): GL_VENDOR = NVIDIA Corporation
01-07 15:50:51.135: I/OGRE(7691): GL_RENDERER = NVIDIA Tegra
01-07 15:50:51.136: I/OGRE(7691): GL_EXTENSIONS = GL_EXT_debug_marker GL_EXT_blend_minmax GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_copy_image GL_EXT_debug_label GL_EXT_draw_buffers_indexed GL_EXT_frag_depth GL_EXT_geometry_point_size GL_EXT_geometry_shader GL_EXT_gpu_shader5 GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_primitive_bounding_box GL_EXT_robustness GL_EXT_separate_shader_objects GL_EXT_shader_implicit_conversions GL_EXT_shader_integer_mix GL_EXT_shader_io_blocks GL_EXT_shadow_samplers GL_EXT_sRGB GL_EXT_sRGB_write_control GL_EXT_tessellation_point_size GL_EXT_tessellation_shader GL_EXT_texture_border_clamp GL_EXT_texture_buffer GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map_array GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg GL_EXT_texture_sRGB_decode GL_EXT_texture_storage GL_EXT_texture_view GL_EXT_unpack_subimage GL_KHR_debug GL_KHR_texture_compression_astc_ldr GL_NV_bgr GL_NV_bindless_texture GL_NV_blend_equati
01-07 15:50:51.136: I/OGRE(7691): EXT:GL_EXT_debug_marker
01-07 15:50:51.136: I/OGRE(7691): EXT:GL_EXT_blend_minmax
01-07 15:50:51.136: I/OGRE(7691): EXT:GL_EXT_color_buffer_float
01-07 15:50:51.136: I/OGRE(7691): EXT:GL_EXT_color_buffer_half_float
01-07 15:50:51.137: I/OGRE(7691): EXT:GL_EXT_copy_image
01-07 15:50:51.141: I/OGRE(7691): EXT:GL_EXT_debug_label
01-07 15:50:51.141: I/OGRE(7691): EXT:GL_EXT_draw_buffers_indexed
01-07 15:50:51.141: I/OGRE(7691): EXT:GL_EXT_frag_depth
01-07 15:50:51.142: I/OGRE(7691): EXT:GL_EXT_geometry_point_size
01-07 15:50:51.143: I/OGRE(7691): EXT:GL_EXT_geometry_shader
01-07 15:50:51.144: I/OGRE(7691): EXT:GL_EXT_gpu_shader5
01-07 15:50:51.144: I/OGRE(7691): EXT:GL_EXT_map_buffer_range
01-07 15:50:51.144: I/OGRE(7691): EXT:GL_EXT_occlusion_query_boolean
01-07 15:50:51.145: I/OGRE(7691): EXT:GL_EXT_primitive_bounding_box
01-07 15:50:51.145: I/OGRE(7691): EXT:GL_EXT_robustness
01-07 15:50:51.145: I/OGRE(7691): EXT:GL_EXT_separate_shader_objects
01-07 15:50:51.146: I/OGRE(7691): EXT:GL_EXT_shader_implicit_conversions
01-07 15:50:51.146: I/OGRE(7691): EXT:GL_EXT_shader_integer_mix
01-07 15:50:51.147: I/OGRE(7691): EXT:GL_EXT_shader_io_blocks
01-07 15:50:51.147: I/OGRE(7691): EXT:GL_EXT_shadow_samplers
01-07 15:50:51.147: I/OGRE(7691): EXT:GL_EXT_sRGB
01-07 15:50:51.148: I/OGRE(7691): EXT:GL_EXT_sRGB_write_control
01-07 15:50:51.148: I/OGRE(7691): EXT:GL_EXT_tessellation_point_size
01-07 15:50:51.148: I/OGRE(7691): EXT:GL_EXT_tessellation_shader
01-07 15:50:51.148: I/OGRE(7691): EXT:GL_EXT_texture_border_clamp
01-07 15:50:51.149: I/OGRE(7691): EXT:GL_EXT_texture_buffer
01-07 15:50:51.149: I/OGRE(7691): EXT:GL_EXT_texture_compression_dxt1
01-07 15:50:51.150: I/OGRE(7691): EXT:GL_EXT_texture_compression_s3tc
01-07 15:50:51.150: I/OGRE(7691): EXT:GL_EXT_texture_cube_map_array
01-07 15:50:51.151: I/OGRE(7691): EXT:GL_EXT_texture_filter_anisotropic
01-07 15:50:51.151: I/OGRE(7691): EXT:GL_EXT_texture_format_BGRA8888
01-07 15:50:51.151: I/OGRE(7691): EXT:GL_EXT_texture_rg
01-07 15:50:51.152: I/OGRE(7691): EXT:GL_EXT_texture_sRGB_decode
01-07 15:50:51.152: I/OGRE(7691): EXT:GL_EXT_texture_storage
01-07 15:50:51.152: I/OGRE(7691): EXT:GL_EXT_texture_view
01-07 15:50:51.153: I/OGRE(7691): EXT:GL_EXT_unpack_subimage
01-07 15:50:51.153: I/OGRE(7691): EXT:GL_KHR_debug
01-07 15:50:51.153: I/OGRE(7691): EXT:GL_KHR_texture_compression_astc_ldr
01-07 15:50:51.154: I/OGRE(7691): EXT:GL_NV_bgr
01-07 15:50:51.158: I/OGRE(7691): EXT:GL_NV_bindless_texture
01-07 15:50:51.158: I/OGRE(7691): EXT:GL_NV_blend_equation_advanced
01-07 15:50:51.159: I/OGRE(7691): EXT:GL_NV_blend_equation_advanced_coherent
01-07 15:50:51.159: I/OGRE(7691): EXT:GL_NV_copy_buffer
01-07 15:50:51.159: I/OGRE(7691): EXT:GL_NV_copy_image
01-07 15:50:51.160: I/OGRE(7691): EXT:GL_NV_draw_buffers
01-07 15:50:51.160: I/OGRE(7691): EXT:GL_NV_draw_instanced
01-07 15:50:51.160: I/OGRE(7691): EXT:GL_NV_draw_texture
01-07 15:50:51.161: I/OGRE(7691): EXT:GL_NV_EGL_stream_consumer_external
01-07 15:50:51.161: I/OGRE(7691): EXT:GL_NV_explicit_attrib_location
01-07 15:50:51.161: I/OGRE(7691): EXT:GL_NV_fbo_color_attachments
01-07 15:50:51.161: I/OGRE(7691): EXT:GL_NV_framebuffer_blit
01-07 15:50:51.162: I/OGRE(7691): EXT:GL_NV_framebuffer_multisample
01-07 15:50:51.162: I/OGRE(7691): EXT:GL_NV_generate_mipmap_sRGB
01-07 15:50:51.162: I/OGRE(7691): EXT:GL_NV_instanced_arrays
01-07 15:50:51.163: I/OGRE(7691): EXT:GL_NV_occlusion_query_samples
01-07 15:50:51.163: I/OGRE(7691): EXT:GL_NV_non_square_matrices
01-07 15:50:51.163: I/OGRE(7691): EXT:GL_NV_pack_subimage
01-07 15:50:51.163: I/OGRE(7691): EXT:GL_NV_packed_float
01-07 15:50:51.163: I/OGRE(7691): EXT:GL_NV_packed_float_linear
01-07 15:50:51.164: I/OGRE(7691): EXT:GL_NV_pixel_buffer_object
01-07 15:50:51.164: I/OGRE(7691): EXT:GL_NV_read_buffer
01-07 15:50:51.164: I/OGRE(7691): EXT:GL_NV_read_depth
01-07 15:50:51.164: I/OGRE(7691): EXT:GL_NV_read_depth_stencil
01-07 15:50:51.165: I/OGRE(7691): EXT:GL_NV_read_stencil
01-07 15:50:51.165: I/OGRE(7691): EXT:GL_NV_secure_context
01-07 15:50:51.165: I/OGRE(7691): EXT:GL_NV_shadow_samplers_array
01-07 15:50:51.165: I/OGRE(7691): EXT:GL_NV_shadow_samplers_cube
01-07 15:50:51.166: I/OGRE(7691): EXT:GL_NV_sRGB_formats
01-07 15:50:51.166: I/OGRE(7691): EXT:GL_NV_texture_array
01-07 15:50:51.166: I/OGRE(7691): EXT:GL_NV_texture_border_clamp
01-07 15:50:51.167: I/OGRE(7691): EXT:GL_NV_texture_compression_latc
01-07 15:50:51.167: I/OGRE(7691): EXT:GL_NV_texture_compression_s3tc
01-07 15:50:51.167: I/OGRE(7691): EXT:GL_NV_texture_compression_s3tc_update
01-07 15:50:51.167: I/OGRE(7691): EXT:GL_NV_timer_query
01-07 15:50:51.167: I/OGRE(7691): EXT:GL_KHR_blend_equation_advanced
01-07 15:50:51.168: I/OGRE(7691): EXT:GL_KHR_blend_equation_advanced_coherent
01-07 15:50:51.168: I/OGRE(7691): EXT:GL_OES_compressed_ETC1_RGB8_texture
01-07 15:50:51.168: I/OGRE(7691): EXT:GL_OES_depth24
01-07 15:50:51.168: I/OGRE(7691): EXT:GL_OES_depth32
01-07 15:50:51.168: I/OGRE(7691): EXT:GL_OES_depth_texture
01-07 15:50:51.168: I/OGRE(7691): EXT:GL_OES_depth_texture_cube_map
01-07 15:50:51.169: I/OGRE(7691): EXT:GL_OES_EGL_image
01-07 15:50:51.169: I/OGRE(7691): EXT:GL_OES_EGL_image_external
01-07 15:50:51.169: I/OGRE(7691): EXT:GL_OES_EGL_sync
01-07 15:50:51.169: I/OGRE(7691): EXT:GL_OES_element_index_uint
01-07 15:50:51.169: I/OGRE(7691): EXT:GL_OES_fbo_render_mipmap
01-07 15:50:51.170: I/OGRE(7691): EXT:GL_OES_get_program_binary
01-07 15:50:51.170: I/OGRE(7691): EXT:GL_OES_mapbuffer
01-07 15:50:51.170: I/OGRE(7691): EXT:GL_OES_packed_depth_stencil
01-07 15:50:51.173: I/OGRE(7691): EXT:GL_OES_rgb8_rgba8
01-07 15:50:51.174: I/OGRE(7691): EXT:GL_OES_sample_shading
01-07 15:50:51.174: I/OGRE(7691): EXT:GL_OES_sample_variables
01-07 15:50:51.174: I/OGRE(7691): EXT:GL_OES_shader_image_atomic
01-07 15:50:51.175: I/OGRE(7691): EXT:GL_OES_shader_multisample_interpolation
01-07 15:50:51.175: I/OGRE(7691): EXT:GL_OES_standard_derivatives
01-07 15:50:51.175: I/OGRE(7691): EXT:GL_OES_surfaceless_context
01-07 15:50:51.176: I/OGRE(7691): EXT:GL_OES_texture_npot
01-07 15:50:51.176: I/OGRE(7691): EXT:GL_OES_texture_float
01-07 15:50:51.176: I/OGRE(7691): EXT:GL_OES_texture_float_linear
01-07 15:50:51.176: I/OGRE(7691): EXT:GL_OES_texture_half_float
01-07 15:50:51.177: I/OGRE(7691): EXT:GL_OES_texture_half_float_linear
01-07 15:50:51.177: I/OGRE(7691): EXT:GL_OES_texture_stencil8
01-07 15:50:51.177: I/OGRE(7691): EXT:GL_OES_texture_storage_multisample_2d_array
01-07 15:50:51.177: I/OGRE(7691): EXT:GL_OES_vertex_array_object
01-07 15:50:51.178: I/OGRE(7691): EXT:GL_OES_vertex_half_float
01-07 15:50:51.178: I/OGRE(7691): EXT:GL_ANDROID_extension_pack_es31a
01-07 15:50:51.178: I/OGRE(7691): **************************************
01-07 15:50:51.178: I/OGRE(7691): *** OpenGL ES 2.x Renderer Started ***
01-07 15:50:51.179: I/OGRE(7691): **************************************
01-07 15:50:51.225: I/OGRE(7691): FBO PF_L8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.250: I/OGRE(7691): FBO PF_A8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.307: I/OGRE(7691): FBO PF_R5G6B5 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.362: I/OGRE(7691): FBO PF_B5G6R5 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.384: I/OGRE(7691): FBO PF_A4R4G4B4 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.407: I/OGRE(7691): FBO PF_A1R5G5B5 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.438: I/OGRE(7691): FBO PF_R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.463: I/OGRE(7691): FBO PF_B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.511: I/OGRE(7691): FBO PF_A8R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.604: I/OGRE(7691): FBO PF_A8B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.637: I/OGRE(7691): FBO PF_B8G8R8A8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.768: I/OGRE(7691): FBO PF_A2R10G10B10 depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.794: I/OGRE(7691): FBO PF_A2B10G10R10 depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.815: I/OGRE(7691): FBO PF_FLOAT16_RGB depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.834: I/OGRE(7691): FBO PF_FLOAT16_RGBA depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.851: I/OGRE(7691): FBO PF_FLOAT32_RGBA depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.868: I/OGRE(7691): FBO PF_X8R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.878: I/OGRE(7691): FBO PF_X8B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.891: I/OGRE(7691): FBO PF_R8G8B8A8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.903: I/OGRE(7691): FBO PF_FLOAT16_R depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.918: I/OGRE(7691): FBO PF_FLOAT32_R depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.928: I/OGRE(7691): FBO PF_FLOAT16_GR depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.939: I/OGRE(7691): FBO PF_FLOAT32_GR depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.949: I/OGRE(7691): FBO PF_R11G11B10_FLOAT depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.963: I/OGRE(7691): FBO PF_R8_UINT depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.977: I/OGRE(7691): FBO PF_R8G8_UINT depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:51.991: I/OGRE(7691): FBO PF_R8G8B8A8_UINT depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:52.001: I/OGRE(7691): FBO PF_R16_UINT depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:52.015: I/OGRE(7691): FBO PF_R16G16_UINT depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:52.028: I/OGRE(7691): FBO PF_R16G16B16A16_UINT depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:52.039: I/OGRE(7691): FBO PF_R32_UINT depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:52.050: I/OGRE(7691): FBO PF_R32G32_UINT depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:52.061: I/OGRE(7691): FBO PF_R32G32B32A32_UINT depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:52.071: I/OGRE(7691): FBO PF_R8_SINT depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:52.083: I/OGRE(7691): FBO PF_R8G8_SINT depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:52.093: I/OGRE(7691): FBO PF_R8G8B8_SINT depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:52.102: I/OGRE(7691): FBO PF_R16_SINT depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:52.119: I/OGRE(7691): FBO PF_R16G16_SINT depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:52.136: I/OGRE(7691): FBO PF_R16G16B16A16_SINT depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:52.147: I/OGRE(7691): FBO PF_R32_SINT depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:52.160: I/OGRE(7691): FBO PF_R32G32_SINT depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:52.172: I/OGRE(7691): FBO PF_R32G32B32A32_SINT depth/stencil support: D0S0 D0S8 D24S0 D32S0 Packed-D24S8 Packed-D32S8
01-07 15:50:52.173: I/OGRE(7691): [GLES2] : Valid FBO targets PF_L8 PF_A8 PF_R5G6B5 PF_B5G6R5 PF_A4R4G4B4 PF_A1R5G5B5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_A8B8G8R8 PF_B8G8R8A8 PF_A2R10G10B10 PF_A2B10G10R10 PF_FLOAT16_RGB PF_FLOAT16_RGBA PF_FLOAT32_RGBA PF_X8R8G8B8 PF_X8B8G8R8 PF_R8G8B8A8 PF_FLOAT16_R PF_FLOAT32_R PF_FLOAT16_GR PF_FLOAT32_GR PF_R11G11B10_FLOAT PF_R8_UINT PF_R8G8_UINT PF_R8G8B8A8_UINT PF_R16_UINT PF_R16G16_UINT PF_R16G16B16A16_UINT PF_R32_UINT PF_R32G32_UINT PF_R32G32B32A32_UINT PF_R8_SINT PF_R8G8_SINT PF_R8G8B8_SINT PF_R16_SINT PF_R16G16_SINT PF_R16G16B16A16_SINT PF_R32_SINT PF_R32G32_SINT PF_R32G32B32A32_SINT
01-07 15:50:52.181: D/OGRE(7691): create internal resources End
0 x

sarath_10
Gnoblar
Posts: 15
Joined: Tue Jun 11, 2013 10:38 am

Re: Android ES3 context recreation issue

Postby sarath_10 » Wed Jan 07, 2015 11:45 am

This problem is not happening if re-create mesh data & materials, after context recreation
0 x

sarath_10
Gnoblar
Posts: 15
Joined: Tue Jun 11, 2013 10:38 am

Re: Android ES3 context recreation issue

Postby sarath_10 » Wed Feb 11, 2015 11:38 am

The issue is happening on all android devices with ES3 enabled ogre libs. I have just created a triangle using manual object. So after the switched to other app and launched this again, the triangle object is not loaded again. But strangely ogre's .mesh objects are reloaded after context reset. Any help on this??
0 x

frostbyte
Orc Shaman
Posts: 715
Joined: Fri May 31, 2013 2:28 am

Re: Android ES3 context recreation issue

Postby frostbyte » Sun Feb 15, 2015 12:05 am

So should i do something else other than _createInternalResources() when app comes to foreground for ES3 ??

does this happens on ES2?
if its not ES3 related stuff, maybe this will help http://www.ogre3d.org/forums/viewtopic.php?f=2&t=82789
0 x
the government took my kudos, now i'm kudosless :?

User avatar
c6burns
Beholder
Posts: 1511
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines

Re: Android ES3 context recreation issue

Postby c6burns » Sun Feb 15, 2015 2:04 am

This doesn't happen in GLES2
0 x

frostbyte
Orc Shaman
Posts: 715
Joined: Fri May 31, 2013 2:28 am

Re: Android ES3 context recreation issue

Postby frostbyte » Sun Feb 15, 2015 2:15 am

mmm...i'm useless today :mrgreen:
happy bug hunting...
0 x
the government took my kudos, now i'm kudosless :?


Return to “Mobile Devices”

Who is online

Users browsing this forum: No registered users and 1 guest