RenderWare V2.1

Previous Page Index Next Page

Sphere <radius> <density>

Description

Adds polygons representing a sphere to the current clump under construction.

Arguments

radius The radius of the sphere.

density Controls the accuracy of the sphere.

Comments

The density controls the number of polygons used to approximate the sphere. A density of zero results in a cube. The number of polygons used for the approximation varies exponentially with density.

The vertices of the sphere are transformed by the current transformation matrix (CTM). The current material is applied to the polygons of the sphere.

If a negative radius is given the polygons forming the sphere will face inward.

API Equivalent

RwSphere()