# Help|Reflection

**URL:** <https://discussions.unity.com/t/help-reflection/427282>\
**Category:** Scripting\
**Tags:** Scripting\
**Created:** [November 2, 2010, 2:27pm UTC](https://discussions.unity.com/t/help-reflection/427282 "2010-11-02T14:27:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon\_71568828](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@anon\_71568828](https://discussions.unity.com/u/anon_71568828)\
**Post date:** [November 2, 2010, 2:27pm UTC](https://discussions.unity.com/t/help-reflection/427282/1 "2010-11-02T14:27:19Z")

</div>

hey everybody,  
i tryedto make a Reflection but it’s not looking good…  
how can i make a pretty Reflection?  
TNX for the help.

---

<div class="post-metadata">

**Author:** ![Chris-Sinclair](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/chris-sinclair/32/241371_2.png) [@Chris-Sinclair](https://discussions.unity.com/u/Chris-Sinclair)\
**Post date:** [November 2, 2010, 6:23pm UTC](https://discussions.unity.com/t/help-reflection/427282/2 "2010-11-02T18:23:34Z")

</div>

If you want to have true, realtime reflections of your entire scene:  
[http://www.unifycommunity.com/wiki/index.php?title=MirrorReflection2](http://www.unifycommunity.com/wiki/index.php?title=MirrorReflection2)

If you want to have simple, static reflections (that is, they do not change as your scene changes):

> **[Unity - Manual: Reflective Shader Family](https://docs.unity3d.com/Manual/shader-ReflectiveFamily.html)**

If you go this route, then you will want to use nice textures to make the reflection look nice.

---

<div class="post-metadata">

**Author:** ![anon\_71568828](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@anon\_71568828](https://discussions.unity.com/u/anon_71568828)\
**Post date:** [November 2, 2010, 8:43pm UTC](https://discussions.unity.com/t/help-reflection/427282/3 "2010-11-02T20:43:57Z")

</div>

[http://www.unifycommunity.com/wiki/i...rorReflection2](http://www.unifycommunity.com/wiki/i...rorReflection2)  
I tryed that but when i come to the window of the car or to the wall of some building, i doesn’t see myself…  
what the problem?

---

<div class="post-metadata">

**Author:** ![Chris-Sinclair](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/chris-sinclair/32/241371_2.png) [@Chris-Sinclair](https://discussions.unity.com/u/Chris-Sinclair)\
**Post date:** [November 2, 2010, 9:07pm UTC](https://discussions.unity.com/t/help-reflection/427282/4 "2010-11-02T21:07:39Z")

</div>

Don’t know. I used the exact same thing in an earlier test project at work and it behaved just fine. Perhaps you did not follow the instructions properly in the “Usage” section. Also take heed of the note on that page:

> [@](#):
>
> The reflection happens along object’s ‘up’ direction (green axis in the scene view). E.g. the builtin plane object is suitable for use as a mirror. If you experience weird reflection, check whether your mirror object is oriented correctly.

---

<div class="post-metadata">

**Author:** ![anon\_71568828](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@anon\_71568828](https://discussions.unity.com/u/anon_71568828)\
**Post date:** [November 2, 2010, 9:10pm UTC](https://discussions.unity.com/t/help-reflection/427282/5 "2010-11-02T21:10:49Z")

</div>

> [@](#):
>
> The reflection happens along object’s ‘up’ direction (green axis in the scene view). E.g. the builtin plane object is suitable for use as a mirror. If you experience weird reflection, check whether your mirror object is oriented correctly.

I doesn’t antherstand…  
can you explane me that yourself?  
TNX ;).

---

<div class="post-metadata">

**Author:** ![ivkoni](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/ivkoni/32/320785_2.png) [@ivkoni](https://discussions.unity.com/u/ivkoni)\
**Post date:** [November 2, 2010, 9:12pm UTC](https://discussions.unity.com/t/help-reflection/427282/6 "2010-11-02T21:12:40Z")

</div>

if you are trying to make a mirror (not a reflective surface), you can use a second camera that is set up to depth only and is inverted. You will also have to mask the area of the mirror using the depth mask shader from the wiki. I don’t think there is another way to mask area, which is a shame…

---

<div class="post-metadata">

**Author:** ![anon\_71568828](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@anon\_71568828](https://discussions.unity.com/u/anon_71568828)\
**Post date:** [November 2, 2010, 9:21pm UTC](https://discussions.unity.com/t/help-reflection/427282/7 "2010-11-02T21:21:26Z")

</div>

I doesn’t antherstand…  
can you explane me that yourself?  
TNX .

---

<div class="post-metadata">

**Author:** ![ivkoni](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/ivkoni/32/320785_2.png) [@ivkoni](https://discussions.unity.com/u/ivkoni)\
**Post date:** [November 2, 2010, 9:34pm UTC](https://discussions.unity.com/t/help-reflection/427282/8 "2010-11-02T21:34:04Z")

</div>

which part?  
You have a main camera through which you view the world.  
You add a second camera that will render your mirror.  
-if you have pro, then you can render the second camera to texture. This texture is assigned to the plane which is your mirror.  
(you can see a simple example of this in this game: [Rubik’sCube](http://www.wooglie.com/playgame.php?gameID=455)  
-if you don’t have pro, then you set the mirror camera to depth only (it’s a camera setting) with a depth higher than the main camera.  
you use the depth mask shader from the wiki to mask the areas that are not your mirror.  
[DepthMask](http://www.unifycommunity.com/wiki/index.php?title=DepthMask)  
in either case you invert the output of the mirror camera by using the script from the wiki. [InvertCamera](http://www.unifycommunity.com/wiki/index.php?title=InvertCamera)  
if your main camera is moving, then you need to move the mirror camera as well, relevant to your main camera. (the mirror camera uses a reflected psotion around the mirror of the main camera). This is done in LateUpdate()

---

<div class="post-metadata">

**Author:** ![anon\_71568828](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@anon\_71568828](https://discussions.unity.com/u/anon_71568828)\
**Post date:** [November 3, 2010, 5:23am UTC](https://discussions.unity.com/t/help-reflection/427282/9 "2010-11-03T05:23:29Z")

</div>

no,  
i told it to FizixMan i need his help because i doesn’t waht to do that with camera…  
TNX anyway dude ;).

---

<div class="post-metadata">

**Author:** ![Chris-Sinclair](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/chris-sinclair/32/241371_2.png) [@Chris-Sinclair](https://discussions.unity.com/u/Chris-Sinclair)\
**Post date:** [November 3, 2010, 12:30pm UTC](https://discussions.unity.com/t/help-reflection/427282/10 "2010-11-03T12:30:47Z")

</div>

I’m not sure, but I think you may need Unity Pro to use that script (otherwise you’d follow ivkoni’s instructions)

Beyond that, be sure to follow the instructions properly in the “Usage” section. Also take heed of the note on that page:

> [@](#):
>
> The reflection happens along object’s ‘up’ direction (green axis in the scene view). E.g. the builtin plane object is suitable for use as a mirror. If you experience weird reflection, check whether your mirror object is oriented correctly.

---

<div class="post-metadata">

**Author:** ![anon\_71568828](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@anon\_71568828](https://discussions.unity.com/u/anon_71568828)\
**Post date:** [November 3, 2010, 2:44pm UTC](https://discussions.unity.com/t/help-reflection/427282/11 "2010-11-03T14:44:04Z")

</div>

> [@](#):
>
> "The reflection happens along object’s ‘up’ direction (green axis in the scene view). E.g. the builtin plane object is suitable for use as a mirror. If you experience weird reflection, check whether your mirror object is oriented correctly. "

i doesn’t understand that.  
can you explane me better of thet?  
TNX.

---

<div class="post-metadata">

**Author:** ![Chris-Sinclair](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/chris-sinclair/32/241371_2.png) [@Chris-Sinclair](https://discussions.unity.com/u/Chris-Sinclair)\
**Post date:** [November 3, 2010, 2:47pm UTC](https://discussions.unity.com/t/help-reflection/427282/12 "2010-11-03T14:47:25Z")

</div>

Every object has its own coordinate system (direction that it’s pointing). In whatever direction that object considers “up” (as opposed to “forward”, or “left”) is where the reflection occurs along.

---

<div class="post-metadata">

**Author:** ![anon\_71568828](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@anon\_71568828](https://discussions.unity.com/u/anon_71568828)\
**Post date:** [November 3, 2010, 3:00pm UTC](https://discussions.unity.com/t/help-reflection/427282/13 "2010-11-03T15:00:12Z")

</div>

so what i need to do if i want to see myself when i go to window of car?

---

<div class="post-metadata">

**Author:** ![Chris-Sinclair](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/chris-sinclair/32/241371_2.png) [@Chris-Sinclair](https://discussions.unity.com/u/Chris-Sinclair)\
**Post date:** [November 3, 2010, 3:04pm UTC](https://discussions.unity.com/t/help-reflection/427282/14 "2010-11-03T15:04:00Z")

</div>

Use Unity Pro.  
Make sure the window object’s “up” direction is pointing out from the window.  
Follow all the instructions on that mirror script page.

---

<div class="post-metadata">

**Author:** ![anon\_71568828](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@anon\_71568828](https://discussions.unity.com/u/anon_71568828)\
**Post date:** [November 3, 2010, 3:27pm UTC](https://discussions.unity.com/t/help-reflection/427282/15 "2010-11-03T15:27:36Z")

</div>

but i have unity3d and i used the pro version and the pro version it’s just for 30 days and i done the 30 days.  
and i doesn’t want to buy it…  
i need " Crack" or something else???

---

<div class="post-metadata">

**Author:** ![Chris-Sinclair](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/chris-sinclair/32/241371_2.png) [@Chris-Sinclair](https://discussions.unity.com/u/Chris-Sinclair)\
**Post date:** [November 3, 2010, 3:40pm UTC](https://discussions.unity.com/t/help-reflection/427282/16 "2010-11-03T15:40:52Z")

</div>

I’m seriously considering the possibility that you’re just trolling us now. (asking for a crack on the official forums?)

ivkoni suggested a complex workaround if you do not have pro. Beyond that, you gotta buy the pro version.

---

<div class="post-metadata">

**Author:** ![anon\_71568828](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@anon\_71568828](https://discussions.unity.com/u/anon_71568828)\
**Post date:** [November 3, 2010, 3:44pm UTC](https://discussions.unity.com/t/help-reflection/427282/17 "2010-11-03T15:44:07Z")

</div>

oh i doesn’t know tha very sorry!!!  
and i not trolling!  
but i saw my friend do that (a good Reflection)…  
without pro version…

---

<div class="post-metadata">

**Author:** ![Chris-Sinclair](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/chris-sinclair/32/241371_2.png) [@Chris-Sinclair](https://discussions.unity.com/u/Chris-Sinclair)\
**Post date:** [November 3, 2010, 4:12pm UTC](https://discussions.unity.com/t/help-reflection/427282/18 "2010-11-03T16:12:56Z")

</div>

Ask your friend.

---

<div class="post-metadata">

**Author:** ![anon\_71568828](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@anon\_71568828](https://discussions.unity.com/u/anon_71568828)\
**Post date:** [November 3, 2010, 4:17pm UTC](https://discussions.unity.com/t/help-reflection/427282/19 "2010-11-03T16:17:44Z")

</div>

ha i ask him dude but he doesn’t realy want to tell me how he do that… :(.  
(Because i’m here)…

---

<div class="post-metadata">

**Author:** ![Chris-Sinclair](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/chris-sinclair/32/241371_2.png) [@Chris-Sinclair](https://discussions.unity.com/u/Chris-Sinclair)\
**Post date:** [November 3, 2010, 4:19pm UTC](https://discussions.unity.com/t/help-reflection/427282/20 "2010-11-03T16:19:25Z")

</div>

Now why would he not want to tell you… 🙄

[Next page](https://discussions.unity.com/t/help-reflection/427282.md?page=2)
