Render to Texture

28.  Rename to RenderToTexture.py
  • Text Editor menu >> Name box
Note:
  • You don't have to rename it RenderToTexture.py
     
  • You can leave as RenderToTexture.txt
29. Add an Always Sensor to the Monitor
  • Select the Plane named Monitor
     
  • Logic Editor >> Sensors >> Add Sensor >> Always
     
  • Activate TRUE level triggering (pulse mode)
Note:
  • You don't have to use an Always sensor.  You can use any sensor you want.
     
  • RenderToTexture.py needs to be run with every frame.
     
  • Activating TRUE level triggering runs the script every frame.
30.  Add a Python Controller
  • Logic Editor >> Controllers >> Add Controller >> Python
     
  • Execution Method: Script
Note:
  • You need a Python Controller to run a python script