How do you tile a rectangular image to be used as a material variant?

I want to use a certain image as a material variant for my game, but it is rectangular (and not a perfect multiple of 256). It appears that for some reason, there is no y-value to edit tiling for material variants specifically. This means that the image will stretch out if I don’t turn it into a square.

Is there some way, whether in a photoshopping application like GIMP, that I can make the image into a square? Or make it work properly with material variants? Or am I forced to use Textures for this image?

can i see the image in question?

Sure.

i would edit it to become a square shape (duplicated it to form however many vertically to become a square) and then remove the seams from the edges (if any)

If you still aren’t sure how to do what Sllavv said, I did it for you

2 Likes

Wow, this is very helpful, thank you! I do have one question though: What process did you use to get this? I do have a few other images I’d like to use this for, and I do know how to use an image editor, I just don’t know how to get it to tile seamlessly on image with less favorable dimensions (I have tried doing so multiple times before).

1 Like

Essentially you should be making a square that has a side length of whatever the longer length was in your rectangle, then find how many rectangles would fit into that, and do some resizing to make them fit.

For yours, your rectangle was 1024x364, meaning that your square should be 1024x1024, and roughly 3 rectangles fit into that. Next, you’d resize the height on 3 rectangles to be 341.333 (1024 / 3) and align them all inside your square.

1 Like

Doesn’t that stretch / warp the pixels? I’m looking for a clean way to do this.

1 Like

I use medibang for all my graphic design.

Here’s how I made the image square