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

How does the material system work ? #4

Open FacoBackup opened 1 year ago

FacoBackup commented 1 year ago

Hi, I've been trying to understand for the past couple of days how the material system works in this port. Yes, the resulting JSON has a material property, but it is basically unusable due to the lack of information around it.

It would be very helpful if there was some pathway to understanding it.

Thanks in advance.

kovacsv commented 1 year ago

The resulting JSON is exactly the same what assimp writes as JSON output. Basically it's the JSON representation of the internal model format. This doc can be a good starting point to understand it: https://assimp-docs.readthedocs.io/en/latest/usage/use_the_lib.html#materials.