I need repeat one sprite over the entire surface of the plane, like on this image:

But my example is not working properly:
What could be my mistake?
I need repeat one sprite over the entire surface of the plane, like on this image:

But my example is not working properly:
What could be my mistake?
Hey there, I just set the texture to use wrapping mode and played with uScale and vScale to get it looking more like the target image (new code at lines 18-22).
PS and you could remove the subMeshes and multi material like below unless you need them for something else. ![]()
And if, when creating a plane, turn on backUVs and frontUVs
so that only a piece of the sprite is duplicated, is that possible?
Yep it is but IDK what part of the texture youâre trying to repeat though? ![]()
Hmm the texture changed but still the same problem that IDK what part of the texture you want to repeat and how many times? With that info/screenshot of the desired outcome I could make a quick example to show how to do it but otherwise IDK how to help⌠![]()
As per @Blake comment and always relevant answers:
Edit: Hereâs a rough example for the values youâll want to play with
Although there are other (more complex) solutions. There (nearly) always are ![]()
Heya, so this morning I made a little material plugin to try to make this kind of tiling easier to do.
And then played with these new tiling settings a bit: start, end and tiles. Theyâre set at line 25 like below:
mat.uvTiling.start.x = 0.52;
mat.uvTiling.end.x = 0.7;
mat.uvTiling.tiles.x = 5.5;
mat.uvTiling.start.y = 0;
mat.uvTiling.end.y = 0.29;
mat.uvTiling.tiles.y = 1;
So for v itâs using the top 29% of the texture and tiling once. For u it uses approximately the third fourth of the texture and tiles 5 and a half times. It looks better when the tile is seamless so I chose start and end values where the texture is white (ie the same color).
But note the formula for the uv tiling still needs more testing and fine tuning (ie I just made it up as I went along), but so far it seems to work ok and gives us more settings to play with. ![]()