# World Position To Depth

**URL:** <https://forums.unrealengine.com/t/world-position-to-depth/344559>\
**Category:** Rendering\
**Tags:** uv, unreal-engine, transform, world-location, world-position, question\
**Created:** [January 19, 2016, 10:20am UTC](https://forums.unrealengine.com/t/world-position-to-depth/344559 "2016-01-19T10:20:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_416b781b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_416b781b](https://forums.unrealengine.com/u/anonymous_user_416b781b)\
**Post date:** [January 19, 2016, 10:20am UTC](https://forums.unrealengine.com/t/world-position-to-depth/344559/1 "2016-01-19T10:20:01Z")

</div>

I’m rendering a custom depth texture from an scenecapture actor which remains stationary in the world. Now I would like to transfrom a visible pixel world location to the uv of the custom depth map and thus check if this pixel is occluded.

I think it is similar to how shadows are rendered.

How can I transform the world location of the pixel to the depth uv?

 ![75064-depthpixel.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/4/8344fe1be147a375bacea0ab98daa3b489054561.png)
