# Spawn and Place actors on Surface of Mesh using Texture

**URL:** <https://forums.unrealengine.com/t/spawn-and-place-actors-on-surface-of-mesh-using-texture/252895>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [September 27, 2021, 9:33am UTC](https://forums.unrealengine.com/t/spawn-and-place-actors-on-surface-of-mesh-using-texture/252895 "2021-09-27T09:33:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdbenson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jdbenson](https://forums.unrealengine.com/u/jdbenson)\
**Post date:** [September 27, 2021, 9:33am UTC](https://forums.unrealengine.com/t/spawn-and-place-actors-on-surface-of-mesh-using-texture/252895/1 "2021-09-27T09:33:56Z")

</div>

Hi,

I’m aiming to spawn actors on the surface of a globe using a B&W texture as a mask. The final goal would be to be able to animate the mask to have the meshes grow and recede over time.

I looked at Procedural Foliage but currently, I can’t get it to spawn on the underside of the globe. Also, the exclusion and inclusion layers look like they will only use landscape Materials.

At a guess, blueprints would be the answer but I have no idea where to start.

Thanks in advance for any help.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/6/265aac771f585644a9e839df59e123f73e14791e.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 27, 2021, 10:35am UTC](https://forums.unrealengine.com/t/spawn-and-place-actors-on-surface-of-mesh-using-texture/252895/2 "2021-09-27T10:35:05Z")

</div>

It’s pretty easy to make a BP that places HISMs on a sphere. I can share a bit of code if you like.

The bit with the texture is more a fiddle. I guess a line trace and read the color might do the trick.

As for the moving the texture - don’t do it 😉 Even if all your meshes were blueprint and reading the texture constantly to keep pace, it would be a performance nightmare. Much better to just rotate the planet.

---

<div class="post-metadata">

**Author:** ![jdbenson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jdbenson](https://forums.unrealengine.com/u/jdbenson)\
**Post date:** [September 27, 2021, 10:51am UTC](https://forums.unrealengine.com/t/spawn-and-place-actors-on-surface-of-mesh-using-texture/252895/3 "2021-09-27T10:51:03Z")

</div>

Thanks for the reply,

I’ve managed to source a BP to place objects on a sphere now but still missing the texture part

As for performance, I’m not 100% concerned with real-time at the moment as the final output will just be an image sequence. So along as Final render can be faster than a redshift/Arnold render its a win.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 27, 2021, 11:36am UTC](https://forums.unrealengine.com/t/spawn-and-place-actors-on-surface-of-mesh-using-texture/252895/4 "2021-09-27T11:36:10Z")

</div>

This is getting close, but no cigar:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/a/9ba5a9cd3271e47a4da801c0d48a4d1e4aeffa12.jpeg "WTF Is? Find Collision UV in Unreal Engine 4 ( UE4 )") ](https://www.youtube.com/watch?v=yVgpya8gamg)

I think it would be easiest to just spawn enough BPs to cover the globe. They can choose what they will look like ( rock, tree etc ), or be told at placement. Then the blueprints just do a downward trace waiting for the texture to move. If they’re not on a white area, go invisible.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 27, 2021, 11:41am UTC](https://forums.unrealengine.com/t/spawn-and-place-actors-on-surface-of-mesh-using-texture/252895/5 "2021-09-27T11:41:21Z")

</div>

Apparently Rama’s plugin does it:

> [@(39) 's Extra Blueprint Nodes for You as a Plugin, No C++ Required!](https://forums.unrealengine.com/t/39-ramas-extra-blueprint-nodes-for-you-as-a-plugin-no-c-required/3448):
>
> Dear Community, star2 Newest Awesome star2 (In Complimentary (no cost) Victory Plugin!) Now You Can Get the Text Output (STDOUT or STDERR) from any .exe program, straight into Unreal Engine! is the output of zap a video compression commandline tool ([Handbrake](https://handbrake.fr/)), zap launched by your UE game & delivered straight into the Unreal Engine Viewport! zap rose Using only 3 Blueprints nodes! rose zap[Full Details and UE4 C++ Code](https://forums.unrealengine.com/t/39-ramas-extra-blueprint-nodes-for-you-as-a-plugin-no-c-required/3448/2644) MIT Software License for The…
