Real Time Mirror -- Blender 3D Game Engine














Quick Instructions

1.  Add the game object to be used as the mirror
 
2.  Add a material to the Mirror.  Set to shadeless
Add a material
Buttons Window menu >> Shading (F5) >> Material buttons
Links and Pipeline tab
Link to Object
Add New
Links and Pipeline tab
Link to Object
MA:  Reflect
Material tab
Shadeless button
 
3.  Add a texture to the material
Buttons Window menu >> Shading (F5) >> Texture buttons (F6)
Texture Tab
Add New
Texture Type:  Image
Image tab
Load
 
4.  Add a UV Texture to the material
Buttons Window menu >> Editing (F9)
Mesh tab
UV Texture: New
 
5.  UV Unwrap the UV texture
U key
or
3D View menu >> Mesh >> UV Unwrap
Select UV Calculation method
 
6.  UV map UV Texture to image
UV/Image editor >> Image box
Select  image
Map to image
Mirror X Axis (for mirror image)
 
7.  Map Input:  UV
Buttons Window menu >> Shading (F5) >> Material buttons
Map Input tab
UV button
UV name
 
8.  Add Mirror.py to the Text Editor
Download:  Mirror.txt
Text Editor menu >> Text >> Open
Rename Mirror.txt to Mirror.py (if it isn't already)
 
9.  Add an Always Sensor to the Mirror
Buttons Window menu >> Logic (F4)
Sensors
Add
Always
Activate TRUE level triggering (pulse mode)
 
10.  Add a Python Controller:  Use Mirror.py
Buttons Window menu >> Logic (F4)
Controllers
Add
Python
Script:  Mirror.py
 
11.  Add a string Property named material to the Mirror
Buttons Window menu >> Logic (F4)
Add Property button
Type:  String
Name:  material
Enter the material name
 
12.  Connect the Always Sensor to the Python Controller
 
13.  Optional:  Add a  Int (integer) Property named channel to the Mirror

Note:
By default, the Mirror uses the 1st texture channel (channel 0) on the material for the mirror.  Add this if you want to use a different texture channel.

Add Property named material to the Camera
Buttons Window menu >> Logic (F4)
Add Property button
Type:  Int
Name:  channel
 
14.  Optional:  Make Mirror (semi) transparent

Note:
Blender GLSL Materials and Blender Multitexture Materials. 

Buttons Window menu >> Shading (F4) >> Materials buttons
Links and Pipeline tab
ZTransp button
Material tab
A (slider bar)

 
15.  Start Game Engine
P key
or
User Preference menu >> Game >> Start Game
 

 
 
Download free seamless game textures or you can create your own seamless game textures. Use reference photos to add realism to the seamless texture you create. Textures let you create the style and mood for your computer game. Textures are a way to add detail and color to 3D graphics. Photo realistic textures add realism. Download free game models for your video game or create your own game models. Use the game models in First Person Shooter, role playing games, racing simulations and more. Download free textures to add detail to your game models. You can use the free game models you downloaded or model your own game models.