Vertex


Usage

Vertex <x> <y> <z> [uv <u> <v>] [prelight <red> <green> <blue>]

Note: [] denotes optional arguments

Also note: the Vertex and VertexExt commands are equivalent and may be used interchangeably

Description

This command creates a new vertex and adds it to the current clump under construction. The vertex can have optional additional parameters.

The position of the vertex is transformed by the transformation matrix currently in effect.

Arguments

<x> <y> <z> Specifies the (x, y, z) coordinates of the vertex.

uv <u> <v> Specifies the "uv" coordinates for this vertex. "uv" coordinates determine how a texture applied to the object are mapped to each particular vertex.

prelight <red> <green> <blue> Specifies a "pre-light" color to be used as a starting point at this vertex before lighting is calculated. Pre-light colors allow very subtle control over the effects of lighting on an object. Each color component should be specifed in the range 0.0 to 1.0.

Once any vertex in a clump has been assigned a prelight color, all vertices in that clump become prelit. If prelight has not been specified on the other vertices, they default to the last previously specified prelight value on that clump (or 0.0 0.0 0.0 if no previous prelight has been specified). This can be useful for assigning multiple sequential vertices the same prelight value without having to individually specifiy a prelight value for each vertex.

Note that the prelight option is a RWX extension and should be prefaced with "#!" when used in RWX files that are intended to work with software other than Outerworlds 3.0 and later.

See Also

Using RWX Extensions