in my application i want to display a terrain ground and i decided to use a tiledGround with a seamless texture. See this PG: https://playground.babylonjs.com/#QHU36T#10
With little subdivisions the result is quite good, but when i increase the subdivisions (for example 20:20 like in the PG above) the result is less realistic and if you zoom out a little bit you can see the grid, the discontinuity from a tile and the other. Is there some technique to make a more realistic tiledGround?
@jerome was the best at this he did plenty of demos for it.
For a start you could use patches instead of a single tile to avoid repeating the pattern all too much. Then there is the way the tile is made here. It is seamless and not really. The edges all have light color and the interior is darker. It would already look better without this difference in level (of course it would also look flatter but next you can work with lights and your other objects, eventually grass, rocks and it will come more lively again)
Thanks @mawa, is there any PG example with patches?
I don’t know. I’m not a specialist. May be best waiting for @jerome 's input on this. Though I do know of the use of a group (or patch) of tiles you can use instead of single tile. However never tried this in BJS.
Uses irregularities and the mixMaterial script
Stay Safe, gryff
@Mercurio : and here is the texture I created for the castle example that defines the “patches” :
red is grass, green is grass/rock, blue is path, black is cliff rock
Stay Safe, gryff
Yes, exactly what I was thinking about. Thx for finding the script for me. Will certainly use it one day. Already bookmarked. Have a great day,
Thank you very much!