Main Page   Modules   Alphabetical List   Data Structures   Data Fields  

RtToon
[FXPack]


Modules

RtToonGeo

Functions

RpToonGeoRtToonGeometryCreateToonGeo (RpGeometry *geometry, RwBool generateCreaseEdgesFromSmoothingGroups)
RpToonGeoRtToonWorldSectorCreateToonGeo (RpWorldSector *sector, RwBool generateCreaseEdgesFromSmoothingGroups)
void RtToonWorldOptimize (RpWorld *world)

Detailed Description

Toon Toolkit for RenderWare.

RtToon Toolkit Overview

Requirements

Overview

RtToon provides functionality for creating and editing toon data. The functionality is only normally used in the art path and as such can safely ignore unless you need to customize the tool chain.

See also:
RpToon

Function Documentation

RpToonGeo* RtToonGeometryCreateToonGeo RpGeometry   geometry,
RwBool    generateCreaseEdgesFromSmoothingGroups
 

RtToonGeometryCreateToonGeo creates an RpToonGeo with edge and connectivity information derived from the input RpGeometry, and stores it in geometry. Creating this information is an expensive memory intensive process which is best done at export time and then streamed for use on consoles. On non-PC platforms the connectivity information will not be created and attempts to use it will fail.

Parameters:
geometry  A pointer to the source geometry.
generateCreaseEdgesFromSmoothingGroups  Toon geometry will determine "crease" edges which are always drawn from the smoothing group boundaries on the source geometry. This parameter is ignored if the source geometry has no vertex normals defined.
Returns:
A pointer to toon geometry if sucessful, or NULL if a memory allocation failed.
See also:
RtToonWorldSectorCreateToonGeo

void RtToonWorldOptimize RpWorld   world
 

RtToonWorldOptimize is used to convert ALL of an RpWorld's RpWorldSector's RpToonGeo s to a rendering

This function is very expensive, should be called at export time only and therefore is only available on PC platforms
Parameters:
world  the world to optimize
See also:
RtToonGeoGetNumEdges , RtToonGeoGetEdges , RpToonInkType , RtToonGeoGetInkIDFromName , RtToonGeoOptimizeEdgeInkIDs

RpToonGeo* RtToonWorldSectorCreateToonGeo RpWorldSector   sector,
RwBool    generateCreaseEdgesFromSmoothingGroups
 

RtToonWorldSectorCreateToonGeo creates an RpToonGeo with edge and connectivity information derived from the input RpWorldSector, and stores it in sector. Creating this information is an expensive memory intensive process which is best done at export time and then streamed for use on consoles. On non-PC platforms the connectivity information will not be created and attempts to use it will fail.

Parameters:
sector  A pointer to the source sector.
generateCreaseEdgesFromSmoothingGroups  Toon geometry will determine "crease" edges which are always drawn from the smoothing group boundaries on the source sector. This parameter is ignored if the source sector has no vertex normals defined.
Returns:
A pointer to toon geometry if sucessful, or NULL if a memory allocation failed.
See also:
RtToonGeometryCreateToonGeo


Criterion Software © 1993-2004 Criterion Software Limited. All rights reserved. Built Thu Feb 12 13:47:14 2004. Send Feedback