How do i tile an image on to a shape

So, i’m making a 3d renderer (because i can) and I want to be able to tile a texture on to a shape in the renderer. I am using the PShape (or whatever it’s called). How to I tile an image on to one shape?

-Grim

Use :

PShape shape;
PImage img;

shape.setTexture(img);
2 Likes

That only puts it on ONCE, I want it TILED. MORE THAN ONCE.

Hi @Grimtin10 Please show a little bit more courtesy. Can you post what you have coded so far so we can assist you with any errors please?

4 Likes

Check this :

https://processing.org/reference/textureWrap_.html

3 Likes

Ah, thanks. Good answer!

1 Like