Hello All,
I have an issue I am trying to figure out how to approach best.
Situation (with Images):
I have a flat Mesh (plane) with 100 Quads (10x10). I have a script that raises a Quad and creates the quads that make the walls of this newly raised Quad. Now I have a pillar like thing on my terrain. The top side is always a grass texture, while the walls should be dirt or rock textures. This all seems to work for now (with small glitches ), but I would like this Mesh to look more realistic.
I create my mesh by generating it procedurally and creating the triangles & quads and applying texture to them using the uv coordinates. My actual texture file is a 64x64 image. It has 4 tiles (32x32 each). One grass, one dirt, one rock & one snow.
Problem:
How do I make the texture from the top Quad (grass) spill over to the walls a little bit ?
Currently is like this :
Would like it like this :
Side Note : In the above I drew a black line on the edge to demonstrate the idea, but ideally the edges of the cubes would not be so visible in order to make the terrain more life like. It would be perfect if i could make it look more rounded around the edges ( from my research I suppose I can do that with Normal Maps. )
Back to the texture spilling over : I tried searching for other approaches all together, but did not find them or could not wrap my mind around them.
Question:
- How can I achieve the desired effect described above, or
- Considering what I am trying to do, what other approaches are there for creating a more realistic textured terrain.
I am assuming that a programatic solution would be best because the tile types might increase, so creating textures for all possible combinations and applying them would be a bit too much (ex. rock with spilled over snow or grass, sand with spilled over grass, snow or dirt and so on.
I hope I explained the situation clear. Please help. Any input is highly appreciated.