# Best way to do triplanar projection on landscape master materials?

**URL:** <https://forums.unrealengine.com/t/best-way-to-do-triplanar-projection-on-landscape-master-materials/2399793>\
**Category:** World Creation\
**Tags:** unreal-engine, editor, Rendering, question\
**Created:** [March 19, 2025, 2:03am UTC](https://forums.unrealengine.com/t/best-way-to-do-triplanar-projection-on-landscape-master-materials/2399793 "2025-03-19T02:03:38Z")\
**Posts on this page:** 1\
**Showing post:** 55

<div class="post-metadata">

**Author:** ![Frenetic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frenetic/32/1142542_2.png) [@Frenetic](https://forums.unrealengine.com/u/Frenetic)\
**Post date:** [March 26, 2025, 5:11pm UTC](https://forums.unrealengine.com/t/best-way-to-do-triplanar-projection-on-landscape-master-materials/2399793/55 "2025-03-26T17:11:57Z")

</div>

> [@blyxzen](#):
>
> That said, I’ve tried stochastic-sampling once, and I wasn’t happy with the results. It created a bunch of small seams which were visible when you got close (like a player walking on the ground).

Try Witchdev’s solution:

> [@Randomized tiling function, eliminate repeating patterns in your textures!](https://forums.unrealengine.com/t/randomized-tiling-function-eliminate-repeating-patterns-in-your-textures/124519):
>
> Thanks to this marketplace thread: [wip-stochastic-height-blending-node-for-material-graph-never-see-tiling-textures-again](https://forums.unrealengine.com/unreal-engine/marketplace/1602319-wip-stochastic-height-blending-node-for-material-graph-never-see-tiling-textures-again) I found out about this paper: [Procedural Stochastic Textures by Tiling and Blending](https://eheitzresearch.wordpress.com/738-2/). I implemented the tiling method shown in the paper (the main point of the paper is actually some kind of “Histogram-preserving blending” but I wasn’t interested in that part since I knew I could use my existing height information for blending), I wasn’t entirely satisfied because I couldn’t …

He has two paths, one with a jittered triple-sampling and one with a temporal-single sample. Either can be combined with Alex’s method, and the latter is done via UV’s so can be slotted right in with Alex’s solution to preserve that single sample for a triplanar, untiled single-sample texture.

It’s what drives this: [Unreal 5.5.3 - Full Lumen, Nanite, UltraDynamicSky - Album on Imgur](https://imgur.com/gallery/unreal-5-5-3-full-lumen-nanite-ultradynamicsky-aAwTwNO) (the lightning stuff is all UDS, so worth it..)

Since temporal effects will show up in height/displacement, the single-sample method doesn’t work well for those effects. Either displacement on a landscape or a heightmesh you’ll see the seams all out of shape as the shader flits between two heights. However you can use the first method with the 3 jittered samples and get the same results and without any temporal-seams. Then feed that math to where-ever you need to and the temporal-sample to PBR (ideally). It’s a little more costly but will ensure the bumps match what is painted onto them by the temporal-pass.

---

_[View the full topic](https://forums.unrealengine.com/t/best-way-to-do-triplanar-projection-on-landscape-master-materials/2399793)._
