本文整理汇总了Python中WorldEditor.terrainHeightMapRes方法的典型用法代码示例。如果您正苦于以下问题:Python WorldEditor.terrainHeightMapRes方法的具体用法?Python WorldEditor.terrainHeightMapRes怎么用?Python WorldEditor.terrainHeightMapRes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WorldEditor
的用法示例。
在下文中一共展示了WorldEditor.terrainHeightMapRes方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: enterChunkVizMode
# 需要导入模块: import WorldEditor [as 别名]
# 或者: from WorldEditor import terrainHeightMapRes [as 别名]
def enterChunkVizMode( self ):
t = WorldEditor.tool()
if ( t != None ):
curr = WorldEditor.getOptionInt( "render/chunk/vizMode" )
t.delView( "chunkViz" )
vizRes = 0;
if t.functor == self.alphaTool.functor:
vizRes = WorldEditor.terrainBlendsRes()
elif t.functor == self.itemTool.functor or t.functor == self.heightTool.functor or t.functor == self.filterTool.functor:
vizRes = WorldEditor.terrainHeightMapRes()
elif t.functor == self.holeTool.functor:
vizRes = WorldEditor.terrainHoleMapRes()
if vizRes == 0:
self.needsChunkVizUpdate = True
vizRes = 1 # set it to some sensible value
else:
self.needsChunkVizUpdate = False
if curr == 1:
t.addView( self.chunkViz, "chunkViz" )
elif curr == 2:
self.vertexViz.numPerChunk = vizRes
t.addView( self.vertexViz, "chunkViz" )
elif curr == 3:
self.meshViz.numPerChunk = vizRes
t.addView( self.meshViz, "chunkViz" )