# Object Screen Position Material Opacity

**URL:** <https://forums.unrealengine.com/t/object-screen-position-material-opacity/426392>\
**Category:** Rendering\
**Tags:** screen-position, opacity, unreal-engine, world-position, question\
**Created:** [June 1, 2018, 12:43am UTC](https://forums.unrealengine.com/t/object-screen-position-material-opacity/426392 "2018-06-01T00:43:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharpsterman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sharpsterman](https://forums.unrealengine.com/u/Sharpsterman)\
**Post date:** [June 1, 2018, 12:43am UTC](https://forums.unrealengine.com/t/object-screen-position-material-opacity/426392/1 "2018-06-01T00:43:25Z")

</div>

Hello everyone!

I want to drive the opacity of an object based on the distance from the center of the screen. I also want the flexibility of using a screen-aligned greyscale texture to drive the object’s opacity.

I COULD calculate this on the actor tick and use “World Position to Screen Position” node, but it would be cheaper as a material calculation. I just don’t know where to start with this one.

---

<div class="post-metadata">

**Author:** ![Sharpsterman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sharpsterman](https://forums.unrealengine.com/u/Sharpsterman)\
**Post date:** [June 1, 2018, 10:55pm UTC](https://forums.unrealengine.com/t/object-screen-position-material-opacity/426392/2 "2018-06-01T22:55:50Z")

</div>

Bump. Any material wizards out there?
