-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
OBJ import missing textures #36173
Comments
Can you reproduce this with OBJ files created with another program (such as Blender)? |
Yes. Now I made two obj files in Wings3D. Both have a cube with 3 different materials. The first file has a mesh-group for every material and the second file has only one mesh-group with 3 material assigns. Both files won't import correctly. It is even worse than the obj file from GZDoomBuilder. Now NO texture is loaded and assigned at all. The same error messages as before. Files can be downloaded here: |
Made a few more tests. Sometimes Godot will import the OBJ files without an error, and the materials are correctly applied and sometimes they are missing and the error messages make absolutely no sense at all. The OBJ-Import seems still very buggy which is really surprising as the OBJ Format is the simplest of all 3D-content formats. |
@zzador To alleviate issues related to automatic triangulation, it's recommended to use the Triangulate modifier and check Apply Modifiers in Blender's export dialog. This way, you can preview how triangulation will look directly from Blender. |
Godot's Output: ERROR: No loader found for resource: res://MAP01/WALL1.PNG. |
Found the same error - I'm not applying any materials in blender, just exporting some text that's been extruded.
|
@aario Please upload a minimal reproduction project so we can make sure this is actually the same issue. We don't know the exact cause of this bug yet, so I don't know how this can be fixed. |
I would like to. But the problem is I'm quite new to this 3d technology altogether (Although having years of experience in web development). So I have bought and downloaded this: |
My problem was with the source file. I used https://github.com/Plattar/gltf-exporter to export Unity assets from inside unity to gltf and now gltf is correctly imported. Althugh those fbx assets which I could not import to godot propely, I wasn't able to import into unity as well. |
Regarding the original bug, this seems to be happening because of the order in which the assets are imported.
Which would make this issue a duplicate of #28203. |
Im using Godot 3.2 and I have made a little One-Room-Test-Map in GZDoomBuilder with 3 different textures and exported the map to an OBJ file. When importing the OBJ file into Godot it loads 2 of the 3 textures and assigns them to the corresponding walls/floors/ceilings but the third texture (WALLS.PNG) is not loaded. The walls that use this texture stay grey and Godot-Output says:
Couldn't open MTL file 'MAP01_MAP01.mtl', it may not exist or not be readable
.No loader found for resource: res://MAP01/WALL1.PNG
The MTL-File exists and the two other textures are successfully loaded from there, so the first error message makes absolutely no sense.
The texture WALL1.PNG is loaded correctly afterwards as I can edit, see and even manually assign the texture. The textures location is the same as the other two textures and it gets references the same way in the "mtl" file as the other two textures.
I have uploaded the generated OBJ-File and Textures to file-upload:
https://www.file-upload.net/download-13901101/MAP01.zip.html (bugsquad edit: mirror)
The text was updated successfully, but these errors were encountered: