Trees | Indices | Help |
|
---|
|
The vrOptimize module allows to optimize the representation of the graphical scene to speed up rendering. Example:: See also example optimize.py
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
float (32bit) |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Function Details |
Cleanup group nodes. Empty group nodes or group nodes with a single child will be removed. There are two functions: cleanupGroupNodes(root_node) cleanupGroupNodes(root_node,recursive)
|
Create multi-materials for a given subgraph.
|
Transform all geometries by an octree structure. Not necessary on todays graphic cards.
|
The materials of a MaterialGroup will be flushed into the underlying geometries and the MaterialGroups will be transformed into group nodes.
|
Moves rotation-related transform information of selected sub-tree to the geometry nodes on lowest level.
|
Moves scale-related transform information of selected subtree to the geometry nodes on lowest level.
|
Moves transformation of selected node to the geometry nodes on lowest level.
|
Flush gen funcs. All TexGenChunks will be removed and appropriate texture coordinates will be calculated.
|
Flush texture transformations. All texture transformations will be multiplied onto the texture coordinates and deleted afterwards.
|
Flush transformations. All transformations will be applied to the geometry nodes on lowest level of the selected sub-tree. Afterwards all transform nodes will be identity transforms.
|
Flush transformations. All transformations will be applied to the geometry nodes on lowest level of the selected sub-tree. Afterwards all transform nodes will be identity transforms. Doesn't change the face normals for mirror transform parents.
|
Moves translation-related transform information of selected sub-tree to the geometry nodes on lowest level.
|
Measures the cache efficiency. 1.0 means one vertex calculation per triangle.
|
Merges geometry nodes.
|
Optimizes geometry to speed up rendering. Stripes and fans are optimized primitives that can be rendered much faster by your graphics hardware.
|
Optimize indices to improve render speed.
|
Optimize the specified scenegraph by using as few materials as possible.
|
Optimizes the scenegraph by applying specified optimization functions. There are two functions available: optimizeTree(options) optimizes the complete scene or optimizeTree(root_node,options) optimizes only a specified subgraph. The Options parameter is to be defined by using bitwise OR of parameters of the following list: OptimizeNothing OptimizeMergeGeometryNodes OptimizeFlushTransformationNodes OptimizeFlushTransformationNodesKeepFaceNormals OptimizeFlushTransformationTranslations OptimizeFlushTransformationRotations OptimizeFlushTransformationScales OptimizeFlushSelectedTransformation OptimizeCleanUpGroupNodes OptimizeFlushMaterialGroupNodes OptimizeUnflushMaterialGroupNodes OptimizeUnifyVertices OptimizeMaterials OptimizeCreateStrips OptimizeCreateFans OptimizeRemoveLODs OptimizeRemoveLODsKeepWorst OptimizeRemovePoints OptimizeRemoveLines OptimizeTriangulate OptimizeDeepTriangulate OptimizeRemoveDegPolys OptimizeFlushTexGen OptimizeFlushTexTransform OptimizeOctree OptimizeRemoveVertexNormals OptimizeRemoveVertexColor OptimizeRemoveLines OptimizeRemoveVertexSecondaryColor OptimizeRemoveTextureCoordinates (replaces deprecated option OptimizeRemoveTexCoord1) OptimizeRemoveTextureCoordinates1 (replaces deprecated option OptimizeRemoveTexCoord2) OptimizeRemoveTextureCoordinates2 (replaces deprecated option OptimizeRemoveTexCoord3) OptimizeRemoveTextureCoordinates3 (replaces deprecated option OptimizeRemoveTexCoord4) OptimizeRemoveTextureCoordinates4 OptimizeRemoveTextureCoordinates5 OptimizeRemoveTextureCoordinates6 OptimizeRemoveTextureCoordinates7 OptimizeShareGeometries OptimizeShareGeometryProperties OptimizeShareMaterials OptimizeShareTextures OptimizeShareBlendChunks OptimizeRemoveSwitches OptimizeReductionByteNormals OptimizeReduction16BitIndices OptimizeReduction16BitLengths OptimizeRemoveMaterialGroupNodes OptimizeRemoveEmptyGroupNodes OptimizeRemoveEmptyGeometries OptimizeRemoveEmptyShells OptimizeRemoveAnimations OptimizeRemoveMetadata OptimizeRemoveFileInfo OptimizeRemoveBSides OptimizeRemoveTransformVariants
|
Removes all animations from nodes in the selected sub-tree.
|
Removes all geometries that are set to B-side from the selected sub-tree.
|
Degenerated Polygons (covering an area of size 0) will be removed.
|
Removes empty geometry nodes.
|
Removes empty shell nodes.
|
Removes identity Transforms. This command is deprecated and doesn't do anything.
|
Remove invalid texture coordinates.
|
Remove LOD nodes. Removes the lower resolution children of all LOD nodes and keeps only the highest resolution LOD within the scene. Rendering performance may drop but the model will utilize less memory.
|
Remove line geometries from the scene representation.
|
Remove material groups.
|
Removes all metadata from nodes in the selected sub-tree.
|
Remove the NURBS information of the selected Node hierarchy. All surfaces and shell nodes are converted to meshes.
|
Remove point geometries from the scene representation.
|
Remove Switch nodes from a given subgraph.
|
Removes all transform nodes with no children.
|
Removes all transform variants from nodes in the selected sub-tree.
|
Separate shared geometry properties.
|
Shares equal geometry nodes.
|
Share pointers. Eliminates all duplicate entities from the scene and replaces them with references. Saves a lot of memory.
|
Sort indices to improve render speed.
|
Optimize indices to improve render speed.
|
Triangulate the geometries. The resulting geometry is no longer optimized for the graphics card.
|
The materials within a geometry will be removed, instead a MaterialGroup with the material will be placed above.
|
Optimize the geometry by creating shared indices and removing unused and double coords, colors, and texcoords. Speeds up rendering and saves memory.
|
Verifies geometry nodes.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Nov 29 09:33:21 2024 | http://epydoc.sourceforge.net |