5
$\begingroup$

A google search found this demo of a mirror in the BGE Video:Mirror Made in Blender Game Engine but I can't find out how to setup the material. Unlike in the BI renderer the option Mirror isn't available when in BGE.

What tricks do I need to know?

$\endgroup$
  • $\begingroup$ It is called render to texture, you can also set it to mirror instead of UV, Generated, Object...etc. Here is a simple tutorial on render to texture inside of the blender game engine. youtube.com/watch?v=mPFhX_ogL2Y $\endgroup$ – Shane Johnson Jun 7 '14 at 18:17
5
$\begingroup$

You can easily fake it for Multitexture and GLSL - shading modes:

  • Give the Object a material
  • Give the material an image texture
  • In the Mapping panel of that texture, set the Coordinates to Reflection

To make it work, you should use a sphere map and use camera view. I did this sphere map by setting the camera to orthographic (Orthographic Scale of 2.0, because the sphere is 2 blender units in diameter) and rendering a reflective sphere.

Spheremap generated with Blender

The result looks like this:

Suzie with reflection map applied

$\endgroup$
7
$\begingroup$

It is possible by using bge.texture.ImageMirror. Basically the mirror objects texture is frame by frame replaced with a video-texture which is captured by another camera.

enter image description here

A tutorial and an example .blend file which works with Blender 2.68.

$\endgroup$
  • $\begingroup$ So is this always one frame behind? $\endgroup$ – wchargin Sep 8 '13 at 18:38
  • $\begingroup$ @WChargin currently I don't understand the implications of the script included in the .blend file. $\endgroup$ – stacker Sep 8 '13 at 20:45
  • $\begingroup$ Image without anti-aliasing is a bit strange... But it does work for me when I download a 2.6 example blend and open with 2.7, but I can not make one in my game in 2.72. Who can help me? $\endgroup$ – Adrians Netlis Dec 27 '14 at 19:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.