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

Supported File Formats #5

Open
Wicked-Prick opened this issue Dec 28, 2022 · 10 comments
Open

Supported File Formats #5

Wicked-Prick opened this issue Dec 28, 2022 · 10 comments

Comments

@Wicked-Prick
Copy link

Good day. The Readme states that only the .gltf format is currently supported. I have tried uploading .fbx and .obj files and they also work correctly. Do you plan to disable support for other formats other than .gltf in the future?

@kovacsv
Copy link
Owner

kovacsv commented Dec 28, 2022

For import almost all assimp formats are supported, and will be in the future. The limitation is about the format you can get the result after conversion. For that only glTF and JSON is supported at the moment.

@Wicked-Prick
Copy link
Author

Wicked-Prick commented Jan 17, 2023

Good afternoon. Regarding the storage of information about the structure of materials.
Are there any plans in the future to bring this structure to a common one? For example, I want to get a PBR from an fbx file, for this I will have to use existing formulas to deduce the missing properties, i.e.: metalic, roughness, etc. It would be nice to be able to get these properties immediately at the output of assimp.

@kovacsv
Copy link
Owner

kovacsv commented Jan 17, 2023

Hey, assimpjs is just an interface for assimp, it can only show you the format assimp provides the model in.

@jradler65
Copy link

Hi, I'm having trouble importing a .step file using assimpjs as it throws an import_error. I have tested this using the browser_dragdrop_test.html file. I'm not sure if this error is related to the result limitations you mentioned earlier or if it is caused by assimp itself. Could you please provide some insight?

@kovacsv
Copy link
Owner

kovacsv commented Apr 29, 2023

As far as I know assimp doesn't fully support step file import. It's somehow part of the ifc import, but the details is not very clear to me, and ifc is turned off in assimpjs since it increases the wasm size a lot.

For a fully functional step and iges importer I recommend you to take a look at occt-import-js: https://github.com/kovacsv/occt-import-js

@jradler65
Copy link

jradler65 commented May 2, 2023

Thanks for your response and the suggestion of using the occt-import-js. I actually already tried it and its STEP-importer works well in my web-application. However for larger files it takes a decent amount of time even with minimized deflection properties. I was therefore hoping for a faster solution. Nonetheless, it's good to know that assimp doesn't fully support the import of STEP-files and that ifc is currently turned off in assimpjs. Would turning it on enable the import of STEP-files?

I appreciate your insights and if you happen to have further information or resources that could help me speed up the STEP-importer, I would be really grateful for your input.

@kovacsv
Copy link
Owner

kovacsv commented May 3, 2023

You can comment out this line and rebuild the package to try out IFC importer:

set (ASSIMP_BUILD_IFC_IMPORTER OFF CACHE BOOL "")

I don't have any information about the quality of it for step files, but maybe it's worth asking the assimp developers.

@jradler65
Copy link

Unfortunately, commenting out this line did not fix the importer. However, I noticed that the size of the wasm file only increased by about 1MB, bringing the total size to 5.6MB. This seems unusual because you mentioned a "dramatic decrease" in the file size. I'm not certain if this is the expected result.

@kovacsv
Copy link
Owner

kovacsv commented May 4, 2023

Maybe my memory failed me, I remembered the change as dramatic. 🙂

@jradler65
Copy link

Thanks for letting me know. I'll continue exploring other potential solutions and if I find a fix, I'll be sure to share it with you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants