Syntax

Result = dbMakeObjectSphere(ObjectID, Size.f [, Rows, Columns])

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 sphere 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. Ensure what specifying additional resolution to the object, you do not exceed the maximum size allowed, which depends on the resulting vertex data required to create the object. Normally, a single limb within an object has a maximum size of 21845 polygons. Be aware that creating large object numbers reserves a large jump table in memory which may affect overall initialisation speed. Use small object numbers where possible.

See Also

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