- Home /
How to do concave and convex mirror effects in unity Pro
Hi all,
I am newbie to Unity 3D.
I am trying to do **concave and convex mirror effect** in unity.
if any one knows regarding this please guide me how to do it.. I am goggling form past 7days.
Thanks in advance...
Sachin . Did you do concave and convex mirror effects in Unity? I need that same. Can you help me?
Answer by jonas-echterhoff · Jul 25, 2011 at 10:30 AM
A render texture combined with a distortion image effect (such as the FishEye effect in Standart Assets/Image Effects) should do a nice approximation of the visual effect.
Answer by Waz · Jul 25, 2011 at 12:16 PM
If you just make a convex or concave surface and use a Reflective shader, it will work as a that kind of mirror. In pro, you can render the reflection texture in realtime, no Image Effect required.
Uhm, but you don't get realtime reflection, using a reflective shader (which is what I guess the question opener wants). And how do you rendering a reflection texture to get distortion without Image Effects?
Yes you do, provided the texture is updated in real time. The reflection will be distorted by virtue of the surface being physically distorted.
For example, the classic "convex mirror" is a sphere. $$anonymous$$ake a sphere with a reflective shader and have that material's reflection cube map update in realtime and you will get a pretty realistic effect (not perfect, since cubemap camera will be at single point, not at every point on sphere).
Ah, yes, if you render into a cubemap, then this works of course. However, this is obviously more expensive then rendering and distorting a single texture, but it may also give more convincing results.
Like any other mesh. You either:
import an external mesh from a modelling tool
or you create a procedural mesh via scripting.
Unless you're skilled enough with scripting i suggest to aim for the first one. If you don't know how to model and you can't code, you're basically screwed ^^. You could try to find models online which others have made. The AssetStore is also a good source for assets in general.
Your answer

Follow this Question
Related Questions
Concave Trigger on Mesh 1 Answer
For Concave and convex effects 0 Answers
Concave colliders from smaller pieces 3 Answers