本文整理汇总了Python中GameLogic.setMaxLogicFrame方法的典型用法代码示例。如果您正苦于以下问题:Python GameLogic.setMaxLogicFrame方法的具体用法?Python GameLogic.setMaxLogicFrame怎么用?Python GameLogic.setMaxLogicFrame使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GameLogic
的用法示例。
在下文中一共展示了GameLogic.setMaxLogicFrame方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Exception
# 需要导入模块: import GameLogic [as 别名]
# 或者: from GameLogic import setMaxLogicFrame [as 别名]
raise Exception('no object "%s" in blender file' % e[0][16:-18])
# set available Action Units from the blender file (Blender Shape Actions)
cont = G.getCurrentController()
owner = cont.owner
acts = [act for act in cont.actuators if
not act.name.startswith('-') and act.action]
check_defects(owner, acts)
# all properties must be set to the face mesh.
# TODO: p26 is copied on the 'jaw' bone too, use the one from face mesh.
G.server[FACE].set_available_AUs([n[1:] for n in owner.getPropertyNames()])
# ok, startup
G.initialized = True
G.setMaxLogicFrame(1) # relative to rendering
G.setLogicTicRate(MAX_FPS)
import Rasterizer
# Rasterizer.enableMotionBlur( 0.65)
Rasterizer.setBackgroundColor([.0, .0, .0, 1.0])
print "Material mode:", ['TEXFACE_MATERIAL','MULTITEX_MATERIAL ','GLSL_MATERIAL '][Rasterizer.getMaterialMode()]
G.last_update_time = time.time()
return cont
def update(faceServer, time_diff):
"""
"""
global INFO_PERIOD
cont = G.getCurrentController()
eyes_done = False