Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

Unity 5 p1 : mask problem

Discussion in 'Android' started by Felipe_Silva, Mar 20, 2015.

  1. Felipe_Silva

    Felipe_Silva

    Joined:
    Jan 16, 2015
    Posts:
    13
    Hi, i have this problem on this device.

    Unity 5 x64 p1.

    ------------------------------------------------------------ BAD ----------------------------------------------------------------------------
    Device : LGE LG-D625
    SO : Android OS 4.4.2 / API-19 (KOT49I/D62510b.1417786952)
    Image:
    Screenshot_2015-03-20-15-44-05.png

    Screenshot_2015-03-20-15-44-46.png


    ------------------------------------------------------------- GOOD --------------------------------------------------------------
    Device : samsung GT-I9195, TCL 6016A, Sony D2533, samsung SM-G7105L, samsung GT-I9100
    SO:
    - Android OS 4.2.2 / API-17 (JDQ39/I9195UBUBNA2)
    - Android OS 4.3 / API-18 (JLS36C/vBE1-0)
    - Android OS 4.4.2 / API-19 (19.2.A.0.391/eP7_Zg)
    - Android OS 4.3 / API-18 (JLS36C/G7105LUBUANB1)
    Image:
    Screenshot_2015-03-20-15-59-17.png


    the component is:

    upload_2015-3-20_16-46-45.png


    thx.
     
  2. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    191
    It looks like a problem with the stencil buffer. Is this a Tegra4i device? Due to the changed framebuffer setup in Unity 5 we usually need the GL_OES_packed_depth_stencil extension. Can you please check if this extension is available on the LG-D625?
    We already have special case for Tegra 3. Could be that we also need that for Tegra 4.
     
  3. Felipe_Silva

    Felipe_Silva

    Joined:
    Jan 16, 2015
    Posts:
    13
    yeah, is Tegra4i.

    sorry, i dont know about that extension. i will try to check it.
     
  4. Felipe_Silva

    Felipe_Silva

    Joined:
    Jan 16, 2015
    Posts:
    13
    i found this.

    URL: http://delphigl.de/glcapsviewer/gles_generatereport.php?reportID=270
    -----------------------------------------------------------------------------------------------------------------------------------------------
    Report for LG-D625
    device LG-D625
    os 4.4.2
    screenwidth 540
    screenheight 924
    cpucores 4
    cpuspeed 1734
    cpuarch armv7l
    submissiondate 2014-11-21 02:04:31
    submitter g2 mini. d625
    OpenGL ES renderer
    GL_VENDOR NVIDIA Corporation
    GL_RENDERER NVIDIA Tegra
    GL_VERSION OpenGL ES 2.0 17.01342
    GL_SHADING_LANGUAGE_VERSION OpenGL ES GLSL 1.00
    OpenGL ES 2.0 capabilities
    GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 16
    GL_MAX_CUBE_MAP_TEXTURE_SIZE 4,096
    GL_MAX_FRAGMENT_UNIFORM_VECTORS 1,024
    GL_MAX_RENDERBUFFER_SIZE 4,096
    GL_MAX_TEXTURE_IMAGE_UNITS 16
    GL_MAX_TEXTURE_SIZE 4,096
    GL_MAX_VARYING_VECTORS 11
    GL_MAX_VERTEX_ATTRIBS 16
    GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0
    GL_MAX_VERTEX_UNIFORM_VECTORS 280
    GL_MAX_VIEWPORT_DIMS 4,096
    GL_NUM_COMPRESSED_TEXTURE_FORMATS 14
    GL_NUM_SHADER_BINARY_FORMATS 0
    GL_NUM_PROGRAM_BINARY_FORMATS 0
    OpenGL ES 3.0 capabilities
    not supported
    OpenGL ES Extensions (82)
    GL_EXT_debug_marker
    GL_EXT_robustness
    GL_EXT_texture_format_BGRA8888
    GL_OES_compressed_ETC1_RGB8_texture
    GL_OES_depth_texture
    GL_OES_depth24
    GL_OES_EGL_image
    GL_OES_EGL_image_external
    GL_OES_fbo_render_mipmap
    GL_OES_rgb8_rgba8
    GL_OES_standard_derivatives
    GL_OES_texture_half_float
    GL_OES_texture_half_float_linear
    GL_OES_vertex_half_float
    GL_OES_vertex_array_object
    GL_EXT_texture_filter_anisotropic
    GL_OES_EGL_sync
    GL_EXT_debug_label
    GL_OES_depth_texture_cube_map
    GL_EXT_sRGB
    GL_EXT_color_buffer_half_float
    GL_EXT_blend_minmax
    GL_OES_surfaceless_context
    GL_NV_depth_nonlinear
    GL_NV_draw_path
    GL_NV_draw_texture
    GL_NV_texture_npot_2D_mipmap
    GL_OES_mapbuffer
    GL_NV_draw_buffers
    GL_EXT_texture_compression_latc
    GL_NV_texture_compression_latc
    GL_EXT_texture_compression_dxt1
    GL_EXT_texture_compression_s3tc
    GL_NV_texture_compression_s3tc
    GL_NV_read_buffer
    GL_NV_shader_framebuffer_fetch
    GL_NV_copy_image
    GL_NV_fbo_color_attachments
    GL_EXT_bgra
    GL_EXT_read_format_bgra
    GL_EXT_unpack_subimage
    GL_NV_pack_subimage
    GL_NV_texture_compression_s3tc_update
    GL_NV_read_depth
    GL_NV_read_stencil
    GL_NV_uniform_buffer_object
    GL_NV_map_buffer_range
    GL_NV_EGL_stream_consumer_external
    GL_EXT_separate_shader_objects
    GL_NV_copy_buffer
    GL_NV_3dvision_settings
    GL_KHR_debug
    GL_EXT_texture_storage
    GL_NV_pixel_buffer_object
    GL_NV_framebuffer_blit
    GL_NV_non_square_matrices
    GL_NV_explicit_attrib_location
    GL_NV_smooth_points_lines
    GL_EXT_occlusion_query_boolean
    GL_NV_occlusion_query_samples
    GL_NV_timer_query
    GL_EXT_texture_rg
    GL_EXT_texture_sRGB_decode
    GL_EXT_frag_depth
    GL_EXT_shadow_samplers
    GL_NV_framebuffer_multisample
    GL_NV_shadow_samplers_cube
    GL_NV_texture_array
    GL_NV_blend_equation_advanced
    GL_NV_blend_equation_advanced_coherent
    GL_NV_draw_instanced
    GL_NV_generate_mipmap_sRGB
    GL_NV_instanced_arrays
    GL_NV_packed_float
    GL_NV_packed_float_linear
    GL_NV_secure_context
    GL_NV_shadow_samplers_array
    GL_NV_sRGB_formats
    GL_NV_texture_border_clamp
    GL_NV_EGL_image_external_YUV
    GL_NV_framebuffer_sRGB
    GL_EXT_multiview_draw_buffers
    Compressed texture formats (14)
    ETC1_RGB8_OES
    COMPRESSED_RGB_S3TC_DXT1
    COMPRESSED_RGBA_S3TC_DXT1
    OMPRESSED_RGBA_S3TC_DXT3
    COMPRESSED_RGBA_S3TC_DXT5
    COMPRESSED_LUMINANCE_LATC1_NV
    COMPRESSED_SIGNED_LUMINANCE_LATC1_NV
    COMPRESSED_LUMINANCE_ALPHA_LATC2_NV
    COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_NV
    0x8c4c
    0x8c4d
    0x8c4e
    0x8c4f
    0x88ee
    Binary shader formats (0)
    Binary program formats (0)
    EGL

    EGL_VENDOR Android
    EGL_VERSION 1.4 Android META-EGL
    EGL Extensions (33)
    EGL_KHR_image
    EGL_KHR_image_base
    EGL_KHR_gl_texture_2D_image
    EGL_KHR_gl_texture_cubemap_image
    EGL_KHR_gl_renderbuffer_image
    EGL_KHR_fence_sync
    EGL_ANDROID_image_native_buffer
    EGL_KHR_lock_surface
    EGL_KHR_create_context
    EGL_EXT_create_context_robustness
    EGL_KHR_wait_sync
    EGL_KHR_get_all_proc_addresses
    EGL_ANDROID_presentation_time
    EGL_ANDROID_recordable
    EGL_KHR_image_pixmap
    EGL_KHR_reusable_sync
    EGL_KHR_config_attribs
    EGL_KHR_surfaceless_context
    EGL_KHR_stream
    EGL_KHR_stream_fifo
    EGL_KHR_stream_producer_eglsurface
    EGL_KHR_stream_consumer_gltexture
    EGL_KHR_stream_cross_process_fd
    EGL_NV_system_time
    EGL_NV_depth_nonlinear
    EGL_NV_native_query
    EGL_NV_post_convert_rounding
    EGL_NV_3dvision_surface
    EGL_NV_sync
    EGL_NV_perfmon
    EGL_NV_stream_sync
    EGL_IMG_context_priority
    EGL_EXT_buffer_age
    EGL Client APIs (1)
    OpenGL_ES
     
  5. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    191
    Thanks, it looks like GL_OES_packed_depth_stencil is not available on Tegra 4 and so we don't have a stencil buffer which is needed work masking. Can you please report this as a bug (https://unity3d.com/unity/qa/bug-reporting)?
     
  6. Felipe_Silva

    Felipe_Silva

    Joined:
    Jan 16, 2015
    Posts:
    13
    sure. no problem.
     
  7. Felipe_Silva

    Felipe_Silva

    Joined:
    Jan 16, 2015
    Posts:
    13
    done. Case 684101
     
  8. CPXTom

    CPXTom

    Joined:
    Apr 24, 2010
    Posts:
    113
    Sorry to bring back an old topic, but was this issue resolved? I'm seeing this issue on an Asus Transformer Pad, which is a Tegre 4 device and does not include the extension GL_OES_packed_depth_stencil. Using Unity 5.1.2f1
     
  9. Rujula

    Rujula

    Joined:
    Jan 31, 2013
    Posts:
    1
    Hi! I'm having the same problem with a Gigabyte Tegra Note 7, which is powered by Tegra 4. I also NEED this fix. I'm using Unity 5.1.3f1, and yesterday I tried Unity 5.2, but no luck. In fact, with Unity 5.2 it went even worse: textures with transparencies (alpha) did not render or appeared in black.
     
  10. multix

    multix

    Joined:
    Aug 5, 2013
    Posts:
    16
    Any update on this?

    Is the conclusion that Unity is broken for all TEGRA 4 devices?
     
  11. multix

    multix

    Joined:
    Aug 5, 2013
    Posts:
    16
    Broken for Cintiq Companion Hybrid 13HD
    with TEGRA4 and Android 4.2.1
    I am working with Unity 5.1.4

    Can I actually exclude TEGRA 4 devices from Google Play Store??
     
  12. CPXTom

    CPXTom

    Joined:
    Apr 24, 2010
    Posts:
    113
    We ended up excluding Tegra 4 devices
     
  13. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    191
    Unity 5.3 should support using stencil with RenderTextures on Tegra 3 and 4.
    I'm not sure if this actually fixes this problem because I have not seen a bug report that includes a repro project.
     
  14. WonderWorkshop

    WonderWorkshop

    Joined:
    Aug 28, 2014
    Posts:
    6
    Hi, I tried Unity 5.3.0f4 with a tegra 4 android tablet (Nabi DreamTab). But the app hang when opening a panel with Mask. Here is the log I got:

    12-09 15:03:14.717 17062-17082/com.xxx.xxx D/NvOsDebugPrintf﹕ NvRmPrivFlush: NvRmChannelSubmit failed (err = 196623, SyncPointID 22, SyncPointValue = 479170)

    12-09 15:03:14.717 17062-17082/com.xxx.xxx D/NvOsDebugPrintf﹕ *** Timeout! Submit exceeded threshold 10000ms. ***