# Mirror viewport along x axis

**URL:** <https://forums.unrealengine.com/t/mirror-viewport-along-x-axis/395355>\
**Category:** Blueprint\
**Tags:** projection-matrix, unreal-engine, UE4, CPP, question, Blueprint\
**Created:** [June 2, 2017, 4:46pm UTC](https://forums.unrealengine.com/t/mirror-viewport-along-x-axis/395355 "2017-06-02T16:46:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jagholin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jagholin](https://forums.unrealengine.com/u/Jagholin)\
**Post date:** [June 2, 2017, 4:46pm UTC](https://forums.unrealengine.com/t/mirror-viewport-along-x-axis/395355/1 "2017-06-02T16:46:43Z")

</div>

Hi all,

I want to implement a simple visual effect for my game: mirroring the rendered image on my viewport along the x axis (basically switching left and right side). Using lowlevel APIs this is as easy to do as flipping a couple signs in the projection matrix.

However it looks like this engine hides this implementation detail very deep within its Viewport/LocalPlayer classes. Camera settings that i have available from the editor/blueprints don’t seem to provide anything that could be helpful.

Any tips on how i can implement this in best way possible(if I have to write my own classes in C++ i don’t care, i come from programming/OpenGL background, i just am not knowledgeable enough in the inner workings of the engine itself, some directions on where i may start would be useful, thank you)

My current theory is: subclass ULocalPlayer and override its CalcSceneView(…) function, only i don’t know yet how to force the engine to use objects of the new class.

If there is a better approach i would like to hear it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5c17932a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5c17932a](https://forums.unrealengine.com/u/anonymous_user_5c17932a)\
**Post date:** [April 17, 2019, 6:34am UTC](https://forums.unrealengine.com/t/mirror-viewport-along-x-axis/395355/2 "2019-04-17T06:34:04Z")

</div>

@jagholin Hi, Did you solve this question? I have same requirements and don’t have any ideas…Thx
