3D Lingo Dictionary > T-Z > visibility

 

visibility

Syntax

member(whichCastmember).model(whichModel).visibility
modelObjectReference.visibility

Description

3D property; allows you to get or set the visibility property of the referenced model. This property determines how the model's geometry is drawn. It can have one of the following values:

#none specifies that no polygons are drawn and the model is invisible.

#front specifies that only those polygons facing the camera are drawn.This method is referred to as back face culling and optimizes rendering speed. This is the default setting for the property.

#back specifies that only those polygons facing away from the camera are drawn. Use this setting when you want to draw the inside of a model, or for models which are not drawing correctly, possibly because they were imported from a file format that used a different handiness value when computing normals.

#both specifies that both sides of all polygons are drawn.Use this setting when you want to see the plane regardless of the viewing direction, and for models that are not drawing correctly.

Example

This statement shows that the visibility property of the model Monster02 is set to #none. The model is invisible.

put member("3D").model("Monster02").visibility
-- #none