Mtsgeometry; Mtsinstance - Adobe ATMOSPHERE User Manual

Table of Contents

Advertisement

MTSGeometry

An MTSGeometry object is used to represent a Viewpoint surface. This object also supports the methods and
properties of MTSBaseObject.
Properties
backFaceCull
Enables back-face culling during rendering. This will make closed surfaces render more quickly, but may look
strange with open surfaces.
geometry.backFaceCull = true;
backFaceDirection
Determines the backface culling sense.
geometry.backFaceDirection = 1;
creaseAngle
The crease angle parameter controls the degree of simplifi cation of the geometry.
geometry.creaseAngle = 5.0;
zBuffer
Enables the use of z-buffering when rendering (and is recommended).
geometry.zBuffer = true;
Methods
getTriangleCount()
Returns the count of the triangles used to represent the object.
numTriangles = geometry.getTriangleCount();
getVertexCount()
Returns the number of vertices present in the object.
numVertexes = geometry.getVertexCount();

MTSInstance

An MTSInstance object is used to represent a Viewpoint instance within a Viewpoint object scene. Such an instance
contains a reference to a piece of geometry, along with one or more materials and one or more transformations. An
instance also constains an array of child instances. This type of object also supports the methods and properties of
MTSBaseObject.
343
ADOBE ATMOSPHERE
User Guide

Advertisement

Table of Contents
loading

Table of Contents