godotengine / FBX2glTF

A command-line tool for the conversion of 3D model assets on the FBX file format to the glTF file format.
Other
311 stars 73 forks source link

Can not import a simple FBX file contains 14 polygons #48

Closed dszhblx closed 6 months ago

dszhblx commented 7 months ago

Godot version

Godot 4.2, FBX2glTF 0.13.1

System information

Windows 10

Issue description

Can not import a simple FBX file contains 14 polygons.

Steps to reproduce

SM_Envr_Road_Road_03.zip 1.unzip SM_Envr_Road_Road_03.zip 2.put SM_Envr_Road_Road_03.fbx into a empty godot project

Minimal reproduction project

test-fbx.zip

dszhblx commented 7 months ago

the fbx file info: 20231207151444

fire commented 7 months ago

https://github.com/godotengine/godot/pull/81746 Can you also try this? Let me now if you need instruction how to download

Edited:

Loaded in ufbx

dszhblx commented 7 months ago

@fire I'm happy to hear that Godot 4.3 will have a new FBX importer. I bought many FBX models from unity assetstore. The current FBX2glTF can handle most FBX models, but a few cannot. Do you have a test build of Godot that includes the UFBX importer? I'm very happy to test whether the FBX models I bought can be imported successfully. I did a test with Godot 3.5 and it can import SM_Envr_Road_Road_03.fbx.

fire commented 7 months ago

Try https://nightly.link/V-Sekai/godot/workflows/runner/vsk-ufbx?preview

dszhblx commented 6 months ago

Try https://nightly.link/V-Sekai/godot/workflows/runner/vsk-ufbx?preview

ufbx is awesome. I tested 92 FBX files and ufbx can import them correctly, including FBX files containing actions. Next I will continue to test other fbx files and will contact you if I encounter problems. Thank you for integrating ufbx into Godot, that's great, can't wait to use it. Since ufbx has no other dependencies, is it possible to integrate ufbx into Godot 4.2?I think it will be a long time before Godot 4.3 is released.

fire commented 6 months ago

The common way that happens is we test in 4.3 then it is cherry picked into 4.2

lyuma commented 6 months ago

I am not able to reproduce the issue: this model imports cleanly in Godot 4.2.1 with latest FBX2glTF: image

If you have double checked FBX2glTF is installed in editor settings, can you please share the output?

Alternatively, it would be helpful to have the output of FBX2glTF directly. Is it possible to put the model and the FBX2glTF.exe in the same directory, open it in a cmd command prompt and type: FBX2glTF -i SM_Envr_Road_Road_03.fbx -b -o SM_Envr_Road_Road_03.glb

(on mac, linux or Git Bash, you will need to add a ./ at the beginning of the command line.)

C:\Users\Home\Downloads>FBX2glTF -i SM_Envr_Road_Road_03.fbx -b -o SM_Envr_Road_Road_03.glb
Warning: could not find a image file for texture: base_color_texture.
Warning: Couldn't open file , skipping file.
Wrote 2481 bytes of binary glTF to SM_Envr_Road_Road_03.glb.

I will close this as not reproducible until further information or output is provided.

dszhblx commented 6 months ago

QQ截图20231227115303 @lyuma

I tested another FBX file, which can be converted to glb QQ截图20231227120609