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 -> https://docs.unrealengine/latest/INT/Engine/Landscape/Editing/SculptMode/index.html#retopologize :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.

https://www.youtube/playlist?list=PLXePZFopdLKeBfbRnaojJj3sx7FAlRFbM

If you want to read some more about triplanar texturing, this is a good start: https://developer.nvidia/gpugems/GPUGems3/gpugems3_ch01.html
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.

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.

1 Like

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: ?v=6J6ZfV8uM0Y&t=788s