Blender Git Loki

Git Commits -> Revision 9847537

Revision 9847537 by Benoit Bolsee (ge_2df_textures)
March 31, 2017, 22:57 (GMT)
BGE: new bge.logic.Render() to perform render w/o logic step.

This function works only if python has control:
1. add scene custom property, call it __main__
2. give it string value as the name of a text block
3. code game loop in python in text block. Example:

import bge

t = 0.0;
scene = bge.logic.getCurrentScene()
cam = scene.cameras["Camera"]
while not bge.logic.NextFrame():
cam.useViewport = True
# second render with viewport enable, clock time unchanged
# advance animation for next frame
t += 0.02
cam.useViewport = False

Commit Details:

Full Hash: 9847537979b8a3ccf4ee5c7f6ca5b66ed9d7b80b
Parent Commit: e4ea5e5
Lines Changed: +60, -12

Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18 MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2022