I am currently working on a Qt-based application running on a system with an i.MX8 (Apalis) board, using EGLFS as the display platform. The application utilizes 3D graphics, but I am encountering an issue where **3D images are rendered with shadows the gradiation of the black colour are obvious they suppose to make a 3d effect **
this part of the service launching the qt app
Environment=QT_QPA_PLATFORM=eglfs
Environment=QT_QPA_EGLFS_INTEGRATION=eglfs_viv
Environment=QT_QPA_EGLFS_FORCE888=1
Environment=QT_QPA_EGLFS_DEPTH=32
Environment=QT_QPA_EGLFS_FORCEVSYNC=1
#Environment=QT_QPA_EGLFS_DEBUG=1
#Environment=QSG_INFO=1
#Environment=QT_DEBUG_PLUGINS=1
Environment=XDG_RUNTIME_DIR=/tmp/runtime-root
i also did this in layer.conf i added DISTRO_FEATURES : remove = " x11"
in qtbase_git.bbappend i added
# Enable eglfs support in Qt
PACKAGECONFIG:append = " eglfs gles2"
here are some logs
root@apalis-imx8-recovery-mode:~# cat pixii.log | grep -Ei "opengl|egl|qsg|glcontext"
Apr 28 17:42:26 apalis-imx8-recovery-mode Pixii_App_1[244]: EGLFS: Failed to open /dev/fb0
Apr 28 17:42:26 apalis-imx8-recovery-mode Pixii_App_1[244]: EGLFS: Can't continue without a display
Apr 28 17:42:27 apalis-imx8-recovery-mode systemd[1]: Stopped Launch Pixii App with EGLFS.
Apr 28 17:42:27 apalis-imx8-recovery-mode systemd[1]: Started Launch Pixii App with EGLFS.
Apr 28 18:06:10 apalis-imx8-recovery-mode Pixii_App_1[674]: qt.scenegraph.general: Loading backend opengl
Apr 28 18:06:10 apalis-imx8-recovery-mode Pixii_App_1[674]: Could not create scene graph context for backend 'opengl' - check that plugins are installed correctly in /usr/lib/plugins
Apr 28 18:06:10 apalis-imx8-recovery-mode Pixii_App_1[674]: qt.scenegraph.general: QSG: basic render loop
Apr 28 18:06:10 apalis-imx8-recovery-mode Pixii_App_1[674]: qt.scenegraph.general: opengl texture atlas dimensions: 1024x1024
Apr 28 18:06:10 apalis-imx8-recovery-mode Pixii_App_1[674]: qt.scenegraph.general: GL_VERSION: OpenGL ES 3.2 V6.4.3.p4.398061
Apr 28 18:06:10 apalis-imx8-recovery-mode Pixii_App_1[674]: qt.scenegraph.general: GL_EXTENSIONS: GL_ANDROID_extension_pack_es31a GL_EXT_blend_minmax GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_copy_image GL_EXT_discard_framebuffer GL_EXT_draw_buffers GL_EXT_draw_buffers_indexed GL_EXT_draw_elements_base_vertex GL_EXT_frag_depth GL_EXT_geometry_point_size GL_EXT_geometry_shader GL_EXT_gpu_shader5 GL_EXT_multi_draw_arrays GL_EXT_multi_draw_indirect GL_EXT_multisampled_render_to_texture GL_EXT_primitive_bounding_box GL_EXT_read_format_bgra GL_EXT_robustness GL_EXT_sRGB GL_EXT_shader_implicit_conversions GL_EXT_shader_io_blocks 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_type_2_10_10_10_REV GL_EXT_unpack_subimage GL_KHR_blend_equation_advanced GL_KHR_debug GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_OES_EGL_sync GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_copy_image GL_OES_depth24 GL_OES_depth32 GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_fragment_precision_high GL_OES_geometry_point_size GL_OES_geometry_shader GL_OES_get_program_binary GL_OES_gpu_shader5 GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_primitive_bounding_box GL_OES_required_internalformat GL_OES_rgb8_rgba8 GL_OES_sample_shading GL_OES_sample_variables GL_OES_shader_image_atomic GL_OES_shader_io_blocks GL_OES_shader_multisample_interpolation GL_OES_standard_derivatives GL_OES_surfaceless_context GL_OES_tessellation_point_size GL_OES_tessellation_shader GL_OES_texture_border_clamp GL_OES_texture_buffer GL_OES_texture_cube_map_array GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_npot GL_OES_texture_stencil8 GL_OES_texture_storage_multisample_2d_array GL_OES_vertex_array_object GL_OES_vertex_half_float GL_OES_vertex_type_10_10_10_2 GL_VIV_direct_texture
root@apalis-imx8-recovery-mode:~#