Search Unity

Realtime mirror

Discussion in 'General Graphics' started by prsn, Nov 28, 2014.

  1. prsn

    prsn

    Joined:
    Nov 2, 2014
    Posts:
    10
    Hi everyone.
    I want to create a mirror like this in unity but i can't find a way. Is it possible with render to texture. Is There some example project?

    Thank you

    Untitled-2.jpg
     
  2. prsn

    prsn

    Joined:
    Nov 2, 2014
    Posts:
    10
    nobody knows about this?
     
  3. MakeCodeNow

    MakeCodeNow

    Joined:
    Feb 14, 2014
    Posts:
    1,246
    It's called a planar reflection. If you google for "unity planar reflection" you'll find lots of good resources (and other forum threads).
     
    prsn likes this.
  4. prsn

    prsn

    Joined:
    Nov 2, 2014
    Posts:
    10
    Thank you @MakeCodeNow. That helped me. I found the solution. I think I should work on the blurring it!
     
  5. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,834
    If you just want it to reflect a flat plane then you can do it with the stencil buffer and multiple cameras, ie draw the ground plane to the stencil buffer, then draw an upside down car but only inside the stencil, then draw the regular car on top.