armory3d / armory

3D Engine with Blender Integration
https://armory3d.org
zlib License
3.05k stars 316 forks source link

Legacy Shaders not working on Android #1445

Open DarthVernus opened 4 years ago

DarthVernus commented 4 years ago

ZTE BLADE A5 PRO (Android 5.0.1, opengl es 2.0)

10/25 20:12:43: Launching 'app' on ZTE ZTE BLADE A5 PRO. $ adb shell am start -n "tech.kode.kore/tech.kode.kore.KoreActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Connected to process 29721 on device 'zte-zte_blade_a5_pro-900501921622'. Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. V/Activity: calling onCraete for activity: tech.kode.kore W/ContextImpl: Failed to ensure directory: /storage/sdcard0/Android/obb/tech.kode.kore W/ContextImpl: Failed to ensure directory: /storage/sdcard0/Android/data/tech.kode.kore/files V/threaded_app: Creating: 0xadc48d40 V/threaded_app: Config: mcc=0 mnc=0 lang=ru cnt=RU orien=1 touch=3 dens=240 keys=1 nav=1 keysHid=3 navHid=0 sdk=21 size=2 long=2 modetype=1 modenight=1 V/threaded_app: Start: 0xadc48d40 I/: JNIHelper has not been initialized. Call init() to initialize the helper V/threaded_app: activityState=10 V/Activity: calling onResume for activity: tech.kode.kore V/threaded_app: Resume: 0xadc48d40 V/threaded_app: activityState=11 V/threaded_app: InputQueueCreated: 0xadc48d40 -- 0xadc39d40 V/threaded_app: APP_CMD_INPUT_CHANGED Attaching input queue to looper V/threaded_app: NativeWindowCreated: 0xadc48d40 -- 0xb0248f08 V/threaded_app: APP_CMD_INIT_WINDOW V/threaded_app: WindowFocusChanged: 0xadc48d40 -- 1 I/Kinc: Starting KoreHL E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392 W/Kinc: Uniform projectionMatrix not found. E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 410 E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392 W/Kinc: Uniform projectionMatrix not found. E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 410 GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392 W/Kinc: Uniform projectionMatrix not found. E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 410 W/libOpenSLES: class OutputMix interface 0 requested but unavailable MPH=43 E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392 W/Kinc: Uniform N not found. E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392 W/Kinc: Uniform WVP not found. E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392 W/Kinc: Uniform sunCol not found. E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392 W/Kinc: Uniform sunDir not found. E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392 W/Kinc: Uniform LWVP not found. E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392 W/Kinc: Uniform shadowsBias not found. E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392 W/Kinc: Uniform shirr not found. E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392 W/Kinc: Uniform envmapStrength not found. E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 410 GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392 W/Kinc: Uniform LWVP not found. E/Kinc: GL Error 1281 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\RenderTargetImpl.c 219 E/Kinc: GL Error 1286 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\OpenGL.cpp 455 E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 209 GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 209 E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 209 E/Kinc: GL Error 1286 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\OpenGL.cpp 455 GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 209 GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 209

...

HUAWEI MediaPad T3 10 (Android 7.0, opengl es 3.0)

10/25 20:10:10: Launching 'app' on HUAWEI AGS-W09. $ adb shell am start -n "tech.kode.kore/tech.kode.kore.KoreActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Waiting for process to come online... Connected to process 26123 on device 'huawei-ags_w09-4JPNU18119107785'. Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. I/: power log dlsym ok I/art: Late-enabling -Xcheck:jni I/HwCust: Constructor found for class android.app.HwCustActivityImpl I/HwSecImmHelper: mSecurityInputMethodService is null I/: JNIHelper has not been initialized. Call init() to initialize the helper I/HwPointEventFilter: do not support AFT because of no config I/Adreno-EGL: : EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_LA.UM.5.5.R1.07.01.01.269.023_msm8937_64_refs/tags/AU_LINUX_ANDROID_LA.UM.5.5.R1.07.01.01.269.023__release_AU (Ib1167d03fb) OpenGL ES Shader Compiler Version: XE031.09.00.04 Build Date: 07/10/17 Mon Local Branch: Remote Branch: refs/tags/AU_LINUX_ANDROID_LA.UM.5.5.R1.07.01.01.269.023 Local Patches: NONE Reconstruct Branch: NOTHING W/Adreno-ES20: : open failed: errno 13 I/Kinc: Starting KoreHL E/Adreno-SC: : GLSL line 1: Error: #version number unsupported

: GLSL line 1: Error: #version is followed by spurious tokens E/Adreno-SC: : GLSL line 1: Error: #version number unsupported : GLSL line 1: Error: #version is followed by spurious tokens W/Adreno-ES20: : GL_INVALID_OPERATION E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 392 W/Kinc: Uniform projectionMatrix not found. W/Adreno-ES20: : GL_INVALID_OPERATION E/Kinc: GL Error 1282 D:\SOFT\DEV\Armory3d\ArmorySDK\Kha\Kinc\Backends\Graphics4\OpenGL\Sources\Kore\PipelineStateImpl.c 410 E/Adreno-SC: : GLSL line 1: Error: #version number unsupported : GLSL line 1: Error: #version is followed by spurious tokens E/Adreno-SC: : GLSL line 1: Error: #version number unsupported : GLSL line 1: Error: #version is followed by spurious tokens Armory: Latest Version renderpath: Mobile scene: cube and light NDK 20
DarthVernus commented 4 years ago

Does anyone have the same problem?

N8n5h commented 4 years ago

Can you share a project file to reproduce the issue?

atship commented 4 years ago

@N8n5h Well, I encountered the true errors like this

{9C24CE50-00B2-4528-8FD2-9BD71481ED58}

I checked the essl files and find it says #version 110 es but the wikipedia says that must be #version 110 https://en.wikipedia.org/wiki/OpenGL_Shading_Language#Versions

Maybe it is the real reason causes the errors.