# Is there a way to land on non-landscape terrain using PCG?

**URL:** <https://forums.unrealengine.com/t/is-there-a-way-to-land-on-non-landscape-terrain-using-pcg/1179167>\
**Category:** Off-Topic\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [May 26, 2023, 10:10am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-land-on-non-landscape-terrain-using-pcg/1179167 "2023-05-26T10:10:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![OsakoEiichiro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OsakoEiichiro](https://forums.unrealengine.com/u/OsakoEiichiro)\
**Post date:** [May 26, 2023, 10:10am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-land-on-non-landscape-terrain-using-pcg/1179167/1 "2023-05-26T10:10:26Z")

</div>

I would like to use PCG to do planting placement.  
After looking at the tutorial, I found out that it uses a landscape as the ground.  
However, in my environment I use a regular Static Mesh Actor as the ground.

Is it possible to ground a Static Mesh Actor to the ground using PCG?

---

<div class="post-metadata">

**Author:** ![Extrone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/extrone/32/906554_2.png) [@Extrone](https://forums.unrealengine.com/u/Extrone)\
**Post date:** [May 26, 2023, 10:16am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-land-on-non-landscape-terrain-using-pcg/1179167/2 "2023-05-26T10:16:22Z")

</div>

You could try this :

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/4/ab4f83d9499724dfdf58a3a3857dbab9b30b3dbc.jpeg "Unreal 5.2 Preview PCG Tutorial - Part 6 - Sampling Meshes") ](https://www.youtube.com/watch?v=qKlWZjfkuRY)

---

<div class="post-metadata">

**Author:** ![OsakoEiichiro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OsakoEiichiro](https://forums.unrealengine.com/u/OsakoEiichiro)\
**Post date:** [May 26, 2023, 12:29pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-land-on-non-landscape-terrain-using-pcg/1179167/3 "2023-05-26T12:29:50Z")

</div>

Thanks for the helpful advice!  
I was able to ground the Static Mesh Actor.

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/2/a22ef8ee5cf658ba9329e982762f16bff6f25a7f.jpeg)

Let me ask you one more question.  
If possible, I would like to have multiple points within the extent of the ground without increasing ground vertices.  
Is there such a method?

 ![2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/e/15e14bd351dffa657ea05d76223f15bb81fd41e4.jpeg)

---

<div class="post-metadata">

**Author:** ![OsakoEiichiro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OsakoEiichiro](https://forums.unrealengine.com/u/OsakoEiichiro)\
**Post date:** [August 14, 2023, 1:22am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-land-on-non-landscape-terrain-using-pcg/1179167/5 "2023-08-14T01:22:19Z")

</div>

Not the best way, but I solved it myself.

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/b/8cb2b2cb1d7a33d923ac6a74616adc202ddbb053.jpeg)

By using Mesh Sampler and setting the Sampling Method to Poisson Sampling, you can change the density of the static mesh to be placed without depending on the number of polygons.

However, it has some drawbacks.  
・It is necessary to specify Static Mesh every time  
・ Uniform density (Is there a way to change it?)

Since the first post has been resolved, I will close it here.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 13, 2023, 1:23am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-land-on-non-landscape-terrain-using-pcg/1179167/6 "2023-09-13T01:23:08Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
