gpu-curtains
    Preparing search index...

    Additional class to help manage glTF pointer animations defined by the KHR_animation_pointer extension.

    const gltfLoader = new GLTFLoader()
    const pointerAnimationsManager = new GLTFPointerAnimationsManager()
    const gltf = await gltfLoader.loadFromUrl('path/to/model.gltf')

    // create a gltfScenesManager from the resulting 'gltf' object
    // assuming 'renderer' is a valid camera renderer or curtains instance
    const gltfScenesManager = new GLTFScenesManager({ renderer, gltf })

    // create the pointer animations
    pointerAnimationsManager.createPointerAnimations(gltfScenesManager)

    // add the meshes
    gltfScenesManager.addMeshes()
    Index

    Constructors

    Properties

    gltfScenesManager: GLTFScenesManager

    Current GLTFScenesManager instance to add the pointer animations to.

    Specific map of the mesh descriptor pointer materials animations.

    Methods

    • Get any camera animations value type and key (property) to use for the KeyframesAnimation.

      Parameters

      • animatedProperty: string

        Animated property from the pointer channel extension path.

      Returns {
          type: KeyframesAnimationValueType;
          key:
              | "left"
              | "top"
              | "bottom"
              | "position"
              | "right"
              | "scale"
              | "transformOrigin"
              | "visible"
              | "label"
              | "children"
              | "size"
              | "up"
              | "parent"
              | "rotation"
              | "quaternion"
              | "object3DIndex"
              | "pixelRatio"
              | "onMatricesChanged"
              | "near"
              | "far"
              | "fov"
              | "forceAspect"
              | "setPerspective"
              | "uuid"
              | "matrices"
              | "destroy"
              | "projectionMatrix"
              | "viewMatrix"
              | "setOrthographic"
              | "setSize"
              | "getVisibleSizeAtDepth"
              | "setVisibleSize"
              | "updateProjectionMatrix"
              | "frustumPlanes"
              | "CSSPerspective"
              | "visibleSize"
              | "setMatrices"
              | "viewProjectionMatrix"
              | "shouldUpdateViewMatrices"
              | "shouldUpdateProjectionMatrices"
              | "updateModelMatrix"
              | "shouldUpdateWorldMatrix"
              | "updateMatrixStack"
              | "setCSSPerspective"
              | "lookAt"
              | "transforms"
              | "actualPosition"
              | "matricesNeedUpdate"
              | "parentVisibility"
              | "setTransforms"
              | "applyRotation"
              | "applyPosition"
              | "applyScale"
              | "applyTransformOrigin"
              | "modelMatrix"
              | "shouldUpdateModelMatrix"
              | "worldMatrix"
              | "applyLookAt"
              | "updateWorldMatrix"
              | "shouldUpdateMatrices";
      }

      • The camera animations value type and key (property) to animate.
      • type: KeyframesAnimationValueType

        Animation value type.

      • key:
            | "left"
            | "top"
            | "bottom"
            | "position"
            | "right"
            | "scale"
            | "transformOrigin"
            | "visible"
            | "label"
            | "children"
            | "size"
            | "up"
            | "parent"
            | "rotation"
            | "quaternion"
            | "object3DIndex"
            | "pixelRatio"
            | "onMatricesChanged"
            | "near"
            | "far"
            | "fov"
            | "forceAspect"
            | "setPerspective"
            | "uuid"
            | "matrices"
            | "destroy"
            | "projectionMatrix"
            | "viewMatrix"
            | "setOrthographic"
            | "setSize"
            | "getVisibleSizeAtDepth"
            | "setVisibleSize"
            | "updateProjectionMatrix"
            | "frustumPlanes"
            | "CSSPerspective"
            | "visibleSize"
            | "setMatrices"
            | "viewProjectionMatrix"
            | "shouldUpdateViewMatrices"
            | "shouldUpdateProjectionMatrices"
            | "updateModelMatrix"
            | "shouldUpdateWorldMatrix"
            | "updateMatrixStack"
            | "setCSSPerspective"
            | "lookAt"
            | "transforms"
            | "actualPosition"
            | "matricesNeedUpdate"
            | "parentVisibility"
            | "setTransforms"
            | "applyRotation"
            | "applyPosition"
            | "applyScale"
            | "applyTransformOrigin"
            | "modelMatrix"
            | "shouldUpdateModelMatrix"
            | "worldMatrix"
            | "applyLookAt"
            | "updateWorldMatrix"
            | "shouldUpdateMatrices"

        Camera key (property) to animate.