Load obj files with mtl colours

Hi, I have some models in obj format, with mtl files specifying colours for faces (like this). p5 doesn’t support support mtl files, however.

I could write a bit of code to process the mtl files, but what’s the best way to apply the colours to the model? Is it a shader? e.g. How can i get each face of a loaded object (.obj file) · Issue #3882 · processing/p5.js · GitHub or is there a way to do it with (shader as) texture, or lighting/material? e.g. htt ps://github.com/processing/p5.js/issues/6117

1 Like