Mirrors (reflective surfaces)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By berserk
:warning: Old Version Published before Godot 3 was released.

Hello everyone.
How do I make a surface reflective as a mirror?
I tried searching on Google and on various Godot communities but I just found something about parallax.
Thanks in advance for any help.

Bye, Ivano.

:bust_in_silhouette: Reply From: Hytak

From what i know a perfect mirror is not possible in godot 2.1.x

It is possible to reflect from a cubemap e.g. the environment.
This works from only one location, and does not include any moving objects.
To make reflection work from a bigger area e.g. a big reflective object or a moving reflective object, you would use paralax. (which is just combining multiple cubemaps)
topic about cubemap reflections

I dont think it is possible to see moving objects in the reflection.

However, from what i understand godot 3.0 does support raycasting for reflection and thus removes al these problems.

Thanks. I’ll see in an unofficial 3.x build then.

berserk | 2017-04-21 09:48

I haven’t tried it myself but it should be possible to make planar mirrors in 2.x with RenderTargetTexture.

mollusca | 2017-04-21 12:23