I am trying to make a security camera in Blender Game Engine. I would just like to press the SPACEBAR and then you can see what the second camera sees. Does anyone know how to do that? Thank you very much for reading this question
By Networking Security Posted in: security camera
©2011 Networking Security, All rights reserved.
I’ll will give you steps to achieve this in a new blender file, you can use this method to your existing file.
My scene consists on a camera, a cube and a point lamp.
Follow these steps:
1)Add a new scene. Select Link objects from the add scene menu. Change the name to scene 2.
2)Goto scene 2. Select the camera and press ‘u’ and selct object and data from the menu. Change the camera position to the desired location.
3)With camera selected, goto logic editor window. Click add sensor button and select keyboard from menu. set ket : spacebar.
4)Click on add controller select and from menu.
5)Click on add actuator and select scene from the menu. set mode to ‘set scene’ and set scene to ‘scene’(Which is my first scene).
6)Goto scene. Follow the steps 3 to 5, but this time set the scene to ‘scene 2′ in the actuator.
7)press 0. (To view from camera). Press ‘p’.
You can also achieve this by setting the mode of scene actuator to set camera mode and using a python script to detect the active camera.
If any problem add your email id in details i’ll send you the file.
Hope this helps.
Enjoy.