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!
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