|MAKE OBJECT PLANE Object number, Width, Depth, Columns, Rows|
MAKE OBJECT PLANE Object number, Width, Depth, Columns, Rows, FVF
|These commands can be used to create a multi-vertex plain. The original DBPro command creates a plain out of 2 triangles. These command will create a plain out of many triangles.
Any plain created can only have up to 65536 vertices or the command will fail. The number of vertices is calculated as (Columns+1)*(Rows+1).
The first command will create a plain with an FVF setting of 274, while the second command will use the value you have specified.
The object will be populated with the following data:
The 'origin' of the plain will be set to the centre of the plain.
By default, the first vertex is in the far left corner of the plain (when looking along the objects z axis). The next vertex position is to its right, and so on until the end of the row. At that point, the vertex position is reset back to the left side, and moved one row nearer the negative side of the z axis.
If the Width is specified as a negative number, then the vertices are reordered to start on the right and to advance to the left.
If the Depth is specified as a negative number, then the vertices are reordered to start at the nearest point on the z axis and to advance towards the positive size of the z axis.
Both Width and Depth can be any combination of negative/positive value and the object will be created correctly. In any combination, the object produced will be visible from above, but culled when looked at from below, unless you have changed the objects cull setting.
Constants for all allowable FVF settings: