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

Question: Have you tried to couple this with Threee.js #15

Open
kimkulling opened this issue Apr 30, 2024 · 1 comment
Open

Question: Have you tried to couple this with Threee.js #15

kimkulling opened this issue Apr 30, 2024 · 1 comment

Comments

@kimkulling
Copy link

Hi,
I am the maintainer of the Asset-Importer-Lib Repo. Thanks for all your great work here. I am impressed that you have addressed the wasm issue already.
I am currently thinking about integrating a js-based renderer to our model repo. Rendering the stuff would be easy by using trree.js. But I need to intregrate omehow the aiScene intermedfiate format to three.js.

So here somes my question: Have you alreasy some experiences with this approach?

Thanks in advance!
Kim Kulling

@kovacsv
Copy link
Owner

kovacsv commented Apr 30, 2024

Hi @kimkulling, it's nice to see you here, and thank you for the wonderful assimp library.

Earlier I've made an experiment to build a three.js based viewer. It exists on a branch, but never made it to main because of the limited time I had for this experiment. You can find the code here: https://github.com/kovacsv/assimpjs/tree/viewer/docs

My approach was to convert to glb with assimp and visualize it with three.js. For that a trick is needed to load a binary buffer as glb: https://github.com/kovacsv/assimpjs/blob/viewer/docs/source/viewer.js#L56.

Probably it would be a better approach to use the assimp json format directly because some data is lost during GLB conversion, too.

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

2 participants