Syntax

Result = dbMakeObjectPlain(ObjectID, Width.f, Height.f [, Orientation])

Description

If #PB_Any is used as the ObjectID parameter, the new ID will be returned as 'Result'. Otherwise the value of 'Result' is the same value passed as the ObjectID parameter.

This command will construct a 3D object from a single sided flat mesh. The mesh is used as the root limb for the 3D object. The 3D object will be constructed untextured and such models will appear white when displayed. The parameters should be specified using integer values. By default this primitive is facing away from the camera when created and so any lighting is being performed on the side not immediately visible to the camera. This causes such properties such as shading and coloring not to be seen until the primitive is rotated to face the camera. Be aware that the default orientation of the plain is reversed, contrary to the orientation of other primitive objects. Use the optional parameter of one to restore the orientation to conform with that used by the other objects. A reversed plain exhibits the issues of darker coloring and a 180 degree rotation on the Y axis.

 

Orientation

Set this parameter to 1 to restore the orientation to conform with that used by the other objects.

See Also

dbMakeObject, dbMakeObjectBox, dbMakeObjectCone, dbMakeObjectCube, dbMakeObjectCylinder, dbMakeObjectFromLimb, dbMakeObjectSphere, dbMakeObjectTriangle