@automovie/viewer 0.0.0-stage → 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +54 -2
- package/lib/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.d.ts +4 -0
- package/lib/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.js +5 -0
- package/lib/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.js.map +1 -0
- package/lib/AutoMovieDisplayCompositor.d.ts +105 -0
- package/lib/AutoMovieDisplayCompositor.js +342 -0
- package/lib/AutoMovieDisplayCompositor.js.map +1 -0
- package/lib/AutoMovieDissolveCompositorState.d.ts +4 -0
- package/lib/AutoMovieDissolveCompositorState.js +3 -0
- package/lib/AutoMovieDissolveCompositorState.js.map +1 -0
- package/lib/AutoMovieEnvironmentTextureOwnership.d.ts +52 -0
- package/lib/AutoMovieEnvironmentTextureOwnership.js +187 -0
- package/lib/AutoMovieEnvironmentTextureOwnership.js.map +1 -0
- package/lib/AutoMovieFadeCompositorState.d.ts +4 -0
- package/lib/AutoMovieFadeCompositorState.js +3 -0
- package/lib/AutoMovieFadeCompositorState.js.map +1 -0
- package/lib/AutoMovieFilmBeautyComposition.d.ts +25 -0
- package/lib/AutoMovieFilmBeautyComposition.js +2 -0
- package/lib/AutoMovieFilmBeautyComposition.js.map +1 -0
- package/lib/AutoMovieGeometryPhysicalVertices.d.ts +48 -0
- package/lib/AutoMovieGeometryPhysicalVertices.js +134 -0
- package/lib/AutoMovieGeometryPhysicalVertices.js.map +1 -0
- package/lib/AutoMoviePlayer.d.ts +99 -0
- package/lib/AutoMoviePlayer.js +192 -0
- package/lib/AutoMoviePlayer.js.map +1 -0
- package/lib/AutoMovieRenderModeMesh.d.ts +13 -0
- package/lib/AutoMovieRenderModeMesh.js +2 -0
- package/lib/AutoMovieRenderModeMesh.js.map +1 -0
- package/lib/AutoMovieResourceRetirementScope.d.ts +108 -0
- package/lib/AutoMovieResourceRetirementScope.js +169 -0
- package/lib/AutoMovieResourceRetirementScope.js.map +1 -0
- package/lib/AutoMovieSkinBlend.d.ts +83 -0
- package/lib/AutoMovieSkinBlend.js +195 -0
- package/lib/AutoMovieSkinBlend.js.map +1 -0
- package/lib/AutoMovieSkinPose.d.ts +119 -0
- package/lib/AutoMovieSkinPose.js +365 -0
- package/lib/AutoMovieSkinPose.js.map +1 -0
- package/lib/AutoMovieSkinnedMesh.d.ts +182 -0
- package/lib/AutoMovieSkinnedMesh.js +246 -0
- package/lib/AutoMovieSkinnedMesh.js.map +1 -0
- package/lib/AutoMovieTextureCache.d.ts +178 -0
- package/lib/AutoMovieTextureCache.js +321 -0
- package/lib/AutoMovieTextureCache.js.map +1 -0
- package/lib/AutoMovieTextureCacheAllocationAuthority.d.ts +217 -0
- package/lib/AutoMovieTextureCacheAllocationAuthority.js +417 -0
- package/lib/AutoMovieTextureCacheAllocationAuthority.js.map +1 -0
- package/lib/DEPTH_NORMALIZATION_RANGE.d.ts +4 -0
- package/lib/DEPTH_NORMALIZATION_RANGE.js +5 -0
- package/lib/DEPTH_NORMALIZATION_RANGE.js.map +1 -0
- package/lib/EDGE_SHELL_NAME.d.ts +2 -0
- package/lib/EDGE_SHELL_NAME.js +3 -0
- package/lib/EDGE_SHELL_NAME.js.map +1 -0
- package/lib/EDGE_WIDTH.d.ts +4 -0
- package/lib/EDGE_WIDTH.js +5 -0
- package/lib/EDGE_WIDTH.js.map +1 -0
- package/lib/IApplyAutoMovieSectionPlanesProps.d.ts +28 -0
- package/lib/IApplyAutoMovieSectionPlanesProps.js +2 -0
- package/lib/IApplyAutoMovieSectionPlanesProps.js.map +1 -0
- package/lib/IAutoMovieAnalysisOverlayObject.d.ts +52 -0
- package/lib/IAutoMovieAnalysisOverlayObject.js +2 -0
- package/lib/IAutoMovieAnalysisOverlayObject.js.map +1 -0
- package/lib/IAutoMovieBuiltPropArticulation.d.ts +34 -0
- package/lib/IAutoMovieBuiltPropArticulation.js +2 -0
- package/lib/IAutoMovieBuiltPropArticulation.js.map +1 -0
- package/lib/IAutoMovieEffectViewerObject.d.ts +28 -0
- package/lib/IAutoMovieEffectViewerObject.js +2 -0
- package/lib/IAutoMovieEffectViewerObject.js.map +1 -0
- package/lib/IAutoMovieEffectViewerStats.d.ts +18 -0
- package/lib/IAutoMovieEffectViewerStats.js +2 -0
- package/lib/IAutoMovieEffectViewerStats.js.map +1 -0
- package/lib/IAutoMovieExpressionTarget.d.ts +22 -0
- package/lib/IAutoMovieExpressionTarget.js +2 -0
- package/lib/IAutoMovieExpressionTarget.js.map +1 -0
- package/lib/IAutoMovieFilmBeautyLayer.d.ts +12 -0
- package/lib/IAutoMovieFilmBeautyLayer.js +2 -0
- package/lib/IAutoMovieFilmBeautyLayer.js.map +1 -0
- package/lib/IAutoMovieFluidSprayObject.d.ts +50 -0
- package/lib/IAutoMovieFluidSprayObject.js +2 -0
- package/lib/IAutoMovieFluidSprayObject.js.map +1 -0
- package/lib/IAutoMovieFluidSurfaceObject.d.ts +38 -0
- package/lib/IAutoMovieFluidSurfaceObject.js +2 -0
- package/lib/IAutoMovieFluidSurfaceObject.js.map +1 -0
- package/lib/IAutoMovieFormationCadence.d.ts +17 -0
- package/lib/IAutoMovieFormationCadence.js +2 -0
- package/lib/IAutoMovieFormationCadence.js.map +1 -0
- package/lib/IAutoMovieFormationCycle.d.ts +38 -0
- package/lib/IAutoMovieFormationCycle.js +2 -0
- package/lib/IAutoMovieFormationCycle.js.map +1 -0
- package/lib/IAutoMovieFormationCycleTake.d.ts +47 -0
- package/lib/IAutoMovieFormationCycleTake.js +2 -0
- package/lib/IAutoMovieFormationCycleTake.js.map +1 -0
- package/lib/IAutoMovieFormationCycleUniforms.d.ts +21 -0
- package/lib/IAutoMovieFormationCycleUniforms.js +2 -0
- package/lib/IAutoMovieFormationCycleUniforms.js.map +1 -0
- package/lib/IAutoMovieFormationViewerObject.d.ts +62 -0
- package/lib/IAutoMovieFormationViewerObject.js +2 -0
- package/lib/IAutoMovieFormationViewerObject.js.map +1 -0
- package/lib/IAutoMovieFormationViewerStats.d.ts +34 -0
- package/lib/IAutoMovieFormationViewerStats.js +2 -0
- package/lib/IAutoMovieFormationViewerStats.js.map +1 -0
- package/lib/IAutoMovieImportedModelOptions.d.ts +44 -0
- package/lib/IAutoMovieImportedModelOptions.js +2 -0
- package/lib/IAutoMovieImportedModelOptions.js.map +1 -0
- package/lib/IAutoMovieInstanceSetViewerObject.d.ts +42 -0
- package/lib/IAutoMovieInstanceSetViewerObject.js +2 -0
- package/lib/IAutoMovieInstanceSetViewerObject.js.map +1 -0
- package/lib/IAutoMovieInstanceSetViewerStats.d.ts +17 -0
- package/lib/IAutoMovieInstanceSetViewerStats.js +2 -0
- package/lib/IAutoMovieInstanceSetViewerStats.js.map +1 -0
- package/lib/IAutoMovieInstancedGeometry.d.ts +24 -0
- package/lib/IAutoMovieInstancedGeometry.js +2 -0
- package/lib/IAutoMovieInstancedGeometry.js.map +1 -0
- package/lib/IAutoMovieInstancedModelRepresentation.d.ts +16 -0
- package/lib/IAutoMovieInstancedModelRepresentation.js +2 -0
- package/lib/IAutoMovieInstancedModelRepresentation.js.map +1 -0
- package/lib/IAutoMovieMaterialLibrary.d.ts +42 -0
- package/lib/IAutoMovieMaterialLibrary.js +2 -0
- package/lib/IAutoMovieMaterialLibrary.js.map +1 -0
- package/lib/IAutoMovieModelObject.d.ts +51 -0
- package/lib/IAutoMovieModelObject.js +2 -0
- package/lib/IAutoMovieModelObject.js.map +1 -0
- package/lib/IAutoMoviePlantingObject.d.ts +33 -0
- package/lib/IAutoMoviePlantingObject.js +2 -0
- package/lib/IAutoMoviePlantingObject.js.map +1 -0
- package/lib/IAutoMovieRenderModeHandle.d.ts +44 -0
- package/lib/IAutoMovieRenderModeHandle.js +2 -0
- package/lib/IAutoMovieRenderModeHandle.js.map +1 -0
- package/lib/IAutoMovieRendererEnvironmentHandle.d.ts +22 -0
- package/lib/IAutoMovieRendererEnvironmentHandle.js +2 -0
- package/lib/IAutoMovieRendererEnvironmentHandle.js.map +1 -0
- package/lib/IAutoMovieRigLocalTransform.d.ts +15 -0
- package/lib/IAutoMovieRigLocalTransform.js +2 -0
- package/lib/IAutoMovieRigLocalTransform.js.map +1 -0
- package/lib/IAutoMovieSceneObject.d.ts +26 -0
- package/lib/IAutoMovieSceneObject.js +2 -0
- package/lib/IAutoMovieSceneObject.js.map +1 -0
- package/lib/IAutoMovieSectionRenderer.d.ts +17 -0
- package/lib/IAutoMovieSectionRenderer.js +2 -0
- package/lib/IAutoMovieSectionRenderer.js.map +1 -0
- package/lib/IAutoMovieShadowTextureHost.d.ts +17 -0
- package/lib/IAutoMovieShadowTextureHost.js +2 -0
- package/lib/IAutoMovieShadowTextureHost.js.map +1 -0
- package/lib/IAutoMovieSoftBodyObject.d.ts +43 -0
- package/lib/IAutoMovieSoftBodyObject.js +2 -0
- package/lib/IAutoMovieSoftBodyObject.js.map +1 -0
- package/lib/IAutoMovieSpringAxisSettlement.d.ts +19 -0
- package/lib/IAutoMovieSpringAxisSettlement.js +2 -0
- package/lib/IAutoMovieSpringAxisSettlement.js.map +1 -0
- package/lib/IAutoMovieSpringConfig.d.ts +22 -0
- package/lib/IAutoMovieSpringConfig.js +2 -0
- package/lib/IAutoMovieSpringConfig.js.map +1 -0
- package/lib/IAutoMovieTextureLoader.d.ts +13 -0
- package/lib/IAutoMovieTextureLoader.js +2 -0
- package/lib/IAutoMovieTextureLoader.js.map +1 -0
- package/lib/IAutoMovieTextureResolver.d.ts +16 -0
- package/lib/IAutoMovieTextureResolver.js +2 -0
- package/lib/IAutoMovieTextureResolver.js.map +1 -0
- package/lib/IAutoMovieViewerCameraDepthPrecisionReport.d.ts +30 -0
- package/lib/IAutoMovieViewerCameraDepthPrecisionReport.js +2 -0
- package/lib/IAutoMovieViewerCameraDepthPrecisionReport.js.map +1 -0
- package/lib/IAutoMovieViewerCompletedFrame.d.ts +51 -0
- package/lib/IAutoMovieViewerCompletedFrame.js +2 -0
- package/lib/IAutoMovieViewerCompletedFrame.js.map +1 -0
- package/lib/IAutoMovieViewerDisplayMetadata.d.ts +22 -0
- package/lib/IAutoMovieViewerDisplayMetadata.js +2 -0
- package/lib/IAutoMovieViewerDisplayMetadata.js.map +1 -0
- package/lib/IAutoMovieViewerFrame.d.ts +19 -0
- package/lib/IAutoMovieViewerFrame.js +2 -0
- package/lib/IAutoMovieViewerFrame.js.map +1 -0
- package/lib/IAutoMovieViewerHandle.d.ts +42 -0
- package/lib/IAutoMovieViewerHandle.js +2 -0
- package/lib/IAutoMovieViewerHandle.js.map +1 -0
- package/lib/IAutoMovieViewerSnapshot.d.ts +18 -0
- package/lib/IAutoMovieViewerSnapshot.js +2 -0
- package/lib/IAutoMovieViewerSnapshot.js.map +1 -0
- package/lib/IAutoMovieViewerSnapshotOptions.d.ts +14 -0
- package/lib/IAutoMovieViewerSnapshotOptions.js +2 -0
- package/lib/IAutoMovieViewerSnapshotOptions.js.map +1 -0
- package/lib/IAutoMovieViewerSnapshotRenderer.d.ts +32 -0
- package/lib/IAutoMovieViewerSnapshotRenderer.js +2 -0
- package/lib/IAutoMovieViewerSnapshotRenderer.js.map +1 -0
- package/lib/IBakeFormationCycleProps.d.ts +31 -0
- package/lib/IBakeFormationCycleProps.js +2 -0
- package/lib/IBakeFormationCycleProps.js.map +1 -0
- package/lib/IBuildAutoMovieMaterialLibraryProps.d.ts +30 -0
- package/lib/IBuildAutoMovieMaterialLibraryProps.js +2 -0
- package/lib/IBuildAutoMovieMaterialLibraryProps.js.map +1 -0
- package/lib/IBuildInstancedFormationProps.d.ts +34 -0
- package/lib/IBuildInstancedFormationProps.js +2 -0
- package/lib/IBuildInstancedFormationProps.js.map +1 -0
- package/lib/IBuildInstancedInstanceSetProps.d.ts +29 -0
- package/lib/IBuildInstancedInstanceSetProps.js +2 -0
- package/lib/IBuildInstancedInstanceSetProps.js.map +1 -0
- package/lib/IBuildPlantingObjectProps.d.ts +22 -0
- package/lib/IBuildPlantingObjectProps.js +2 -0
- package/lib/IBuildPlantingObjectProps.js.map +1 -0
- package/lib/IBuildPropArticulationProps.d.ts +30 -0
- package/lib/IBuildPropArticulationProps.js +2 -0
- package/lib/IBuildPropArticulationProps.js.map +1 -0
- package/lib/IBuildSoftBodyObjectProps.d.ts +18 -0
- package/lib/IBuildSoftBodyObjectProps.js +2 -0
- package/lib/IBuildSoftBodyObjectProps.js.map +1 -0
- package/lib/IChunkObject.d.ts +32 -0
- package/lib/IChunkObject.js +2 -0
- package/lib/IChunkObject.js.map +1 -0
- package/lib/IFormationTierRepresentation.d.ts +17 -0
- package/lib/IFormationTierRepresentation.js +2 -0
- package/lib/IFormationTierRepresentation.js.map +1 -0
- package/lib/IMaterialShaderPatch.d.ts +28 -0
- package/lib/IMaterialShaderPatch.js +2 -0
- package/lib/IMaterialShaderPatch.js.map +1 -0
- package/lib/IMountViewerOptions.d.ts +61 -0
- package/lib/IMountViewerOptions.js +2 -0
- package/lib/IMountViewerOptions.js.map +1 -0
- package/lib/ISlotException.d.ts +26 -0
- package/lib/ISlotException.js +2 -0
- package/lib/ISlotException.js.map +1 -0
- package/lib/IViewerCameraStateSnapshot.d.ts +49 -0
- package/lib/IViewerCameraStateSnapshot.js +2 -0
- package/lib/IViewerCameraStateSnapshot.js.map +1 -0
- package/lib/POSE_OVERLAY_NAME.d.ts +2 -0
- package/lib/POSE_OVERLAY_NAME.js +3 -0
- package/lib/POSE_OVERLAY_NAME.js.map +1 -0
- package/lib/SPACE_GROUP_NAME.d.ts +12 -0
- package/lib/SPACE_GROUP_NAME.js +13 -0
- package/lib/SPACE_GROUP_NAME.js.map +1 -0
- package/lib/addMaterialShaderPatch.d.ts +21 -0
- package/lib/addMaterialShaderPatch.js +31 -0
- package/lib/addMaterialShaderPatch.js.map +1 -0
- package/lib/analysisOverlay.d.ts +3 -0
- package/lib/analysisOverlay.js +3 -0
- package/lib/analysisOverlay.js.map +1 -0
- package/lib/applyAutoMovieDeliveryCrop.d.ts +22 -0
- package/lib/applyAutoMovieDeliveryCrop.js +34 -0
- package/lib/applyAutoMovieDeliveryCrop.js.map +1 -0
- package/lib/applyAutoMovieRigLocals.d.ts +27 -0
- package/lib/applyAutoMovieRigLocals.js +89 -0
- package/lib/applyAutoMovieRigLocals.js.map +1 -0
- package/lib/applyAutoMovieSectionPlanes.d.ts +24 -0
- package/lib/applyAutoMovieSectionPlanes.js +42 -0
- package/lib/applyAutoMovieSectionPlanes.js.map +1 -0
- package/lib/applyAutoMovieShadowParticipation.d.ts +42 -0
- package/lib/applyAutoMovieShadowParticipation.js +62 -0
- package/lib/applyAutoMovieShadowParticipation.js.map +1 -0
- package/lib/applyCaptureCanvasSize.d.ts +12 -0
- package/lib/applyCaptureCanvasSize.js +21 -0
- package/lib/applyCaptureCanvasSize.js.map +1 -0
- package/lib/applyDepthMode.d.ts +20 -0
- package/lib/applyDepthMode.js +81 -0
- package/lib/applyDepthMode.js.map +1 -0
- package/lib/applyEdgeMode.d.ts +20 -0
- package/lib/applyEdgeMode.js +114 -0
- package/lib/applyEdgeMode.js.map +1 -0
- package/lib/applyExpression.d.ts +20 -0
- package/lib/applyExpression.js +138 -0
- package/lib/applyExpression.js.map +1 -0
- package/lib/applyFormationCycleCadence.d.ts +20 -0
- package/lib/applyFormationCycleCadence.js +26 -0
- package/lib/applyFormationCycleCadence.js.map +1 -0
- package/lib/applyFormationCycleMaterial.d.ts +31 -0
- package/lib/applyFormationCycleMaterial.js +100 -0
- package/lib/applyFormationCycleMaterial.js.map +1 -0
- package/lib/applyLightMotion.d.ts +38 -0
- package/lib/applyLightMotion.js +46 -0
- package/lib/applyLightMotion.js.map +1 -0
- package/lib/applyLightState.d.ts +38 -0
- package/lib/applyLightState.js +57 -0
- package/lib/applyLightState.js.map +1 -0
- package/lib/applyMaskMode.d.ts +20 -0
- package/lib/applyMaskMode.js +90 -0
- package/lib/applyMaskMode.js.map +1 -0
- package/lib/applyMaterialShaderPatches.d.ts +22 -0
- package/lib/applyMaterialShaderPatches.js +24 -0
- package/lib/applyMaterialShaderPatches.js.map +1 -0
- package/lib/applyObjectMotion.d.ts +30 -0
- package/lib/applyObjectMotion.js +33 -0
- package/lib/applyObjectMotion.js.map +1 -0
- package/lib/applyObjectMotions.d.ts +14 -0
- package/lib/applyObjectMotions.js +17 -0
- package/lib/applyObjectMotions.js.map +1 -0
- package/lib/applyPose.d.ts +40 -0
- package/lib/applyPose.js +85 -0
- package/lib/applyPose.js.map +1 -0
- package/lib/applyPoseMode.d.ts +20 -0
- package/lib/applyPoseMode.js +80 -0
- package/lib/applyPoseMode.js.map +1 -0
- package/lib/applyRenderMode.d.ts +48 -0
- package/lib/applyRenderMode.js +191 -0
- package/lib/applyRenderMode.js.map +1 -0
- package/lib/applyRendererEnvironment.d.ts +25 -0
- package/lib/applyRendererEnvironment.js +107 -0
- package/lib/applyRendererEnvironment.js.map +1 -0
- package/lib/applySampledObjectMotion.d.ts +16 -0
- package/lib/applySampledObjectMotion.js +71 -0
- package/lib/applySampledObjectMotion.js.map +1 -0
- package/lib/applySceneEnvironment.d.ts +16 -0
- package/lib/applySceneEnvironment.js +47 -0
- package/lib/applySceneEnvironment.js.map +1 -0
- package/lib/applySceneFog.d.ts +34 -0
- package/lib/applySceneFog.js +42 -0
- package/lib/applySceneFog.js.map +1 -0
- package/lib/applySemanticMaskMode.d.ts +22 -0
- package/lib/applySemanticMaskMode.js +37 -0
- package/lib/applySemanticMaskMode.js.map +1 -0
- package/lib/applyTransform.d.ts +16 -0
- package/lib/applyTransform.js +19 -0
- package/lib/applyTransform.js.map +1 -0
- package/lib/assertAutoMovieSceneShadowProfile.d.ts +19 -0
- package/lib/assertAutoMovieSceneShadowProfile.js +30 -0
- package/lib/assertAutoMovieSceneShadowProfile.js.map +1 -0
- package/lib/assertAutoMovieViewerCameraDepthPrecision.d.ts +18 -0
- package/lib/assertAutoMovieViewerCameraDepthPrecision.js +27 -0
- package/lib/assertAutoMovieViewerCameraDepthPrecision.js.map +1 -0
- package/lib/audio/IAutoMovieAudioCue.d.ts +26 -0
- package/lib/audio/IAutoMovieAudioCue.js +2 -0
- package/lib/audio/IAutoMovieAudioCue.js.map +1 -0
- package/lib/audio/index.d.ts +3 -0
- package/lib/audio/index.js +3 -0
- package/lib/audio/index.js.map +1 -0
- package/lib/audio/planAutoMovieAudioPlayback.d.ts +51 -0
- package/lib/audio/planAutoMovieAudioPlayback.js +49 -0
- package/lib/audio/planAutoMovieAudioPlayback.js.map +1 -0
- package/lib/audio/playAutoMovieAudioCues.d.ts +23 -0
- package/lib/audio/playAutoMovieAudioCues.js +58 -0
- package/lib/audio/playAutoMovieAudioCues.js.map +1 -0
- package/lib/autoMovieAnalysisRampColor.d.ts +22 -0
- package/lib/autoMovieAnalysisRampColor.js +27 -0
- package/lib/autoMovieAnalysisRampColor.js.map +1 -0
- package/lib/bakeFormationCycle.d.ts +31 -0
- package/lib/bakeFormationCycle.js +101 -0
- package/lib/bakeFormationCycle.js.map +1 -0
- package/lib/bindFormationTierCycle.d.ts +18 -0
- package/lib/bindFormationTierCycle.js +32 -0
- package/lib/bindFormationTierCycle.js.map +1 -0
- package/lib/buildAnalysisOverlayObject.d.ts +38 -0
- package/lib/buildAnalysisOverlayObject.js +97 -0
- package/lib/buildAnalysisOverlayObject.js.map +1 -0
- package/lib/buildAutoMovieConstruction.d.ts +27 -0
- package/lib/buildAutoMovieConstruction.js +74 -0
- package/lib/buildAutoMovieConstruction.js.map +1 -0
- package/lib/buildAutoMovieMaterialLibrary.d.ts +30 -0
- package/lib/buildAutoMovieMaterialLibrary.js +92 -0
- package/lib/buildAutoMovieMaterialLibrary.js.map +1 -0
- package/lib/buildFluidSprayObject.d.ts +22 -0
- package/lib/buildFluidSprayObject.js +67 -0
- package/lib/buildFluidSprayObject.js.map +1 -0
- package/lib/buildFluidSurfaceObject.d.ts +23 -0
- package/lib/buildFluidSurfaceObject.js +74 -0
- package/lib/buildFluidSurfaceObject.js.map +1 -0
- package/lib/buildGeometry.d.ts +20 -0
- package/lib/buildGeometry.js +89 -0
- package/lib/buildGeometry.js.map +1 -0
- package/lib/buildInstancedEffect.d.ts +18 -0
- package/lib/buildInstancedEffect.js +103 -0
- package/lib/buildInstancedEffect.js.map +1 -0
- package/lib/buildInstancedFormation.d.ts +23 -0
- package/lib/buildInstancedFormation.js +340 -0
- package/lib/buildInstancedFormation.js.map +1 -0
- package/lib/buildInstancedInstanceSet.d.ts +29 -0
- package/lib/buildInstancedInstanceSet.js +321 -0
- package/lib/buildInstancedInstanceSet.js.map +1 -0
- package/lib/buildLight.d.ts +31 -0
- package/lib/buildLight.js +105 -0
- package/lib/buildLight.js.map +1 -0
- package/lib/buildMaterial.d.ts +22 -0
- package/lib/buildMaterial.js +98 -0
- package/lib/buildMaterial.js.map +1 -0
- package/lib/buildModel.d.ts +63 -0
- package/lib/buildModel.js +243 -0
- package/lib/buildModel.js.map +1 -0
- package/lib/buildPlantingObject.d.ts +22 -0
- package/lib/buildPlantingObject.js +155 -0
- package/lib/buildPlantingObject.js.map +1 -0
- package/lib/buildPropArticulation.d.ts +55 -0
- package/lib/buildPropArticulation.js +130 -0
- package/lib/buildPropArticulation.js.map +1 -0
- package/lib/buildScene.d.ts +44 -0
- package/lib/buildScene.js +102 -0
- package/lib/buildScene.js.map +1 -0
- package/lib/buildSoftBodyObject.d.ts +14 -0
- package/lib/buildSoftBodyObject.js +148 -0
- package/lib/buildSoftBodyObject.js.map +1 -0
- package/lib/buildSpace.d.ts +2 -0
- package/lib/buildSpace.js +3 -0
- package/lib/buildSpace.js.map +1 -0
- package/lib/buildSpaceObject.d.ts +43 -0
- package/lib/buildSpaceObject.js +71 -0
- package/lib/buildSpaceObject.js.map +1 -0
- package/lib/cameraDepthPrecision.d.ts +3 -0
- package/lib/cameraDepthPrecision.js +3 -0
- package/lib/cameraDepthPrecision.js.map +1 -0
- package/lib/captureAutoMovieFramebufferRestore.d.ts +18 -0
- package/lib/captureAutoMovieFramebufferRestore.js +70 -0
- package/lib/captureAutoMovieFramebufferRestore.js.map +1 -0
- package/lib/captureAutoMovieMetricFrame.d.ts +27 -0
- package/lib/captureAutoMovieMetricFrame.js +93 -0
- package/lib/captureAutoMovieMetricFrame.js.map +1 -0
- package/lib/captureSize.d.ts +1 -0
- package/lib/captureSize.js +2 -0
- package/lib/captureSize.js.map +1 -0
- package/lib/captureViewerSnapshot.d.ts +16 -0
- package/lib/captureViewerSnapshot.js +22 -0
- package/lib/captureViewerSnapshot.js.map +1 -0
- package/lib/collectAutoMovieOwnedResources.d.ts +29 -0
- package/lib/collectAutoMovieOwnedResources.js +56 -0
- package/lib/collectAutoMovieOwnedResources.js.map +1 -0
- package/lib/collectAutoMovieRenderModeMeshes.d.ts +14 -0
- package/lib/collectAutoMovieRenderModeMeshes.js +21 -0
- package/lib/collectAutoMovieRenderModeMeshes.js.map +1 -0
- package/lib/constructAutoMovieOwnedResources.d.ts +24 -0
- package/lib/constructAutoMovieOwnedResources.js +35 -0
- package/lib/constructAutoMovieOwnedResources.js.map +1 -0
- package/lib/createAutoMovieClosedSphereGeometry.d.ts +25 -0
- package/lib/createAutoMovieClosedSphereGeometry.js +80 -0
- package/lib/createAutoMovieClosedSphereGeometry.js.map +1 -0
- package/lib/createAutoMovieMetricOrthographicCamera.d.ts +28 -0
- package/lib/createAutoMovieMetricOrthographicCamera.js +61 -0
- package/lib/createAutoMovieMetricOrthographicCamera.js.map +1 -0
- package/lib/createAutoMoviePerformanceOverlay.d.ts +36 -0
- package/lib/createAutoMoviePerformanceOverlay.js +132 -0
- package/lib/createAutoMoviePerformanceOverlay.js.map +1 -0
- package/lib/createAutoMoviePhysicalPoseAdapter.d.ts +14 -0
- package/lib/createAutoMoviePhysicalPoseAdapter.js +89 -0
- package/lib/createAutoMoviePhysicalPoseAdapter.js.map +1 -0
- package/lib/createAutoMovieResourceRetirement.d.ts +25 -0
- package/lib/createAutoMovieResourceRetirement.js +16 -0
- package/lib/createAutoMovieResourceRetirement.js.map +1 -0
- package/lib/createAutoMovieSurfaceAppearance.d.ts +30 -0
- package/lib/createAutoMovieSurfaceAppearance.js +180 -0
- package/lib/createAutoMovieSurfaceAppearance.js.map +1 -0
- package/lib/createAutoMovieSurfaceVertexAdapter.d.ts +17 -0
- package/lib/createAutoMovieSurfaceVertexAdapter.js +49 -0
- package/lib/createAutoMovieSurfaceVertexAdapter.js.map +1 -0
- package/lib/createFormationCycleShadowMaterials.d.ts +29 -0
- package/lib/createFormationCycleShadowMaterials.js +56 -0
- package/lib/createFormationCycleShadowMaterials.js.map +1 -0
- package/lib/createFormationRepresentations.d.ts +17 -0
- package/lib/createFormationRepresentations.js +53 -0
- package/lib/createFormationRepresentations.js.map +1 -0
- package/lib/createImportedModelObject.d.ts +14 -0
- package/lib/createImportedModelObject.js +50 -0
- package/lib/createImportedModelObject.js.map +1 -0
- package/lib/createViewerCameraState.d.ts +21 -0
- package/lib/createViewerCameraState.js +213 -0
- package/lib/createViewerCameraState.js.map +1 -0
- package/lib/createViewerDisplayClock.d.ts +20 -0
- package/lib/createViewerDisplayClock.js +44 -0
- package/lib/createViewerDisplayClock.js.map +1 -0
- package/lib/createViewerDisplayPublication.d.ts +28 -0
- package/lib/createViewerDisplayPublication.js +56 -0
- package/lib/createViewerDisplayPublication.js.map +1 -0
- package/lib/createViewerDisplaySave.d.ts +33 -0
- package/lib/createViewerDisplaySave.js +150 -0
- package/lib/createViewerDisplaySave.js.map +1 -0
- package/lib/createViewerFrameControl.d.ts +36 -0
- package/lib/createViewerFrameControl.js +109 -0
- package/lib/createViewerFrameControl.js.map +1 -0
- package/lib/createViewerViewportResize.d.ts +16 -0
- package/lib/createViewerViewportResize.js +42 -0
- package/lib/createViewerViewportResize.js.map +1 -0
- package/lib/decodeAutoMovieImage.d.ts +16 -0
- package/lib/decodeAutoMovieImage.js +119 -0
- package/lib/decodeAutoMovieImage.js.map +1 -0
- package/lib/defaultMaterial.d.ts +14 -0
- package/lib/defaultMaterial.js +19 -0
- package/lib/defaultMaterial.js.map +1 -0
- package/lib/deliveryCrop.d.ts +2 -0
- package/lib/deliveryCrop.js +3 -0
- package/lib/deliveryCrop.js.map +1 -0
- package/lib/describeFormationTextureSources.d.ts +20 -0
- package/lib/describeFormationTextureSources.js +31 -0
- package/lib/describeFormationTextureSources.js.map +1 -0
- package/lib/detailNormalShading/DETAIL_NORMAL_TARGET.d.ts +5 -0
- package/lib/detailNormalShading/DETAIL_NORMAL_TARGET.js +6 -0
- package/lib/detailNormalShading/DETAIL_NORMAL_TARGET.js.map +1 -0
- package/lib/detailNormalShading/applyDetailNormal.d.ts +18 -0
- package/lib/detailNormalShading/applyDetailNormal.js +24 -0
- package/lib/detailNormalShading/applyDetailNormal.js.map +1 -0
- package/lib/detailNormalShading/createDetailNormalShaderPatch.d.ts +21 -0
- package/lib/detailNormalShading/createDetailNormalShaderPatch.js +35 -0
- package/lib/detailNormalShading/createDetailNormalShaderPatch.js.map +1 -0
- package/lib/detailNormalShading/detailNormalFragment.d.ts +14 -0
- package/lib/detailNormalShading/detailNormalFragment.js +18 -0
- package/lib/detailNormalShading/detailNormalFragment.js.map +1 -0
- package/lib/detailNormalShading/detailNormalVertex.d.ts +13 -0
- package/lib/detailNormalShading/detailNormalVertex.js +16 -0
- package/lib/detailNormalShading/detailNormalVertex.js.map +1 -0
- package/lib/detailNormalShading/index.d.ts +6 -0
- package/lib/detailNormalShading/index.js +7 -0
- package/lib/detailNormalShading/index.js.map +1 -0
- package/lib/detailNormalShading/spliceTangentNormal.d.ts +15 -0
- package/lib/detailNormalShading/spliceTangentNormal.js +25 -0
- package/lib/detailNormalShading/spliceTangentNormal.js.map +1 -0
- package/lib/disposeCrossDissolve.d.ts +15 -0
- package/lib/disposeCrossDissolve.js +22 -0
- package/lib/disposeCrossDissolve.js.map +1 -0
- package/lib/disposeFadeToBlack.d.ts +15 -0
- package/lib/disposeFadeToBlack.js +22 -0
- package/lib/disposeFadeToBlack.js.map +1 -0
- package/lib/disposeFormationRepresentations.d.ts +15 -0
- package/lib/disposeFormationRepresentations.js +37 -0
- package/lib/disposeFormationRepresentations.js.map +1 -0
- package/lib/dualQuaternionSkinning/applyDualQuaternionSkinning.d.ts +16 -0
- package/lib/dualQuaternionSkinning/applyDualQuaternionSkinning.js +20 -0
- package/lib/dualQuaternionSkinning/applyDualQuaternionSkinning.js.map +1 -0
- package/lib/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.d.ts +15 -0
- package/lib/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.js +21 -0
- package/lib/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.js.map +1 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningOf.d.ts +16 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningOf.js +16 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningOf.js.map +1 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningVertex.d.ts +30 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningVertex.js +132 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningVertex.js.map +1 -0
- package/lib/dualQuaternionSkinning/index.d.ts +4 -0
- package/lib/dualQuaternionSkinning/index.js +5 -0
- package/lib/dualQuaternionSkinning/index.js.map +1 -0
- package/lib/effect.d.ts +4 -0
- package/lib/effect.js +3 -0
- package/lib/effect.js.map +1 -0
- package/lib/evaluateAutoMovieViewerCameraDepthPrecision.d.ts +29 -0
- package/lib/evaluateAutoMovieViewerCameraDepthPrecision.js +71 -0
- package/lib/evaluateAutoMovieViewerCameraDepthPrecision.js.map +1 -0
- package/lib/flattenInstancedModel.d.ts +29 -0
- package/lib/flattenInstancedModel.js +91 -0
- package/lib/flattenInstancedModel.js.map +1 -0
- package/lib/flattenInstancedObject.d.ts +18 -0
- package/lib/flattenInstancedObject.js +25 -0
- package/lib/flattenInstancedObject.js.map +1 -0
- package/lib/flattenRigidParts.d.ts +19 -0
- package/lib/flattenRigidParts.js +91 -0
- package/lib/flattenRigidParts.js.map +1 -0
- package/lib/fluidSurface.d.ts +4 -0
- package/lib/fluidSurface.js +3 -0
- package/lib/fluidSurface.js.map +1 -0
- package/lib/formation/index.d.ts +12 -0
- package/lib/formation/index.js +10 -0
- package/lib/formation/index.js.map +1 -0
- package/lib/formationCycle/index.d.ts +17 -0
- package/lib/formationCycle/index.js +18 -0
- package/lib/formationCycle/index.js.map +1 -0
- package/lib/formationCycleCadence.d.ts +32 -0
- package/lib/formationCycleCadence.js +46 -0
- package/lib/formationCycleCadence.js.map +1 -0
- package/lib/formationCycleGait.d.ts +22 -0
- package/lib/formationCycleGait.js +23 -0
- package/lib/formationCycleGait.js.map +1 -0
- package/lib/formationCycleOf.d.ts +16 -0
- package/lib/formationCycleOf.js +15 -0
- package/lib/formationCycleOf.js.map +1 -0
- package/lib/formationCyclePosition.d.ts +21 -0
- package/lib/formationCyclePosition.js +26 -0
- package/lib/formationCyclePosition.js.map +1 -0
- package/lib/formationCycleStride.d.ts +26 -0
- package/lib/formationCycleStride.js +49 -0
- package/lib/formationCycleStride.js.map +1 -0
- package/lib/formationGeometry/index.d.ts +5 -0
- package/lib/formationGeometry/index.js +6 -0
- package/lib/formationGeometry/index.js.map +1 -0
- package/lib/formationSpacingOffset.d.ts +32 -0
- package/lib/formationSpacingOffset.js +45 -0
- package/lib/formationSpacingOffset.js.map +1 -0
- package/lib/guardAutoMovieRenderModeRetirement.d.ts +18 -0
- package/lib/guardAutoMovieRenderModeRetirement.js +60 -0
- package/lib/guardAutoMovieRenderModeRetirement.js.map +1 -0
- package/lib/guardAutoMovieSceneShadowRetirement.d.ts +17 -0
- package/lib/guardAutoMovieSceneShadowRetirement.js +35 -0
- package/lib/guardAutoMovieSceneShadowRetirement.js.map +1 -0
- package/lib/human-polygon/AutoMovieHumanCartoon.d.ts +78 -0
- package/lib/human-polygon/AutoMovieHumanCartoon.js +2 -0
- package/lib/human-polygon/AutoMovieHumanCartoon.js.map +1 -0
- package/lib/human-polygon/AutoMovieHumanPolygon.d.ts +137 -0
- package/lib/human-polygon/AutoMovieHumanPolygon.js +2 -0
- package/lib/human-polygon/AutoMovieHumanPolygon.js.map +1 -0
- package/lib/human-polygon/applyHumanPolygonPose.d.ts +16 -0
- package/lib/human-polygon/applyHumanPolygonPose.js +46 -0
- package/lib/human-polygon/applyHumanPolygonPose.js.map +1 -0
- package/lib/human-polygon/buildHumanCartoonFace.d.ts +43 -0
- package/lib/human-polygon/buildHumanCartoonFace.js +319 -0
- package/lib/human-polygon/buildHumanCartoonFace.js.map +1 -0
- package/lib/human-polygon/buildHumanPolygon.d.ts +38 -0
- package/lib/human-polygon/buildHumanPolygon.js +265 -0
- package/lib/human-polygon/buildHumanPolygon.js.map +1 -0
- package/lib/human-polygon/buildHumanPolygonModule.d.ts +71 -0
- package/lib/human-polygon/buildHumanPolygonModule.js +206 -0
- package/lib/human-polygon/buildHumanPolygonModule.js.map +1 -0
- package/lib/human-polygon/buildHumanPolygonParts.d.ts +21 -0
- package/lib/human-polygon/buildHumanPolygonParts.js +140 -0
- package/lib/human-polygon/buildHumanPolygonParts.js.map +1 -0
- package/lib/human-polygon/createAutoMovieHumanPolygonFigure.d.ts +60 -0
- package/lib/human-polygon/createAutoMovieHumanPolygonFigure.js +67 -0
- package/lib/human-polygon/createAutoMovieHumanPolygonFigure.js.map +1 -0
- package/lib/human-polygon/createHumanPolygonPalette.d.ts +62 -0
- package/lib/human-polygon/createHumanPolygonPalette.js +131 -0
- package/lib/human-polygon/createHumanPolygonPalette.js.map +1 -0
- package/lib/human-polygon/humanPolygonSections.d.ts +49 -0
- package/lib/human-polygon/humanPolygonSections.js +63 -0
- package/lib/human-polygon/humanPolygonSections.js.map +1 -0
- package/lib/human-polygon/humanPolygonTopology.d.ts +62 -0
- package/lib/human-polygon/humanPolygonTopology.js +111 -0
- package/lib/human-polygon/humanPolygonTopology.js.map +1 -0
- package/lib/human-polygon/index.d.ts +5 -0
- package/lib/human-polygon/index.js +4 -0
- package/lib/human-polygon/index.js.map +1 -0
- package/lib/human-polygon/mountHumanCartoonFace.d.ts +14 -0
- package/lib/human-polygon/mountHumanCartoonFace.js +70 -0
- package/lib/human-polygon/mountHumanCartoonFace.js.map +1 -0
- package/lib/importedModel/index.d.ts +4 -0
- package/lib/importedModel/index.js +5 -0
- package/lib/importedModel/index.js.map +1 -0
- package/lib/index.d.ts +139 -0
- package/lib/index.js +140 -0
- package/lib/index.js.map +1 -0
- package/lib/instanceSet/index.d.ts +6 -0
- package/lib/instanceSet/index.js +7 -0
- package/lib/instanceSet/index.js.map +1 -0
- package/lib/instancedModelParts.d.ts +15 -0
- package/lib/instancedModelParts.js +22 -0
- package/lib/instancedModelParts.js.map +1 -0
- package/lib/invalidateAutoMovieSceneShadowPrograms.d.ts +13 -0
- package/lib/invalidateAutoMovieSceneShadowPrograms.js +27 -0
- package/lib/invalidateAutoMovieSceneShadowPrograms.js.map +1 -0
- package/lib/invalidateAutoMovieSkinnedPose.d.ts +22 -0
- package/lib/invalidateAutoMovieSkinnedPose.js +31 -0
- package/lib/invalidateAutoMovieSkinnedPose.js.map +1 -0
- package/lib/mapImportedHumanoidBones.d.ts +16 -0
- package/lib/mapImportedHumanoidBones.js +57 -0
- package/lib/mapImportedHumanoidBones.js.map +1 -0
- package/lib/maskColor.d.ts +13 -0
- package/lib/maskColor.js +14 -0
- package/lib/maskColor.js.map +1 -0
- package/lib/matchesAutoMovieShadowTextureProfile.d.ts +13 -0
- package/lib/matchesAutoMovieShadowTextureProfile.js +21 -0
- package/lib/matchesAutoMovieShadowTextureProfile.js.map +1 -0
- package/lib/materialOverlayShading/IMaterialOverlayShading.d.ts +29 -0
- package/lib/materialOverlayShading/IMaterialOverlayShading.js +2 -0
- package/lib/materialOverlayShading/IMaterialOverlayShading.js.map +1 -0
- package/lib/materialOverlayShading/IMaterialOverlayShape.d.ts +16 -0
- package/lib/materialOverlayShading/IMaterialOverlayShape.js +2 -0
- package/lib/materialOverlayShading/IMaterialOverlayShape.js.map +1 -0
- package/lib/materialOverlayShading/applyMaterialOverlays.d.ts +16 -0
- package/lib/materialOverlayShading/applyMaterialOverlays.js +66 -0
- package/lib/materialOverlayShading/applyMaterialOverlays.js.map +1 -0
- package/lib/materialOverlayShading/getOverlayFlatNormal.d.ts +13 -0
- package/lib/materialOverlayShading/getOverlayFlatNormal.js +24 -0
- package/lib/materialOverlayShading/getOverlayFlatNormal.js.map +1 -0
- package/lib/materialOverlayShading/index.d.ts +6 -0
- package/lib/materialOverlayShading/index.js +4 -0
- package/lib/materialOverlayShading/index.js.map +1 -0
- package/lib/materialOverlayShading/materialOverlayFragment.d.ts +13 -0
- package/lib/materialOverlayShading/materialOverlayFragment.js +50 -0
- package/lib/materialOverlayShading/materialOverlayFragment.js.map +1 -0
- package/lib/materialOverlayShading/materialOverlayVertex.d.ts +13 -0
- package/lib/materialOverlayShading/materialOverlayVertex.js +27 -0
- package/lib/materialOverlayShading/materialOverlayVertex.js.map +1 -0
- package/lib/materialTextureBindings.d.ts +13 -0
- package/lib/materialTextureBindings.js +26 -0
- package/lib/materialTextureBindings.js.map +1 -0
- package/lib/morphTargetDriversOf.d.ts +17 -0
- package/lib/morphTargetDriversOf.js +16 -0
- package/lib/morphTargetDriversOf.js.map +1 -0
- package/lib/motion-overlay/applyAutoMovieGhost.d.ts +25 -0
- package/lib/motion-overlay/applyAutoMovieGhost.js +42 -0
- package/lib/motion-overlay/applyAutoMovieGhost.js.map +1 -0
- package/lib/motion-overlay/createAutoMovieDriftMarkers.d.ts +27 -0
- package/lib/motion-overlay/createAutoMovieDriftMarkers.js +47 -0
- package/lib/motion-overlay/createAutoMovieDriftMarkers.js.map +1 -0
- package/lib/motion-overlay/createAutoMovieTargetMarker.d.ts +24 -0
- package/lib/motion-overlay/createAutoMovieTargetMarker.js +51 -0
- package/lib/motion-overlay/createAutoMovieTargetMarker.js.map +1 -0
- package/lib/motion-overlay/createAutoMovieTrail.d.ts +23 -0
- package/lib/motion-overlay/createAutoMovieTrail.js +35 -0
- package/lib/motion-overlay/createAutoMovieTrail.js.map +1 -0
- package/lib/motion-overlay/index.d.ts +4 -0
- package/lib/motion-overlay/index.js +5 -0
- package/lib/motion-overlay/index.js.map +1 -0
- package/lib/mountViewer.d.ts +20 -0
- package/lib/mountViewer.js +179 -0
- package/lib/mountViewer.js.map +1 -0
- package/lib/objectTransform.d.ts +14 -0
- package/lib/objectTransform.js +28 -0
- package/lib/objectTransform.js.map +1 -0
- package/lib/observeAutoMovieRendererFrame.d.ts +21 -0
- package/lib/observeAutoMovieRendererFrame.js +40 -0
- package/lib/observeAutoMovieRendererFrame.js.map +1 -0
- package/lib/overrideAutoMovieRenderModeMaterials.d.ts +17 -0
- package/lib/overrideAutoMovieRenderModeMaterials.js +61 -0
- package/lib/overrideAutoMovieRenderModeMaterials.js.map +1 -0
- package/lib/planAutoMovieShadowTextureTarget.d.ts +14 -0
- package/lib/planAutoMovieShadowTextureTarget.js +33 -0
- package/lib/planAutoMovieShadowTextureTarget.js.map +1 -0
- package/lib/propArticulation/index.d.ts +4 -0
- package/lib/propArticulation/index.js +5 -0
- package/lib/propArticulation/index.js.map +1 -0
- package/lib/publishViewerCompletedFrame.d.ts +18 -0
- package/lib/publishViewerCompletedFrame.js +19 -0
- package/lib/publishViewerCompletedFrame.js.map +1 -0
- package/lib/readAutoMovieCubeShadowDepth.d.ts +13 -0
- package/lib/readAutoMovieCubeShadowDepth.js +37 -0
- package/lib/readAutoMovieCubeShadowDepth.js.map +1 -0
- package/lib/readAutoMovieDeliveryCrop.d.ts +20 -0
- package/lib/readAutoMovieDeliveryCrop.js +36 -0
- package/lib/readAutoMovieDeliveryCrop.js.map +1 -0
- package/lib/readAutoMovieDisplayDestinationEncoding.d.ts +13 -0
- package/lib/readAutoMovieDisplayDestinationEncoding.js +52 -0
- package/lib/readAutoMovieDisplayDestinationEncoding.js.map +1 -0
- package/lib/readAutoMovieEnvironmentColorSpace.d.ts +13 -0
- package/lib/readAutoMovieEnvironmentColorSpace.js +18 -0
- package/lib/readAutoMovieEnvironmentColorSpace.js.map +1 -0
- package/lib/readAutoMovieFilmDisplayTextureResidency.d.ts +20 -0
- package/lib/readAutoMovieFilmDisplayTextureResidency.js +29 -0
- package/lib/readAutoMovieFilmDisplayTextureResidency.js.map +1 -0
- package/lib/readAutoMovieMaterialTextureSources.d.ts +23 -0
- package/lib/readAutoMovieMaterialTextureSources.js +94 -0
- package/lib/readAutoMovieMaterialTextureSources.js.map +1 -0
- package/lib/readAutoMovieRenderTextureTarget.d.ts +14 -0
- package/lib/readAutoMovieRenderTextureTarget.js +52 -0
- package/lib/readAutoMovieRenderTextureTarget.js.map +1 -0
- package/lib/readAutoMovieShadowLightSource.d.ts +14 -0
- package/lib/readAutoMovieShadowLightSource.js +23 -0
- package/lib/readAutoMovieShadowLightSource.js.map +1 -0
- package/lib/readAutoMovieShadowTextureTargets.d.ts +16 -0
- package/lib/readAutoMovieShadowTextureTargets.js +65 -0
- package/lib/readAutoMovieShadowTextureTargets.js.map +1 -0
- package/lib/readAutoMovieTextureSource.d.ts +20 -0
- package/lib/readAutoMovieTextureSource.js +214 -0
- package/lib/readAutoMovieTextureSource.js.map +1 -0
- package/lib/readAutoMovieTextureUploadFormat.d.ts +13 -0
- package/lib/readAutoMovieTextureUploadFormat.js +43 -0
- package/lib/readAutoMovieTextureUploadFormat.js.map +1 -0
- package/lib/readAutoMovieTransmissionTextureTarget.d.ts +19 -0
- package/lib/readAutoMovieTransmissionTextureTarget.js +42 -0
- package/lib/readAutoMovieTransmissionTextureTarget.js.map +1 -0
- package/lib/redrawViewerCompletedFrame.d.ts +28 -0
- package/lib/redrawViewerCompletedFrame.js +35 -0
- package/lib/redrawViewerCompletedFrame.js.map +1 -0
- package/lib/regenerateFormationSlot.d.ts +15 -0
- package/lib/regenerateFormationSlot.js +16 -0
- package/lib/regenerateFormationSlot.js.map +1 -0
- package/lib/regenerateInstanceSlot.d.ts +17 -0
- package/lib/regenerateInstanceSlot.js +18 -0
- package/lib/regenerateInstanceSlot.js.map +1 -0
- package/lib/releaseMountedViewer.d.ts +13 -0
- package/lib/releaseMountedViewer.js +24 -0
- package/lib/releaseMountedViewer.js.map +1 -0
- package/lib/releaseViewerRenderer.d.ts +13 -0
- package/lib/releaseViewerRenderer.js +26 -0
- package/lib/releaseViewerRenderer.js.map +1 -0
- package/lib/reliefWeightShading/RELIEF_WEIGHT_TARGET.d.ts +5 -0
- package/lib/reliefWeightShading/RELIEF_WEIGHT_TARGET.js +6 -0
- package/lib/reliefWeightShading/RELIEF_WEIGHT_TARGET.js.map +1 -0
- package/lib/reliefWeightShading/applyReliefWeights.d.ts +13 -0
- package/lib/reliefWeightShading/applyReliefWeights.js +17 -0
- package/lib/reliefWeightShading/applyReliefWeights.js.map +1 -0
- package/lib/reliefWeightShading/createReliefWeightShaderPatch.d.ts +18 -0
- package/lib/reliefWeightShading/createReliefWeightShaderPatch.js +21 -0
- package/lib/reliefWeightShading/createReliefWeightShaderPatch.js.map +1 -0
- package/lib/reliefWeightShading/index.d.ts +5 -0
- package/lib/reliefWeightShading/index.js +6 -0
- package/lib/reliefWeightShading/index.js.map +1 -0
- package/lib/reliefWeightShading/reliefWeightFragment.d.ts +12 -0
- package/lib/reliefWeightShading/reliefWeightFragment.js +24 -0
- package/lib/reliefWeightShading/reliefWeightFragment.js.map +1 -0
- package/lib/reliefWeightShading/reliefWeightVertex.d.ts +12 -0
- package/lib/reliefWeightShading/reliefWeightVertex.js +15 -0
- package/lib/reliefWeightShading/reliefWeightVertex.js.map +1 -0
- package/lib/renderAutoMovieFilmFrame.d.ts +22 -0
- package/lib/renderAutoMovieFilmFrame.js +33 -0
- package/lib/renderAutoMovieFilmFrame.js.map +1 -0
- package/lib/renderAutoMovieScenePass.d.ts +14 -0
- package/lib/renderAutoMovieScenePass.js +103 -0
- package/lib/renderAutoMovieScenePass.js.map +1 -0
- package/lib/renderCrossDissolve.d.ts +13 -0
- package/lib/renderCrossDissolve.js +26 -0
- package/lib/renderCrossDissolve.js.map +1 -0
- package/lib/renderCrossDissolveFrames.d.ts +15 -0
- package/lib/renderCrossDissolveFrames.js +30 -0
- package/lib/renderCrossDissolveFrames.js.map +1 -0
- package/lib/renderFadeToBlackFrame.d.ts +13 -0
- package/lib/renderFadeToBlackFrame.js +28 -0
- package/lib/renderFadeToBlackFrame.js.map +1 -0
- package/lib/reportAutoMovieResourceRetirement.d.ts +14 -0
- package/lib/reportAutoMovieResourceRetirement.js +47 -0
- package/lib/reportAutoMovieResourceRetirement.js.map +1 -0
- package/lib/resetAutoMovieSceneShadowTargets.d.ts +15 -0
- package/lib/resetAutoMovieSceneShadowTargets.js +83 -0
- package/lib/resetAutoMovieSceneShadowTargets.js.map +1 -0
- package/lib/resolveAutoMovieFilmBeautyComposition.d.ts +16 -0
- package/lib/resolveAutoMovieFilmBeautyComposition.js +31 -0
- package/lib/resolveAutoMovieFilmBeautyComposition.js.map +1 -0
- package/lib/resolveAutoMovieMaterialTexture.d.ts +17 -0
- package/lib/resolveAutoMovieMaterialTexture.js +77 -0
- package/lib/resolveAutoMovieMaterialTexture.js.map +1 -0
- package/lib/restoreAutoMovieRenderModeOnce.d.ts +12 -0
- package/lib/restoreAutoMovieRenderModeOnce.js +31 -0
- package/lib/restoreAutoMovieRenderModeOnce.js.map +1 -0
- package/lib/restoreAutoMovieRenderModeState.d.ts +15 -0
- package/lib/restoreAutoMovieRenderModeState.js +49 -0
- package/lib/restoreAutoMovieRenderModeState.js.map +1 -0
- package/lib/retireAutoMovieCubeShadowDepth.d.ts +13 -0
- package/lib/retireAutoMovieCubeShadowDepth.js +28 -0
- package/lib/retireAutoMovieCubeShadowDepth.js.map +1 -0
- package/lib/sampleFormationCycleMatrix.d.ts +15 -0
- package/lib/sampleFormationCycleMatrix.js +27 -0
- package/lib/sampleFormationCycleMatrix.js.map +1 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskBinding.d.ts +19 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskBinding.js +2 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskBinding.js.map +1 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskHandle.d.ts +42 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskHandle.js +2 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskHandle.js.map +1 -0
- package/lib/semanticMask/SCENE_MASK_KEY.d.ts +6 -0
- package/lib/semanticMask/SCENE_MASK_KEY.js +7 -0
- package/lib/semanticMask/SCENE_MASK_KEY.js.map +1 -0
- package/lib/semanticMask/applyAutoMovieSemanticMask.d.ts +34 -0
- package/lib/semanticMask/applyAutoMovieSemanticMask.js +177 -0
- package/lib/semanticMask/applyAutoMovieSemanticMask.js.map +1 -0
- package/lib/semanticMask/attachAutoMovieSemanticMask.d.ts +16 -0
- package/lib/semanticMask/attachAutoMovieSemanticMask.js +18 -0
- package/lib/semanticMask/attachAutoMovieSemanticMask.js.map +1 -0
- package/lib/semanticMask/auditAutoMovieSemanticMaskScene.d.ts +21 -0
- package/lib/semanticMask/auditAutoMovieSemanticMaskScene.js +27 -0
- package/lib/semanticMask/auditAutoMovieSemanticMaskScene.js.map +1 -0
- package/lib/semanticMask/autoMovieSemanticMaskOf.d.ts +14 -0
- package/lib/semanticMask/autoMovieSemanticMaskOf.js +14 -0
- package/lib/semanticMask/autoMovieSemanticMaskOf.js.map +1 -0
- package/lib/semanticMask/index.d.ts +7 -0
- package/lib/semanticMask/index.js +7 -0
- package/lib/semanticMask/index.js.map +1 -0
- package/lib/semanticMask/maskRoots.d.ts +23 -0
- package/lib/semanticMask/maskRoots.js +33 -0
- package/lib/semanticMask/maskRoots.js.map +1 -0
- package/lib/semanticMask/nearest.d.ts +14 -0
- package/lib/semanticMask/nearest.js +22 -0
- package/lib/semanticMask/nearest.js.map +1 -0
- package/lib/semanticMask/unresolvedOf.d.ts +14 -0
- package/lib/semanticMask/unresolvedOf.js +21 -0
- package/lib/semanticMask/unresolvedOf.js.map +1 -0
- package/lib/slotMatrix.d.ts +17 -0
- package/lib/slotMatrix.js +15 -0
- package/lib/slotMatrix.js.map +1 -0
- package/lib/subjectViewpoint/AutoMovieViewerSubjectKind.d.ts +9 -0
- package/lib/subjectViewpoint/AutoMovieViewerSubjectKind.js +2 -0
- package/lib/subjectViewpoint/AutoMovieViewerSubjectKind.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubject.d.ts +25 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubject.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubject.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectBounds.d.ts +26 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectBounds.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectBounds.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectLens.d.ts +20 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectLens.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectLens.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectPose.d.ts +39 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectPose.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectPose.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectView.d.ts +37 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectView.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectView.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.d.ts +55 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerTurntableOptions.d.ts +22 -0
- package/lib/subjectViewpoint/IAutoMovieViewerTurntableOptions.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerTurntableOptions.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerViewpoint.d.ts +28 -0
- package/lib/subjectViewpoint/IAutoMovieViewerViewpoint.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerViewpoint.js.map +1 -0
- package/lib/subjectViewpoint/applyAutoMovieViewerSubjectPose.d.ts +14 -0
- package/lib/subjectViewpoint/applyAutoMovieViewerSubjectPose.js +25 -0
- package/lib/subjectViewpoint/applyAutoMovieViewerSubjectPose.js.map +1 -0
- package/lib/subjectViewpoint/autoMovieViewerPoseFromHeading.d.ts +24 -0
- package/lib/subjectViewpoint/autoMovieViewerPoseFromHeading.js +33 -0
- package/lib/subjectViewpoint/autoMovieViewerPoseFromHeading.js.map +1 -0
- package/lib/subjectViewpoint/autoMovieViewerSubjectKey.d.ts +13 -0
- package/lib/subjectViewpoint/autoMovieViewerSubjectKey.js +17 -0
- package/lib/subjectViewpoint/autoMovieViewerSubjectKey.js.map +1 -0
- package/lib/subjectViewpoint/autoMovieViewerTurntableViewpoints.d.ts +14 -0
- package/lib/subjectViewpoint/autoMovieViewerTurntableViewpoints.js +41 -0
- package/lib/subjectViewpoint/autoMovieViewerTurntableViewpoints.js.map +1 -0
- package/lib/subjectViewpoint/captureAutoMovieViewerSubjectView.d.ts +14 -0
- package/lib/subjectViewpoint/captureAutoMovieViewerSubjectView.js +25 -0
- package/lib/subjectViewpoint/captureAutoMovieViewerSubjectView.js.map +1 -0
- package/lib/subjectViewpoint/frameAutoMovieViewerSubject.d.ts +16 -0
- package/lib/subjectViewpoint/frameAutoMovieViewerSubject.js +57 -0
- package/lib/subjectViewpoint/frameAutoMovieViewerSubject.js.map +1 -0
- package/lib/subjectViewpoint/index.d.ts +16 -0
- package/lib/subjectViewpoint/index.js +17 -0
- package/lib/subjectViewpoint/index.js.map +1 -0
- package/lib/subjectViewpoint/parseAutoMovieViewerSubjectKey.d.ts +13 -0
- package/lib/subjectViewpoint/parseAutoMovieViewerSubjectKey.js +49 -0
- package/lib/subjectViewpoint/parseAutoMovieViewerSubjectKey.js.map +1 -0
- package/lib/subsurfaceShading/SUBSURFACE_TARGET.d.ts +2 -0
- package/lib/subsurfaceShading/SUBSURFACE_TARGET.js +3 -0
- package/lib/subsurfaceShading/SUBSURFACE_TARGET.js.map +1 -0
- package/lib/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.d.ts +5 -0
- package/lib/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.js +3 -0
- package/lib/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.js.map +1 -0
- package/lib/subsurfaceShading/applySubsurfaceShading.d.ts +17 -0
- package/lib/subsurfaceShading/applySubsurfaceShading.js +34 -0
- package/lib/subsurfaceShading/applySubsurfaceShading.js.map +1 -0
- package/lib/subsurfaceShading/getSubsurfaceTexture.d.ts +13 -0
- package/lib/subsurfaceShading/getSubsurfaceTexture.js +36 -0
- package/lib/subsurfaceShading/getSubsurfaceTexture.js.map +1 -0
- package/lib/subsurfaceShading/index.d.ts +6 -0
- package/lib/subsurfaceShading/index.js +7 -0
- package/lib/subsurfaceShading/index.js.map +1 -0
- package/lib/subsurfaceShading/subsurfaceFragment.d.ts +12 -0
- package/lib/subsurfaceShading/subsurfaceFragment.js +26 -0
- package/lib/subsurfaceShading/subsurfaceFragment.js.map +1 -0
- package/lib/subsurfaceShading/subsurfacePhysicalChunk.d.ts +12 -0
- package/lib/subsurfaceShading/subsurfacePhysicalChunk.js +34 -0
- package/lib/subsurfaceShading/subsurfacePhysicalChunk.js.map +1 -0
- package/lib/subsurfaceShading/subsurfaceTable.d.ts +12 -0
- package/lib/subsurfaceShading/subsurfaceTable.js +45 -0
- package/lib/subsurfaceShading/subsurfaceTable.js.map +1 -0
- package/lib/textureBindingAsset.d.ts +13 -0
- package/lib/textureBindingAsset.js +15 -0
- package/lib/textureBindingAsset.js.map +1 -0
- package/lib/transport/AutoMovieViewerTransport.d.ts +216 -0
- package/lib/transport/AutoMovieViewerTransport.js +243 -0
- package/lib/transport/AutoMovieViewerTransport.js.map +1 -0
- package/lib/transport/configureAutoMovieReviewControls.d.ts +27 -0
- package/lib/transport/configureAutoMovieReviewControls.js +35 -0
- package/lib/transport/configureAutoMovieReviewControls.js.map +1 -0
- package/lib/transport/index.d.ts +5 -0
- package/lib/transport/index.js +6 -0
- package/lib/transport/index.js.map +1 -0
- package/lib/transport/mountAutoMovieTransportControls.d.ts +64 -0
- package/lib/transport/mountAutoMovieTransportControls.js +124 -0
- package/lib/transport/mountAutoMovieTransportControls.js.map +1 -0
- package/lib/transport/parseAutoMovieInspectionView.d.ts +20 -0
- package/lib/transport/parseAutoMovieInspectionView.js +29 -0
- package/lib/transport/parseAutoMovieInspectionView.js.map +1 -0
- package/lib/transport/readAutoMovieReviewInterval.d.ts +23 -0
- package/lib/transport/readAutoMovieReviewInterval.js +39 -0
- package/lib/transport/readAutoMovieReviewInterval.js.map +1 -0
- package/lib/updateAutoMovieComparisonCamera.d.ts +27 -0
- package/lib/updateAutoMovieComparisonCamera.js +79 -0
- package/lib/updateAutoMovieComparisonCamera.js.map +1 -0
- package/lib/vector.d.ts +17 -0
- package/lib/vector.js +16 -0
- package/lib/vector.js.map +1 -0
- package/package.json +51 -3
- package/src/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.ts +4 -0
- package/src/AutoMovieDisplayCompositor.ts +379 -0
- package/src/AutoMovieDissolveCompositorState.ts +9 -0
- package/src/AutoMovieEnvironmentTextureOwnership.ts +262 -0
- package/src/AutoMovieFadeCompositorState.ts +9 -0
- package/src/AutoMovieFilmBeautyComposition.ts +24 -0
- package/src/AutoMovieGeometryPhysicalVertices.ts +187 -0
- package/src/AutoMoviePlayer.ts +281 -0
- package/src/AutoMovieRenderModeMesh.ts +14 -0
- package/src/AutoMovieResourceRetirementScope.ts +203 -0
- package/src/AutoMovieSkinBlend.ts +251 -0
- package/src/AutoMovieSkinPose.ts +453 -0
- package/src/AutoMovieSkinnedMesh.ts +333 -0
- package/src/AutoMovieTextureCache.ts +389 -0
- package/src/AutoMovieTextureCacheAllocationAuthority.ts +516 -0
- package/src/DEPTH_NORMALIZATION_RANGE.ts +4 -0
- package/src/EDGE_SHELL_NAME.ts +2 -0
- package/src/EDGE_WIDTH.ts +4 -0
- package/src/IApplyAutoMovieSectionPlanesProps.ts +32 -0
- package/src/IAutoMovieAnalysisOverlayObject.ts +53 -0
- package/src/IAutoMovieBuiltPropArticulation.ts +36 -0
- package/src/IAutoMovieEffectViewerObject.ts +32 -0
- package/src/IAutoMovieEffectViewerStats.ts +21 -0
- package/src/IAutoMovieExpressionTarget.ts +22 -0
- package/src/IAutoMovieFilmBeautyLayer.ts +12 -0
- package/src/IAutoMovieFluidSprayObject.ts +54 -0
- package/src/IAutoMovieFluidSurfaceObject.ts +41 -0
- package/src/IAutoMovieFormationCadence.ts +20 -0
- package/src/IAutoMovieFormationCycle.ts +44 -0
- package/src/IAutoMovieFormationCycleTake.ts +52 -0
- package/src/IAutoMovieFormationCycleUniforms.ts +26 -0
- package/src/IAutoMovieFormationViewerObject.ts +74 -0
- package/src/IAutoMovieFormationViewerStats.ts +38 -0
- package/src/IAutoMovieImportedModelOptions.ts +51 -0
- package/src/IAutoMovieInstanceSetViewerObject.ts +47 -0
- package/src/IAutoMovieInstanceSetViewerStats.ts +20 -0
- package/src/IAutoMovieInstancedGeometry.ts +26 -0
- package/src/IAutoMovieInstancedModelRepresentation.ts +20 -0
- package/src/IAutoMovieMaterialLibrary.ts +44 -0
- package/src/IAutoMovieModelObject.ts +61 -0
- package/src/IAutoMoviePlantingObject.ts +39 -0
- package/src/IAutoMovieRenderModeHandle.ts +47 -0
- package/src/IAutoMovieRendererEnvironmentHandle.ts +22 -0
- package/src/IAutoMovieRigLocalTransform.ts +16 -0
- package/src/IAutoMovieSceneObject.ts +29 -0
- package/src/IAutoMovieSectionRenderer.ts +17 -0
- package/src/IAutoMovieShadowTextureHost.ts +19 -0
- package/src/IAutoMovieSoftBodyObject.ts +49 -0
- package/src/IAutoMovieSpringAxisSettlement.ts +21 -0
- package/src/IAutoMovieSpringConfig.ts +25 -0
- package/src/IAutoMovieTextureLoader.ts +14 -0
- package/src/IAutoMovieTextureResolver.ts +19 -0
- package/src/IAutoMovieViewerCameraDepthPrecisionReport.ts +45 -0
- package/src/IAutoMovieViewerCompletedFrame.ts +62 -0
- package/src/IAutoMovieViewerDisplayMetadata.ts +26 -0
- package/src/IAutoMovieViewerFrame.ts +26 -0
- package/src/IAutoMovieViewerHandle.ts +45 -0
- package/src/IAutoMovieViewerSnapshot.ts +21 -0
- package/src/IAutoMovieViewerSnapshotOptions.ts +15 -0
- package/src/IAutoMovieViewerSnapshotRenderer.ts +36 -0
- package/src/IBakeFormationCycleProps.ts +36 -0
- package/src/IBuildAutoMovieMaterialLibraryProps.ts +34 -0
- package/src/IBuildInstancedFormationProps.ts +45 -0
- package/src/IBuildInstancedInstanceSetProps.ts +36 -0
- package/src/IBuildPlantingObjectProps.ts +30 -0
- package/src/IBuildPropArticulationProps.ts +35 -0
- package/src/IBuildSoftBodyObjectProps.ts +24 -0
- package/src/IChunkObject.ts +42 -0
- package/src/IFormationTierRepresentation.ts +18 -0
- package/src/IMaterialShaderPatch.ts +30 -0
- package/src/IMountViewerOptions.ts +69 -0
- package/src/ISlotException.ts +31 -0
- package/src/IViewerCameraStateSnapshot.ts +60 -0
- package/src/POSE_OVERLAY_NAME.ts +2 -0
- package/src/SPACE_GROUP_NAME.ts +12 -0
- package/src/addMaterialShaderPatch.ts +42 -0
- package/src/analysisOverlay.ts +3 -0
- package/src/applyAutoMovieDeliveryCrop.ts +51 -0
- package/src/applyAutoMovieRigLocals.ts +111 -0
- package/src/applyAutoMovieSectionPlanes.ts +73 -0
- package/src/applyAutoMovieShadowParticipation.ts +69 -0
- package/src/applyCaptureCanvasSize.ts +30 -0
- package/src/applyDepthMode.ts +101 -0
- package/src/applyEdgeMode.ts +153 -0
- package/src/applyExpression.ts +203 -0
- package/src/applyFormationCycleCadence.ts +39 -0
- package/src/applyFormationCycleMaterial.ts +121 -0
- package/src/applyLightMotion.ts +58 -0
- package/src/applyLightState.ts +61 -0
- package/src/applyMaskMode.ts +130 -0
- package/src/applyMaterialShaderPatches.ts +28 -0
- package/src/applyObjectMotion.ts +44 -0
- package/src/applyObjectMotions.ts +28 -0
- package/src/applyPose.ts +127 -0
- package/src/applyPoseMode.ts +115 -0
- package/src/applyRenderMode.ts +248 -0
- package/src/applyRendererEnvironment.ts +141 -0
- package/src/applySampledObjectMotion.ts +79 -0
- package/src/applySceneEnvironment.ts +72 -0
- package/src/applySceneFog.ts +49 -0
- package/src/applySemanticMaskMode.ts +50 -0
- package/src/applyTransform.ts +24 -0
- package/src/assertAutoMovieSceneShadowProfile.ts +45 -0
- package/src/assertAutoMovieViewerCameraDepthPrecision.ts +35 -0
- package/src/audio/IAutoMovieAudioCue.ts +32 -0
- package/src/audio/index.ts +3 -0
- package/src/audio/planAutoMovieAudioPlayback.ts +87 -0
- package/src/audio/playAutoMovieAudioCues.ts +76 -0
- package/src/autoMovieAnalysisRampColor.ts +30 -0
- package/src/bakeFormationCycle.ts +221 -0
- package/src/bindFormationTierCycle.ts +62 -0
- package/src/buildAnalysisOverlayObject.ts +163 -0
- package/src/buildAutoMovieConstruction.ts +114 -0
- package/src/buildAutoMovieMaterialLibrary.ts +150 -0
- package/src/buildFluidSprayObject.ts +96 -0
- package/src/buildFluidSurfaceObject.ts +127 -0
- package/src/buildGeometry.ts +149 -0
- package/src/buildInstancedEffect.ts +152 -0
- package/src/buildInstancedFormation.ts +599 -0
- package/src/buildInstancedInstanceSet.ts +637 -0
- package/src/buildLight.ts +129 -0
- package/src/buildMaterial.ts +215 -0
- package/src/buildModel.ts +333 -0
- package/src/buildPlantingObject.ts +234 -0
- package/src/buildPropArticulation.ts +181 -0
- package/src/buildScene.ts +136 -0
- package/src/buildSoftBodyObject.ts +191 -0
- package/src/buildSpace.ts +2 -0
- package/src/buildSpaceObject.ts +100 -0
- package/src/cameraDepthPrecision.ts +3 -0
- package/src/captureAutoMovieFramebufferRestore.ts +84 -0
- package/src/captureAutoMovieMetricFrame.ts +111 -0
- package/src/captureSize.ts +1 -0
- package/src/captureViewerSnapshot.ts +37 -0
- package/src/collectAutoMovieOwnedResources.ts +73 -0
- package/src/collectAutoMovieRenderModeMeshes.ts +32 -0
- package/src/constructAutoMovieOwnedResources.ts +47 -0
- package/src/createAutoMovieClosedSphereGeometry.ts +113 -0
- package/src/createAutoMovieMetricOrthographicCamera.ts +95 -0
- package/src/createAutoMoviePerformanceOverlay.ts +239 -0
- package/src/createAutoMoviePhysicalPoseAdapter.ts +125 -0
- package/src/createAutoMovieResourceRetirement.ts +59 -0
- package/src/createAutoMovieSurfaceAppearance.ts +260 -0
- package/src/createAutoMovieSurfaceVertexAdapter.ts +66 -0
- package/src/createFormationCycleShadowMaterials.ts +111 -0
- package/src/createFormationRepresentations.ts +101 -0
- package/src/createImportedModelObject.ts +67 -0
- package/src/createViewerCameraState.ts +291 -0
- package/src/createViewerDisplayClock.ts +48 -0
- package/src/createViewerDisplayPublication.ts +59 -0
- package/src/createViewerDisplaySave.ts +224 -0
- package/src/createViewerFrameControl.ts +130 -0
- package/src/createViewerViewportResize.ts +58 -0
- package/src/decodeAutoMovieImage.ts +152 -0
- package/src/defaultMaterial.ts +21 -0
- package/src/deliveryCrop.ts +2 -0
- package/src/describeFormationTextureSources.ts +54 -0
- package/src/detailNormalShading/DETAIL_NORMAL_TARGET.ts +5 -0
- package/src/detailNormalShading/applyDetailNormal.ts +42 -0
- package/src/detailNormalShading/createDetailNormalShaderPatch.ts +71 -0
- package/src/detailNormalShading/detailNormalFragment.ts +27 -0
- package/src/detailNormalShading/detailNormalVertex.ts +24 -0
- package/src/detailNormalShading/index.ts +6 -0
- package/src/detailNormalShading/spliceTangentNormal.ts +39 -0
- package/src/disposeCrossDissolve.ts +25 -0
- package/src/disposeFadeToBlack.ts +25 -0
- package/src/disposeFormationRepresentations.ts +59 -0
- package/src/dualQuaternionSkinning/applyDualQuaternionSkinning.ts +24 -0
- package/src/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.ts +23 -0
- package/src/dualQuaternionSkinning/dualQuaternionSkinningOf.ts +19 -0
- package/src/dualQuaternionSkinning/dualQuaternionSkinningVertex.ts +146 -0
- package/src/dualQuaternionSkinning/index.ts +4 -0
- package/src/effect.ts +4 -0
- package/src/evaluateAutoMovieViewerCameraDepthPrecision.ts +114 -0
- package/src/flattenInstancedModel.ts +127 -0
- package/src/flattenInstancedObject.ts +33 -0
- package/src/flattenRigidParts.ts +174 -0
- package/src/fluidSurface.ts +4 -0
- package/src/formation/index.ts +22 -0
- package/src/formationCycle/index.ts +17 -0
- package/src/formationCycleCadence.ts +55 -0
- package/src/formationCycleGait.ts +27 -0
- package/src/formationCycleOf.ts +25 -0
- package/src/formationCyclePosition.ts +34 -0
- package/src/formationCycleStride.ts +57 -0
- package/src/formationGeometry/index.ts +5 -0
- package/src/formationSpacingOffset.ts +65 -0
- package/src/guardAutoMovieRenderModeRetirement.ts +66 -0
- package/src/guardAutoMovieSceneShadowRetirement.ts +50 -0
- package/src/human-polygon/AutoMovieHumanCartoon.ts +109 -0
- package/src/human-polygon/AutoMovieHumanPolygon.ts +160 -0
- package/src/human-polygon/applyHumanPolygonPose.ts +59 -0
- package/src/human-polygon/buildHumanCartoonFace.ts +466 -0
- package/src/human-polygon/buildHumanPolygon.ts +347 -0
- package/src/human-polygon/buildHumanPolygonModule.ts +300 -0
- package/src/human-polygon/buildHumanPolygonParts.ts +254 -0
- package/src/human-polygon/createAutoMovieHumanPolygonFigure.ts +120 -0
- package/src/human-polygon/createHumanPolygonPalette.ts +169 -0
- package/src/human-polygon/humanPolygonSections.ts +70 -0
- package/src/human-polygon/humanPolygonTopology.ts +147 -0
- package/src/human-polygon/index.ts +5 -0
- package/src/human-polygon/mountHumanCartoonFace.ts +92 -0
- package/src/importedModel/index.ts +4 -0
- package/src/index.ts +139 -0
- package/src/instanceSet/index.ts +6 -0
- package/src/instancedModelParts.ts +25 -0
- package/src/invalidateAutoMovieSceneShadowPrograms.ts +28 -0
- package/src/invalidateAutoMovieSkinnedPose.ts +31 -0
- package/src/mapImportedHumanoidBones.ts +73 -0
- package/src/maskColor.ts +17 -0
- package/src/matchesAutoMovieShadowTextureProfile.ts +34 -0
- package/src/materialOverlayShading/IMaterialOverlayShading.ts +32 -0
- package/src/materialOverlayShading/IMaterialOverlayShape.ts +18 -0
- package/src/materialOverlayShading/applyMaterialOverlays.ts +88 -0
- package/src/materialOverlayShading/getOverlayFlatNormal.ts +25 -0
- package/src/materialOverlayShading/index.ts +6 -0
- package/src/materialOverlayShading/materialOverlayFragment.ts +85 -0
- package/src/materialOverlayShading/materialOverlayVertex.ts +50 -0
- package/src/materialTextureBindings.ts +44 -0
- package/src/morphTargetDriversOf.ts +25 -0
- package/src/motion-overlay/applyAutoMovieGhost.ts +46 -0
- package/src/motion-overlay/createAutoMovieDriftMarkers.ts +59 -0
- package/src/motion-overlay/createAutoMovieTargetMarker.ts +62 -0
- package/src/motion-overlay/createAutoMovieTrail.ts +44 -0
- package/src/motion-overlay/index.ts +4 -0
- package/src/mountViewer.ts +248 -0
- package/src/objectTransform.ts +42 -0
- package/src/observeAutoMovieRendererFrame.ts +47 -0
- package/src/overrideAutoMovieRenderModeMaterials.ts +87 -0
- package/src/planAutoMovieShadowTextureTarget.ts +55 -0
- package/src/propArticulation/index.ts +4 -0
- package/src/publishViewerCompletedFrame.ts +31 -0
- package/src/readAutoMovieCubeShadowDepth.ts +57 -0
- package/src/readAutoMovieDeliveryCrop.ts +41 -0
- package/src/readAutoMovieDisplayDestinationEncoding.ts +98 -0
- package/src/readAutoMovieEnvironmentColorSpace.ts +20 -0
- package/src/readAutoMovieFilmDisplayTextureResidency.ts +52 -0
- package/src/readAutoMovieMaterialTextureSources.ts +154 -0
- package/src/readAutoMovieRenderTextureTarget.ts +70 -0
- package/src/readAutoMovieShadowLightSource.ts +40 -0
- package/src/readAutoMovieShadowTextureTargets.ts +123 -0
- package/src/readAutoMovieTextureSource.ts +262 -0
- package/src/readAutoMovieTextureUploadFormat.ts +45 -0
- package/src/readAutoMovieTransmissionTextureTarget.ts +57 -0
- package/src/redrawViewerCompletedFrame.ts +67 -0
- package/src/regenerateFormationSlot.ts +26 -0
- package/src/regenerateInstanceSlot.ts +28 -0
- package/src/releaseMountedViewer.ts +35 -0
- package/src/releaseViewerRenderer.ts +31 -0
- package/src/reliefWeightShading/RELIEF_WEIGHT_TARGET.ts +5 -0
- package/src/reliefWeightShading/applyReliefWeights.ts +21 -0
- package/src/reliefWeightShading/createReliefWeightShaderPatch.ts +50 -0
- package/src/reliefWeightShading/index.ts +5 -0
- package/src/reliefWeightShading/reliefWeightFragment.ts +40 -0
- package/src/reliefWeightShading/reliefWeightVertex.ts +23 -0
- package/src/renderAutoMovieFilmFrame.ts +63 -0
- package/src/renderAutoMovieScenePass.ts +121 -0
- package/src/renderCrossDissolve.ts +50 -0
- package/src/renderCrossDissolveFrames.ts +41 -0
- package/src/renderFadeToBlackFrame.ts +37 -0
- package/src/reportAutoMovieResourceRetirement.ts +48 -0
- package/src/resetAutoMovieSceneShadowTargets.ts +106 -0
- package/src/resolveAutoMovieFilmBeautyComposition.ts +52 -0
- package/src/resolveAutoMovieMaterialTexture.ts +113 -0
- package/src/restoreAutoMovieRenderModeOnce.ts +30 -0
- package/src/restoreAutoMovieRenderModeState.ts +71 -0
- package/src/retireAutoMovieCubeShadowDepth.ts +33 -0
- package/src/sampleFormationCycleMatrix.ts +70 -0
- package/src/semanticMask/IAutoMovieSemanticMaskBinding.ts +24 -0
- package/src/semanticMask/IAutoMovieSemanticMaskHandle.ts +45 -0
- package/src/semanticMask/SCENE_MASK_KEY.ts +6 -0
- package/src/semanticMask/applyAutoMovieSemanticMask.ts +262 -0
- package/src/semanticMask/attachAutoMovieSemanticMask.ts +27 -0
- package/src/semanticMask/auditAutoMovieSemanticMaskScene.ts +50 -0
- package/src/semanticMask/autoMovieSemanticMaskOf.ts +24 -0
- package/src/semanticMask/index.ts +7 -0
- package/src/semanticMask/maskRoots.ts +67 -0
- package/src/semanticMask/nearest.ts +29 -0
- package/src/semanticMask/unresolvedOf.ts +34 -0
- package/src/slotMatrix.ts +38 -0
- package/src/subjectViewpoint/AutoMovieViewerSubjectKind.ts +23 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubject.ts +28 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectBounds.ts +19 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectLens.ts +21 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectPose.ts +36 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectView.ts +42 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.ts +67 -0
- package/src/subjectViewpoint/IAutoMovieViewerTurntableOptions.ts +24 -0
- package/src/subjectViewpoint/IAutoMovieViewerViewpoint.ts +31 -0
- package/src/subjectViewpoint/applyAutoMovieViewerSubjectPose.ts +31 -0
- package/src/subjectViewpoint/autoMovieViewerPoseFromHeading.ts +43 -0
- package/src/subjectViewpoint/autoMovieViewerSubjectKey.ts +20 -0
- package/src/subjectViewpoint/autoMovieViewerTurntableViewpoints.ts +54 -0
- package/src/subjectViewpoint/captureAutoMovieViewerSubjectView.ts +34 -0
- package/src/subjectViewpoint/frameAutoMovieViewerSubject.ts +77 -0
- package/src/subjectViewpoint/index.ts +16 -0
- package/src/subjectViewpoint/parseAutoMovieViewerSubjectKey.ts +59 -0
- package/src/subsurfaceShading/SUBSURFACE_TARGET.ts +3 -0
- package/src/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.ts +2 -0
- package/src/subsurfaceShading/applySubsurfaceShading.ts +38 -0
- package/src/subsurfaceShading/getSubsurfaceTexture.ts +46 -0
- package/src/subsurfaceShading/index.ts +6 -0
- package/src/subsurfaceShading/subsurfaceFragment.ts +30 -0
- package/src/subsurfaceShading/subsurfacePhysicalChunk.ts +43 -0
- package/src/subsurfaceShading/subsurfaceTable.ts +47 -0
- package/src/textureBindingAsset.ts +16 -0
- package/src/transport/AutoMovieViewerTransport.ts +356 -0
- package/src/transport/configureAutoMovieReviewControls.ts +44 -0
- package/src/transport/index.ts +5 -0
- package/src/transport/mountAutoMovieTransportControls.ts +254 -0
- package/src/transport/parseAutoMovieInspectionView.ts +35 -0
- package/src/transport/readAutoMovieReviewInterval.ts +45 -0
- package/src/updateAutoMovieComparisonCamera.ts +92 -0
- package/src/vector.ts +20 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
/**
|
|
3
|
+
* Own the exclusive scene handoff and immutable allocation inputs of an image. Public disposal requests withdrawal of earlier native cube/PMREM conversions before a new tuple is certified; failed retirement stays unknown and unchanged application retains those caches. This stores factual owned inputs, never SDK cache keys, GPU handles or byte estimates. Capacity drift detected by prepare invalidates that wrapper and, when its Source is unchanged, marks the Source invalid. The read-only current query does not record drift, and changes fully restored between prepare calls are not independently detected here.
|
|
4
|
+
*
|
|
5
|
+
* For cache-issued clones, the allocation owner acknowledges only a successful same-capacity retirement completion. Source detachment and unrelated original or issued-wrapper uncertainty remain outside that recovery receipt.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/development/design.md#principled-representation Texture identity establishes exclusive scene ownership, while observed capacity and conversion-input tuples distinguish reuse from replacement; failed disposal leaves authority unknown and prepare-observed capacity drift marks wrapper/Source validity as described above, without intercepting every external property write.
|
|
8
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Scene ownership stays separate from cache allocation authority because a scene owns conversion retirement while a cache owns original and issued wrappers; receipts acknowledge only that wrapper's supported transition.
|
|
9
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Shared LTC textures are refused because RectAreaLightUniformsLib owns them; material aliases are detected through real scene slots, uniforms and plain nested records without replacing SDK methods or inspecting native handles.
|
|
10
|
+
* @evidence contracts/development/common.md#meaningful-documentation Describes exclusive wrapper handoff, immutable capacity, failure uncertainty and the limited same-capacity acknowledgement available to cache-issued clones; public methods state their read or mutation effects.
|
|
11
|
+
*/
|
|
12
|
+
export declare class AutoMovieEnvironmentTextureOwnership {
|
|
13
|
+
private static readonly states;
|
|
14
|
+
private static readonly materials;
|
|
15
|
+
private static readonly invalidSources;
|
|
16
|
+
/**
|
|
17
|
+
* A material binding cannot take the same wrapper claimed by a scene.
|
|
18
|
+
*
|
|
19
|
+
* @evidence contracts/development/implementation.md#principled-implementation Refuses a previously scene-claimed texture wrapper before registering it as material-owned, preserving exclusive mutation of conversion inputs.
|
|
20
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Registration records ownership only; material sampling and scene conversion remain with their respective callers.
|
|
21
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Wrapper identity decides the refusal, without relying on labels, UUIDs or consumer-specific exemptions.
|
|
22
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the scene-versus-material alias conflict that causes this registration to throw.
|
|
23
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms One WeakMap membership check and WeakSet insertion require no traversal strategy.
|
|
24
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Repeated material registration of the same wrapper shares its WeakSet membership without allocating duplicate records.
|
|
25
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The weak material registry does not keep wrappers alive after their actual material or cache owners release them.
|
|
26
|
+
*/
|
|
27
|
+
static material(texture: THREE.Texture): void;
|
|
28
|
+
/**
|
|
29
|
+
* Claim or refresh a dedicated environment wrapper before scene mutation.
|
|
30
|
+
*
|
|
31
|
+
* @evidence contracts/development/implementation.md#principled-implementation Checks scene/material aliasing and immutable capacity before retiring cached conversions; only successful same-capacity allocation acknowledgement publishes a known configured tuple, and failure leaves authority unknown.
|
|
32
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns conversion lifecycle before applySceneEnvironment changes scene fields, delegating issued-wrapper history to allocation receipts instead of duplicating cache ownership.
|
|
33
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Refuses shared LTC tables and current material references because their owners need independent wrappers; changed capacity is rejected rather than laundered through repeated disposal.
|
|
34
|
+
* @evidence contracts/development/common.md#meaningful-documentation Describes the pre-scene-mutation claim; class documentation details immutable capacity, dedicated ownership and failed retirement effects.
|
|
35
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Scans scene materials and nested plain uniform records for actual aliases, then compares fixed-size capacity and conversion tuples; recursive seen sets terminate cyclic records.
|
|
36
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Returns without disposal when installed capacity/inputs match and allocation authority confirms stability; the new colorSpace argument is not separately compared on that path. applySceneEnvironment derives it from the unchanged component type, while a direct caller requesting another decoding must not assume that argument alone refreshes the wrapper.
|
|
37
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Installs one texture-owned invalidation listener on first claim, uses weak registry keys and disposes previous cube/PMREM storage before changing mapping or decoding.
|
|
38
|
+
*/
|
|
39
|
+
static prepare(scene: THREE.Scene, texture: THREE.Texture, colorSpace: THREE.ColorSpace): void;
|
|
40
|
+
/**
|
|
41
|
+
* Read authority without changing metadata, texture state or GPU lifetime.
|
|
42
|
+
*
|
|
43
|
+
* @evidence contracts/development/implementation.md#principled-implementation Owned authority requires a known matching capacity and conversion tuple with no material alias; unowned equirectangular mappings remain unknown because no scene owner certified their conversion history.
|
|
44
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure A boolean observation lets readAutoMovieTextureSource combine environment and cache authority without exposing mutable ownership records.
|
|
45
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Sources marked invalid by prepare stay unknown after property restoration; this query only reads current tuples and does not itself remember a mismatch or prove that no intermediate external mutation occurred.
|
|
46
|
+
* @evidence contracts/development/common.md#meaningful-documentation Explicitly promises an observation without metadata writes, texture mutation or GPU lifetime changes.
|
|
47
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Unowned textures need fixed membership/mapping checks; owned textures compare constant-size tuples and scan current scene materials only after those checks succeed.
|
|
48
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Scene material graphs can change between observations, so alias detection reads current state instead of caching a boolean.
|
|
49
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Authority observation acquires no resources and retains no additional texture, scene or tuple after return.
|
|
50
|
+
*/
|
|
51
|
+
static current(texture: THREE.Texture): boolean;
|
|
52
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import { AutoMovieTextureCacheAllocationAuthority } from "./AutoMovieTextureCacheAllocationAuthority.js";
|
|
3
|
+
/**
|
|
4
|
+
* Own the exclusive scene handoff and immutable allocation inputs of an image. Public disposal requests withdrawal of earlier native cube/PMREM conversions before a new tuple is certified; failed retirement stays unknown and unchanged application retains those caches. This stores factual owned inputs, never SDK cache keys, GPU handles or byte estimates. Capacity drift detected by prepare invalidates that wrapper and, when its Source is unchanged, marks the Source invalid. The read-only current query does not record drift, and changes fully restored between prepare calls are not independently detected here.
|
|
5
|
+
*
|
|
6
|
+
* For cache-issued clones, the allocation owner acknowledges only a successful same-capacity retirement completion. Source detachment and unrelated original or issued-wrapper uncertainty remain outside that recovery receipt.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/development/design.md#principled-representation Texture identity establishes exclusive scene ownership, while observed capacity and conversion-input tuples distinguish reuse from replacement; failed disposal leaves authority unknown and prepare-observed capacity drift marks wrapper/Source validity as described above, without intercepting every external property write.
|
|
9
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Scene ownership stays separate from cache allocation authority because a scene owns conversion retirement while a cache owns original and issued wrappers; receipts acknowledge only that wrapper's supported transition.
|
|
10
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Shared LTC textures are refused because RectAreaLightUniformsLib owns them; material aliases are detected through real scene slots, uniforms and plain nested records without replacing SDK methods or inspecting native handles.
|
|
11
|
+
* @evidence contracts/development/common.md#meaningful-documentation Describes exclusive wrapper handoff, immutable capacity, failure uncertainty and the limited same-capacity acknowledgement available to cache-issued clones; public methods state their read or mutation effects.
|
|
12
|
+
*/
|
|
13
|
+
export class AutoMovieEnvironmentTextureOwnership {
|
|
14
|
+
static states = new WeakMap();
|
|
15
|
+
static materials = new WeakSet();
|
|
16
|
+
static invalidSources = new WeakSet();
|
|
17
|
+
/**
|
|
18
|
+
* A material binding cannot take the same wrapper claimed by a scene.
|
|
19
|
+
*
|
|
20
|
+
* @evidence contracts/development/implementation.md#principled-implementation Refuses a previously scene-claimed texture wrapper before registering it as material-owned, preserving exclusive mutation of conversion inputs.
|
|
21
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Registration records ownership only; material sampling and scene conversion remain with their respective callers.
|
|
22
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Wrapper identity decides the refusal, without relying on labels, UUIDs or consumer-specific exemptions.
|
|
23
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the scene-versus-material alias conflict that causes this registration to throw.
|
|
24
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms One WeakMap membership check and WeakSet insertion require no traversal strategy.
|
|
25
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Repeated material registration of the same wrapper shares its WeakSet membership without allocating duplicate records.
|
|
26
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The weak material registry does not keep wrappers alive after their actual material or cache owners release them.
|
|
27
|
+
*/
|
|
28
|
+
static material(texture) {
|
|
29
|
+
if (this.states.has(texture))
|
|
30
|
+
throw new Error("An environment texture belongs exclusively to its scene; resolve a separate material clone.");
|
|
31
|
+
this.materials.add(texture);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Claim or refresh a dedicated environment wrapper before scene mutation.
|
|
35
|
+
*
|
|
36
|
+
* @evidence contracts/development/implementation.md#principled-implementation Checks scene/material aliasing and immutable capacity before retiring cached conversions; only successful same-capacity allocation acknowledgement publishes a known configured tuple, and failure leaves authority unknown.
|
|
37
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns conversion lifecycle before applySceneEnvironment changes scene fields, delegating issued-wrapper history to allocation receipts instead of duplicating cache ownership.
|
|
38
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Refuses shared LTC tables and current material references because their owners need independent wrappers; changed capacity is rejected rather than laundered through repeated disposal.
|
|
39
|
+
* @evidence contracts/development/common.md#meaningful-documentation Describes the pre-scene-mutation claim; class documentation details immutable capacity, dedicated ownership and failed retirement effects.
|
|
40
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Scans scene materials and nested plain uniform records for actual aliases, then compares fixed-size capacity and conversion tuples; recursive seen sets terminate cyclic records.
|
|
41
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Returns without disposal when installed capacity/inputs match and allocation authority confirms stability; the new colorSpace argument is not separately compared on that path. applySceneEnvironment derives it from the unchanged component type, while a direct caller requesting another decoding must not assume that argument alone refreshes the wrapper.
|
|
42
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Installs one texture-owned invalidation listener on first claim, uses weak registry keys and disposes previous cube/PMREM storage before changing mapping or decoding.
|
|
43
|
+
*/
|
|
44
|
+
static prepare(scene, texture, colorSpace) {
|
|
45
|
+
let state = this.states.get(texture);
|
|
46
|
+
if (state !== undefined && state.scene !== scene)
|
|
47
|
+
throw new Error("An environment texture is already owned by another scene; resolve a separate clone.");
|
|
48
|
+
if (this.materials.has(texture) ||
|
|
49
|
+
sharedAreaTexture(texture) ||
|
|
50
|
+
usesTexture(scene, texture))
|
|
51
|
+
throw new Error("A material already uses this environment texture; resolve a dedicated scene clone.");
|
|
52
|
+
if (this.invalidSources.has(texture.source))
|
|
53
|
+
throw new Error("Changed environment allocation requires a new Texture and decoded Source.");
|
|
54
|
+
const capacity = allocationCapacity(texture);
|
|
55
|
+
if (state !== undefined &&
|
|
56
|
+
(state.invalid || !same(state.capacity, capacity))) {
|
|
57
|
+
state.known = false;
|
|
58
|
+
state.invalid = true;
|
|
59
|
+
if (state.capacity[0] === texture.source)
|
|
60
|
+
this.invalidSources.add(texture.source);
|
|
61
|
+
throw new Error("Environment dimensions, format or type cannot change in place; dispose and replace its Texture and Source.");
|
|
62
|
+
}
|
|
63
|
+
// The tuple contains the configured mapping/decoding; unchanged capacity
|
|
64
|
+
// also preserves the component type that chooses that decoding.
|
|
65
|
+
if (state !== undefined &&
|
|
66
|
+
state.known &&
|
|
67
|
+
same(state.inputs, allocationInputs(texture)) &&
|
|
68
|
+
AutoMovieTextureCacheAllocationAuthority.environmentStable(texture))
|
|
69
|
+
return;
|
|
70
|
+
if (state === undefined) {
|
|
71
|
+
state = { scene, capacity, inputs: [], known: false, invalid: false };
|
|
72
|
+
this.states.set(texture, state);
|
|
73
|
+
const owned = state;
|
|
74
|
+
texture.addEventListener("dispose", () => {
|
|
75
|
+
owned.known = false;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
state.known = false;
|
|
79
|
+
const allocation = AutoMovieTextureCacheAllocationAuthority.beginEnvironment(texture);
|
|
80
|
+
texture.dispose();
|
|
81
|
+
texture.mapping = THREE.EquirectangularReflectionMapping;
|
|
82
|
+
texture.colorSpace = colorSpace;
|
|
83
|
+
texture.needsUpdate = true;
|
|
84
|
+
state.inputs = allocationInputs(texture);
|
|
85
|
+
state.known =
|
|
86
|
+
AutoMovieTextureCacheAllocationAuthority.finishEnvironment(allocation);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Read authority without changing metadata, texture state or GPU lifetime.
|
|
90
|
+
*
|
|
91
|
+
* @evidence contracts/development/implementation.md#principled-implementation Owned authority requires a known matching capacity and conversion tuple with no material alias; unowned equirectangular mappings remain unknown because no scene owner certified their conversion history.
|
|
92
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure A boolean observation lets readAutoMovieTextureSource combine environment and cache authority without exposing mutable ownership records.
|
|
93
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Sources marked invalid by prepare stay unknown after property restoration; this query only reads current tuples and does not itself remember a mismatch or prove that no intermediate external mutation occurred.
|
|
94
|
+
* @evidence contracts/development/common.md#meaningful-documentation Explicitly promises an observation without metadata writes, texture mutation or GPU lifetime changes.
|
|
95
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Unowned textures need fixed membership/mapping checks; owned textures compare constant-size tuples and scan current scene materials only after those checks succeed.
|
|
96
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Scene material graphs can change between observations, so alias detection reads current state instead of caching a boolean.
|
|
97
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Authority observation acquires no resources and retains no additional texture, scene or tuple after return.
|
|
98
|
+
*/
|
|
99
|
+
static current(texture) {
|
|
100
|
+
if (this.invalidSources.has(texture.source))
|
|
101
|
+
return false;
|
|
102
|
+
const state = this.states.get(texture);
|
|
103
|
+
if (state === undefined)
|
|
104
|
+
return (texture.mapping !== THREE.EquirectangularReflectionMapping &&
|
|
105
|
+
texture.mapping !== THREE.EquirectangularRefractionMapping);
|
|
106
|
+
return (state.known &&
|
|
107
|
+
same(state.capacity, allocationCapacity(texture)) &&
|
|
108
|
+
same(state.inputs, allocationInputs(texture)) &&
|
|
109
|
+
!usesTexture(state.scene, texture));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
/** Native capacity survives ordinary content and sampling changes. */
|
|
113
|
+
const allocationCapacity = (texture) => {
|
|
114
|
+
const image = texture.image;
|
|
115
|
+
const object = typeof image === "object" && image !== null ? image : undefined;
|
|
116
|
+
return [
|
|
117
|
+
texture.source,
|
|
118
|
+
object !== undefined && "width" in object ? object.width : undefined,
|
|
119
|
+
object !== undefined && "height" in object ? object.height : undefined,
|
|
120
|
+
texture.type,
|
|
121
|
+
texture.format,
|
|
122
|
+
texture.internalFormat,
|
|
123
|
+
];
|
|
124
|
+
};
|
|
125
|
+
/** Inputs that a cached conversion otherwise never revisits. */
|
|
126
|
+
const allocationInputs = (texture) => {
|
|
127
|
+
const image = texture.image;
|
|
128
|
+
const data = typeof image === "object" && image !== null && "data" in image
|
|
129
|
+
? image.data
|
|
130
|
+
: undefined;
|
|
131
|
+
const mipmaps = texture.mipmaps;
|
|
132
|
+
return [
|
|
133
|
+
image,
|
|
134
|
+
data,
|
|
135
|
+
texture.version,
|
|
136
|
+
texture.generateMipmaps,
|
|
137
|
+
mipmaps,
|
|
138
|
+
Array.isArray(mipmaps) ? mipmaps.length : undefined,
|
|
139
|
+
texture.mapping,
|
|
140
|
+
texture.colorSpace,
|
|
141
|
+
texture.minFilter,
|
|
142
|
+
texture.magFilter,
|
|
143
|
+
texture.wrapS,
|
|
144
|
+
texture.wrapT,
|
|
145
|
+
texture.flipY,
|
|
146
|
+
texture.premultiplyAlpha,
|
|
147
|
+
texture.unpackAlignment,
|
|
148
|
+
texture.anisotropy,
|
|
149
|
+
];
|
|
150
|
+
};
|
|
151
|
+
/** Each caller compares the same fixed tuple schema after known initialization. */
|
|
152
|
+
const same = (left, right) => left.every((value, index) => Object.is(value, right[index]));
|
|
153
|
+
/** RectAreaLightUniformsLib publishes these actual objects for WebGLLights. */
|
|
154
|
+
const sharedAreaTexture = (texture) => ["LTC_FLOAT_1", "LTC_FLOAT_2", "LTC_HALF_1", "LTC_HALF_2"].some((key) => {
|
|
155
|
+
const value = Reflect.get(THREE.UniformsLib, key);
|
|
156
|
+
return value === texture;
|
|
157
|
+
});
|
|
158
|
+
/** Actual ordinary slots, uniforms and published overlay/SSS resources. */
|
|
159
|
+
const usesTexture = (scene, texture) => {
|
|
160
|
+
let found = false;
|
|
161
|
+
const inspect = (value, seen) => {
|
|
162
|
+
if (value === texture)
|
|
163
|
+
return true;
|
|
164
|
+
if (typeof value !== "object" || value === null || seen.has(value))
|
|
165
|
+
return false;
|
|
166
|
+
if (!Array.isArray(value) &&
|
|
167
|
+
Object.getPrototypeOf(value) !== Object.prototype &&
|
|
168
|
+
Object.getPrototypeOf(value) !== null)
|
|
169
|
+
return false;
|
|
170
|
+
seen.add(value);
|
|
171
|
+
return Object.values(value).some((entry) => inspect(entry, seen));
|
|
172
|
+
};
|
|
173
|
+
scene.traverse((object) => {
|
|
174
|
+
if (!("material" in object))
|
|
175
|
+
return;
|
|
176
|
+
for (const material of Array.isArray(object.material)
|
|
177
|
+
? object.material
|
|
178
|
+
: [object.material]) {
|
|
179
|
+
if (typeof material !== "object" || material === null)
|
|
180
|
+
continue;
|
|
181
|
+
if (Object.values(material).some((value) => inspect(value, new Set())))
|
|
182
|
+
found = true;
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
return found;
|
|
186
|
+
};
|
|
187
|
+
//# sourceMappingURL=AutoMovieEnvironmentTextureOwnership.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoMovieEnvironmentTextureOwnership.js","sourceRoot":"","sources":["../src/AutoMovieEnvironmentTextureOwnership.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,wCAAwC,EAAE,MAAM,+CAA+C,CAAC;AAUzG;;;;;;;;;GASG;AACH,MAAM,OAAO,oCAAoC;IACvC,MAAM,CAAU,MAAM,GAAkC,IAAI,OAAO,EAGxE,CAAC;IACI,MAAM,CAAU,SAAS,GAC/B,IAAI,OAAO,EAAiB,CAAC;IACvB,MAAM,CAAU,cAAc,GACpC,IAAI,OAAO,EAAU,CAAC;IAExB;;;;;;;;;;OAUG;IACI,MAAM,CAAC,QAAQ,CAAC,OAAsB;QAC3C,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC;YAC1B,MAAM,IAAI,KAAK,CACb,6FAA6F,CAC9F,CAAC;QACJ,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;IAED;;;;;;;;;;OAUG;IACI,MAAM,CAAC,OAAO,CACnB,KAAkB,EAClB,OAAsB,EACtB,UAA4B;QAE5B,IAAI,KAAK,GAAsB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACxD,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,KAAK,KAAK,KAAK;YAC9C,MAAM,IAAI,KAAK,CACb,qFAAqF,CACtF,CAAC;QAC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,MAAM,CAAC,SAAS;YACjD,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,IAAI;YAErC,OAAO,KAAK,CAAC;QACf,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAChB,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,KAAc,EAAW,EAAE,CAC3D,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CACrB,CAAC;IACJ,CAAC,CAAC;IACF,KAAK,CAAC,QAAQ,CAAC,CAAC,MAAsB,EAAQ,EAAE;QAC9C,IAAI,CAAC,CAAC,UAAU,IAAI,MAAM,CAAC;YAAE,OAAO;QACpC,KAAK,MAAM,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC;YACnD,CAAC,CAAC,MAAM,CAAC,QAAQ;YACjB,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;YACtB,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI;gBAAE,SAAS;YAChE,IACE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,KAAc,EAAW,EAAE,CACvD,OAAO,CAAC,KAAK,EAAE,IAAI,GAAG,EAAU,CAAC,CAClC;gBAED,KAAK,GAAG,IAAI,CAAC;QACjB,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import { AutoMovieDisplayCompositor } from "./AutoMovieDisplayCompositor.js";
|
|
3
|
+
/** Per-renderer fade ownership, shared only by its draw and release operations. */
|
|
4
|
+
export declare const AutoMovieFadeCompositorState: WeakMap<THREE.WebGLRenderer, AutoMovieDisplayCompositor>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoMovieFadeCompositorState.js","sourceRoot":"","sources":["../src/AutoMovieFadeCompositorState.ts"],"names":[],"mappings":"AAIA,mFAAmF;AACnF,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,OAAO,EAGpD,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IAutoMovieFilmBeautyLayer } from "./IAutoMovieFilmBeautyLayer.js";
|
|
2
|
+
/**
|
|
3
|
+
* Closed beauty-composition decision for one sampled film frame.
|
|
4
|
+
* A fade mixes its layer against opaque black; dissolve alpha is the incoming
|
|
5
|
+
* contribution, with the outgoing contribution equal to one minus alpha.
|
|
6
|
+
* The resolver admits finite unit-interval weights and complementary layers.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/development/design.md#principled-representation The kind discriminant separates a full-weight draw, one layer over black and two complementary layers; preserving the generic layer retains each sampled frame's scene and camera identity.
|
|
9
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Each branch contains only the operands its compositor needs, so renderAutoMovieFilmFrame dispatches without reconstructing a blend decision from optional fields.
|
|
10
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts These three cases describe supported film transitions for arbitrary layers; none names a shot, fixture or viewer consumer.
|
|
11
|
+
* @evidence contracts/development/common.md#meaningful-documentation Defines black as the fade endpoint, incoming alpha for dissolves and resolver admission of finite complementary weights.
|
|
12
|
+
*/
|
|
13
|
+
export type AutoMovieFilmBeautyComposition<Layer extends IAutoMovieFilmBeautyLayer = IAutoMovieFilmBeautyLayer> = {
|
|
14
|
+
kind: "direct";
|
|
15
|
+
layer: Layer;
|
|
16
|
+
} | {
|
|
17
|
+
kind: "fade";
|
|
18
|
+
layer: Layer;
|
|
19
|
+
weight: number;
|
|
20
|
+
} | {
|
|
21
|
+
kind: "dissolve";
|
|
22
|
+
outgoing: Layer;
|
|
23
|
+
incoming: Layer;
|
|
24
|
+
alpha: number;
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoMovieFilmBeautyComposition.js","sourceRoot":"","sources":["../src/AutoMovieFilmBeautyComposition.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { IAutoMovieMesh } from "@automovie/interface";
|
|
2
|
+
import type * as THREE from "three";
|
|
3
|
+
/**
|
|
4
|
+
* Owned physical source correspondence on generated geometry, or readonly
|
|
5
|
+
* source-pair decoding on an already-loaded static glTF geometry. Neither path
|
|
6
|
+
* changes vertex attributes, opaque source IDs, nullable legacy incidence or
|
|
7
|
+
* caller-owned imported records. Identity is not an anatomical certification.
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* @evidence contracts/development/design.md#principled-representation Generated records are copied and admitted by resolveAutoMovieMeshPhysicalVertices; static glTF pairs decode unsigned low/high words into one-based source references, reserving zero for null and reading interleaved accessors component by component.
|
|
11
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Read and owned-write paths share copying and engine validation; imported wire namespaces stay readonly while generated metadata is published only after admission succeeds.
|
|
12
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Missing legacy metadata remains absent; orphan attributes, conflicting namespaces and malformed correspondence refuse instead of inventing source identities or rewriting caller-owned imports.
|
|
13
|
+
* @evidence contracts/development/common.md#meaningful-documentation Explains legacy absence, readonly imports, nullable incidence, non-anatomical identity and validation before atomic generated-buffer publication; writeOwned states that undefined removes the prior record.
|
|
14
|
+
*/
|
|
15
|
+
export declare class AutoMovieGeometryPhysicalVertices {
|
|
16
|
+
/**
|
|
17
|
+
* Read an owned table, returning absence for an ordinary legacy geometry.
|
|
18
|
+
* Present malformed/orphan wire data refuses instead of inferring identity.
|
|
19
|
+
* glTF accessors may be interleaved: getters read the declared components,
|
|
20
|
+
* whereas their backing array includes unrelated attributes and padding.
|
|
21
|
+
*
|
|
22
|
+
* @evidence contracts/development/implementation.md#principled-implementation Distinguishes generated and glTF wire namespaces, decodes Uint16 pairs with zero as null and validates copied correspondence against Float32 XYZ through the engine; malformed or conflicting inputs refuse.
|
|
23
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Both namespace paths converge on copy and validate, keeping representation decoding in the viewer and physical correspondence admission in the engine.
|
|
24
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Legacy absence returns undefined; an orphan source attribute cannot create inferred anatomical identity or bypass wire validation.
|
|
25
|
+
* @evidence contracts/development/common.md#meaningful-documentation States absence and refusal behavior and why interleaved attributes must be read through accessors.
|
|
26
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Source copying and vertex/XYZ extraction are linear in source and vertex counts, with temporary arrays of the same order before engine admission.
|
|
27
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Buffer attributes and userData can change independently, so each read admits the current pair rather than reusing an earlier validation.
|
|
28
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns an independent correspondence record and retains no geometry, accessor or temporary XYZ array.
|
|
29
|
+
*/
|
|
30
|
+
static read(geometry: THREE.BufferGeometry): IAutoMovieMesh["physicalVertices"];
|
|
31
|
+
private static validate;
|
|
32
|
+
/**
|
|
33
|
+
* Replace metadata on generated viewer-owned geometry after candidate
|
|
34
|
+
* admission. Absence removes the prior table; explicit all-null remains.
|
|
35
|
+
* Imported wire records refuse writes rather than changing caller state.
|
|
36
|
+
* Validation belongs before the caller's atomic buffer publication.
|
|
37
|
+
*
|
|
38
|
+
* @evidence contracts/development/implementation.md#principled-implementation Refuses imported wire metadata, removes generated metadata for undefined and otherwise copies and validates the candidate before replacing geometry.userData, preserving the previous record on admission failure.
|
|
39
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure This operation owns generated metadata publication while geometry-buffer updates remain with buildGeometry or the human buffer owner.
|
|
40
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Explicit all-null correspondence remains explicit; imported records are never rewritten to make a generated candidate appear admissible.
|
|
41
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents replacement, removal, readonly imported state and the caller's requirement to validate before atomic buffer publication.
|
|
42
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Undefined removal is constant time; present metadata copies sources and vertices and extracts XYZ once for linear-size engine validation.
|
|
43
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each candidate is a publication request over current attributes; sharing a prior admitted record would lose ownership isolation.
|
|
44
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Geometry retains only the newly admitted copied table; replacement or deletion releases its previous reference and no GPU allocation is acquired here.
|
|
45
|
+
*/
|
|
46
|
+
static writeOwned(geometry: THREE.BufferGeometry, metadata: IAutoMovieMesh["physicalVertices"]): void;
|
|
47
|
+
private static copy;
|
|
48
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { resolveAutoMovieMeshPhysicalVertices } from "@automovie/engine";
|
|
2
|
+
/**
|
|
3
|
+
* Owned physical source correspondence on generated geometry, or readonly
|
|
4
|
+
* source-pair decoding on an already-loaded static glTF geometry. Neither path
|
|
5
|
+
* changes vertex attributes, opaque source IDs, nullable legacy incidence or
|
|
6
|
+
* caller-owned imported records. Identity is not an anatomical certification.
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* @evidence contracts/development/design.md#principled-representation Generated records are copied and admitted by resolveAutoMovieMeshPhysicalVertices; static glTF pairs decode unsigned low/high words into one-based source references, reserving zero for null and reading interleaved accessors component by component.
|
|
10
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Read and owned-write paths share copying and engine validation; imported wire namespaces stay readonly while generated metadata is published only after admission succeeds.
|
|
11
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Missing legacy metadata remains absent; orphan attributes, conflicting namespaces and malformed correspondence refuse instead of inventing source identities or rewriting caller-owned imports.
|
|
12
|
+
* @evidence contracts/development/common.md#meaningful-documentation Explains legacy absence, readonly imports, nullable incidence, non-anatomical identity and validation before atomic generated-buffer publication; writeOwned states that undefined removes the prior record.
|
|
13
|
+
*/
|
|
14
|
+
export class AutoMovieGeometryPhysicalVertices {
|
|
15
|
+
/**
|
|
16
|
+
* Read an owned table, returning absence for an ordinary legacy geometry.
|
|
17
|
+
* Present malformed/orphan wire data refuses instead of inferring identity.
|
|
18
|
+
* glTF accessors may be interleaved: getters read the declared components,
|
|
19
|
+
* whereas their backing array includes unrelated attributes and padding.
|
|
20
|
+
*
|
|
21
|
+
* @evidence contracts/development/implementation.md#principled-implementation Distinguishes generated and glTF wire namespaces, decodes Uint16 pairs with zero as null and validates copied correspondence against Float32 XYZ through the engine; malformed or conflicting inputs refuse.
|
|
22
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Both namespace paths converge on copy and validate, keeping representation decoding in the viewer and physical correspondence admission in the engine.
|
|
23
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Legacy absence returns undefined; an orphan source attribute cannot create inferred anatomical identity or bypass wire validation.
|
|
24
|
+
* @evidence contracts/development/common.md#meaningful-documentation States absence and refusal behavior and why interleaved attributes must be read through accessors.
|
|
25
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Source copying and vertex/XYZ extraction are linear in source and vertex counts, with temporary arrays of the same order before engine admission.
|
|
26
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Buffer attributes and userData can change independently, so each read admits the current pair rather than reusing an earlier validation.
|
|
27
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Returns an independent correspondence record and retains no geometry, accessor or temporary XYZ array.
|
|
28
|
+
*/
|
|
29
|
+
static read(geometry) {
|
|
30
|
+
const raw = Object.hasOwn(geometry.userData, "automovieMeshPhysicalVertices");
|
|
31
|
+
const wire = Object.hasOwn(geometry.userData, "automoviePhysicalVertices");
|
|
32
|
+
const attribute = geometry.getAttribute("_automovie_physical_source");
|
|
33
|
+
if (!raw && !wire) {
|
|
34
|
+
if (attribute !== undefined)
|
|
35
|
+
throw new Error("Orphan physical source attribute.");
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (raw && (wire || attribute !== undefined))
|
|
39
|
+
throw new Error("Conflicting physical source namespaces.");
|
|
40
|
+
let input = geometry.userData.automovieMeshPhysicalVertices;
|
|
41
|
+
if (wire) {
|
|
42
|
+
const record = geometry.userData.automoviePhysicalVertices;
|
|
43
|
+
if (record === null ||
|
|
44
|
+
typeof record !== "object" ||
|
|
45
|
+
Object.keys(record)
|
|
46
|
+
.sort((a, b) => (a < b ? -1 : a > b ? 1 : 0))
|
|
47
|
+
.join(",") !== "attribute,sources,version" ||
|
|
48
|
+
!("version" in record) ||
|
|
49
|
+
record.version !== 1 ||
|
|
50
|
+
!("attribute" in record) ||
|
|
51
|
+
record.attribute !== "_AUTOMOVIE_PHYSICAL_SOURCE" ||
|
|
52
|
+
!("sources" in record) ||
|
|
53
|
+
attribute === undefined ||
|
|
54
|
+
attribute.itemSize !== 2 ||
|
|
55
|
+
attribute.normalized ||
|
|
56
|
+
!(attribute.array instanceof Uint16Array))
|
|
57
|
+
throw new Error("Malformed physical source wire namespace.");
|
|
58
|
+
const vertices = [];
|
|
59
|
+
for (let vertex = 0; vertex < attribute.count; ++vertex) {
|
|
60
|
+
const reference = attribute.getX(vertex) + 65536 * attribute.getY(vertex);
|
|
61
|
+
vertices.push(reference === 0 ? null : reference - 1);
|
|
62
|
+
}
|
|
63
|
+
input = { sources: record.sources, vertices };
|
|
64
|
+
}
|
|
65
|
+
const result = this.copy(input);
|
|
66
|
+
this.validate(geometry, result);
|
|
67
|
+
return result;
|
|
68
|
+
}
|
|
69
|
+
static validate(geometry, result) {
|
|
70
|
+
const position = geometry.getAttribute("position");
|
|
71
|
+
if (position === undefined ||
|
|
72
|
+
position.itemSize !== 3 ||
|
|
73
|
+
position.normalized ||
|
|
74
|
+
!(position.array instanceof Float32Array))
|
|
75
|
+
throw new Error("Physical source correspondence needs resident Float32 XYZ.");
|
|
76
|
+
const positions = [];
|
|
77
|
+
for (let vertex = 0; vertex < position.count; ++vertex)
|
|
78
|
+
positions.push(position.getX(vertex), position.getY(vertex), position.getZ(vertex));
|
|
79
|
+
resolveAutoMovieMeshPhysicalVertices({
|
|
80
|
+
positions,
|
|
81
|
+
physicalVertices: result,
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Replace metadata on generated viewer-owned geometry after candidate
|
|
86
|
+
* admission. Absence removes the prior table; explicit all-null remains.
|
|
87
|
+
* Imported wire records refuse writes rather than changing caller state.
|
|
88
|
+
* Validation belongs before the caller's atomic buffer publication.
|
|
89
|
+
*
|
|
90
|
+
* @evidence contracts/development/implementation.md#principled-implementation Refuses imported wire metadata, removes generated metadata for undefined and otherwise copies and validates the candidate before replacing geometry.userData, preserving the previous record on admission failure.
|
|
91
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure This operation owns generated metadata publication while geometry-buffer updates remain with buildGeometry or the human buffer owner.
|
|
92
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Explicit all-null correspondence remains explicit; imported records are never rewritten to make a generated candidate appear admissible.
|
|
93
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents replacement, removal, readonly imported state and the caller's requirement to validate before atomic buffer publication.
|
|
94
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Undefined removal is constant time; present metadata copies sources and vertices and extracts XYZ once for linear-size engine validation.
|
|
95
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each candidate is a publication request over current attributes; sharing a prior admitted record would lose ownership isolation.
|
|
96
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Geometry retains only the newly admitted copied table; replacement or deletion releases its previous reference and no GPU allocation is acquired here.
|
|
97
|
+
*/
|
|
98
|
+
static writeOwned(geometry, metadata) {
|
|
99
|
+
if (Object.hasOwn(geometry.userData, "automoviePhysicalVertices") ||
|
|
100
|
+
geometry.getAttribute("_automovie_physical_source") !== undefined)
|
|
101
|
+
throw new Error("Imported physical source metadata is readonly.");
|
|
102
|
+
if (metadata === undefined)
|
|
103
|
+
delete geometry.userData.automovieMeshPhysicalVertices;
|
|
104
|
+
else {
|
|
105
|
+
const result = this.copy(metadata);
|
|
106
|
+
this.validate(geometry, result);
|
|
107
|
+
geometry.userData.automovieMeshPhysicalVertices = result;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
static copy(input) {
|
|
111
|
+
if (input === null ||
|
|
112
|
+
typeof input !== "object" ||
|
|
113
|
+
!("sources" in input) ||
|
|
114
|
+
!Array.isArray(input.sources) ||
|
|
115
|
+
!("vertices" in input) ||
|
|
116
|
+
!Array.isArray(input.vertices))
|
|
117
|
+
throw new Error("Physical source correspondence needs source and vertex arrays.");
|
|
118
|
+
const sources = input.sources.map((source) => {
|
|
119
|
+
if (source === null ||
|
|
120
|
+
typeof source !== "object" ||
|
|
121
|
+
!("domain" in source) ||
|
|
122
|
+
typeof source.domain !== "string" ||
|
|
123
|
+
source.domain.trim().length === 0 ||
|
|
124
|
+
!("id" in source) ||
|
|
125
|
+
typeof source.id !== "number" ||
|
|
126
|
+
!Number.isSafeInteger(source.id) ||
|
|
127
|
+
source.id < 0)
|
|
128
|
+
throw new Error("Physical sources need nonblank domains and safe nonnegative IDs.");
|
|
129
|
+
return { domain: source.domain, id: source.id };
|
|
130
|
+
});
|
|
131
|
+
return { sources, vertices: input.vertices.slice() };
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=AutoMovieGeometryPhysicalVertices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoMovieGeometryPhysicalVertices.js","sourceRoot":"","sources":["../src/AutoMovieGeometryPhysicalVertices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,mBAAmB,CAAC;AAIzE;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,iCAAiC;IAC5C;;;;;;;;;;;;;OAaG;IACI,MAAM,CAAC,IAAI,CAChB,QAA8B;QAE9B,MAAM,GAAG,GAAY,MAAM,CAAC,MAAM,CAChC,QAAQ,CAAC,QAAQ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AM,OAAO,GACX,KAAK,CAAC,OAAO,CAAC,GAAG,CACf,CACE,MAAe,EAGI,EAAE;YACrB,IACE,MAAM,KAAK,IAAI;gBACf,OAAO,MAAM,KAAK,QAAQ;gBAC1B,CAAC,CAAC,QAAQ,IAAI,MAAM,CAAC;gBACrB,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ;gBACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC;gBACjC,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC;gBACjB,OAAO,MAAM,CAAC,EAAE,KAAK,QAAQ;gBAC7B,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC;gBAChC,MAAM,CAAC,EAAE,GAAG,CAAC;gBAEb,MAAM,IAAI,KAAK,CACb,kEAAkE,CACnE,CAAC;YACJ,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC;QAClD,CAAC,CACF,CAAC;QACJ,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAuB,EAAE,CAAC;IAC5E,CAAC;CACF"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { IAutoMovieJointAxes, IAutoMovieRestFrame } from "@automovie/engine";
|
|
2
|
+
import { AutoMovieHumanoidBone, IAutoMovieExpression, IAutoMovieMotion, IAutoMovieSkeleton } from "@automovie/interface";
|
|
3
|
+
import type { IAutoMovieModelObject } from "./IAutoMovieModelObject.js";
|
|
4
|
+
import type { IAutoMovieSpringConfig } from "./IAutoMovieSpringConfig.js";
|
|
5
|
+
/**
|
|
6
|
+
* Drives a motion clip onto a built model: given an elapsed time it samples the
|
|
7
|
+
* clip (via the engine's interpolation) and applies the resulting pose to the
|
|
8
|
+
* model's bones.
|
|
9
|
+
*
|
|
10
|
+
* Call {@link update} with elapsed seconds; the host owns rendering and the
|
|
11
|
+
* animation loop (see {@link mountViewer}). Without springs, the pose depends
|
|
12
|
+
* only on clip time. Springs retain velocity and depend on the update sequence;
|
|
13
|
+
* equal or backward times hold the last spring state.
|
|
14
|
+
*
|
|
15
|
+
* Expression output is sampled on the same frame clock and applied to morph
|
|
16
|
+
* targets or imported-runtime expression sinks when the target provides them;
|
|
17
|
+
* when the target's `lookAt` is `"bone"`, its gaze channels turn the eye bones
|
|
18
|
+
* instead (`resolveLookAt`).
|
|
19
|
+
*
|
|
20
|
+
* @evidence contracts/development/design.md#principled-representation Engine sampling supplies pose and expression at elapsed seconds, `resolveLookAt` moves a bone gaze onto the eye joints before clamping, engine clamping and dampedSpring handle optional secondary motion, and applyPose converts semantic joints to bone transforms; spring state is sequence-dependent and non-increasing timestamps hold it.
|
|
21
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface The player coordinates one clip and built model while the host owns the animation loop; numerical interpolation and kinematics remain in engine and renderer mutation stays in viewer adapters.
|
|
22
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts The maximum spring step bounds integration after stalls and ROM is reapplied after intentional spring overshoot; these rules apply to every configured joint rather than to named models or fixtures.
|
|
23
|
+
* @evidence contracts/development/common.md#meaningful-documentation States host rendering ownership, elapsed-second sampling, stateful spring timing, expression synchronization, bone gaze, optional clinical rest frames and post-spring ROM clamping.
|
|
24
|
+
*/
|
|
25
|
+
export declare class AutoMoviePlayer {
|
|
26
|
+
private readonly target;
|
|
27
|
+
private readonly skeleton;
|
|
28
|
+
private motion;
|
|
29
|
+
private readonly jointAxes?;
|
|
30
|
+
/**
|
|
31
|
+
* When true, clamp each sampled pose into the skeleton's ROM before it is
|
|
32
|
+
* applied, and again AFTER the secondary-motion springs, which overshoot by
|
|
33
|
+
* design (#1048), so joints can no longer exceed their anatomical limits.
|
|
34
|
+
*/
|
|
35
|
+
private readonly clampToRom;
|
|
36
|
+
/** Secondary-motion joints (tail, ears) driven with follow-through. */
|
|
37
|
+
private readonly spring?;
|
|
38
|
+
/**
|
|
39
|
+
* Per-bone rest frames: read each sampled joint angle as **clinical** and
|
|
40
|
+
* map it into the rig's rest-relative space before articulating (e.g.
|
|
41
|
+
* abduction 180 raises either arm overhead regardless of side). Omit to
|
|
42
|
+
* treat angles as raw rig-space, the historical behaviour.
|
|
43
|
+
*/
|
|
44
|
+
private readonly restFrames?;
|
|
45
|
+
private lastSample;
|
|
46
|
+
private readonly springs;
|
|
47
|
+
private lastSeconds;
|
|
48
|
+
private lastUpdateSeconds;
|
|
49
|
+
constructor(target: IAutoMovieModelObject, skeleton: IAutoMovieSkeleton, motion: IAutoMovieMotion, jointAxes?: Partial<Record<AutoMovieHumanoidBone, IAutoMovieJointAxes>> | undefined,
|
|
50
|
+
/**
|
|
51
|
+
* When true, clamp each sampled pose into the skeleton's ROM before it is
|
|
52
|
+
* applied, and again AFTER the secondary-motion springs, which overshoot by
|
|
53
|
+
* design (#1048), so joints can no longer exceed their anatomical limits.
|
|
54
|
+
*/
|
|
55
|
+
clampToRom?: boolean,
|
|
56
|
+
/** Secondary-motion joints (tail, ears) driven with follow-through. */
|
|
57
|
+
spring?: IAutoMovieSpringConfig | undefined,
|
|
58
|
+
/**
|
|
59
|
+
* Per-bone rest frames: read each sampled joint angle as **clinical** and
|
|
60
|
+
* map it into the rig's rest-relative space before articulating (e.g.
|
|
61
|
+
* abduction 180 raises either arm overhead regardless of side). Omit to
|
|
62
|
+
* treat angles as raw rig-space, the historical behaviour.
|
|
63
|
+
*/
|
|
64
|
+
restFrames?: Partial<Record<AutoMovieHumanoidBone, IAutoMovieRestFrame>> | undefined);
|
|
65
|
+
/**
|
|
66
|
+
* Swap the clip being played, preserving active spring follow-through.
|
|
67
|
+
*
|
|
68
|
+
* @evidence contracts/development/implementation.md#principled-implementation Replaces the current motion reference without rewriting its samples; the next update uses the new clip while existing spring velocities remain available for continuous secondary motion.
|
|
69
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Clip selection is a single responsibility separate from time advancement and pose application.
|
|
70
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Every motion follows the same replacement rule without resetting springs for particular clip identities.
|
|
71
|
+
* @evidence contracts/development/common.md#meaningful-documentation States that selecting a new motion preserves active spring follow-through.
|
|
72
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms One reference assignment performs no sampling or processing-strategy selection.
|
|
73
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Replacing a motion is an effect rather than a cached calculation; spring-state reuse belongs to update.
|
|
74
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Releases the player's previous clip reference and retains exactly one replacement clip; latest sampled output is refreshed on the next update.
|
|
75
|
+
*/
|
|
76
|
+
setMotion(motion: IAutoMovieMotion): void;
|
|
77
|
+
/**
|
|
78
|
+
* Sample the clip at elapsed `seconds` and apply pose and expression.
|
|
79
|
+
* Springs hold on equal or backward timestamps and advance at most 1/15 second.
|
|
80
|
+
*
|
|
81
|
+
* @evidence contracts/development/implementation.md#principled-implementation Samples engine motion, optionally clamps before and after three-axis damped follow-through, applies kinematics and expression, then publishes the same applied frame to the target callback; missing configured axes decay toward neutral.
|
|
82
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Sampling, spring coordination, viewer application and frame notification form one ordered update; applySpring keeps its three-axis settlement rule local to this player's retained state.
|
|
83
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Equal or backward times preserve live spring values rather than reseeding them; post-spring clamping preserves the promised ROM while leaving solver velocity free to converge.
|
|
84
|
+
* @evidence contracts/development/common.md#meaningful-documentation States elapsed-second input, expression application and equal/backward timestamp behavior with the maximum spring integration interval.
|
|
85
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Visits sampled joints and configured spring joints once with Set membership, then delegates skeleton resolution and expression application; temporary pose arrays scale with authored joints.
|
|
86
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Bone-keyed axis states retain previous values and velocities; sampled pose and expression are refreshed each update because clip-time output and callback effects are not interchangeable requests.
|
|
87
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Replaces lastSample and timestamps and retains one spring state per configured bone encountered; no frame loop is scheduled and target GPU resources remain host-owned.
|
|
88
|
+
*/
|
|
89
|
+
update(seconds: number): void;
|
|
90
|
+
/**
|
|
91
|
+
* Replace the spring joints' angles with a damped lag toward the animated
|
|
92
|
+
* target, so a tail/ears trail and overshoot the body's motion instead of
|
|
93
|
+
* snapping. Stateful across frames (velocity per axis); `dt` is clamped so a
|
|
94
|
+
* stall or tab-switch can't explode the integrator.
|
|
95
|
+
*/
|
|
96
|
+
private applySpring;
|
|
97
|
+
/** The most recently sampled facial expression, or `null`. */
|
|
98
|
+
get lastExpression(): IAutoMovieExpression | null;
|
|
99
|
+
}
|