kovacsv / Online3DViewer

A solution to visualize and explore 3D models in your browser.
https://3dviewer.net
MIT License
2.31k stars 513 forks source link

Fbx model missing some feature #433

Closed HNQX closed 7 months ago

HNQX commented 7 months ago

Describe the bug

I have a house model, subffix fbx. It goes well in 3d viewer application(on windows 10), like: the result

But on o3dv, some windows of the house model miss, look like below: bad result

To Reproduce Here is the model file ,plz help me check out, thank u!!! Model LINK

PS; I tried more online viewer ,and they have the same issue

GitHubDragonFly commented 7 months ago

My FBX viewer which is three.js based shows the same.

Assimp on the other hand does show it properly.

Here is re-exported version of your model, which is bigger in size but does show properly in Online 3D Viewer.

hoceewfz.zip

GitHubDragonFly commented 7 months ago

Just to mention that I used my Assimp Viewer to load the original file, export it to OBJ + MTL format and then load these OBJ + MTL files and export it to FBX.

GitHubDragonFly commented 7 months ago

Here is another FBX version of your file, this time imported as a GLB file into the Blender and then exported as FBX.

It is far smaller, even a little bit smaller than the original file.

You should check both versions just to make sure that your mesh names are still correct.

hoceewfz-blender-export.zip

HNQX commented 7 months ago

Here is another FBX version of your file, this time imported as a GLB file into the Blender and then exported as FBX.

It is far smaller, even a little bit smaller than the original file.

You should check both versions just to make sure that your mesh names are still correct.

hoceewfz-blender-export.zip

Thanks so much! It's very nice of you helping me

HNQX commented 7 months ago

Assimp Viewer

How to get the GLB file before imported into Blender? Just rename the fbx file or convert using some model convert tool?

GitHubDragonFly commented 7 months ago

See the picture below, which shows export options available in the Assimp Viewer.

You might need to use this viewer multiple times to get a certain format. You could also use other of my viewers since they have some export options available as well.

Your original FBX file did load in the Assimp Viewer properly but was causing errors during some exports.

So I just used OBJ + MTL export first and that worked fine. You can then reload these OBJ + MTL exported files into the Assimp Viewer or even OBJ Viewer and then export the model to GLB.

Just experiment with all these viewers to see what works for you.

Assimp - Export Options

GitHubDragonFly commented 7 months ago

I think that my explanation above was actually related to me trying to re-export your FBX file to FBX format again.

Just load your FBX file into the Assimp Viewer and then try straight GLB export (it should work).