# Post Process: How to Absolute World Position at UV

**URL:** <https://forums.unrealengine.com/t/post-process-how-to-absolute-world-position-at-uv/459057>\
**Category:** Feedback & Requests\
**Tags:** Post-Processing, FeatureRequest, unreal-engine, question\
**Created:** [December 2, 2019, 5:34pm UTC](https://forums.unrealengine.com/t/post-process-how-to-absolute-world-position-at-uv/459057 "2019-12-02T17:34:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raidfire.Net](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raidfire.Net](https://forums.unrealengine.com/u/Raidfire.Net)\
**Post date:** [December 2, 2019, 5:34pm UTC](https://forums.unrealengine.com/t/post-process-how-to-absolute-world-position-at-uv/459057/1 "2019-12-02T17:34:28Z")

</div>

Hi,

you all know the Absolute World Position (per Pixel) Node.

What i need now is the same thing but at a given UV like SceneTexture Node.

Is this possible? Should i request it?

Thanks and cheers

---

<div class="post-metadata">

**Author:** ![presto423](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@presto423](https://forums.unrealengine.com/u/presto423)\
**Post date:** [December 4, 2019, 4:00pm UTC](https://forums.unrealengine.com/t/post-process-how-to-absolute-world-position-at-uv/459057/2 "2019-12-04T16:00:16Z")

</div>

You might be helped by the post right after yours.

[How to convert World Position to Screen UV coordinate](https://answers.unrealengine.com/questions/937074/view.html)

Not saying it’s the exact same, but it could have information that is necessary.

---

<div class="post-metadata">

**Author:** ![Raidfire.Net](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raidfire.Net](https://forums.unrealengine.com/u/Raidfire.Net)\
**Post date:** [December 6, 2019, 10:00am UTC](https://forums.unrealengine.com/t/post-process-how-to-absolute-world-position-at-uv/459057/3 "2019-12-06T10:00:41Z")

</div>

Hi, i have dived deeper and the solution would be a custom hlsl node that does some interpolation from the vertex shader.

But i am not familiar with hlsl.

Deer Epic Games. Would you mind extending the absolute world position node with an UV input?

Meanwhile i skip my task.

---

<div class="post-metadata">

**Author:** ![presto423](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@presto423](https://forums.unrealengine.com/u/presto423)\
**Post date:** [December 6, 2019, 5:43pm UTC](https://forums.unrealengine.com/t/post-process-how-to-absolute-world-position-at-uv/459057/4 "2019-12-06T17:43:52Z")

</div>

What, basically, are you using it for? There isn’t a GetUVCoordinate node or reference type node? It would be valuable, I presume.

---

<div class="post-metadata">

**Author:** ![Raidfire.Net](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raidfire.Net](https://forums.unrealengine.com/u/Raidfire.Net)\
**Post date:** [December 6, 2019, 6:25pm UTC](https://forums.unrealengine.com/t/post-process-how-to-absolute-world-position-at-uv/459057/5 "2019-12-06T18:25:44Z")

</div>

I have found a solution. Not the best but it does the job for the moment.

> **[Depth to World Position](https://forums.unrealengine.com/questions/216015/depth-to-world-position.html)**
>
> Hi, In a post process material, what would be the best way to get the World Position of a pixel rendered in the CustomDepth GBuffer? I tried CameraPosition - (CameraVector \* CustomDepth.r), but the result is obviously wrong. Thanks.

This and Custom UV plugged into the Custom Depth or in my case Scene Depth. Thats it.

But an Absolute World Position with an UV Input would be much nicer.

---

<div class="post-metadata">

**Author:** ![presto423](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@presto423](https://forums.unrealengine.com/u/presto423)\
**Post date:** [December 7, 2019, 8:50pm UTC](https://forums.unrealengine.com/t/post-process-how-to-absolute-world-position-at-uv/459057/6 "2019-12-07T20:50:19Z")

</div>

Simply to get an absolute world position at UV? UE needs a simpler BP function(s) for that. Do a request. I would, but I don’t know enough about it to describe at length how it would be valuable.

---

<div class="post-metadata">

**Author:** ![Raidfire.Net](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raidfire.Net](https://forums.unrealengine.com/u/Raidfire.Net)\
**Post date:** [December 8, 2019, 4:33pm UTC](https://forums.unrealengine.com/t/post-process-how-to-absolute-world-position-at-uv/459057/7 "2019-12-08T16:33:50Z")

</div>

Hi, i already did:

[https://forums.unrealengine.com/unreal-engine/feedback-for-epic/1695032-material-editor](https://forums.unrealengine.com/unreal-engine/feedback-for-epic/1695032-material-editor)

Why it is valuable for me?: I combine a post process scanner with screen pixelation.  
For a post process scanner you have to use the absolute world position per pixel and do some calculations. For a pixelated screen you have to divide the screen into grid cells. Within a grid cell all values shall be the same, for example the value of the middle of that cell. To achieve that you have to “snap” the UV for any values, also absolute world position.

---

<div class="post-metadata">

**Author:** ![presto423](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@presto423](https://forums.unrealengine.com/u/presto423)\
**Post date:** [December 8, 2019, 4:46pm UTC](https://forums.unrealengine.com/t/post-process-how-to-absolute-world-position-at-uv/459057/8 "2019-12-08T16:46:48Z")

</div>

I see. So, snapping the UV and doing something in the post process scanner based on abs world position requires being able to utilize the UV at world position…hence the need for a UV input in the World Position node. Then it’s connected in the blueprint, and doesn’t require a bunch of extra connections and math to get the values of UV and abs world pos where they line up, and so forth.

I was thinking how the material editor is quite limiting sometimes in terms of how to combine data points without having to use an extensive workaround that can require more time and effort than if the capacity to do it was already there in a simpler form.

---

<div class="post-metadata">

**Author:** ![Dasay2605](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dasay2605](https://forums.unrealengine.com/u/Dasay2605)\
**Post date:** [June 21, 2025, 12:52am UTC](https://forums.unrealengine.com/t/post-process-how-to-absolute-world-position-at-uv/459057/9 "2025-06-21T00:52:11Z")

</div>

For those still looking for a solution for UE5, I implemented the following code inside a custom node that I used for the edge detection algorithm (it worked well for my task):

```cpp
#if POST_PROCESS_MATERIAL
    if (ClampUV){
        UV = saturate(UV);
    }
    
    // Clip space
    float4 Clip;
    Clip.x = UV.x * 2.0 - 1.0; // maps [0:1] to [-1:1]
    Clip.y = (1.0 - UV.y) * 2.0 - 1.0; // maps [0:1] to [1:-1]
    Clip.z = LookupDeviceZ(ViewportUVToBufferUV(UV)); // Normalised Depth in range [0:1]
    Clip.w = 1.0;

    // Translated World Space
    float4 WorldPos = mul(Clip, ResolvedView.ClipToTranslatedWorld);

    // Translated to absolute world
    return DFFastSubtract(WorldPos.xyz/WorldPos.w, PrimaryView.PreViewTranslation).High;
#else
    return 0;
#endif

```

This is the material function:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/2/f82aecfb29b9c6b49b5bb789b73fc4b8ca42e14e.png)

Use the following [snippet](https://dev.epicgames.com/community/snippets/YOKP/unreal-engine-screenuvtoabsoluteworldposition) to copy and paste the blueprint code.
