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

GLTF+Separate using GLTF Object component with UnityGLTF has THREE.GLTFLoader: Couldn't load texture errors in local server #138

Open
6 tasks done
ROBYER1 opened this issue Mar 30, 2023 · 4 comments
Labels
bug Something isn't working third party issue

Comments

@ROBYER1
Copy link

ROBYER1 commented Mar 30, 2023

Describe the bug 💬

I imported a model in Assets > Models > F35B and imported it into the scene, added the GLTF Object component to it and ran in local server. on load I get:

debug_overlay.ts?v=b0654be5:50 THREE.GLTFLoader: Couldn't load texture tex/F35_v1_FBX_F35_Interior_Normal.png

I did click fix all textures on the UnityGLTF import menu in inspector to fix imported texture colour space on first import. The model is a gltf+separate file which might be the cause, a .glb embedded of the same model works fine the same workflow, this only happens with GLTF+separate.

image

Operating System 👩‍💻

Windows

What browsers are you seeing the problem on? 🏄‍♂️

Firefox, Chrome

Editor Version 🎲

2022.x

Needle Exporter version

2.67.6-pre

Project Info (Unity only) 📜

{
  "ExportInfoGameObjectName": "Export Info",
  "ExportInfoGameObjectIsEnabled": true,
  "UnityProjectPath": "C:/Unity_Projects/EatonInteractive/Assets",
  "UnityVersion": "2022.2.12f1",
  "SceneName": "MainScene",
  "ProjectPath": "Needle/MainScene",
  "ProjectDirectoryExists": true,
  "ProjectIsInstalled": true,
  "NeedleEngineInstalled": true,
  "HasNodeInstalled": true,
  "NodeVersion": "v18.15.0",
  "NpmVersion": "9.6.2",
  "HasTokTxInstalled": true,
  "HasMinimumToktxVersionInstalled": true,
  "RenderPipeline": "URP-HighFidelity (UnityEngine.Rendering.Universal.UniversalRenderPipelineAsset)",
  "GzipEnabled": false,
  "NeedleEngineExporterVersion": "2.67.6-pre",
  "NeedleEngineVersion": "2.67.6-pre",
  "NeedleEngineExporterPath": "Packages/com.needle.engine-exporter/package.json",
  "NeedleEnginePath": "Packages/com.needle.engine/package.json",
  "FileStats": "By Type:\r\n\t.glb →  x 2 = 54.7 mb\r\n\t.gltf →  x 2 = 0.0 mb\r\n\t.png →  x 17 = 51.6 mb\r\n\t<b>Total = 106.4 mb</b>\r\n----\r\nBy Directory:\r\n\tassets →  x 21 = 106.4 mb\r\n",
  "NeedleComponentsInScene": [
    "Needle.Engine.ExportInfo",
    "Needle.Engine.Codegen.ComponentGenerator",
    "Needle.Engine.Deployment.DeployToGlitch",
    "Needle.Engine.Components.GltfObject",
    "Needle.Engine.EditorSync.NeedleEditorSync",
    "Needle.Typescript.GeneratedComponents.MouseIncrementRotate"
  ],
  "TypeCacheIsDirty": false,
  "TypeScriptTypes": []
}

Steps to reproduce 🔢

1. Import the attached model to a project, on import inspector click fix all textures, drag/drop it into a Needle Unity scene, add GLTF Object component on it
2. Hit play, see the F35_v1 model in the scene with the GLTF Object component on it is the cause

Reproduction ♻

Model: https://drive.google.com/file/d/1wZS7Rw9YdREAD3JnPxyH8qXgr_kQqbx1/view?usp=share_link

Project: https://drive.google.com/file/d/1Vub06sgblEiMJO-TjOMvSzkIgQJf9hmX/view?usp=share_link

Validations 🩹

@ROBYER1 ROBYER1 added the untriaged Newly reported issue label Mar 30, 2023
@hybridherbst
Copy link
Contributor

Seems like some textures aren't copied along. Thanks for the report.

@marwie
Copy link
Member

marwie commented Apr 9, 2023

I think this might be the issue where UnityGLTF doesnt register the textures as dependencies and we've seen this when creating a BugReport were textures were also missing (because they were not registered as dependencies?)

@marwie marwie added bug Something isn't working and removed untriaged Newly reported issue labels Apr 9, 2023
@ROBYER1
Copy link
Author

ROBYER1 commented Apr 9, 2023

I can probably find the full repro if you guys need it but the bug reporter misses those separate texture dependencies for sure which has probably affected this bug report

@marwie
Copy link
Member

marwie commented Jul 10, 2023

Hello @ROBYER1 do you still have this issue?

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

No branches or pull requests

3 participants