Pretty sure i've answered this question half a dozen times in slack, but i can't find any permanent FAQ or documentation for it.
Summary of points to cover:
.mtl file and make sure that paths to textures are relative, not absolute.BEGIN DRAFT
Troubleshooting a 3D model
3D models are created in many different programs, exported to different formats, and often have problems that will show up in some viewers (e.g. A-Frame or THREE.js) but not in the editor that created them (e.g. Blender).
Steps for troubleshooting a 3D model:
Format-specific issues:
OBJ/MTL — MTL files often have incorrect paths to textures. Open the MTL file in any plaintext editor and look for absolute paths (C:\\foo\bar\baz.png) that should be relative (bar\baz.png).
FBX — THREE.FBXLoader supports only ASCII FBX files, not binary.
END DRAFT
Patched together from various SO posts:
Sounds good. We need a standalone guide for Adding Models which this would fit in well.
Thanks for your work on this. Sometimes it's hard to make sense why a model isn't showing up correctly, and this will prove really useful. For example, I have a collada model with some squishy stretch marks which may be related to bump/normal maps. I'll remove them tonight and see if the problem persists.
Hi @donmccurdy, if I understand it correctly this issue is open to add a new section on https://aframe.io/docs/0.5.0/introduction/faq.html page, may be right after "Which 3D model formats work?" section?
After I filed this issue, we have added a troubleshooting section to the docs: https://aframe.io/docs/0.5.0/introduction/models.html#troubleshooting
So it's not in the FAQ, but the content is there. I think this can be closed. But we could also add a link to this content from the Why does my asset (e.g., image, video, model) not load? section maybe.
Most helpful comment
BEGIN DRAFT
Troubleshooting a 3D model
3D models are created in many different programs, exported to different formats, and often have problems that will show up in some viewers (e.g. A-Frame or THREE.js) but not in the editor that created them (e.g. Blender).
Steps for troubleshooting a 3D model:
Format-specific issues:
OBJ/MTL — MTL files often have incorrect paths to textures. Open the MTL file in any plaintext editor and look for absolute paths (
C:\\foo\bar\baz.png) that should be relative (bar\baz.png).FBX — THREE.FBXLoader supports only ASCII FBX files, not binary.
END DRAFT
Patched together from various SO posts: