Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Models import as flat pink models with different appearance per eye (Android/Meta Quest) #725

Open
atkulp opened this issue Oct 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@atkulp
Copy link

atkulp commented Oct 28, 2024

Describe the bug
Importing models from a C# MonoBehavior results in models that are with solid pink (no shading, like a silhouette) with each eye seeing the model at a different offset. Models appear fine in Windows Player, but not in Android build running on Meta Quest.

Left eye sees it in its correct location.
The right eye sees it offset to the right and it moves around based on head movement.

I'm not doing anywhere in my app that renders differently per eye and I don't manipulate the instantiated model.

Files
This happens with every model I've tried to load, but here's an example.

petroglyphs.zip

glTF Validator shows a few warnings that don't seem relevant, but no errors.

To Reproduce
C# Code:

public async void LoadModelFile(string modelFilename)
{
    try
    {
        GLTFast.GltfImport gltf = new ();

        var success = await gltf.LoadFile(modelFilename);
        if (success)
        {
            GameObject go = new();
            success = await gltf.InstantiateMainSceneAsync(go.transform);

            if (success)
            {
                return;
            }
            else
            {
                Debug.LogError(">> Error adding to scene", this);
                UnityEngine.Object.Destroy(go);
                go = null;
            }
        }
        else
        {
            Debug.LogError(">> Load failed", this);
        }

        Debug.LogError(">> Success", this);
    }
    catch (Exception e)
    {
        Debug.LogError(e.Message, this);
    }
}

Expected behavior
I expect it to load with correct shape, textures, and stereo view.

Screenshots
If you can do cross-view 3D (cross your eyes) you can align the grid and see how each eye has the model shifted a bit.
Gltfast model load issue

Desktop (please complete the following information):

  • glTFast version: 6.4.0
  • Unity Editor version: 2022.3.27f1
  • Render Pipeline and version: Universal Render Pipeline 14.0
  • Platform: Windows 11

additionally (if significant for the bug):

  • Device: Meta Quest 3 / Android 12.0 (12L, API Level 32)

Additional context
n/a

@atkulp atkulp added the bug Something isn't working label Oct 28, 2024
@snaik27
Copy link

snaik27 commented Nov 8, 2024

I'm also seeing this, adding my specs here too in case it helps

  • glTFast version 6.9.0
  • Unity Editor 2022.3.28f1
  • Render Pipeline: Built-in Render Pipeline
  • Platform: Windows 11
  • Device: Meta Quest 3
  • Target OS: Android API Level 34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants