Static reflection

I can use a Cubemap to mimic the reflection. In this case I have kind of “static 3D wallpaper”.

That question is, how can I do a “dynamic”, “rotating” reflection (so when I rotate camera around object, the reflection will always face it)?

Thanks!

Cubemaps are for giving the illusion of a reflected environment, for example on a small window or a pond. Reflections like this (in real life) do not rotate to match the observer’s viewpoint, so I’m not quite sure what you mean. For example, if you captured a cube map for a lake that showed the surrounded mountains and sky, you would not want the reflection to be rotating to face the player/camera as it moved around the lake.

If you want an actual reflective surface that will dynamically mirror the real environment around the object you need to use a shader that supports this such as the (pro only) reflective water in Unity or use some kind of trickery such as generating the cubemap or reflection in realtime with render-to-texture cameras (yikes) or putting an inverted version of the geometry than you want reflected behind the “mirror” or whatever object needs to act like a mirror.

(apologies if I’ve misunderstood you or explained this poorly)

xomg,

thank you for your reply. I’m not talking about “real” reflections (like dynamic mirror).

Imagine Case1: there is an object and camera orbits around it. Reflection is static (not rotating), object is static (not rotating), but camera is rotating.

Now Case2: object is static (not rotating), BUT camera and reflection are rotating! You see the reflection on object’s surface, but it always projects from one point of view. In real world it would look like you are rotating not the camera around object, rather the object (and camera is static).

Does unity support env mapping for iOS devices? env mapping is a single reflection texture that uses screen space projection. It’s cheaper than cube maps as you’re using less textures as far as I know.