@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,24 @@
|
|
|
1
|
+
import type { IAutoMovieTransform } from "@automovie/interface";
|
|
2
|
+
import type * as THREE from "three";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Copy an admitted local TRS to a borrowed Three object: metre translation,
|
|
6
|
+
* engine x/y/z/w quaternion and dimensionless scale. The host updates world
|
|
7
|
+
* matrices when needed; this adapter does not normalize or repair source data.
|
|
8
|
+
*
|
|
9
|
+
* @evidence contracts/development/implementation.md#principled-implementation Uses Three's position/quaternion/scale setters in engine component order, preserving local TRS; finite components and a valid normalized authored quaternion are admission premises, with no implicit world-space reparenting.
|
|
10
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns the single portable-to-Three field conversion shared by scene, light and pose writers, while those owners choose their coordinate-frame inputs.
|
|
11
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Copies admitted values without object-name cases, unit guesses, quaternion repair or foreign method substitution.
|
|
12
|
+
* @evidence contracts/development/common.md#meaningful-documentation Gives local frame, metre/quaternion/scale conventions and separates field copy from world-matrix propagation.
|
|
13
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Writes ten fixed scalar components through three setters in constant time/space independent of descendants or vertex count.
|
|
14
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses existing target vector/quaternion cells and the common conversion; mutable target values are overwritten each call rather than skipped from a stale source-only comparison.
|
|
15
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows object/transform for the call and retains neither; owns no geometry/material/renderer or task and leaves field state with the host object.
|
|
16
|
+
*/
|
|
17
|
+
export const applyTransform: (
|
|
18
|
+
obj: THREE.Object3D,
|
|
19
|
+
t: IAutoMovieTransform,
|
|
20
|
+
) => void = (obj: THREE.Object3D, t: IAutoMovieTransform): void => {
|
|
21
|
+
obj.position.set(t.translation.x, t.translation.y, t.translation.z);
|
|
22
|
+
obj.quaternion.set(t.rotation.x, t.rotation.y, t.rotation.z, t.rotation.w);
|
|
23
|
+
obj.scale.set(t.scale.x, t.scale.y, t.scale.z);
|
|
24
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { resolveAutoMovieShadowProfile } from "@automovie/engine";
|
|
2
|
+
import type {
|
|
3
|
+
IAutoMovieLight,
|
|
4
|
+
IAutoMovieSceneEnvironment,
|
|
5
|
+
} from "@automovie/interface";
|
|
6
|
+
import type * as THREE from "three";
|
|
7
|
+
|
|
8
|
+
import { readAutoMovieShadowLightSource } from "./readAutoMovieShadowLightSource.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Admit an actual scene's punctual shadow casters through the Engine profile.
|
|
12
|
+
* Include hidden lights because their retained targets can participate in a
|
|
13
|
+
* later sample. Runtime names, or native UUIDs when unnamed, identify this
|
|
14
|
+
* scene projection; its light-array paths are not authored AST positions.
|
|
15
|
+
* Area and ambient lights have no punctual shadow product. The caller resolves
|
|
16
|
+
* effective renderer policy before any mutable pass state or GPU allocation.
|
|
17
|
+
*
|
|
18
|
+
* @evidence contracts/development/implementation.md#principled-implementation Traverses real scene objects into punctual light source descriptors, including hidden retained lights, and applies the engine's closed shadow-profile admission; native name/UUID identifies this projection and duplicate authored identity/source provenance is not reconstructed here.
|
|
19
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns the Three scene-to-portable-profile join and delegates supported light/filter policy to the engine, before callers mutate pass state or allocate shadow products.
|
|
20
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Includes actual hidden casters rather than counting only a visible fixture frame; area/ambient omissions follow their lack of a punctual shadow product, and no unsupported profile is compensated with a different filter.
|
|
21
|
+
* @evidence contracts/development/common.md#meaningful-documentation States hidden-light inclusion, name/UUID identity, runtime-path versus authored-AST distinction and required caller ordering before mutable/GPU work.
|
|
22
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Traverses O scene nodes and stores L punctual descriptors for engine admission, O(O+L) adapter time and O(L) temporary storage; refusal diagnostic size grows with actual violations.
|
|
23
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses the engine profile validator instead of duplicating the policy; scene lights/policy can mutate and hidden lights can become active, so no visibility-only cached admission is assumed.
|
|
24
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows scene/shadow declaration and retains only request-local descriptors/results; creates no shadow map or task, and throws before callers acquire their downstream products.
|
|
25
|
+
*/
|
|
26
|
+
export const assertAutoMovieSceneShadowProfile: (
|
|
27
|
+
scene: THREE.Scene,
|
|
28
|
+
shadows: IAutoMovieSceneEnvironment["shadows"],
|
|
29
|
+
) => void = (
|
|
30
|
+
scene: THREE.Scene,
|
|
31
|
+
shadows: IAutoMovieSceneEnvironment["shadows"],
|
|
32
|
+
): void => {
|
|
33
|
+
const lights: Pick<IAutoMovieLight, "id" | "type" | "castShadow">[] = [];
|
|
34
|
+
scene.traverse((object: THREE.Object3D): void => {
|
|
35
|
+
const light: Pick<IAutoMovieLight, "type" | "id" | "castShadow"> | null =
|
|
36
|
+
readAutoMovieShadowLightSource(object.name || object.uuid, object);
|
|
37
|
+
if (light !== null) lights.push(light);
|
|
38
|
+
});
|
|
39
|
+
const profile: ReturnType<typeof resolveAutoMovieShadowProfile> =
|
|
40
|
+
resolveAutoMovieShadowProfile({ lights, shadows });
|
|
41
|
+
if (!profile.success)
|
|
42
|
+
throw new Error(
|
|
43
|
+
"Unsupported shadow profile: " + JSON.stringify(profile.violations),
|
|
44
|
+
);
|
|
45
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { IAutoMovieViewerCameraDepthPrecisionReport } from "./IAutoMovieViewerCameraDepthPrecisionReport.js";
|
|
2
|
+
import { evaluateAutoMovieViewerCameraDepthPrecision } from "./evaluateAutoMovieViewerCameraDepthPrecision.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Refuse a viewer whose observed clips, projection mode or depth bits fail the
|
|
6
|
+
* engine's declared fixed-point capability gate, preserving a passing report.
|
|
7
|
+
*
|
|
8
|
+
* The evaluator checks properties and actual bits, not rendered error or custom
|
|
9
|
+
* shader behavior. Failure includes the status, clips, mode and requested bits.
|
|
10
|
+
*
|
|
11
|
+
* @evidence contracts/development/implementation.md#principled-implementation Delegates actual framebuffer/camera admission to the evaluator and throws exactly when its passed flag is false; the same standard-projection and installed-camera premises apply, without extending the gate into a rendered-error measurement.
|
|
12
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Separates throwing caller policy from the reusable observation/report logic; accepted callers receive the unchanged evaluator report.
|
|
13
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No failure status is downgraded, retried or hidden; diagnostics contain actual report fields rather than substituting requested values or a fixture-specific exception.
|
|
14
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the refusal policy, preserved passing report, included failure facts and the evaluator's capability-only limitation.
|
|
15
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Adds one boolean branch and fixed-size diagnostic formatting to the evaluator's single WebGL query and scalar checks; time/space do not grow with scene or raster size.
|
|
16
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Calls the evaluator once and reuses that report for either return or diagnostics; it does not repeat the driver query or store a stale capability cache.
|
|
17
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Retains no renderer or camera after return/throw and acquires no resource/task; the passing scalar report transfers to the caller and failure is a normal Error value.
|
|
18
|
+
*/
|
|
19
|
+
export const assertAutoMovieViewerCameraDepthPrecision: (
|
|
20
|
+
props: Parameters<typeof evaluateAutoMovieViewerCameraDepthPrecision>[0],
|
|
21
|
+
) => IAutoMovieViewerCameraDepthPrecisionReport = (
|
|
22
|
+
props: Parameters<typeof evaluateAutoMovieViewerCameraDepthPrecision>[0],
|
|
23
|
+
): IAutoMovieViewerCameraDepthPrecisionReport => {
|
|
24
|
+
const report: IAutoMovieViewerCameraDepthPrecisionReport =
|
|
25
|
+
evaluateAutoMovieViewerCameraDepthPrecision(props);
|
|
26
|
+
if (report.passed === false)
|
|
27
|
+
throw new Error(
|
|
28
|
+
`Camera depth precision refused "${report.camera}": ${report.status}; ` +
|
|
29
|
+
`clip ${String(report.sourceNear)}..${String(report.sourceFar)}m became ` +
|
|
30
|
+
`${String(report.realizedNear)}..${String(report.realizedFar)}m on ` +
|
|
31
|
+
`${report.projection} depth with ${String(report.observedDepthBits)} bits ` +
|
|
32
|
+
`(minimum ${String(report.minimumDepthBits)}).`,
|
|
33
|
+
);
|
|
34
|
+
return report;
|
|
35
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One placed audio source excerpt on the film clock, the same shape the
|
|
3
|
+
* Render mixer (`mixAutoMovieAudioPcm`) sums, so Viewer playback and the
|
|
4
|
+
* exported soundtrack read one cue list.
|
|
5
|
+
*
|
|
6
|
+
* @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (One placed audio source excerpt on the film clock, the same shape the Render mixer (`mixAutoMovieAudioPcm`) sums, so Viewer playback and the exported soundtrack read one cue list) and documents 7 documented members as stated in this comment.
|
|
7
|
+
* @evidence contracts/development/design.md#principled-representation Represents One placed audio source excerpt on the film clock, the same shape the Render mixer (`mixAutoMovieAudioPcm`) sums, so Viewer playback and the exported soundtrack read one cue list: interface of 7 members (`asset`, `seconds`, `gain`, `pan`, `offsetSeconds`, `durationSeconds`, ...); units and frames named in its text: seconds, second. Optional members `pan`, `offsetSeconds`, `durationSeconds`, `rate` express documented absence, and the ranges its member docs state are left to runtime validation.
|
|
8
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `IAutoMovieAudioCue` in packages/viewer/src/audio/IAutoMovieAudioCue.ts; its surface is the 7 members listed and the text shows 6 other files naming it, mostly packages/interface (3), packages/viewer (3), so no member is declared for a presumed future need.
|
|
9
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Scanning the declaration finds no `any`, no `unknown`, no index signature and no cast; 4 optional members (`pan`, `offsetSeconds`, `durationSeconds`, `rate`) are independent fields rather than alternatives of one another as far as their docs state; it duplicates no type that another owner declares as far as a name search shows.
|
|
10
|
+
*/
|
|
11
|
+
export interface IAutoMovieAudioCue {
|
|
12
|
+
/** Source id. */
|
|
13
|
+
asset: string;
|
|
14
|
+
|
|
15
|
+
/** Onset, film seconds; nonnegative. */
|
|
16
|
+
seconds: number;
|
|
17
|
+
|
|
18
|
+
/** Linear gain; nonnegative. */
|
|
19
|
+
gain: number;
|
|
20
|
+
|
|
21
|
+
/** Equal-power pan in [-1, 1]; 0 by default. */
|
|
22
|
+
pan?: number;
|
|
23
|
+
|
|
24
|
+
/** Source offset, seconds; 0 by default. */
|
|
25
|
+
offsetSeconds?: number;
|
|
26
|
+
|
|
27
|
+
/** Duration on the film clock, seconds; the rest of the source by default. */
|
|
28
|
+
durationSeconds?: number;
|
|
29
|
+
|
|
30
|
+
/** Source seconds per film second; 1 by default. */
|
|
31
|
+
rate?: number;
|
|
32
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { IAutoMovieAudioCue } from "./IAutoMovieAudioCue.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Which cues sound when playback starts at a film instant and runs at a
|
|
5
|
+
* transport rate, and how each is started: a cue already sounding starts at
|
|
6
|
+
* once part-way into its excerpt, a later cue after its film delay divided
|
|
7
|
+
* by the transport rate, and an ended cue not at all. Source offsets advance
|
|
8
|
+
* by the cue's own rate times the elapsed film seconds, and the playback
|
|
9
|
+
* rate multiplies the cue rate by the transport rate. Pure, so a seek and a
|
|
10
|
+
* resume plan the same playback from the same instant.
|
|
11
|
+
*
|
|
12
|
+
* @param cues The cue list.
|
|
13
|
+
* @param seconds The film instant playback starts from.
|
|
14
|
+
* @param rate Film seconds per wall second; positive.
|
|
15
|
+
* @param lengths Source length in seconds by asset, for cues without a duration.
|
|
16
|
+
* @returns One start per sounding cue, in cue order.
|
|
17
|
+
* @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Which cues sound when playback starts at a film instant and runs at a transport rate, and how each is started: a cue already sounding starts at once part-way into its excerpt, a later cue after its film delay divided by the transport rate, and an ended cue not at all) and documents parameters `cues`, `seconds`, `rate`, `lengths`, the returned value as stated in this comment.
|
|
18
|
+
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Which cues sound when playback starts at a film instant and runs at a transport rate, and how each is started: a cue already sounding starts at once part-way into its excerpt, a later cue after its film delay divided by the transport rate, and an ended cue not at all) directly over its typed inputs (`cues`, `seconds`, `rate`, `lengths`) as a single pass (for-of over cues), delegating to `Number.isFinite`, `Math.max`, `starts.push`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body throws (2 throw sites). Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
19
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 25 lines and 4 top-level statements that reuses `Number.isFinite`, `Math.max`, `starts.push` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
|
|
20
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scanning the body finds no `any`, type assertion, non-null assertion, suppression directive or TODO, and no branch keyed on a consumer, fixture or expected answer; values come from its parameters.
|
|
21
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `cues`, `seconds`, `rate`, `lengths`; the dominant cost is a single pass (for-of over cues), performed once per call with 4 allocation sites (literals and constructed values). No speedup is claimed and none is measured.
|
|
22
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
23
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 4 allocation sites become the returned value or die with the call, so nothing grows.
|
|
24
|
+
*/
|
|
25
|
+
export function planAutoMovieAudioPlayback(
|
|
26
|
+
cues: readonly IAutoMovieAudioCue[],
|
|
27
|
+
seconds: number,
|
|
28
|
+
rate: number,
|
|
29
|
+
lengths: Readonly<Record<string, number>>,
|
|
30
|
+
): planAutoMovieAudioPlayback.IStart[] {
|
|
31
|
+
if (!(rate > 0) || !Number.isFinite(rate) || !Number.isFinite(seconds))
|
|
32
|
+
throw new Error("Invalid audio playback instant or rate");
|
|
33
|
+
const starts: planAutoMovieAudioPlayback.IStart[] = [];
|
|
34
|
+
for (const cue of cues) {
|
|
35
|
+
const speed: number = cue.rate ?? 1;
|
|
36
|
+
const offset: number = cue.offsetSeconds ?? 0;
|
|
37
|
+
const length: number | undefined = lengths[cue.asset];
|
|
38
|
+
if (length === undefined)
|
|
39
|
+
throw new Error(`Unknown audio asset ${cue.asset}`);
|
|
40
|
+
const duration: number = cue.durationSeconds ?? (length - offset) / speed;
|
|
41
|
+
const elapsed: number = Math.max(0, seconds - cue.seconds);
|
|
42
|
+
if (elapsed >= duration) continue;
|
|
43
|
+
starts.push({
|
|
44
|
+
asset: cue.asset,
|
|
45
|
+
delay: Math.max(0, cue.seconds - seconds) / rate,
|
|
46
|
+
offset: offset + elapsed * speed,
|
|
47
|
+
duration: (duration - elapsed) / rate,
|
|
48
|
+
gain: cue.gain,
|
|
49
|
+
pan: cue.pan ?? 0,
|
|
50
|
+
playbackRate: speed * rate,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
return starts;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Companion types of {@link planAutoMovieAudioPlayback}.
|
|
57
|
+
*
|
|
58
|
+
* @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Companion types of ) and documents 1 documented member as stated in this comment.
|
|
59
|
+
* @evidence contracts/development/design.md#principled-representation Represents Companion types of : companion namespace of 1 member (`IStart`); units and frames named in its text: seconds, second. It has no optional member, so no absent-value state combines with another.
|
|
60
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Owned by the module that declares `planAutoMovieAudioPlayback` in packages/viewer/src/audio/planAutoMovieAudioPlayback.ts; its surface is the 1 member listed and the text shows 3 other files naming it, mostly packages/viewer (2), test (1), so no member is declared for a presumed future need.
|
|
61
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Scanning the declaration finds no `any`, no `unknown`, no index signature and no cast; it duplicates no type that another owner declares as far as a name search shows.
|
|
62
|
+
*/
|
|
63
|
+
export namespace planAutoMovieAudioPlayback {
|
|
64
|
+
/** One planned source start. */
|
|
65
|
+
export interface IStart {
|
|
66
|
+
/** Source id. */
|
|
67
|
+
asset: string;
|
|
68
|
+
|
|
69
|
+
/** Wall seconds from now until it starts. */
|
|
70
|
+
delay: number;
|
|
71
|
+
|
|
72
|
+
/** Source seconds it starts from. */
|
|
73
|
+
offset: number;
|
|
74
|
+
|
|
75
|
+
/** Wall seconds it sounds. */
|
|
76
|
+
duration: number;
|
|
77
|
+
|
|
78
|
+
/** Linear gain. */
|
|
79
|
+
gain: number;
|
|
80
|
+
|
|
81
|
+
/** Equal-power pan in [-1, 1]. */
|
|
82
|
+
pan: number;
|
|
83
|
+
|
|
84
|
+
/** Source seconds per wall second. */
|
|
85
|
+
playbackRate: number;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { IAutoMovieAudioCue } from "./IAutoMovieAudioCue.js";
|
|
2
|
+
import { planAutoMovieAudioPlayback } from "./planAutoMovieAudioPlayback.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Play a cue list through Web Audio from a film instant at a transport rate,
|
|
6
|
+
* as {@link planAutoMovieAudioPlayback} plans it: one buffer source per
|
|
7
|
+
* sounding cue, through a gain and an equal-power stereo panner, started at
|
|
8
|
+
* the context's current time plus its delay. The returned stop releases every
|
|
9
|
+
* started source, so a pause, seek or rate change stops and replans.
|
|
10
|
+
*
|
|
11
|
+
* @param context The audio context.
|
|
12
|
+
* @param decoded Decoded buffers by asset.
|
|
13
|
+
* @param cues The cue list.
|
|
14
|
+
* @param seconds The film instant to start from.
|
|
15
|
+
* @param rate Film seconds per wall second.
|
|
16
|
+
* @returns A function stopping every started source once.
|
|
17
|
+
* @evidence contracts/development/common.md#meaningful-documentation Gives the purpose (Play a cue list through Web Audio from a film instant at a transport rate, as plans it: one buffer source per sounding cue, through a gain and an equal-power stereo panner, started at the context's current time plus its delay) and documents parameters `context`, `decoded`, `cues`, `seconds`, `rate`, the returned value as stated in this comment.
|
|
18
|
+
* @evidence contracts/development/implementation.md#principled-implementation Implements the documented behavior (Play a cue list through Web Audio from a film instant at a transport rate, as plans it: one buffer source per sounding cue, through a gain and an equal-power stereo panner, started at the context's current time plus its delay) directly over its typed inputs (`context`, `decoded`, `cues`, `seconds`, `rate`) as 3 sequential passes (map over Object.entries(decoded); for-of over planAutoMovieAudioPlayback( cues, ; for-of over sources), delegating to `Object.fromEntries`, `Object.entries(decoded).map`, `Object.entries`, `planAutoMovieAudioPlayback`, `context.createBufferSource`; the premises are the units, frames and ranges stated in its parameter documentation, enforced only where the body performs no validation and relies on its callers. Apart from structural 0, 1 and 2 the body uses no numeric literal.
|
|
19
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One operation of 46 lines and 6 top-level statements that reuses `Object.fromEntries`, `Object.entries(decoded).map`, `Object.entries`, `planAutoMovieAudioPlayback`, `context.createBufferSource` from their owners instead of copying them; it adds no option, layer or abstraction beyond its documented parameters.
|
|
20
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The body contains 0 `any`, 0 type assertion(s), 1 non-null assertion(s); these are the remaining shortcuts and are not justified here.
|
|
21
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Cost is driven by the sizes of `context`, `decoded`, `cues`, `seconds`, `rate`; the dominant cost is 3 sequential passes (map over Object.entries(decoded); for-of over planAutoMovieAudioPlayback( cues, ; for-of over sources), performed once per call with 2 allocation sites (literals and constructed values). No speedup is claimed and none is measured.
|
|
22
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The operation coordinates no requests, phases or consumers and holds no cache: each call recomputes from its arguments and shares nothing, which is correct because its result depends only on them.
|
|
23
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle, timer, listener or task and keeps no state between calls; its 2 allocation sites become the returned value or die with the call, so nothing grows.
|
|
24
|
+
*/
|
|
25
|
+
export function playAutoMovieAudioCues(
|
|
26
|
+
context: BaseAudioContext,
|
|
27
|
+
decoded: Readonly<Record<string, AudioBuffer>>,
|
|
28
|
+
cues: readonly IAutoMovieAudioCue[],
|
|
29
|
+
seconds: number,
|
|
30
|
+
rate: number,
|
|
31
|
+
): () => void {
|
|
32
|
+
const lengths: Record<string, number> = Object.fromEntries(
|
|
33
|
+
Object.entries(decoded).map(
|
|
34
|
+
([id, buffer]: [string, AudioBuffer]): [string, number] => [
|
|
35
|
+
id,
|
|
36
|
+
buffer.duration,
|
|
37
|
+
],
|
|
38
|
+
),
|
|
39
|
+
);
|
|
40
|
+
const now: number = context.currentTime;
|
|
41
|
+
const sources: AudioBufferSourceNode[] = [];
|
|
42
|
+
for (const start of planAutoMovieAudioPlayback(
|
|
43
|
+
cues,
|
|
44
|
+
seconds,
|
|
45
|
+
rate,
|
|
46
|
+
lengths,
|
|
47
|
+
)) {
|
|
48
|
+
const source: AudioBufferSourceNode = context.createBufferSource();
|
|
49
|
+
source.buffer = decoded[start.asset]!;
|
|
50
|
+
source.playbackRate.value = start.playbackRate;
|
|
51
|
+
const gain: GainNode = context.createGain();
|
|
52
|
+
gain.gain.value = start.gain;
|
|
53
|
+
const panner: StereoPannerNode = context.createStereoPanner();
|
|
54
|
+
panner.pan.value = start.pan;
|
|
55
|
+
source.connect(gain).connect(panner).connect(context.destination);
|
|
56
|
+
source.start(
|
|
57
|
+
now + start.delay,
|
|
58
|
+
start.offset,
|
|
59
|
+
start.duration * start.playbackRate,
|
|
60
|
+
);
|
|
61
|
+
sources.push(source);
|
|
62
|
+
}
|
|
63
|
+
let stopped: boolean = false;
|
|
64
|
+
return (): void => {
|
|
65
|
+
if (stopped) return;
|
|
66
|
+
stopped = true;
|
|
67
|
+
for (const source of sources) {
|
|
68
|
+
try {
|
|
69
|
+
source.stop();
|
|
70
|
+
} catch {
|
|
71
|
+
// A source that already ended has nothing to stop.
|
|
72
|
+
}
|
|
73
|
+
source.disconnect();
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Map a normalized `[0, 1]` position on the ramp to a colour.
|
|
3
|
+
*
|
|
4
|
+
* A three-stop blue-green-red ramp, interpolated linearly in each channel. It
|
|
5
|
+
* returns RGB channel values without allocating a texture. The caller owns the
|
|
6
|
+
* renderer's subsequent color-space conversion. Finite values outside the unit
|
|
7
|
+
* interval clamp to the nearest endpoint; NaN propagates rather than becoming a
|
|
8
|
+
* valid color.
|
|
9
|
+
*
|
|
10
|
+
* @evidence contracts/development/implementation.md#principled-implementation Uses two linear segments through blue (0,0,1), green (0,1,0) and red (1,0,0), clamping normalized positions to [0,1]; finite normalized inputs are the overlay premise, with no claim about later renderer color management or NaN repair.
|
|
11
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One scalar-to-RGB value function owns the overlay ramp definition without texture sampling, palette state or renderer dependence.
|
|
12
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Endpoints and the green midpoint define the supported ramp, not expected-fixture exceptions; no foreign method replacement, hidden gamma adjustment or special metric key occurs.
|
|
13
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the three stops, piecewise channel interpolation, out-of-range clamping, caller color-space responsibility and NaN limitation.
|
|
14
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Performs one clamp, branch and fixed-count arithmetic operations and allocates one three-channel value, constant time/space per point.
|
|
15
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses a single ramp definition across overlay builds; creates no texture or cache, and inexpensive scalar arithmetic does not warrant cross-request result retention.
|
|
16
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Retains no input or renderer resource; one returned RGB value belongs to the caller and no task or GPU handle is acquired.
|
|
17
|
+
*/
|
|
18
|
+
export const autoMovieAnalysisRampColor: (position: number) => {
|
|
19
|
+
r: number;
|
|
20
|
+
g: number;
|
|
21
|
+
b: number;
|
|
22
|
+
} = (position: number): { r: number; g: number; b: number } => {
|
|
23
|
+
const t: number = Math.min(1, Math.max(0, position));
|
|
24
|
+
if (t <= 0.5) {
|
|
25
|
+
const local: number = t * 2;
|
|
26
|
+
return { r: 0, g: local, b: 1 - local };
|
|
27
|
+
}
|
|
28
|
+
const local: number = (t - 0.5) * 2;
|
|
29
|
+
return { r: local, g: 1 - local, b: 0 };
|
|
30
|
+
};
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { autoMovieModelGaits, gaitMotion } from "@automovie/engine";
|
|
2
|
+
import type {
|
|
3
|
+
IAutoMovieGait,
|
|
4
|
+
IAutoMovieMotion,
|
|
5
|
+
IAutoMovieSkeleton,
|
|
6
|
+
} from "@automovie/interface";
|
|
7
|
+
import * as THREE from "three";
|
|
8
|
+
|
|
9
|
+
import { AUTOMOVIE_FORMATION_CYCLE_SAMPLES } from "./AUTOMOVIE_FORMATION_CYCLE_SAMPLES.js";
|
|
10
|
+
import type { IAutoMovieFormationCycle } from "./IAutoMovieFormationCycle.js";
|
|
11
|
+
import type { IAutoMovieFormationCycleTake } from "./IAutoMovieFormationCycleTake.js";
|
|
12
|
+
import type { IBakeFormationCycleProps } from "./IBakeFormationCycleProps.js";
|
|
13
|
+
import { applyPose } from "./applyPose.js";
|
|
14
|
+
import { constructAutoMovieOwnedResources } from "./constructAutoMovieOwnedResources.js";
|
|
15
|
+
import { formationCycleStride } from "./formationCycleStride.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Bake one runtime model's whole repertoire into rigid part-matrix tables.
|
|
19
|
+
*
|
|
20
|
+
* `built` must already be at rest with its world matrices current, because the
|
|
21
|
+
* merged instance geometry was baked from exactly those rest matrices: what is
|
|
22
|
+
* stored per sample is `posed * rest⁻¹`, the transform that carries a
|
|
23
|
+
* rest-space vertex to where the cycle puts it. The object is left at the last
|
|
24
|
+
* sampled pose; callers extract geometry before baking, never after.
|
|
25
|
+
*
|
|
26
|
+
* The pose comes from {@link gaitMotion}, whose keyframe `i` of `samples` sits
|
|
27
|
+
* exactly at cycle position `i / samples`, and is applied through the same
|
|
28
|
+
* {@link applyPose} used by named performers. This bake passes default
|
|
29
|
+
* joint axes and no clinical rest frames; a caller using different explicit
|
|
30
|
+
* axes/rest frames may therefore obtain a different attitude at the same phase.
|
|
31
|
+
*
|
|
32
|
+
* The table is a sampled Float32 affine approximation, not an exact continuous
|
|
33
|
+
* rigid rotation or a proof of no-slip foot contact. Its stride uses the
|
|
34
|
+
* existing lowest-part trajectory heuristic. Returned take textures transfer
|
|
35
|
+
* to the representation owner; a later take's refusal retires earlier textures.
|
|
36
|
+
*
|
|
37
|
+
* @evidence contracts/development/implementation.md#principled-implementation Samples canonical gaitMotion/applyPose and stores posedWorld*inverseRestWorld affine rows per rigid part; admitted invertible rest matrices, ordered parts and positive integral sample count are premises. Float32 matrix interpolation and lowest-part stride estimation remain approximate, and the caller's object stays at the last attempted pose even on refusal.
|
|
38
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns one figure repertoire bake after rigid rest geometry extraction; each take carries timing/stride/table/texture together and the returned uniform cells bind the same fallback/active take consumed by cadence/shader helpers.
|
|
39
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses actual gait declarations/rig parts and native nearest texture sampling, avoiding extension-dependent float linear filtering; sole box-bottom trajectory and fixed sample count are explicit bake heuristics, not asset-name exceptions or patched solvers.
|
|
40
|
+
* @evidence contracts/development/common.md#meaningful-documentation States rest-before-bake ordering, mutable final-pose effect, affine table meaning, sampled precision/contact limitations and take texture transfer/failure rollback.
|
|
41
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms For G gaits, S samples, P parts and B bones, baking costs gait synthesis/FK plus S world-graph updates and P matrix/trajectory writes per gait; matrix bytes are 48*G*S*P, with temporary Vector3 tracks proportional to S*P per take and no anonymous-member dimension.
|
|
42
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Computes inverse rest matrices/box-bottom anchors once and reuses one working Matrix4 across samples; all formation members borrow the baked tables later, while mutable rig/model inputs have no immutable revision key for cross-build memoization.
|
|
43
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Immediately registers each DataTexture during repertoire construction and independently retires all prior takes on later refusal; success transfers finite G table textures/arrays to the representation owner. Borrowed rig/part resources are not disposed or pose-restored by the bake, and returned arrays remain until their representation is released.
|
|
44
|
+
*/
|
|
45
|
+
export const bakeFormationCycle: (
|
|
46
|
+
input: IBakeFormationCycleProps,
|
|
47
|
+
) => IAutoMovieFormationCycle | null = (
|
|
48
|
+
input: IBakeFormationCycleProps,
|
|
49
|
+
): IAutoMovieFormationCycle | null => {
|
|
50
|
+
const skeleton: IAutoMovieSkeleton | null = input.model.skeleton;
|
|
51
|
+
const gaits: readonly IAutoMovieGait[] = autoMovieModelGaits(input.model);
|
|
52
|
+
if (skeleton === null || gaits.length === 0) return null;
|
|
53
|
+
const samples: number = input.samples ?? AUTOMOVIE_FORMATION_CYCLE_SAMPLES;
|
|
54
|
+
const rest: THREE.Matrix4[] = input.parts.map(
|
|
55
|
+
(
|
|
56
|
+
part: THREE.Mesh<
|
|
57
|
+
THREE.BufferGeometry<
|
|
58
|
+
THREE.NormalBufferAttributes,
|
|
59
|
+
THREE.BufferGeometryEventMap
|
|
60
|
+
>,
|
|
61
|
+
| THREE.Material<THREE.MaterialEventMap>
|
|
62
|
+
| THREE.Material<THREE.MaterialEventMap>[],
|
|
63
|
+
THREE.Object3DEventMap
|
|
64
|
+
>,
|
|
65
|
+
): THREE.Matrix4 => part.matrixWorld.clone().invert(),
|
|
66
|
+
);
|
|
67
|
+
// The point of a part that can meet the ground: the bottom of its own box,
|
|
68
|
+
// in its own space, so the bake follows the surface a foot stands on rather
|
|
69
|
+
// than the pivot it swings about.
|
|
70
|
+
const soles: THREE.Vector3[] = input.parts.map(
|
|
71
|
+
(
|
|
72
|
+
part: THREE.Mesh<
|
|
73
|
+
THREE.BufferGeometry<
|
|
74
|
+
THREE.NormalBufferAttributes,
|
|
75
|
+
THREE.BufferGeometryEventMap
|
|
76
|
+
>,
|
|
77
|
+
| THREE.Material<THREE.MaterialEventMap>
|
|
78
|
+
| THREE.Material<THREE.MaterialEventMap>[],
|
|
79
|
+
THREE.Object3DEventMap
|
|
80
|
+
>,
|
|
81
|
+
): THREE.Vector3 => {
|
|
82
|
+
part.geometry.computeBoundingBox();
|
|
83
|
+
const box: THREE.Box3 = part.geometry.boundingBox!;
|
|
84
|
+
return new THREE.Vector3(
|
|
85
|
+
(box.min.x + box.max.x) / 2,
|
|
86
|
+
box.min.y,
|
|
87
|
+
(box.min.z + box.max.z) / 2,
|
|
88
|
+
);
|
|
89
|
+
},
|
|
90
|
+
);
|
|
91
|
+
const takes: IAutoMovieFormationCycleTake[] =
|
|
92
|
+
constructAutoMovieOwnedResources(
|
|
93
|
+
(
|
|
94
|
+
own: <Resource extends { dispose(): void }>(
|
|
95
|
+
resource: Resource,
|
|
96
|
+
) => Resource,
|
|
97
|
+
): {
|
|
98
|
+
gait: string;
|
|
99
|
+
strideMeters: number;
|
|
100
|
+
periodSeconds: number;
|
|
101
|
+
matrices: Float32Array<ArrayBuffer>;
|
|
102
|
+
texture: THREE.DataTexture;
|
|
103
|
+
}[] =>
|
|
104
|
+
gaits.map(
|
|
105
|
+
(
|
|
106
|
+
gait: IAutoMovieGait,
|
|
107
|
+
): {
|
|
108
|
+
gait: string;
|
|
109
|
+
strideMeters: number;
|
|
110
|
+
periodSeconds: number;
|
|
111
|
+
matrices: Float32Array<ArrayBuffer>;
|
|
112
|
+
texture: THREE.DataTexture;
|
|
113
|
+
} => {
|
|
114
|
+
const clip: IAutoMovieMotion = gaitMotion(
|
|
115
|
+
`${input.model.id}:${gait.name}`,
|
|
116
|
+
skeleton.id,
|
|
117
|
+
gait,
|
|
118
|
+
samples,
|
|
119
|
+
);
|
|
120
|
+
const matrices: Float32Array<ArrayBuffer> = new Float32Array(
|
|
121
|
+
input.parts.length * 3 * samples * 4,
|
|
122
|
+
);
|
|
123
|
+
const tracks: THREE.Vector3[][] = input.parts.map(
|
|
124
|
+
(): THREE.Vector3[] => [] as THREE.Vector3[],
|
|
125
|
+
);
|
|
126
|
+
const posed: THREE.Matrix4 = new THREE.Matrix4();
|
|
127
|
+
for (let sample: number = 0; sample < samples; ++sample) {
|
|
128
|
+
applyPose(input.built, clip.keyframes[sample]!.pose, skeleton);
|
|
129
|
+
input.built.object.updateMatrixWorld(true);
|
|
130
|
+
input.parts.forEach(
|
|
131
|
+
(
|
|
132
|
+
part: THREE.Mesh<
|
|
133
|
+
THREE.BufferGeometry<
|
|
134
|
+
THREE.NormalBufferAttributes,
|
|
135
|
+
THREE.BufferGeometryEventMap
|
|
136
|
+
>,
|
|
137
|
+
| THREE.Material<THREE.MaterialEventMap>
|
|
138
|
+
| THREE.Material<THREE.MaterialEventMap>[],
|
|
139
|
+
THREE.Object3DEventMap
|
|
140
|
+
>,
|
|
141
|
+
index: number,
|
|
142
|
+
): void => {
|
|
143
|
+
const elements: THREE.Matrix4Tuple = posed.multiplyMatrices(
|
|
144
|
+
part.matrixWorld,
|
|
145
|
+
rest[index]!,
|
|
146
|
+
).elements;
|
|
147
|
+
for (let row: number = 0; row < 3; ++row)
|
|
148
|
+
for (let column: number = 0; column < 4; ++column)
|
|
149
|
+
matrices[
|
|
150
|
+
((index * 3 + row) * samples + sample) * 4 + column
|
|
151
|
+
] = elements[column * 4 + row]!;
|
|
152
|
+
tracks[index]!.push(
|
|
153
|
+
soles[index]!.clone().applyMatrix4(part.matrixWorld),
|
|
154
|
+
);
|
|
155
|
+
},
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
const texture: THREE.DataTexture = own(
|
|
159
|
+
new THREE.DataTexture(
|
|
160
|
+
matrices,
|
|
161
|
+
samples,
|
|
162
|
+
input.parts.length * 3,
|
|
163
|
+
THREE.RGBAFormat,
|
|
164
|
+
THREE.FloatType,
|
|
165
|
+
),
|
|
166
|
+
);
|
|
167
|
+
// Nearest sampling on purpose: linear filtering of 32-bit float textures is
|
|
168
|
+
// an optional extension, and the two-step blend the shader performs itself
|
|
169
|
+
// is the same arithmetic with none of the capability risk.
|
|
170
|
+
texture.minFilter = THREE.NearestFilter;
|
|
171
|
+
texture.magFilter = THREE.NearestFilter;
|
|
172
|
+
texture.wrapS = THREE.ClampToEdgeWrapping;
|
|
173
|
+
texture.wrapT = THREE.ClampToEdgeWrapping;
|
|
174
|
+
texture.generateMipmaps = false;
|
|
175
|
+
texture.colorSpace = THREE.NoColorSpace;
|
|
176
|
+
texture.needsUpdate = true;
|
|
177
|
+
return {
|
|
178
|
+
gait: gait.name,
|
|
179
|
+
strideMeters: formationCycleStride(tracks),
|
|
180
|
+
periodSeconds: gait.period,
|
|
181
|
+
matrices,
|
|
182
|
+
texture,
|
|
183
|
+
};
|
|
184
|
+
},
|
|
185
|
+
),
|
|
186
|
+
);
|
|
187
|
+
const fallback: IAutoMovieFormationCycleTake = takes[0]!;
|
|
188
|
+
return {
|
|
189
|
+
samples,
|
|
190
|
+
names: input.parts.map(
|
|
191
|
+
(
|
|
192
|
+
part: THREE.Mesh<
|
|
193
|
+
THREE.BufferGeometry<
|
|
194
|
+
THREE.NormalBufferAttributes,
|
|
195
|
+
THREE.BufferGeometryEventMap
|
|
196
|
+
>,
|
|
197
|
+
| THREE.Material<THREE.MaterialEventMap>
|
|
198
|
+
| THREE.Material<THREE.MaterialEventMap>[],
|
|
199
|
+
THREE.Object3DEventMap
|
|
200
|
+
>,
|
|
201
|
+
): string => part.name,
|
|
202
|
+
),
|
|
203
|
+
takes: new Map(
|
|
204
|
+
takes.map(
|
|
205
|
+
(
|
|
206
|
+
take: IAutoMovieFormationCycleTake,
|
|
207
|
+
): readonly [string, IAutoMovieFormationCycleTake] =>
|
|
208
|
+
[take.gait, take] as const,
|
|
209
|
+
),
|
|
210
|
+
),
|
|
211
|
+
fallback,
|
|
212
|
+
active: fallback,
|
|
213
|
+
uniforms: {
|
|
214
|
+
automovieCycleTexture: { value: fallback.texture },
|
|
215
|
+
automovieCycleSamples: { value: samples },
|
|
216
|
+
automovieCycleRows: { value: input.parts.length * 3 },
|
|
217
|
+
automovieCycleAdvance: { value: 0 },
|
|
218
|
+
automovieCycleTurn: { value: 0 },
|
|
219
|
+
},
|
|
220
|
+
};
|
|
221
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type * as THREE from "three";
|
|
2
|
+
|
|
3
|
+
import type { IFormationTierRepresentation } from "./IFormationTierRepresentation.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Bind one resident tier's cycle to its mesh and supported shadow projections.
|
|
7
|
+
* Structural overrides discover the same cycle through mesh metadata; shadow
|
|
8
|
+
* dispatch consumes the tier-owned pair. Static tiers keep Three's defaults.
|
|
9
|
+
* Original palette identities remain authoritative during temporary guide
|
|
10
|
+
* overrides, so no pass creates new shadow-program identities for this mesh.
|
|
11
|
+
*
|
|
12
|
+
* @evidence contracts/development/implementation.md#principled-implementation Attaches the tier's exact cycle metadata and custom depth/distance pair, then selects original palette identity using the actual geometry draw-group material index before native shadow draw; admitted group indices must match the tier palette and the pinned Three runtime's geometry-group callback differs from its declared scene-Group type.
|
|
13
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One mesh binding exposes shared cycle identity to structural overrides and shadow resources to native dispatch, keeping palette-specific program policy with the tier shadow-material owner.
|
|
14
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses original palette identity rather than temporary guide material identity; the callback cast describes the pinned native runtime boundary, not a fixture group fallback, and no Three prototype method is replaced.
|
|
15
|
+
* @evidence contracts/development/common.md#meaningful-documentation States static omission, visible/structural/shadow identity sharing and original-palette authority; the inline cast comment records the native/declaration geometry-group mismatch.
|
|
16
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Installs fixed-count references/callback once per mesh; each shadow draw resolves one palette slot and performs the shadow owner's constant identity lookup, without per-member traversal.
|
|
17
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Meshes of one tier borrow the same cycle/shadow pair and palette identity table; temporary guide overrides do not create duplicate shadow program identities.
|
|
18
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Mesh callback/metadata retain borrowed tier resources through mesh lifetime; tier construction/runtime disposal owns physical materials/textures, and this binder allocates no separate GPU handle or task.
|
|
19
|
+
*/
|
|
20
|
+
export const bindFormationTierCycle: (
|
|
21
|
+
mesh: THREE.InstancedMesh,
|
|
22
|
+
representation: IFormationTierRepresentation,
|
|
23
|
+
) => void = (
|
|
24
|
+
mesh: THREE.InstancedMesh,
|
|
25
|
+
representation: IFormationTierRepresentation,
|
|
26
|
+
): void => {
|
|
27
|
+
if (representation.cycle !== null)
|
|
28
|
+
mesh.userData.automovieFormationCycle = representation.cycle;
|
|
29
|
+
const shadows: {
|
|
30
|
+
depth: THREE.MeshDepthMaterial;
|
|
31
|
+
distance: THREE.MeshDistanceMaterial;
|
|
32
|
+
beforeDraw: (
|
|
33
|
+
material: THREE.Material,
|
|
34
|
+
paletteMaterial: THREE.Material,
|
|
35
|
+
) => void;
|
|
36
|
+
dispose: () => void;
|
|
37
|
+
} | null = representation.shadows;
|
|
38
|
+
if (shadows === null) return;
|
|
39
|
+
mesh.customDepthMaterial = shadows.depth;
|
|
40
|
+
mesh.customDistanceMaterial = shadows.distance;
|
|
41
|
+
mesh.onBeforeShadow = (
|
|
42
|
+
_renderer: THREE.WebGLRenderer,
|
|
43
|
+
_object: THREE.Scene<THREE.Object3DEventMap>,
|
|
44
|
+
_camera: THREE.Camera,
|
|
45
|
+
_shadowCamera: THREE.Camera,
|
|
46
|
+
_geometry: THREE.BufferGeometry<
|
|
47
|
+
THREE.NormalBufferAttributes,
|
|
48
|
+
THREE.BufferGeometryEventMap
|
|
49
|
+
>,
|
|
50
|
+
material: THREE.Material<THREE.MaterialEventMap>,
|
|
51
|
+
group: THREE.Group<THREE.Object3DEventMap>,
|
|
52
|
+
): void => {
|
|
53
|
+
// Three r186 dispatches a geometry group. The installed Object3D
|
|
54
|
+
// declaration currently names the scene-graph Group at this boundary.
|
|
55
|
+
const drawGroup: THREE.GeometryGroup | null = group as unknown as
|
|
56
|
+
| THREE.BufferGeometry["groups"][number]
|
|
57
|
+
| null;
|
|
58
|
+
const palette: THREE.Material<THREE.MaterialEventMap> =
|
|
59
|
+
representation.materials[drawGroup?.materialIndex ?? 0]!;
|
|
60
|
+
shadows.beforeDraw(material, palette);
|
|
61
|
+
};
|
|
62
|
+
};
|