Obi Official Forum
Bug / Crash shader error on build (android) - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Bug / Crash shader error on build (android) (/thread-3645.html)



shader error on build (android) - Daniel2022 - 15-11-2022

When using the editor to test my VR application obi rope works great!
However, when completing a build I get an error (attached)

'Shader error in 'Obi/Particles': invalid subscript '_ShadowCoord' at line 100 (on gles3)'

The application still works, however - the rope objects are not rendering. 
We are using the Focus 3, an Android-based VR headset. My unity version is 2021.3.3f1. Any help is greatly appreciated!


RE: shader error on build (android) - josemendez - 15-11-2022

(15-11-2022, 11:51 AM)Daniel2022 Wrote: When using the editor to test my VR application obi rope works great!
However, when completing a build I get an error (attached)

'Shader error in 'Obi/Particles': invalid subscript '_ShadowCoord' at line 100 (on gles3)'

The application still works, however - the rope objects are not rendering. 
We are using the Focus 3, an Android-based VR headset. My unity version is 2021.3.3f1. Any help is greatly appreciated!

Hi Daniel!

Simulation and rope rendering should still work regardless of shader errors, since a shader only affects how a mesh is rendered, not whether it's rendered or not. A mesh using a shader which couldn't compile will still be rendered, albeit using Unity's shader error color (bright pink). This particular shader is only used for debugging particles and has nothing to do with rope rendering, so both issues (shader error and rope not rendering) are completely unrelated.

Have you installed the required dependencies of the Burst backend as per the manual?
http://obi.virtualmethodstudio.com/manual/6.3/setup.html
http://obi.virtualmethodstudio.com/manual/6.3/backends.html

If these are not installed, Obi will try to fall back to the native Oni backend, which isn't available on all platforms (and which is considerably slower on mobile devices, including Android systems). Depending on the specific Android device, it might not work at all, which may be causing ropes to completely disappear from your build.

kind regards,


RE: shader error on build (android) - Daniel2022 - 15-11-2022

Thanks so much that worked! all sorted now, just had to install the jobs/collections package and change the mode but all working. Thanks for the prompt reply.