creativeIKEP / BlazePoseBarracuda

BlazePoseBarracuda is a human 2D/3D pose estimation neural network that runs the Mediapipe Pose (BlazePose) pipeline on the Unity Barracuda with GPU.
Apache License 2.0
199 stars 32 forks source link

WebGL Support #9

Open sh0ckwav opened 2 years ago

sh0ckwav commented 2 years ago

Is it possible to build this to WebGL? I tried without really changing anything and get the following shader errors:

Shader error in 'Hidden/BlazePose/Visualizer': SV_VertexID semantic is not supported on GLES 2.0 at line 145 (on gles) Shader error in 'Hidden/BlazePose/Visualizer': SV_VertexID semantic is not supported on GLES 2.0 at line 152 (on gles) Shader error in 'Hidden/BlazePose/Visualizer': SV_VertexID semantic is not supported on GLES 2.0 at line 159 (on gles) Shader error in 'Hidden/BlazePose/Visualizer': SV_VertexID semantic is not supported on GLES 2.0 at line 166 (on gles)

Are there some player settings I can adjust or will this not be possible?

Thanks in advance!

creativeIKEP commented 2 years ago

Hello, @sh0ckwav .

I have not considered that BlazePoseBarracuda is build for WebGL. The error messages you show are happened in demo shader script. I wrote demo scripts for Windows running. You may be able to build for WebGL when demo scripts are updated.

sh0ckwav commented 2 years ago

Thanks for the response @creativeIKEP !

I was able to get it to compile by adding #pragma target 3.5 to the SubShader Passes based on the docs and it runs but does nothing ¯_(ツ)_/¯