# Creating a mirror using Scene Capture 2D actor?

**URL:** <https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725>\
**Category:** Rendering\
**Tags:** mirror, scenecapture2d, Reflections, Scene-Capture, unreal-engine, question\
**Created:** [October 20, 2014, 3:02pm UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725 "2014-10-20T15:02:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e8de304](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e8de304](https://forums.unrealengine.com/u/anonymous_user_6e8de304)\
**Post date:** [October 20, 2014, 3:02pm UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/1 "2014-10-20T15:02:31Z")

</div>

Hi;  
I need to create a simple; proper mirror with sharp reflections. (I have a large outdoor scene with a miror-like sea). For outdoors sharp reflection like these the Reflection Environement and/or SSR don’t cut it quality wise.

In UDK this worked quite simply using the Scene Capture Reflect Actor, and feeding it into a texture with Screen Aligned UVs. This no longer exists in UE4. There is a Scene Capture 2D actor, but it doesn’t work the same way. For one it doesn’t update its capture view point acording to the player’s position. (ence why’s it’s called a 2D capture; and not a proper Reflect actor like in UDK)…

Is there _any_ way to do this? I can’t believe there isn’t a way to do a simple mirror. ☹

Thanks in advance for any help; as it stands my project is stuck in UDK just because of this…

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [October 20, 2014, 5:08pm UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/2 "2014-10-20T17:08:54Z")

</div>

Hey Aloys -

You can get an approximate effect using a Scene Capture 2D tied to your player’s Camera through a Vector Transformation. It is an approximation, but it will get you close.

 ![18433-mirror.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/f/b1f6e6cefe94ebd995f3c881c326b7a43df52cc1.jpeg)

 ![18434-mirrorexample.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/e/bbe9e32a13f981a4e11fefd9a746d757fb313469.jpeg)

Thank You

Eric Ketchum

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e8de304](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e8de304](https://forums.unrealengine.com/u/anonymous_user_6e8de304)\
**Post date:** [October 20, 2014, 5:59pm UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/3 "2014-10-20T17:59:14Z")

</div>

Thanks I’ll give it a try!  
Those screenshots look like the Content Examples scenes; but I just looked at all the Blueprints one and I can’t find it. Did I miss it or is that a scene of your own?

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [November 10, 2014, 6:51pm UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/4 "2014-11-10T18:51:59Z")

</div>

This was my own test bed. I use it to tet various issues we come across on the AnswerHub.

---

<div class="post-metadata">

**Author:** ![Grayve\_Rose](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grayve\_Rose](https://forums.unrealengine.com/u/Grayve_Rose)\
**Post date:** [November 27, 2014, 5:49am UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/5 "2014-11-27T05:49:40Z")

</div>

Few questions, as Im interested in this method. How does it know to orient around the object being used as the mirror? and also, what blueprint is this in and how did you get the scene actor 2d inside a blueprint aside from the Level Blueprint? Did you create it via blueprint inside the character’s blueprint and then reference it?

---

<div class="post-metadata">

**Author:** ![Bant5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bant5](https://forums.unrealengine.com/u/Bant5)\
**Post date:** [February 10, 2015, 10:34am UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/6 "2015-02-10T10:34:00Z")

</div>

+1 to Grayve’s questions. Which blueprint does this go into, and how do you add the scene capture 2D node so that it works with the set world rotation node?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f812cda7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f812cda7](https://forums.unrealengine.com/u/anonymous_user_f812cda7)\
**Post date:** [February 10, 2015, 7:12pm UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/7 "2015-02-10T19:12:59Z")

</div>

+1 AntSkilton and Grayve’s question. Could anyone provide some help please?

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [February 10, 2015, 9:45pm UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/8 "2015-02-10T21:45:44Z")

</div>

Hey Guys -

Sorry for not seeing your responses until now. I have setup a small test project with this particular effect running so you can see how I did it.

Sample\_Project

Thank You

Eric Ketchum

---

<div class="post-metadata">

**Author:** ![Tolero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tolero](https://forums.unrealengine.com/u/Tolero)\
**Post date:** [March 10, 2015, 5:20pm UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/9 "2015-03-10T17:20:59Z")

</div>

Thanks a lot! Looking for this for so long…GREAT!

---

<div class="post-metadata">

**Author:** ![YahiyaJasem](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yahiyajasem/32/1069108_2.png) [@YahiyaJasem](https://forums.unrealengine.com/u/YahiyaJasem)\
**Post date:** [April 4, 2015, 4:34am UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/10 "2015-04-04T04:34:12Z")

</div>

many thanks! you’re a life saver 😃

---

<div class="post-metadata">

**Author:** ![Grayve\_Rose](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grayve\_Rose](https://forums.unrealengine.com/u/Grayve_Rose)\
**Post date:** [April 5, 2015, 3:14am UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/11 "2015-04-05T03:14:29Z")

</div>

Ah not quite as realistic as I hoped the result would be, but it could be an interesting effect for somethings. I was hoping it would give relatively accurate reflections like screen space reflections do. There might be a different way to use that same concept to get more realistic results though

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_be11696c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_be11696c](https://forums.unrealengine.com/u/anonymous_user_be11696c)\
**Post date:** [June 25, 2015, 9:25am UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/12 "2015-06-25T09:25:01Z")

</div>

How can I remove player sphere in reflection?

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [June 25, 2015, 5:13pm UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/13 "2015-06-25T17:13:10Z")

</div>

In my sample from above, You would need to setup a new GameMode and New Player Character and New Pawn Class from the default versions in the engine. Assign them to the level via the World Settings and in the Default Pawn Class, check Owner Only See which will not allow the Render target to see the pawn but you will still be able to see it (assuming you are not just using the sphere in which case you could just Check Hidden in Game true as well.)

Thank You

Eric Ketchum

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d0778c16](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d0778c16](https://forums.unrealengine.com/u/anonymous_user_d0778c16)\
**Post date:** [July 13, 2015, 8:44am UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/14 "2015-07-13T08:44:29Z")

</div>

Hi Everyone, I tried all the examples about mirrors but no one “flip” the image like the real mirror do.

 ![50008-proof.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/9/b39cd0d3c9ff4b48cb5fd023d561c6e1ba3ac7df.jpeg)

Someone know how to do it?

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [July 13, 2015, 1:58pm UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/15 "2015-07-13T13:58:43Z")

</div>

Hi ferpenas -

Plug a Texture Coordinate into the Render Target Texture in the Mirror’s Material and set the coordinate UTiling Value to -1 and the VTiling Value to 1. This will flip the image horizontally.

Thank You

Eric Ketchum

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d0778c16](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d0778c16](https://forums.unrealengine.com/u/anonymous_user_d0778c16)\
**Post date:** [July 14, 2015, 5:37am UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/16 "2015-07-14T05:37:47Z")

</div>

Thank you Eric, now it works perfect.

---

<div class="post-metadata">

**Author:** ![LethalMongoose](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LethalMongoose](https://forums.unrealengine.com/u/LethalMongoose)\
**Post date:** [August 29, 2015, 6:14am UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/17 "2015-08-29T06:14:01Z")

</div>

I ran into the same issue, the camera is just pointing back at the player so you don’t get bounced image like you actually would. I’ve update Eric’s BP to calculate the reflection vector (see [Reflection Vector? - Rendering - Unreal Engine Forums](https://answers.unrealengine.com/questions/129907/reflection-vector-1.html)). Along with implementing Eric’s image flip instructions above this delivers a fairly realistic mirror.

---

<div class="post-metadata">

**Author:** ![Hainzgrimmer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hainzgrimmer](https://forums.unrealengine.com/u/Hainzgrimmer)\
**Post date:** [March 22, 2016, 3:49pm UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/18 "2016-03-22T15:49:28Z")

</div>

Thanks to have provided your file Eric, I’ve downloaded and modified a bit to have a more realistic reflection:

 ![83357-mirror-eventgraph.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/f/b4fb8f56cad6f4808a02a262f1300f230a519804.jpeg)

this is how I set the event graph of the blueprint

![83358-mirror-material.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/5/635ff45f0d323c8193f86938b1cf394af8c269ca.jpeg)

and then I flipped the captured scene on the material of my mirror

however setting it like this gives another issue: when you try to look at it by side you start to see the mirror itself reflected or, worse, behind the wall where is the mirror (it dipends on how you set the “Field of View” of the “Scene Capture Component” in the blueprint)

 ![83474-mirror-overthewall.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/6/0f678acd254cb6100d6b9635c303f3eeb0cb5aeb.jpeg)

could it be possible to set a limit on the “Z (Yaw)” rotation result so that when you go too sided to the mirror it stop and you don’t see this error?

I tried both moving the “Scene Capture Component” respect to the mirror, and working with math operator in the blueprint (but for sure I’m not a blueprint genius so…)

could this be helpful in someway?

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [March 23, 2016, 3:43pm UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/19 "2016-03-23T15:43:10Z")

</div>

Yes add a Clamp for min and Max Allowed rotation on your Yaw. That should force the Max value to always be returned when the actual Yaw value goes over it (same for a min on the opposite side of the mirror.)

Eric Ketchum

---

<div class="post-metadata">

**Author:** ![Hainzgrimmer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hainzgrimmer](https://forums.unrealengine.com/u/Hainzgrimmer)\
**Post date:** [March 24, 2016, 8:57am UTC](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725/20 "2016-03-24T08:57:21Z")

</div>

It worked! Thank you very much Eric!

 ![83611-mirror-eventgraph02.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/4/95441436777704d11763e72f368b4b0f084cbe16.jpeg)

I post the eventgraph modified to complete the example even for the others (the values of the clamp will obviously depend on the single projects)

However I hope epic will find a proper solution for mirror both on destop and mobile projects! 🙂

[Next page](https://forums.unrealengine.com/t/creating-a-mirror-using-scene-capture-2d-actor/296725.md?page=2)
