# Load obj files with mtl colours

**URL:** <https://discourse.processing.org/t/load-obj-files-with-mtl-colours/42825>\
**Category:** Coding Questions\
**Created:** [September 25, 2023, 6:23am UTC](https://discourse.processing.org/t/load-obj-files-with-mtl-colours/42825 "2023-09-25T06:23:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![discuss9128](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@discuss9128](https://discourse.processing.org/u/discuss9128)\
**Post date:** [September 25, 2023, 6:23am UTC](https://discourse.processing.org/t/load-obj-files-with-mtl-colours/42825/1 "2023-09-25T06:23:44Z")

</div>

Hi, I have some models in obj format, with mtl files specifying colours for faces (like [this](https://webglfundamentals.org/webgl/lessons/webgl-load-obj-w-mtl.html)). 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](https://github.com/processing/p5.js/issues/3882) 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
