Download

Stretched Material on Slopes/Hills/Mountains

Hi,

Is there a simple way to paint textures on a Landscape without them being stretched when the surface isn’t flat.
I read something about triplanar mapping but I am new to materials and shaders. Isn’t there an easy way to fix that?

Here you see my problem in the pic

You could use the “Retopologize” tool in the landscape editor -> Sculpt Mode | Unreal Engine Documentation :slight_smile:

That’S not exactly what I am looking for. I dont want to change the landscape.

Triplanar mapping is a good bet, though I’m not sure how well it would work in your specific case; it’s definitely worth a shot, though.

If you want to read some more about triplanar texturing, this is a good start: Chapter 1. Generating Complex Procedural Terrains Using the GPU
The section you’re looking for is down at the bottom.

Ok that really helped me. Thanks.

I got it to work. I basically made it from this tutorial.
b24af70db5fcc58199583f4cc4890ff6a9872b93.png

Glad to hear you got it working. If possible, you should maybe post some screens of the finished product and material in case others come across the same issue.

There is also a worldalignedtexture node now that makes triplanar mapping a cinch.

I would definitely be interested to see how this approach affected the final result.

Sorry to post so late.

Here is a screenshot. I changed the grass to a stone texture.

I used a heightmap with only black and white for the landscape I had to retopologize a little and smoothed it because in a 90 degree angle it wouldn’t work but I don’t know why

You can’t get pure 90 degree angles out of a traditional heightmap.

this looks good and is the effect I’m trying to achieve but my textures always seem stretched

Edit: actually after recreating the material from post #5 (which I didn’t see at first) i effectively solved the problem and all is good.

For a simple solution: https://www.youtube.com/watch?v=6J6ZfV8uM0Y&t=788s