Functions |
|
RpGeometry * | RtGeometryCalculateVertexNormals (RpGeometry *geometry) |
RpAtomic * | RtAtomicOptimize (RpAtomic *atomic, RwReal dist) |
RpClump * | RtClumpOptimize (RpClump *clump, RwReal dist) |
RwInt32 | RtWorldGetNumWorldSectors (RpWorld *world) |
RwInt32 | RtWorldGetNumVertices (RpWorld *world) |
RwInt32 | RtWorldGetNumPolygons (RpWorld *world) |
RpMaterial * | RtWorldFindMaterialWithTextureName (RpWorld *world, RwChar *name) |
RwInt32 | RtWorldFindMaterialNum (RpWorld *world, RpMaterial *material) |
|
RtAtomicOptimize is used to optimize the specified atomic for rendering by eliminating duplicated materials in the atomics geometry. It also searches the atomics geometry for vertices that are within the given distance of each other and replaces them with a single vertex. Their normals must also be within the given tolerance for the replacement to occur. This function may be used to eliminate vertices from the geometry that are considered coincident within the specified tolerance. Note that only vertices that have the same pre-light color and texture coordinates can be replaced with a single vertex. Also, if there is more than one morph target within the geometry, the position and normal of a specific vertex must be within the specified tolerance over all morph targets for this optimization to be performed. The world plugin must be attached before using this function. The include file rtworld.h and the library file rtworld.lib are also required.
|
|
RtClumpOptimize is used to optimize the specified clump for rendering by eliminating duplicated materials in geometry referenced by each atomic constituting the clump. It also searches the geometry for vertices that are within the given distance of each other and replaces them with a single vertex. Their normals must also be within the given tolerance for the replacement to occur. This function may be used to eliminate vertices from the geometry that are considered coincident within the specified tolerance. Note that only vertices that have the same pre-light color and texture coordinates can be replaced with a single vertex. Also, if there is more than one morph target within the geometry, the position and normal of a specific vertex must be within the specified tolerance over all morph targets for this optimization to be performed. The world plugin must be attached before using this function. The include file rtworld.h and the library file rtworld.lib are also required.
|
|
RtGeometryCalculateVertexNormals is used to calculate a normal vector for each vertex defining the specified geometry. The geometry must have been created with the rpGEOMETRYNORMALS flag so that the data array holding the vertex normals is available. A vertex normal is calculated by averaging the face normals of all connecting polygons that share the vertex, weighted by the angle of each polygon at the vertex. If the vertex is not shared a normal equal to the face normal is used. The resulting vertex normals are of unit length. The geometry is unlocked after the vertex normals have been calculated. The world plugin must be attached before using this function. The include file rtworld.h and the library file rtworld.lib are also required.
|
|
RtWorldFindMaterialNum is used to retrieve the index of the specified material (used by static geometry) in the given world. The index is into the worlds material list. The world plugin must be attached before using this function. The include file rtworld.h and the library file rtworld.lib are also required to use this function.
|
|
RtWorldFindMaterialWithTextureName is used to find a material in the specified worlds material list (static geometry only) that references a texture with the given name. The world plugin must be attached before using this function. The include file rtworld.h and the library file rtworld.lib are also required to use this function.
|
|
RtWorldGetNumPolygons is used to retrieve the number of polygons constituting all static geometry in the specified world. Polygons which are not used by static geometry are not counted. The world plugin must be attached before using this function. The include file rtworld.h and the library file rtworld.lib are also required to use this function.
|
|
RtWorldGetNumVertices is used to retrieve the number of vertices constituting all static geometry in the specified world. Vertices which are not used by static geometry are not counted. The world plugin must be attached before using this function. The include file rtworld.h and the library file rtworld.lib are also required to use this function.
|
|
RtWorldGetNumWorldSectors is used to retrieve the number of world sectors constituting all static geometry in the specified world. The world plugin must be attached before using this function. The include file rtworld.h and the library file rtworld.lib are also required to use this function.
|
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |