Is there a way to make something like a mirror in the GE?
At the time of this posting there is no way to get real realtime reflections in the BGE. You can fake reflection by duplication or use the fake reflection mapping option in the UV image editor.
Attached is a basic example of how it’s done.
I used a script that uses own.setPosition(), this results in a VERY slight (1 tic) delay. It’s not really noticeable. If you just use spheres with opposite controls, it tends to sometimes get out of sync.
Note that to simulate the light mirroring, I moved all of the mirrored objects onto another layer and mirrored the light.
-Sam
Attachments
mirror.blend (203 KB)
So I cant make a whole room out of mirrors? Ok. But that would be funny to walk around.
I don’t see an attached example. Oh there it is. It didn’t appear before. Thanks anyways.
For an outdoor car game I have been working on, I just decided to cut corners and have the windows only reflect the sky. So I mapped a uv cloud texture I made (adapted from my skybox) to the windows using the “object” option in the “map input” tab. The object was an empty which didn’t move at all. so when the car moves, it looks like the clouds are moving too. Then I just scaled the textures until they looked right.
Hmmm. Alright. Cool thanks.