We are about to switch to a new forum software. Until then we have removed the registration on this forum.
The explanations I have seen for u v are all for 3d images. I'm just trying to use textures in a 2d image, and I don't know what to use for u and v. The following does work:
size(200, 200, P2D); PImage img = loadImage("/Users/dave/bricks.jpeg"); beginShape(); texture(img); vertex(50, 75, 50, 75); vertex(150, 75, 150, 75); vertex(150, 150, 150, 150); vertex(50, 150, 50, 150); endShape();
Here I've just used u=x and v=y. Will that always work?