Syntax
dbSetObject(ObjectID, Wire, Transparent, Cull [, Filter [, Light [, Fog [, Ambient]]]])
Description
This command sets the internal properties of a specified 3D object number. When the Wire flag is set to 0, the object only shows its wireframe form. When the Transparency flag is set to 0, all parts of the object colored black are not drawn to the screen. When the cull flag is set to 0, the object will draw polygons normally hidden due to the direction the polygon faces. The Filter flag sets the texture filtering, which controls the smoothing effect of the texture as it is mapped to the object. A Filter value of zero does no mipmapping, a value of one uses no smoothing and a value of two uses Linear Filtering. The Light flag activates and deactivates the objects sensitivity to any lights in the scene. The Fog flag activates and deactivates the objects sensitivity to fog in the scene. The Ambient flag activates and deactivates the objects sensitivity to ambient light in the scene. The object number and flag values should be specified using integer values. If the object uses diffuse based colour, deactivating the light source will also deactivate the ability of the object to show its colour as it uses the light to calculate the diffuse result.
See Also
dbSetImageColorKey, dbSetObjectAmbient, dbSetObjectCull, dbSetObjectFilter, dbSetObjectFog, dbSetObjectTransparency, dbSetObjectWireFrame, dbTextureObject