# Coordinate from a pixel - picture placed on a mesh

**URL:** <https://forums.unrealengine.com/t/coordinate-from-a-pixel-picture-placed-on-a-mesh/490940>\
**Category:** Asset Creation\
**Tags:** coordinates, unreal-engine, pixel, question\
**Created:** [November 15, 2021, 3:31pm UTC](https://forums.unrealengine.com/t/coordinate-from-a-pixel-picture-placed-on-a-mesh/490940 "2021-11-15T15:31:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimshvaebene](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dimshvaebene](https://forums.unrealengine.com/u/Dimshvaebene)\
**Post date:** [November 15, 2021, 3:31pm UTC](https://forums.unrealengine.com/t/coordinate-from-a-pixel-picture-placed-on-a-mesh/490940/1 "2021-11-15T15:31:48Z")

</div>

Do you know if it’s possible to get X Y Z location of a pixel from a picture that is placed on a mesh? I am trying to create a custom reflections that will be in fact more simple than line tracing, however if my ground material is rocks (2D mesh with a 3D picture on it - top camera) and blood is spilled on the floor I will make the color of the brightests spots to become near white (as a reflection from the fresh juicy blood), and I also want if an object is moving nearby to cast additional dark color over the white to simulate realistic reflections (shadows on the new white color). The issue is I will need coordinates from each white spot (in other words every new rock that becomes white) to compare its position to the object, with this I can make the shadowy reflection appears more right - center - more left on the “new white spots”

---

<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:** [November 15, 2021, 7:03pm UTC](https://forums.unrealengine.com/t/coordinate-from-a-pixel-picture-placed-on-a-mesh/490940/2 "2021-11-15T19:03:10Z")

</div>

Even if it’s a plane with your picture on, an object moving over it will cause shadowing. Am I missing something?

---

<div class="post-metadata">

**Author:** ![Eslake](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eslake](https://forums.unrealengine.com/u/Eslake)\
**Post date:** [November 15, 2021, 8:07pm UTC](https://forums.unrealengine.com/t/coordinate-from-a-pixel-picture-placed-on-a-mesh/490940/3 "2021-11-15T20:07:30Z")

</div>

While this may not sound helpful… it is.  
Postprocess materials.

Start with a fog of war tutorial and think about how you could use the location of the rocks, rather than camera location and altering scene output not by light, but color.

… and if you don’t know how to use them yet, a minute or two learning about material parameter collections (lets you pass where that rock is to the material in world space).

Using postprocess volumes is too complex to explain in a response here, but it is the information I think you’re looking for.
