# How do I get an obj file with one and only one texture?

**URL:** https://discourse.processing.org/t/how-do-i-get-an-obj-file-with-one-and-only-one-texture/49437
**Category:** Coding Questions
**Created:** [September 23, 2026, 5:22pm UTC](https://discourse.processing.org/t/how-do-i-get-an-obj-file-with-one-and-only-one-texture/49437 "2026-09-23T17:22:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![EricRogerGarcia](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/ericrogergarcia/32/21029_2.png) [@EricRogerGarcia](https://discourse.processing.org/u/EricRogerGarcia)
#### Post date: [September 23, 2026, 5:22pm UTC](https://discourse.processing.org/t/how-do-i-get-an-obj-file-with-one-and-only-one-texture/49437/1 "2026-09-23T17:22:07Z")

</div>

Loading an **obj file** (with **loadModel()**) and then specifying the texture (with **texture()**) is not possible if there is no texture (in case the colors are specified in the mtl file) or if there are several images for textures in P5js or Processing.

**So how do we do it?**

I just realized that you can use the **Blockbench** (_ **it’s FOSS** _) program to import (or make yourself a new shape) an obj file and use it to easily redo the texture.

**It exports as an obj with only one texture!**

[It works : test here](https://editor.p5js.org/EricRogerGarcia/sketches/29N3u756s)

Yes, it’s just a first try with Blockbench (and just a cube) but it’s an export to an OBJ file with the texture done with the program.

Besides, it doesn’t seem too complicated to use!

🙂

**N.B.** I just happen to see [this video](https://youtu.be/2WwztiNmPAQ)
