how can i create a mirror surface in unity3D?

hi!
and thank you in advance for your answers…

i must create a mirror surface. there are many examples but with the water…:shock:

where can i find a good example?

thank you
ciao

Well I’m going to tell you of an old school method. Duplicate the geometry you want to mirror and put it in the negative Y direction directly underneath the original geometry. You can then go in and clean up the backsides and tops of geometry that you would never see in the reflected geometry. I personally go in and kind of create an LOD for the reflection, if you don’t do these things it’s doubling your polygons. It’s an older method, but you be surprised how much it’s still done on the lower end hardware, we did it quite a bit on the DS.

super!
I try immediately and will write my results!!
thank you very much!!

thank you! but i must create a small mirror in a lamp…i can’t reproduce the geometry for this.
i must find a good shader perhaps…or to use the effect of the water…

The traditional method used (when you don’t actually have real reflections) is a cubemap. It will never get you the detail like a real mirror - especially on a flat surface, though.

Basically what you do is create a camera in the middle of the watersurface and set it to a square 90° FOV. Then you turn the camera in 90° steps fron sideways, up, down and back. Save each of these images as a texture file then create a cubema(see THIS entry in the reference manual).

Somewhere on these forums there even was a script that did all that for you from within Unity (even the Free version) … don’t know where the thread was, though.