kovacsv / assimpjs

The emscripten interface for the assimp library that allows you to import 40+ 3D file formats in the browser.
MIT License
117 stars 18 forks source link

Set specific format as primary file - IRR for example #9

Closed GitHubDragonFly closed 1 year ago

GitHubDragonFly commented 1 year ago

Hi Viktor.

Just to ask if your code could be adjusted to deal with a specific format as a primary format?

For example, IRR files appear to be a scene that can contain other file formats (like X or IRRMESH) and this PR in the ASSIMP repository shows what an IRR scene would look like.

As per the mentioned example, if I try to use my viewer with it then it's a hit and miss of which file format is to be treated as primary, the following are the examples:

GitHubDragonFly commented 1 year ago

This seems to have alphabetical approach and only 1 importer is ever used - tested with the following slightly renamed files:

I don't really expect any solution for this, just curious if there is any possible way to actually have it working properly.

GitHubDragonFly commented 1 year ago

I will close this topic but if anyone ever comes up with some solution then do reply here.