Skip to content

[Bug] 3D model not showing even after applying file:// fix + Depth & Occlusion not working #22

@althaibani

Description

@althaibani

❗ Issue: 3D Model Not Showing + Depth/Occlusion Not Working

Hi there,

I'm using the plugin to load a .glb model from the app's internal storage using:

  • type: fileSystemAppFolderGLB
  • or type: fileSystemAppFolderGLTF2

I tried the fix that was suggested in the buildModelNode function inside ArView.kt, specifically adding the file:// prefix:

kotlin
val documentsPath = viewContext.getApplicationInfo().dataDir
fileLocation = "file://" + documentsPath + "/app_flutter/" + nodeData["uri"] as `String`

**This fix makes sense because sceneview-android expects URIs prefixed with file://.

❌ However, even after applying this fix, the model still does not appear in the AR view.**

🔎 What I’ve confirmed:
The file path is correct and exists (file://data/user/0/<my.app.id>/app_flutter/test.glb)

The camera and AR view initialize normally

No crash or error is shown

The model simply never appears

❗ Also: Depth & Occlusion are not working
Even though I'm enabling depth like this:

config.depthMode = Config.DepthMode.AUTOMATIC
config.occlusionMode = Config.OcclusionMode.AUTOMATIC

I still don’t see any Depth-based Occlusion applied.

Tested on Android (Pixel device that supports ARCore Depth API)

Using SceneView with correct permissions

3D models are always rendered on top of real-world objects, even if something should be occluding them.

📌 Summary
3D model fails to appear even after file:// fix

Depth/Occlusion don’t seem to work even when enabled

Can you please confirm:

Is there anything else needed to render models from local storage?

Are there known issues with SceneView occlusion or Depth on Android?

Let me know if I can help debug this further or create a reproducible example.

Thanks for your work on this plugin!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions