Shader problem in iOS Quicklook

When I download the GLB file from the cloud and build an app, everything is ok on Android, but on iOS devices there is an error regarding shaders.


[Model downloaded from Needle Cloud]
(https://www.holofiction.hr/playground/webar/needle/gun/uploads_files_4559366_vhs2_v2_parts_basic.glb)

Hello Tomislav Štefan! It seems like you’re encountering issues with GLB models specifically on iOS devices when using Quicklook, possibly due to shader compatibility. Let’s tackle this step-by-step:

  1. Verify GLB Compatibility: Ensure the GLB file is fully compatible with the iOS Quicklook specifications. You can use online viewers to check for standard issues: Needle Viewer.

  2. Limit Shader Complexity: iOS tends to be more stringent about shader complexity. Simplify shaders as much as possible or use default PBR shaders present in the GLTF standards.

  3. Check Model Textures & Materials: Textures or materials referenced in the GLB might not be suitable. Make sure you use JPEG or PNG formats and avoid rare or unsupported types.

  4. Log Errors: If iOS provides error messages, try to capture them for specifics on what needs fixing.

  5. Look for Known iOS Issues: Check if there are known issues or updates on iOS that might be affecting Quicklook.

  6. Software or Libraries Version: Ensure that the software used for exporting the GLB is up-to-date as well as libraries like three.js if applicable.

To further assist you, I could use more specific error details you are getting on iOS. If possible, provide logs or detailed error messages.

24 replies left
thread_xcs7oYlL9PQc1pt5Dxz0o4aB
Reply to this message to continue the conversation

Hi, just to be clear: this error happens when you try to enter AR on iOS?

To understand what’s going on here, we need more info please:

  • a bug report project or a web link where we can reproduce the issue
  • which Needle version you’re using
    Thanks!

Yes when I click AR button.
I am using 4.1.0-alpha.13

It seems the diffuse textures are not converted correctly, but I can’t tell why from your webpage. Can you please submit a bug report?

Thanks, can you send me a link where I can submit a bug report?

Do you want me to send you Project files?

Could you upload a bugreport ? (via menu item “Needle Engine/Report a bug”)

Thank you


I also have problems with the display of SRGB 2D textures under iOS. The texture is displayed black in AR (IOS).

Here to test:
https://cloud.needle.tools/edit/24L37z11a5ab31

Hi, we can not access the cloud edit page, please send a direct link to the asset (via the 3 dots menu)

here is link to mine

https://cloud.needle.tools/view?file=8s9xWMqK8-grlPH-world

Hi, it doesnt reproduce on my end with your model so far.

Which iOS versions are you using?

Could you please:

  • Try to send the whole stacktrace of the error message again
  • Upload a bugreport using the menu item in Unity (“Needle Engine/Report a bug”)

iOS 16.7.10

Sending bug report right now

1 Like

Thanks, got it

Thanks, it reproduces now

1 Like

Could you try updating to the latest alpha? It should be fixed there

ok will try it now