User Guide

ADOBE ATMOSPHERE 331
User Guide
objectFaceNo
The face number of the primitive. This value is read-only.
lightMapOrigin
The origin of the face’s light map as a Vector. This value is read-only.
lightMapUTangent
The tangent to the light maps U-axis as a Vector. This value is read-only.
lightMapVTangent
The tangent to the light maps V-axis as a Vector. This value is read-only.
textureOrigin
The origin of the face’s texture as a Vector. This value is read-only.
textureUTangent
The tangent to the texture’s U-axis as a Vector. This value is read-only.
textureVTangent
The tangent to the texture’s V-axis as a Vector. This value is read-only.
Methods
getSurfaceTexture()
Returns the SurfaceTexture object attached to the face.
Code Sample
box = SceneGroup(“./box.aer”).add();
loader = new Object();
loader.timestep = function()
{
if (box.loaded)
{
thePrimitive = box.solidObject.rootPrimitive;
theFace = thePrimitive.getFace(0);
theSurfaceTexture = theFace.getSurfaceTexture();
chat.print(“Face normal Vector: + theFace.normal);
chat.print(“Face number: + theFace.objectFaceNo);
chat.print(“Face light map origin: “ + theFace.lightMapOrigin);
chat.print(“Face light map U-tangent: “ + theFace.lightMapUTangent);
chat.print(“Face light map V-tangent: “ + theFace.lightMapVTangent);
chat.print(“Face texture origin: ” + theFace.textureOrigin);
chat.print(“Face texture U-tangent: + theFace.textureUTangent);
chat.print(“Face texture V-tangent: + theFace.textureVTangent);
removeAnimator(this);
}