Viewports: Blender 3D Game Engine



 
 


Quick Instructions

1.  Give the camera a unique name
Open Transform Properties
N key
or
3D View menu >> Object >> Transform Properties
Give it a unique name
 
2.  Add a second camera
Spacebar >> Add >> Camera
or
User Preference menu >> Add >> Camera
Give it a unique name
Open Transform Properties
N key
or
3D View menu >> Object >> Transform Properties
Give it a unique name
 
3.  Add a string Property named Cam1
Add Property
Name: Cam1
Type:  String
Camera unique name
 
4.  Add a string Property named Cam2
Add Property
Name: Cam2
Type:  String
Camera unique name
 
5.  Optional:  Add a Bool Property named Vertical
Buttons Window menu >> Logic (F4)
Add Property button
Type:  Bool
Name:  Vertical
 
6.  Add Viewport.py to the Text Editor
Download:
Text Editor menu >> Text >> Open
Rename Viewport249.txt or Viewport248.txt to Viewport.py
 
7.  Add an always sensor set to run once
Buttons Window menu >> Logic (F4)
Sensors
Add
Always
Set to Run Once
 
8.  Add a Python Controller
Buttons Window menu >> Logic (F4)
Controllers
Add
Python
 Script:  Viewport.py
 
9.  Connect the Always Sensor to the Python Controller 
Buttons Window menu >> Logic (F4)
Pull wire from brass bump to brass dimple
 
10.  More Detail:  Every camera has a viewport.
The viewport of a camera that is the active camera is alway enabled.  
By default, the viewports on the rest of the cameras are disabled. 
These viewports can be enabled and disabled.

 
11.  More Detail:  The viewport of the active camera can't be disabled.
There is only one active camera in a scene.
Any camera can be the active camera.
You can change which camera is the active camera while the game is running.
 
12.  More Detail:  Size of a viewport can be changed.
By default, the viewport of a camera is the same size as the game window.
The size of a camera viewport can be changed. 
Even the viewport of the active camera.  It doesn't have to be full screen. 
 
13.  More Detail:  Viewports that are enabled are always rendered.
Viewports that are enabled are always rendered.  Even if all or part of the viewport has been covered by another viewport.
 
14.  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.