SubMesh wraps a SubGeometry as a scene graph instantiation. A SubMesh is owned by a Mesh object.


Created SubMesh object has properties:

animationSubGeometry

(AnimationSubGeometry)

animator

[read-only] The animator object that provides the state for the SubMesh's animation. IAnimator can be one of ParticleAnimator, SkeletonAnimator, SpriteSheetAnimator, UVAnimator, VertexAnimator

animatorSubGeometry

(AnimationSubGeometry)

bounds

[read-only] (BoundingVolumeBase)

castsShadows

[read-only] Boolean (not supported)

indexData

[read-only] Vector array of Int.

inverseSceneTransform

[read-only] The inverse scene transform object that transforms from world to model space. (Matrix3D)

material

The material used to render the current SubMesh. (MaterialBase)

mouseEnabled

[read-only] Indicates whether the SubMesh should trigger mouse events, and hence should be rendered for hit testing. Boolean

numTriangles

[read-only] The amount of triangles that make up this SubMesh.

numVertices

[read-only]

offsetU

Number

offsetV

Number

scaleU

Number

scaleV

Number

sceneTransform

[read-only] The scene transform object that transforms from model to world space. (Matrix3D)

shaderPickingDetails

[read-only] Boolean

sourceEntity

[read-only] The entity that that initially provided the IRenderable to the render pipeline (ie: the owning Mesh object). (Entity)

subGeometry

The SubGeometry object which provides the geometry data for this SubMesh. ISubGeometry: CompactSubGeometry, SubGeometry.

UVData

[read-only] Vector array of numbers

UVOffset

[read-only] Int

uvRotation

Number

UVStride

[read-only] Int

uvTransform

[read-only] (Matrix)

vertexData

[read-only] Vector array of numbers

vertexNormalData

[read-only] Vector array of numbers

vertexNormalOffset

[read-only] Int

vertexOffset

[read-only] Int

vertexStride

[read-only] Int

vertexTangentData

[read-only] Vector array of numbers

vertexTangentOffset

[read-only] Int

visible

[read-only] Boolean


methods:

activateSecondaryUVBuffer(index, stage3DProxy)

Assigns the attribute stream for a secondary set of UV coordinates

index - The attribute stream index for the vertex shader

stage3DProxy - The Stage3DProxy to assign the stream to. (Stage3DProxy)

activateUVBuffer(index, stage3DProxy)

Assigns the attribute stream for UV coordinates

index - The attribute stream index for the vertex shader

stage3DProxy - The Stage3DProxy to assign the stream to. (Stage3DProxy)

activateVertexBuffer(index, stage3DProxy)

Assigns the attribute stream for vertex positions.

index - The attribute stream index for the vertex shader

stage3DProxy - The Stage3DProxy to assign the stream to. (Stage3DProxy)

activateVertexNormalBuffer(index, stage3DProxy)

Assigns the attribute stream for vertex normals

index - The attribute stream index for the vertex shader

stage3DProxy - The Stage3DProxy to assign the stream to. (Stage3DProxy)

activateVertexTangentBuffer(index, stage3DProxy)

Assigns the attribute stream for vertex tangents

index - The attribute stream index for the vertex shader

stage3DProxy - The Stage3DProxy to assign the stream to. (Stage3DProxy)

getIndexBuffer(stage3DProxy)

Retrieves the IndexBuffer3D object that contains triangle indices.

stage3DProxy - The Context3D for which we request the buffer. (Stage3DProxy)

dispose()



getRenderSceneTransform(camera)

Returns (Matrix3D)

camera - (Camera3D)

Created with the Personal Edition of HelpNDoc: Easily create Help documents