# Depth to World Position

**URL:** <https://forums.unrealengine.com/t/depth-to-world-position/315962>\
**Category:** Rendering\
**Tags:** Post-Processing, depth, unreal-engine, world-position, question\
**Created:** [April 22, 2015, 2:25pm UTC](https://forums.unrealengine.com/t/depth-to-world-position/315962 "2015-04-22T14:25:51Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pylb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pylb](https://forums.unrealengine.com/u/pylb)\
**Post date:** [April 22, 2015, 4:38pm UTC](https://forums.unrealengine.com/t/depth-to-world-position/315962/3 "2015-04-22T16:38:53Z")

</div>

Thanks!  
That was exactly it.

For others who might be interested in the answer, the code I’m using is:

WorldPosition = CameraPosition + CameraVector \* CustomDepth.r / dot(CameraVector, CameraDirectionVector)

---

_[View the full topic](https://forums.unrealengine.com/t/depth-to-world-position/315962)._
