TDA4VM-Q1: 3D Object Depth Error Issue when Porting OpenGL ES Graphics Program to TDA4VM

Part Number: TDA4VM-Q1
Other Parts Discussed in Thread: TDA4VM

HW: TDA4VM EVM

SW: ti-processor-sdk-linux-edgeai-j721e-evm-09_02_00_05

 

Problem Description:

We ported a 3D graphics program developed using OpenGL ES to the TDA4VM and encountered a depth error issue with 3D car model components. Specifically, components that are supposed to be in the back are covering components in the front. This appears to be caused by the GPU drawing based on layer order (Z-order) instead of the actual depth. See the normal and abnormal images below:

 

Normal:

Abnormal:

 

This program ran without any issues on platforms such as Ubuntu PC, Qualcomm, and AutoChips. We would like to ask if this could be caused by a specific characteristic of the TDA4's GPU?

 

We have already referenced the parameter settings in the srv_demo within the TDA4 Vision Apps, changing EGL_DEPTH_SIZE from 24 to 16 and adding glDepthFunc(GL_LEQUAL), but the issue still persists. Please assist us by providing troubleshooting or resolution suggestions.