# How does one get a reflection effect on a cubemap without mirroring?

**URL:** <https://forums.unrealengine.com/t/how-does-one-get-a-reflection-effect-on-a-cubemap-without-mirroring/381148>\
**Category:** Rendering\
**Tags:** cubemap, unreal-engine, question\
**Created:** [January 7, 2017, 1:04am UTC](https://forums.unrealengine.com/t/how-does-one-get-a-reflection-effect-on-a-cubemap-without-mirroring/381148 "2017-01-07T01:04:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jjman739](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jjman739](https://forums.unrealengine.com/u/Jjman739)\
**Post date:** [January 7, 2017, 1:04am UTC](https://forums.unrealengine.com/t/how-does-one-get-a-reflection-effect-on-a-cubemap-without-mirroring/381148/1 "2017-01-07T01:04:36Z")

</div>

I am creating a portal system for my game that uses 3D spheres for the portals. I have taken a scene capture cubemap at one of the portals and had it converted to a material to be used on the other portal. It has the visual effect that I intended, except that everything is mirrored. After some looking around, I figured out that the issue is the ReflectionVectorWS node in the material. I tried modifying it with other nodes, but the only ‘fix’ I found made it so that it appeared as a completely flat circular window instead of a sphere.

Here is a picture of the material blueprint. If you look at the platform in the preview, there is text that appears normal in the actual game.

 ![121383-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/3/203dc3a2c0fb2e9fa8c02f4e8b8e47374a9f6983.png)

**What I want to know is whether or not I can modify the reflection vector so that it maintains its 3D effect while removing the mirror effect, or if there is some other way to accomplish this effect…**

Until I have a solution, I will be using the workaround of flipping the player around when using the portal.

---

<div class="post-metadata">

**Author:** ![Jjman739](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jjman739](https://forums.unrealengine.com/u/Jjman739)\
**Post date:** [June 16, 2017, 6:19pm UTC](https://forums.unrealengine.com/t/how-does-one-get-a-reflection-effect-on-a-cubemap-without-mirroring/381148/2 "2017-06-16T18:19:39Z")

</div>

So, to any future people out there who want to use this idea, I just found the workaround I needed. The solution was to use 2D scene captures instead of cubemaps, and rotate the camera and the mesh based on the player’s relative location.

 ![190762-teleport.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/b/9/8b9d60585cff5f70f63c8b8d1f41d4d32972ee60.png)

---

<div class="post-metadata">

**Author:** ![Crono](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Crono](https://forums.unrealengine.com/u/Crono)\
**Post date:** [July 20, 2021, 7:46pm UTC](https://forums.unrealengine.com/t/how-does-one-get-a-reflection-effect-on-a-cubemap-without-mirroring/381148/3 "2021-07-20T19:46:34Z")

</div>

For anyone who comes across this in the future, if you want to view/sample a cubemap with a non-reflected perspective, you can subtract the camera position from the pixel world position to get the appropriate vector.

![344586-answer.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/3/d932dff4ff418d8e07389036f6334f061826bafe.png)
