# Generating Height Map from static meshes.

**URL:** <https://forums.unrealengine.com/t/generating-height-map-from-static-meshes/1324672>\
**Category:** Asset Creation\
**Tags:** unreal-engine, question\
**Created:** [October 6, 2023, 9:44pm UTC](https://forums.unrealengine.com/t/generating-height-map-from-static-meshes/1324672 "2023-10-06T21:44:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [October 7, 2023, 8:31pm UTC](https://forums.unrealengine.com/t/generating-height-map-from-static-meshes/1324672/2 "2023-10-07T20:31:48Z")

</div>

Hey there @Ryucarta1! Are you just trying to get depth information based on everything landscape + static meshes? You could get depth from a SceneCapture2D like the user does in this thread:

> [@How to capture scene depth into an image and then sample it?](https://forums.unrealengine.com/t/how-to-capture-scene-depth-into-an-image-and-then-sample-it/573213):
>
> I need to capture scene depth for my level, top down view. I am using Scene Capture 2D component placed on the level and this is what I am getting: [[2022 06 02 21 40 11] ](https://www.youtube.com/watch?v=PkQpupwp-g0) When I worked with depth in other engines and 3D apps, it was always a grayscale image with smooth transitions (kinda like a heightmap). I am not quite sure why it’s coming out like a stencil mask in UE4. If I capture scene color, the image comes out the way it suppose to come out. So that’s the first issue I need …

> [@SceneCapture Depth as Texture](https://forums.unrealengine.com/t/scenecapture-depth-as-texture/434150):
>
> Hi, I want to get a depth map from a specific view. And I want it as texture because I want to be able to access the data in C++. So I did the following setup. I placed a SceneCapture2D in the view I want. In the rendering settings it should render the scene into rgb and the depht into a-channel of a rendertarget: When It take a look at the render target, the rgb channels are good: but the alpha channel does not conta…

---

_[View the full topic](https://forums.unrealengine.com/t/generating-height-map-from-static-meshes/1324672)._
