Options
All
  • Public
  • Public/Protected
  • All
Menu

This class is used to deform meshes using morphing between different targets

see

https://doc.babylonjs.com/how_to/how_to_use_morphtargets

Hierarchy

  • MorphTargetManager

Implements

Index

Constructors

  • Creates a new MorphTargetManager

    Parameters

    Returns MorphTargetManager

Properties

enableNormalMorphing: boolean

Gets or sets a boolean indicating if normals must be morphed

enableTangentMorphing: boolean

Gets or sets a boolean indicating if tangents must be morphed

enableUVMorphing: boolean

Gets or sets a boolean indicating if UV must be morphed

optimizeInfluencers: boolean

Gets or sets a boolean indicating if influencers must be optimized (eg. recompiling the shader if less influencers are used)

EnableTextureStorage: boolean

Enable storing morph target data into textures when set to true (true by default)

Accessors

  • get areUpdatesFrozen(): boolean
  • set areUpdatesFrozen(block: boolean): void
  • Sets a boolean indicating that adding new target or updating an existing target will not update the underlying data buffers

    Returns boolean

  • Sets a boolean indicating that adding new target or updating an existing target will not update the underlying data buffers

    Parameters

    • block: boolean

    Returns void

  • get influences(): Float32Array
  • Gets the list of influences (one per target)

    Returns Float32Array

  • get isUsingTextureForTargets(): boolean
  • Gets a boolean indicating that the targets are stored into a texture (instead of as attributes)

    Returns boolean

  • get numInfluencers(): number
  • Gets the number of influencers (ie. the number of targets with influences > 0)

    Returns number

  • get numTargets(): number
  • Gets the number of targets stored in this manager

    Returns number

  • get supportsNormals(): boolean
  • Gets a boolean indicating if this manager supports morphing of normals

    Returns boolean

  • get supportsTangents(): boolean
  • Gets a boolean indicating if this manager supports morphing of tangents

    Returns boolean

  • get supportsUVs(): boolean
  • Gets a boolean indicating if this manager supports morphing of texture coordinates

    Returns boolean

  • get uniqueId(): number
  • Gets the unique ID of this manager

    Returns number

  • get useTextureToStoreTargets(): boolean
  • set useTextureToStoreTargets(value: boolean): void
  • Gets or sets a boolean indicating that targets should be stored as a texture instead of using vertex attributes (default is true). Please note that this option is not available if the hardware does not support it

    Returns boolean

  • Gets or sets a boolean indicating that targets should be stored as a texture instead of using vertex attributes (default is true). Please note that this option is not available if the hardware does not support it

    Parameters

    • value: boolean

    Returns void

  • get vertexCount(): number
  • Gets the number of vertices handled by this manager

    Returns number

Methods

  • Add a new target to this manager

    Parameters

    Returns void

  • Clone the current manager

    Returns MorphTargetManager

    a new MorphTargetManager

  • dispose(): void
  • Release all resources

    Returns void

  • Gets the active target at specified index. An active target is a target with an influence > 0

    Parameters

    • index: number

      defines the index to check

    Returns MorphTarget

    the requested target

  • Gets the target at specified index

    Parameters

    • index: number

      defines the index to check

    Returns MorphTarget

    the requested target

  • Removes a target from the manager

    Parameters

    Returns void

  • serialize(): any
  • Serializes the current manager into a Serialization object

    Returns any

    the serialized object

  • synchronize(): void
  • Synchronize the targets with all the meshes using this morph target manager

    Returns void

  • Creates a new MorphTargetManager from serialized data

    Parameters

    • serializationObject: any

      defines the serialized data

    • scene: Scene

      defines the hosting scene

    Returns MorphTargetManager

    the new MorphTargetManager

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Property
  • Method
  • Static property
  • Static method
  • Inherited constructor

Settings

Theme