Main Page   Modules   Alphabetical List   Data Structures   Data Fields  

RtSplinePVS
[PVS]


Functions

RpWorld RtSplinePVSConstruct (RpWorld *world, RpSpline *spline, RwInt32 samples)

Detailed Description

Spline PVS Toolkit for RenderWare.

RtSplinePVS Toolkit Overview

Requirements

Overview

This toolkit provides facilities for generating PVS data using a spline for a world.

The RpPVS plugin generates PVS data for a world by taking samples from within the boundaries of the world sector's bounding box. For some worlds, this is not necessary.

An example is a racetrack where movement is limited to the track and the world is modelled around the track and is not fully complete. Such a world would contain geometry that would be visible from the track only with the rest of the world not modelled.

In such a scenario, PVS samples should be also taken from along track.

The RtSplPVS toolkit allows samples to be taken from just the along the spline. This reduces the number of samples taken and also generate PVS data more suited to such worlds.


Function Documentation

RpWorld* RtSplinePVSConstruct RpWorld   world,
RpSpline   spline,
RwInt32    samples
 

RtSplinePVSConstruct is used to create PVS from sampling on a spline.

Parameters:
world  Pointer to the world where PVS is to be created.
spline  Pointer sampling spline.
samples  Number of samples to be generated from the spline.
Returns:
Returns the input world if PVS creation was successful. NULL otherwise.
See also:
RpPVSCreate , RpPVSSamplePOV

Criterion Software © 1993-2003 Criterion Software Limited. All rights reserved. Built Tue Apr 22 12:47:01 2003. Send Feedback
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)