Thanks for your answer! I’m sorry, I’m new to p5.js and I don’t quite understand how I should transform the texture to solve my issue.
I should have posted this with my question above, but here is the model and texture I’ve tried:
The texture() function seems to ignore the UV data (texture coordinates) from the OBJ file and just wrap it around the model in an arbitrary way. As you can see the face is rendered to the model’s neck, the tail texture ends up on its torso and so on.
Is there an easy way to access the correct info from the model via the p5 library or would I have to read the info from the OBJ file myself and remap the texture using WebGL directly?
I’m sorry if this is a very noob question. I come from using 3D software and engines like Unreal and Unity, so I’ve never been confronted with this issue before. I might have totally misunderstood your answer as well.