@automovie/viewer 0.0.0-stage → 0.1.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 +140 -0
- package/lib/index.js +141 -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/raster/AutoMovieRasterLighting.d.ts +43 -0
- package/lib/raster/AutoMovieRasterLighting.js +179 -0
- package/lib/raster/AutoMovieRasterLighting.js.map +1 -0
- package/lib/raster/AutoMovieRasterSheet.d.ts +68 -0
- package/lib/raster/AutoMovieRasterSheet.js +141 -0
- package/lib/raster/AutoMovieRasterSheet.js.map +1 -0
- package/lib/raster/AutoMovieRasterTarget.d.ts +87 -0
- package/lib/raster/AutoMovieRasterTarget.js +227 -0
- package/lib/raster/AutoMovieRasterTarget.js.map +1 -0
- package/lib/raster/IAutoMovieSceneRaster.d.ts +52 -0
- package/lib/raster/IAutoMovieSceneRaster.js +2 -0
- package/lib/raster/IAutoMovieSceneRaster.js.map +1 -0
- package/lib/raster/IRasterizeAutoMovieSceneProps.d.ts +28 -0
- package/lib/raster/IRasterizeAutoMovieSceneProps.js +2 -0
- package/lib/raster/IRasterizeAutoMovieSceneProps.js.map +1 -0
- package/lib/raster/encodeAutoMovieRasterPng.d.ts +17 -0
- package/lib/raster/encodeAutoMovieRasterPng.js +71 -0
- package/lib/raster/encodeAutoMovieRasterPng.js.map +1 -0
- package/lib/raster/index.d.ts +8 -0
- package/lib/raster/index.js +9 -0
- package/lib/raster/index.js.map +1 -0
- package/lib/raster/rasterizeAutoMovieScene.d.ts +33 -0
- package/lib/raster/rasterizeAutoMovieScene.js +409 -0
- package/lib/raster/rasterizeAutoMovieScene.js.map +1 -0
- package/lib/raster/stampAutoMovieRasterLabel.d.ts +19 -0
- package/lib/raster/stampAutoMovieRasterLabel.js +88 -0
- package/lib/raster/stampAutoMovieRasterLabel.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 +140 -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/raster/AutoMovieRasterLighting.ts +221 -0
- package/src/raster/AutoMovieRasterSheet.ts +175 -0
- package/src/raster/AutoMovieRasterTarget.ts +282 -0
- package/src/raster/IAutoMovieSceneRaster.ts +62 -0
- package/src/raster/IRasterizeAutoMovieSceneProps.ts +34 -0
- package/src/raster/encodeAutoMovieRasterPng.ts +77 -0
- package/src/raster/index.ts +8 -0
- package/src/raster/rasterizeAutoMovieScene.ts +594 -0
- package/src/raster/stampAutoMovieRasterLabel.ts +120 -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,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Draw one complete frame while measuring renderer-confirmed submissions.
|
|
3
|
+
*
|
|
4
|
+
* `WebGLRenderer.info` is the authority for calls and triangles because it is updated after camera layers, frustum culling, geometry groups, draw ranges, and material visibility have selected the work that reaches the renderer. Disabling its per-render reset makes the measurement frame-wide: a dissolve therefore includes the outgoing draw, incoming draw, and composite pass.
|
|
5
|
+
*
|
|
6
|
+
* The remaining budget dimensions deliberately stay `null`. Three exposes renderer-lifetime allocations for some of them and no post-culling frame count for the rest; a scene traversal would be an estimate, not an observation.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/development/implementation.md#principled-implementation Resets actual renderer submission counters once, disables automatic per-render reset and immediately samples calls/triangles after the supplied synchronous frame draw, restoring its original autoReset flag in finally.
|
|
9
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Submission observation stays separate from geometry budget estimates and draw ownership; unobservable post-culling dimensions remain explicitly null.
|
|
10
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Scene traversal is not substituted for submitted work, counters are not claimed as pixels or GPU allocations and asynchronous draw completion is outside this immediate sampling contract.
|
|
11
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents frame-wide multi-draw aggregation, nullable dimensions, live writable SDK-info premise and draw-failure/reset restoration; prior counters are intentionally replaced rather than restored.
|
|
12
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Coordinator work is fixed around the actual draw and counter reads, allocating one small record without an extra scene or pixel scan.
|
|
13
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work One counter-reset epoch aggregates every synchronous source/composite draw in the requested frame; another frame must reset anew and cannot reuse older submission counts.
|
|
14
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The renderer is borrowed, no GPU owner is acquired and autoReset is restored after reset/draw completion or failure; caller must keep the SDK info object live and writable throughout the scope.
|
|
15
|
+
*/
|
|
16
|
+
export const observeAutoMovieRendererFrame = (renderer, draw) => {
|
|
17
|
+
const previousAutoReset = renderer.info.autoReset;
|
|
18
|
+
renderer.info.autoReset = false;
|
|
19
|
+
try {
|
|
20
|
+
renderer.info.reset();
|
|
21
|
+
const output = draw();
|
|
22
|
+
return {
|
|
23
|
+
output,
|
|
24
|
+
observed: {
|
|
25
|
+
meshes: null,
|
|
26
|
+
drawCalls: renderer.info.render.calls,
|
|
27
|
+
triangles: renderer.info.render.triangles,
|
|
28
|
+
materials: null,
|
|
29
|
+
textures: null,
|
|
30
|
+
lights: null,
|
|
31
|
+
shadowMaps: null,
|
|
32
|
+
instanceSlots: null,
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
finally {
|
|
37
|
+
renderer.info.autoReset = previousAutoReset;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=observeAutoMovieRendererFrame.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observeAutoMovieRendererFrame.js","sourceRoot":"","sources":["../src/observeAutoMovieRendererFrame.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAGuB,CAC/D,QAA6B,EAC7B,IAAkB,EACyC,EAAE;IAC7D,MAAM,iBAAiB,GAAY,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC;IAC3D,QAAQ,CAAC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;IAChC,IAAI,CAAC;QACH,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;QACtB,MAAM,MAAM,GAAW,IAAI,EAAE,CAAC;QAC9B,OAAO;YACL,MAAM;YACN,QAAQ,EAAE;gBACR,MAAM,EAAE,IAAI;gBACZ,SAAS,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK;gBACrC,SAAS,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS;gBACzC,SAAS,EAAE,IAAI;gBACf,QAAQ,EAAE,IAAI;gBACd,MAAM,EAAE,IAAI;gBACZ,UAAU,EAAE,IAAI;gBAChB,aAAa,EAAE,IAAI;aACpB;SACF,CAAC;IACJ,CAAC;YAAS,CAAC;QACT,QAAQ,CAAC,IAAI,CAAC,SAAS,GAAG,iBAAiB,CAAC;IAC9C,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AutoMovieGuidePass } from "@automovie/interface";
|
|
2
|
+
import * as THREE from "three";
|
|
3
|
+
import type { IAutoMovieRenderModeHandle } from "./IAutoMovieRenderModeHandle.js";
|
|
4
|
+
/**
|
|
5
|
+
* Swap every mesh material for `make()`'s, restoring the originals and disposing the created overrides.
|
|
6
|
+
*
|
|
7
|
+
* A formation's animated instance meshes carry their cycle on themselves, and the override inherits it: a guide pass that kept the rest pose while the beauty pass marched would describe a film nobody is going to see. A dual-quaternion skin's override takes the same skinning patch for the same reason.
|
|
8
|
+
*
|
|
9
|
+
* @evidence contracts/development/implementation.md#principled-implementation Collects actual render-mode meshes, records originals and each returned owned override before cycle and dual-quaternion skinning patching, then independently restores all swaps and retires distinct overrides on setup/refinalization failure.
|
|
10
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One setup owner keeps material swaps distinct from formation-cycle and skinning shader patching and uses the existing restoration policy plus sticky once guard.
|
|
11
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Current factories must return caller-transferred owned overrides, not borrowed source materials; partial setup never silently leaves earlier meshes overridden and repeated failed restoration does not retry disposal.
|
|
12
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation explains fresh override ownership, original-material restoration, animated-cycle and dual-quaternion skinning inheritance and failure-safe teardown without claiming guide appearance.
|
|
13
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Collection/setup scans N scene nodes and M meshes; restoration visits M swaps plus U distinct overrides with O(M+U) retained references, while actual shader patching remains with the cycle and skinning owners.
|
|
14
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Material identity deduplicates retirement within the pass and repeated restore shares its original outcome; another pass creates its own material effects rather than reusing a failed override.
|
|
15
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Every override registers before later setup can throw and independent restoration attempts all owners. A failed callback retains originals/overrides/cause under the weak scene key even when setup returns no handle; existing pass admission refuses reacquisition without disposal retry.
|
|
16
|
+
*/
|
|
17
|
+
export declare const overrideAutoMovieRenderModeMaterials: (scene: THREE.Scene, mode: AutoMovieGuidePass, make: () => THREE.Material) => IAutoMovieRenderModeHandle;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { collectAutoMovieRenderModeMeshes } from "./collectAutoMovieRenderModeMeshes.js";
|
|
2
|
+
import { applyDualQuaternionSkinning, dualQuaternionSkinningOf, } from "./dualQuaternionSkinning/index.js";
|
|
3
|
+
import { applyFormationCycleMaterial, formationCycleOf, } from "./formationCycle/index.js";
|
|
4
|
+
import { guardAutoMovieRenderModeRetirement } from "./guardAutoMovieRenderModeRetirement.js";
|
|
5
|
+
import { restoreAutoMovieRenderModeOnce } from "./restoreAutoMovieRenderModeOnce.js";
|
|
6
|
+
import { restoreAutoMovieRenderModeState } from "./restoreAutoMovieRenderModeState.js";
|
|
7
|
+
/**
|
|
8
|
+
* Swap every mesh material for `make()`'s, restoring the originals and disposing the created overrides.
|
|
9
|
+
*
|
|
10
|
+
* A formation's animated instance meshes carry their cycle on themselves, and the override inherits it: a guide pass that kept the rest pose while the beauty pass marched would describe a film nobody is going to see. A dual-quaternion skin's override takes the same skinning patch for the same reason.
|
|
11
|
+
*
|
|
12
|
+
* @evidence contracts/development/implementation.md#principled-implementation Collects actual render-mode meshes, records originals and each returned owned override before cycle and dual-quaternion skinning patching, then independently restores all swaps and retires distinct overrides on setup/refinalization failure.
|
|
13
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One setup owner keeps material swaps distinct from formation-cycle and skinning shader patching and uses the existing restoration policy plus sticky once guard.
|
|
14
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Current factories must return caller-transferred owned overrides, not borrowed source materials; partial setup never silently leaves earlier meshes overridden and repeated failed restoration does not retry disposal.
|
|
15
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation explains fresh override ownership, original-material restoration, animated-cycle and dual-quaternion skinning inheritance and failure-safe teardown without claiming guide appearance.
|
|
16
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Collection/setup scans N scene nodes and M meshes; restoration visits M swaps plus U distinct overrides with O(M+U) retained references, while actual shader patching remains with the cycle and skinning owners.
|
|
17
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Material identity deduplicates retirement within the pass and repeated restore shares its original outcome; another pass creates its own material effects rather than reusing a failed override.
|
|
18
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Every override registers before later setup can throw and independent restoration attempts all owners. A failed callback retains originals/overrides/cause under the weak scene key even when setup returns no handle; existing pass admission refuses reacquisition without disposal retry.
|
|
19
|
+
*/
|
|
20
|
+
export const overrideAutoMovieRenderModeMaterials = (scene, mode, make) => {
|
|
21
|
+
guardAutoMovieRenderModeRetirement(scene);
|
|
22
|
+
const swaps = [];
|
|
23
|
+
const overrides = new Set();
|
|
24
|
+
const restore = () => {
|
|
25
|
+
restoreAutoMovieRenderModeState([
|
|
26
|
+
...swaps.map(({ mesh, original }) => () => {
|
|
27
|
+
mesh.material = original;
|
|
28
|
+
}),
|
|
29
|
+
...[...overrides].map((override) => () => {
|
|
30
|
+
override.dispose();
|
|
31
|
+
}),
|
|
32
|
+
]);
|
|
33
|
+
};
|
|
34
|
+
try {
|
|
35
|
+
for (const mesh of collectAutoMovieRenderModeMeshes(scene)) {
|
|
36
|
+
const original = mesh.material;
|
|
37
|
+
const override = make();
|
|
38
|
+
overrides.add(override);
|
|
39
|
+
swaps.push({ mesh, original });
|
|
40
|
+
const cycle = formationCycleOf(mesh);
|
|
41
|
+
if (cycle !== null)
|
|
42
|
+
applyFormationCycleMaterial(override, cycle);
|
|
43
|
+
if (dualQuaternionSkinningOf(mesh))
|
|
44
|
+
applyDualQuaternionSkinning(override);
|
|
45
|
+
mesh.material = override;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
catch (error) {
|
|
49
|
+
guardAutoMovieRenderModeRetirement(scene, {
|
|
50
|
+
run: restore,
|
|
51
|
+
primary: { error },
|
|
52
|
+
});
|
|
53
|
+
throw error;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
mode,
|
|
57
|
+
semantic: null,
|
|
58
|
+
restore: restoreAutoMovieRenderModeOnce(() => guardAutoMovieRenderModeRetirement(scene, { run: restore })),
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=overrideAutoMovieRenderModeMaterials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overrideAutoMovieRenderModeMaterials.js","sourceRoot":"","sources":["../src/overrideAutoMovieRenderModeMaterials.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,GACzB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,2BAA2B,EAC3B,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAEvF;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAIf,CAChC,KAAkB,EAClB,IAAwB,EACxB,IAA0B,EACE,EAAE;IAC9B,kCAAkC,CAAC,KAAK,CAAC,CAAC;IAC1C,MAAM,KAAK,GAGL,EAAE,CAAC;IACT,MAAM,SAAS,GAAwB,IAAI,GAAG,EAAE,CAAC;IACjD,MAAM,OAAO,GAAe,GAAS,EAAE;QACrC,+BAA+B,CAAC;YAC9B,GAAG,KAAK,CAAC,GAAG,CACV,CAAC,EAAE,IAAI,EAAE,QAAQ,EAA0B,EAAgB,EAAE,CAC3D,GAAS,EAAE;gBACT,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;YAC3B,CAAC,CACJ;YACD,GAAG,CAAC,GAAG,SAAS,CAAC,CAAC,GAAG,CACnB,CAAC,QAAwB,EAAgB,EAAE,CACzC,GAAS,EAAE;gBACT,QAAQ,CAAC,OAAO,EAAE,CAAC;YACrB,CAAC,CACJ;SACF,CAAC,CAAC;IACL,CAAC,CAAC;IACF,IAAI,CAAC;QACH,KAAK,MAAM,IAAI,IAAI,gCAAgC,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,MAAM,QAAQ,GAAsC,IAAI,CAAC,QAAQ,CAAC;YAClE,MAAM,QAAQ,GAAmB,IAAI,EAAE,CAAC;YACxC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACxB,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;YAC/B,MAAM,KAAK,GAAwC,gBAAgB,CAAC,IAAI,CAAC,CAAC;YAC1E,IAAI,KAAK,KAAK,IAAI;gBAAE,2BAA2B,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YACjE,IAAI,wBAAwB,CAAC,IAAI,CAAC;gBAAE,2BAA2B,CAAC,QAAQ,CAAC,CAAC;YAC1E,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC3B,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,kCAAkC,CAAC,KAAK,EAAE;YACxC,GAAG,EAAE,OAAO;YACZ,OAAO,EAAE,EAAE,KAAK,EAAE;SACnB,CAAC,CAAC;QACH,MAAM,KAAK,CAAC;IACd,CAAC;IACD,OAAO;QACL,IAAI;QACJ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,8BAA8B,CAAC,GAAS,EAAE,CACjD,kCAAkC,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,CAC5D;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IAutoMovieRenderTextureTarget } from "@automovie/engine";
|
|
2
|
+
import type * as THREE from "three";
|
|
3
|
+
/**
|
|
4
|
+
* Describe Three r186's next native map or VSM blur attachment factory. WebGLShadowMap multiplies mapSize by public frame extents and clamps each viewport to floor(maxTextureSize / extent). Point cubes use the resulting x-edge for both dimensions and six faces, regardless of mapSize.y. Its PCF map constructor retains default RGBA8 color plus unsigned-int depth; VSM requests RG half-float color plus float depth. The VSM blur target uses RG half-float color and the default D24 renderbuffer. These are constructor representation facts, not a second texture byte or allocation-count formula. The caller admits point/filter compatibility through the Engine profile. This creates no target and does not mutate the light's requested mapSize.
|
|
5
|
+
*
|
|
6
|
+
* @evidence contracts/development/implementation.md#principled-implementation Projects installed Three r186's public frame extents/mapSize clamp and native PCF/VSM constructors into representation metadata, with point cubes using the x edge and six faces.
|
|
7
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure This planner supplies one required factory row while Engine profile admission and byte/accounting aggregation remain separate owners.
|
|
8
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No native target is allocated or light mapSize mutated, compatibility is admitted by the caller and constructor metadata is not a measured physical allocation count.
|
|
9
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation identifies the installed allocator family, depth/colour attachments, point dimensions and supported-profile premises.
|
|
10
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Fixed extent arithmetic and constructing one metadata row take constant work, independent of scene nodes or shadow pixel count.
|
|
11
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The retained-target comparator uses these exact planned representation facts to avoid a duplicate planned row only when current allocation metadata matches.
|
|
12
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Public shadow/capability facts are borrowed and the returned row owns no texture, framebuffer or depth attachment.
|
|
13
|
+
*/
|
|
14
|
+
export declare const planAutoMovieShadowTextureTarget: (scope: string, light: string, shadow: THREE.LightShadow, point: boolean, filter: "pcf" | "vsm", role: "map" | "blur", maxTextureSize: number) => IAutoMovieRenderTextureTarget;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describe Three r186's next native map or VSM blur attachment factory. WebGLShadowMap multiplies mapSize by public frame extents and clamps each viewport to floor(maxTextureSize / extent). Point cubes use the resulting x-edge for both dimensions and six faces, regardless of mapSize.y. Its PCF map constructor retains default RGBA8 color plus unsigned-int depth; VSM requests RG half-float color plus float depth. The VSM blur target uses RG half-float color and the default D24 renderbuffer. These are constructor representation facts, not a second texture byte or allocation-count formula. The caller admits point/filter compatibility through the Engine profile. This creates no target and does not mutate the light's requested mapSize.
|
|
3
|
+
*
|
|
4
|
+
* @evidence contracts/development/implementation.md#principled-implementation Projects installed Three r186's public frame extents/mapSize clamp and native PCF/VSM constructors into representation metadata, with point cubes using the x edge and six faces.
|
|
5
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure This planner supplies one required factory row while Engine profile admission and byte/accounting aggregation remain separate owners.
|
|
6
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No native target is allocated or light mapSize mutated, compatibility is admitted by the caller and constructor metadata is not a measured physical allocation count.
|
|
7
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation identifies the installed allocator family, depth/colour attachments, point dimensions and supported-profile premises.
|
|
8
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Fixed extent arithmetic and constructing one metadata row take constant work, independent of scene nodes or shadow pixel count.
|
|
9
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The retained-target comparator uses these exact planned representation facts to avoid a duplicate planned row only when current allocation metadata matches.
|
|
10
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Public shadow/capability facts are borrowed and the returned row owns no texture, framebuffer or depth attachment.
|
|
11
|
+
*/
|
|
12
|
+
export const planAutoMovieShadowTextureTarget = (scope, light, shadow, point, filter, role, maxTextureSize) => {
|
|
13
|
+
const extents = shadow.getFrameExtents();
|
|
14
|
+
const width = Math.floor(Math.min(shadow.mapSize.x, Math.floor(maxTextureSize / extents.x)) *
|
|
15
|
+
extents.x);
|
|
16
|
+
const height = point
|
|
17
|
+
? width
|
|
18
|
+
: Math.floor(Math.min(shadow.mapSize.y, Math.floor(maxTextureSize / extents.y)) *
|
|
19
|
+
extents.y);
|
|
20
|
+
return {
|
|
21
|
+
owner: `shadow-target:${JSON.stringify([scope, light, role, "planned"])}`,
|
|
22
|
+
shadow: { scope, light, role },
|
|
23
|
+
width,
|
|
24
|
+
height,
|
|
25
|
+
faces: point ? 6 : 1,
|
|
26
|
+
formats: [filter === "vsm" ? "rg16f" : "rgba8"],
|
|
27
|
+
mipmapped: false,
|
|
28
|
+
samples: 0,
|
|
29
|
+
depthBytesPerTexel: 4,
|
|
30
|
+
depthTexture: role === "map",
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=planAutoMovieShadowTextureTarget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planAutoMovieShadowTextureTarget.js","sourceRoot":"","sources":["../src/planAutoMovieShadowTextureTarget.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAQR,CACnC,KAAa,EACb,KAAa,EACb,MAAyB,EACzB,KAAc,EACd,MAAqB,EACrB,IAAoB,EACpB,cAAsB,EACS,EAAE;IACjC,MAAM,OAAO,GAAkB,MAAM,CAAC,eAAe,EAAE,CAAC;IACxD,MAAM,KAAK,GAAW,IAAI,CAAC,KAAK,CAC9B,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;QAChE,OAAO,CAAC,CAAC,CACZ,CAAC;IACF,MAAM,MAAM,GAAW,KAAK;QAC1B,CAAC,CAAC,KAAK;QACP,CAAC,CAAC,IAAI,CAAC,KAAK,CACR,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAChE,OAAO,CAAC,CAAC,CACZ,CAAC;IACN,OAAO;QACL,KAAK,EAAE,iBAAiB,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC,EAAE;QACzE,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE;QAC9B,KAAK;QACL,MAAM;QACN,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACpB,OAAO,EAAE,CAAC,MAAM,KAAK,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;QAC/C,SAAS,EAAE,KAAK;QAChB,OAAO,EAAE,CAAC;QACV,kBAAkB,EAAE,CAAC;QACrB,YAAY,EAAE,IAAI,KAAK,KAAK;KAC7B,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Prop articulation assembly and its result, each owned by its source declaration. */
|
|
2
|
+
export * from "../IAutoMovieBuiltPropArticulation.js";
|
|
3
|
+
export * from "../IBuildPropArticulationProps.js";
|
|
4
|
+
export * from "../buildPropArticulation.js";
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/propArticulation/index.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IAutoMovieViewerCompletedFrame } from "./IAutoMovieViewerCompletedFrame.js";
|
|
2
|
+
/**
|
|
3
|
+
* Notify a supported canvas subscriber from the actual draw-completion owner. The application explicitly subscribes with the public canvas attribute; ordinary unobserved renders allocate no event. Native synchronous DOM delivery avoids SDK replacements and also works across separately bundled consumers. An explicit original redraw is meaningful even when camera, clock and model facts match the preceding frame: graphics recovery still needs new pixels. Ordinary producers retain their supplied idle/change classification.
|
|
4
|
+
*
|
|
5
|
+
* Completion belongs to the original draw producer. This publisher contributes capture authority without implementing validation or delivery gates.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/development/implementation.md#principled-implementation Checks the actual canvas opt-in attribute before dispatching the original draw owner completed-frame detail, marking an explicit original redraw changed even when preceding metadata is equal.
|
|
8
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Native DOM publication separates draw completion from subscription, capture validation and delivery policy without patching renderer methods.
|
|
9
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts An unobserved canvas creates no event and no imaginary pixels; caller-supplied facts and explicitDraw must describe its completed draw, and synchronous DOM delivery is not asynchronous capture settlement proof.
|
|
10
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents opt-in subscription, handled draw responsibility, explicit redraw meaning and absence of validation/delivery gates in this publisher.
|
|
11
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Coordination is fixed except consumer DOM dispatch work; explicit redraw makes one shallow detail copy, and no scene traversal or pixel read occurs.
|
|
12
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Ordinary producer idle/change classification is preserved; explicit redraw intentionally publishes a new completed effect instead of treating equal metadata as pixel equivalence.
|
|
13
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The publisher retains no listener or frame after dispatch; event detail is borrowed or shallow-copied, and subscribers own any retained capture work and withdrawal.
|
|
14
|
+
*/
|
|
15
|
+
export declare function publishViewerCompletedFrame(canvas: {
|
|
16
|
+
getAttribute?: (name: string) => string | null;
|
|
17
|
+
dispatchEvent?: (event: Event) => boolean;
|
|
18
|
+
}, frame: IAutoMovieViewerCompletedFrame, explicitDraw?: boolean): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notify a supported canvas subscriber from the actual draw-completion owner. The application explicitly subscribes with the public canvas attribute; ordinary unobserved renders allocate no event. Native synchronous DOM delivery avoids SDK replacements and also works across separately bundled consumers. An explicit original redraw is meaningful even when camera, clock and model facts match the preceding frame: graphics recovery still needs new pixels. Ordinary producers retain their supplied idle/change classification.
|
|
3
|
+
*
|
|
4
|
+
* Completion belongs to the original draw producer. This publisher contributes capture authority without implementing validation or delivery gates.
|
|
5
|
+
*
|
|
6
|
+
* @evidence contracts/development/implementation.md#principled-implementation Checks the actual canvas opt-in attribute before dispatching the original draw owner completed-frame detail, marking an explicit original redraw changed even when preceding metadata is equal.
|
|
7
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Native DOM publication separates draw completion from subscription, capture validation and delivery policy without patching renderer methods.
|
|
8
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts An unobserved canvas creates no event and no imaginary pixels; caller-supplied facts and explicitDraw must describe its completed draw, and synchronous DOM delivery is not asynchronous capture settlement proof.
|
|
9
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents opt-in subscription, handled draw responsibility, explicit redraw meaning and absence of validation/delivery gates in this publisher.
|
|
10
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Coordination is fixed except consumer DOM dispatch work; explicit redraw makes one shallow detail copy, and no scene traversal or pixel read occurs.
|
|
11
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Ordinary producer idle/change classification is preserved; explicit redraw intentionally publishes a new completed effect instead of treating equal metadata as pixel equivalence.
|
|
12
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The publisher retains no listener or frame after dispatch; event detail is borrowed or shallow-copied, and subscribers own any retained capture work and withdrawal.
|
|
13
|
+
*/
|
|
14
|
+
export function publishViewerCompletedFrame(canvas, frame, explicitDraw = false) {
|
|
15
|
+
if (canvas.getAttribute?.("data-automovie-frame-observer") !== "on")
|
|
16
|
+
return;
|
|
17
|
+
canvas.dispatchEvent?.(new CustomEvent("automovie:completed-frame", { detail: explicitDraw ? { ...frame, changed: true } : frame }));
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=publishViewerCompletedFrame.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publishViewerCompletedFrame.js","sourceRoot":"","sources":["../src/publishViewerCompletedFrame.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,2BAA2B,CACzC,MAGC,EACD,KAAqC,EACrC,YAAY,GAAY,KAAK;IAE7B,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC,+BAA+B,CAAC,KAAK,IAAI;QAAE,OAAO;IAC5E,MAAM,CAAC,aAAa,EAAE,CACpB,IAAI,WAAW,CACb,2BAA2B,EAC3B,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAC/D,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
/**
|
|
3
|
+
* The scene's lights, read once per frame, and the diffuse irradiance they
|
|
4
|
+
* give a surface point: what `rasterizeAutoMovieScene` multiplies by a
|
|
5
|
+
* material's albedo.
|
|
6
|
+
*
|
|
7
|
+
* Ambient, hemisphere, directional, point, spot and rectangular-area lights
|
|
8
|
+
* contribute with three.js's punctual-light conventions: colour times
|
|
9
|
+
* intensity, Lambert cosine, the renderer's distance attenuation and the spot
|
|
10
|
+
* cone falloff; an area light is treated as a point at its position. Shadows,
|
|
11
|
+
* light probes and environment maps are not modelled. A scene with no light
|
|
12
|
+
* gets a camera headlight and an ambient term so its shapes stay readable.
|
|
13
|
+
*
|
|
14
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment lists every light kind read, the conventions applied, what is not modelled, and the fallback for an unlit scene.
|
|
15
|
+
* @evidence contracts/development/design.md#principled-representation Lights are flattened once into world-space records, so each triangle's shading is a loop over plain numbers instead of a scene traversal.
|
|
16
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface A constructor and one shading query; light records stay private.
|
|
17
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts No light is recognised by name or production; the fallback depends only on the absence of lights.
|
|
18
|
+
*/
|
|
19
|
+
export declare class AutoMovieRasterLighting {
|
|
20
|
+
/** World-space light records. */
|
|
21
|
+
private readonly lights;
|
|
22
|
+
/**
|
|
23
|
+
* Read the visible lights under `scene`.
|
|
24
|
+
*
|
|
25
|
+
* @param scene The drawn scene graph, with current world matrices.
|
|
26
|
+
* @param camera The drawing camera, used for the fallback headlight.
|
|
27
|
+
*/
|
|
28
|
+
constructor(scene: THREE.Object3D, camera: THREE.Camera);
|
|
29
|
+
/**
|
|
30
|
+
* Diffuse irradiance at a world point with a unit world normal, linear RGB.
|
|
31
|
+
* Dividing by pi and multiplying by albedo gives the reflected colour, as
|
|
32
|
+
* three.js's Lambert BRDF does.
|
|
33
|
+
*
|
|
34
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the inputs' spaces, the output's meaning and how a caller turns it into colour.
|
|
35
|
+
* @evidence contracts/development/implementation.md#principled-implementation Each light kind uses three.js's own formula: cosine for directional, sky/ground mix for hemisphere, cutoff-windowed inverse power decay and smoothstep cone for punctual lights.
|
|
36
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One loop with one branch per light kind.
|
|
37
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Back-facing light contributes nothing instead of being mirrored; no light is boosted.
|
|
38
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Linear in the number of lights.
|
|
39
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Light records were flattened once in the constructor.
|
|
40
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Allocates only the returned triple.
|
|
41
|
+
*/
|
|
42
|
+
irradiance(point: THREE.Vector3, normal: THREE.Vector3): [number, number, number];
|
|
43
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
/**
|
|
3
|
+
* The scene's lights, read once per frame, and the diffuse irradiance they
|
|
4
|
+
* give a surface point: what `rasterizeAutoMovieScene` multiplies by a
|
|
5
|
+
* material's albedo.
|
|
6
|
+
*
|
|
7
|
+
* Ambient, hemisphere, directional, point, spot and rectangular-area lights
|
|
8
|
+
* contribute with three.js's punctual-light conventions: colour times
|
|
9
|
+
* intensity, Lambert cosine, the renderer's distance attenuation and the spot
|
|
10
|
+
* cone falloff; an area light is treated as a point at its position. Shadows,
|
|
11
|
+
* light probes and environment maps are not modelled. A scene with no light
|
|
12
|
+
* gets a camera headlight and an ambient term so its shapes stay readable.
|
|
13
|
+
*
|
|
14
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment lists every light kind read, the conventions applied, what is not modelled, and the fallback for an unlit scene.
|
|
15
|
+
* @evidence contracts/development/design.md#principled-representation Lights are flattened once into world-space records, so each triangle's shading is a loop over plain numbers instead of a scene traversal.
|
|
16
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface A constructor and one shading query; light records stay private.
|
|
17
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts No light is recognised by name or production; the fallback depends only on the absence of lights.
|
|
18
|
+
*/
|
|
19
|
+
export class AutoMovieRasterLighting {
|
|
20
|
+
/** World-space light records. */
|
|
21
|
+
lights;
|
|
22
|
+
/**
|
|
23
|
+
* Read the visible lights under `scene`.
|
|
24
|
+
*
|
|
25
|
+
* @param scene The drawn scene graph, with current world matrices.
|
|
26
|
+
* @param camera The drawing camera, used for the fallback headlight.
|
|
27
|
+
*/
|
|
28
|
+
constructor(scene, camera) {
|
|
29
|
+
this.lights = [];
|
|
30
|
+
scene.traverseVisible((object) => {
|
|
31
|
+
if (!(object instanceof THREE.Light))
|
|
32
|
+
return;
|
|
33
|
+
const color = [
|
|
34
|
+
object.color.r * object.intensity,
|
|
35
|
+
object.color.g * object.intensity,
|
|
36
|
+
object.color.b * object.intensity,
|
|
37
|
+
];
|
|
38
|
+
const position = new THREE.Vector3().setFromMatrixPosition(object.matrixWorld);
|
|
39
|
+
if (object instanceof THREE.AmbientLight)
|
|
40
|
+
this.lights.push({ kind: "ambient", color });
|
|
41
|
+
else if (object instanceof THREE.HemisphereLight)
|
|
42
|
+
this.lights.push({
|
|
43
|
+
kind: "hemisphere",
|
|
44
|
+
color,
|
|
45
|
+
ground: [
|
|
46
|
+
object.groundColor.r * object.intensity,
|
|
47
|
+
object.groundColor.g * object.intensity,
|
|
48
|
+
object.groundColor.b * object.intensity,
|
|
49
|
+
],
|
|
50
|
+
direction: position.clone().normalize(),
|
|
51
|
+
});
|
|
52
|
+
else if (object instanceof THREE.DirectionalLight)
|
|
53
|
+
this.lights.push({
|
|
54
|
+
kind: "directional",
|
|
55
|
+
color,
|
|
56
|
+
direction: position
|
|
57
|
+
.clone()
|
|
58
|
+
.sub(new THREE.Vector3().setFromMatrixPosition(object.target.matrixWorld))
|
|
59
|
+
.normalize(),
|
|
60
|
+
});
|
|
61
|
+
else if (object instanceof THREE.SpotLight)
|
|
62
|
+
this.lights.push({
|
|
63
|
+
kind: "point",
|
|
64
|
+
color,
|
|
65
|
+
position,
|
|
66
|
+
distance: object.distance,
|
|
67
|
+
decay: object.decay,
|
|
68
|
+
cone: {
|
|
69
|
+
axis: new THREE.Vector3()
|
|
70
|
+
.setFromMatrixPosition(object.target.matrixWorld)
|
|
71
|
+
.sub(position)
|
|
72
|
+
.normalize(),
|
|
73
|
+
outer: Math.cos(object.angle),
|
|
74
|
+
inner: Math.cos(object.angle * (1 - object.penumbra)),
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
else if (object instanceof THREE.PointLight)
|
|
78
|
+
this.lights.push({
|
|
79
|
+
kind: "point",
|
|
80
|
+
color,
|
|
81
|
+
position,
|
|
82
|
+
distance: object.distance,
|
|
83
|
+
decay: object.decay,
|
|
84
|
+
});
|
|
85
|
+
else if (object instanceof THREE.RectAreaLight)
|
|
86
|
+
this.lights.push({
|
|
87
|
+
kind: "point",
|
|
88
|
+
color,
|
|
89
|
+
position,
|
|
90
|
+
distance: 0,
|
|
91
|
+
decay: 2,
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
// An unlit scene would draw black; a headlight and ambient term keep its
|
|
95
|
+
// shapes readable, scaled by pi so Lambert albedo comes out at 0.3 + 0.8 cos.
|
|
96
|
+
if (this.lights.length === 0) {
|
|
97
|
+
camera.updateMatrixWorld();
|
|
98
|
+
this.lights.push({
|
|
99
|
+
kind: "ambient",
|
|
100
|
+
color: [0.3 * Math.PI, 0.3 * Math.PI, 0.3 * Math.PI],
|
|
101
|
+
}, {
|
|
102
|
+
kind: "directional",
|
|
103
|
+
color: [0.8 * Math.PI, 0.8 * Math.PI, 0.8 * Math.PI],
|
|
104
|
+
direction: new THREE.Vector3(0.3, 0.5, 1)
|
|
105
|
+
.normalize()
|
|
106
|
+
.transformDirection(camera.matrixWorld),
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Diffuse irradiance at a world point with a unit world normal, linear RGB.
|
|
112
|
+
* Dividing by pi and multiplying by albedo gives the reflected colour, as
|
|
113
|
+
* three.js's Lambert BRDF does.
|
|
114
|
+
*
|
|
115
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the inputs' spaces, the output's meaning and how a caller turns it into colour.
|
|
116
|
+
* @evidence contracts/development/implementation.md#principled-implementation Each light kind uses three.js's own formula: cosine for directional, sky/ground mix for hemisphere, cutoff-windowed inverse power decay and smoothstep cone for punctual lights.
|
|
117
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One loop with one branch per light kind.
|
|
118
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Back-facing light contributes nothing instead of being mirrored; no light is boosted.
|
|
119
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Linear in the number of lights.
|
|
120
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Light records were flattened once in the constructor.
|
|
121
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Allocates only the returned triple.
|
|
122
|
+
*/
|
|
123
|
+
irradiance(point, normal) {
|
|
124
|
+
let r = 0;
|
|
125
|
+
let g = 0;
|
|
126
|
+
let b = 0;
|
|
127
|
+
for (const light of this.lights) {
|
|
128
|
+
let weight = 0;
|
|
129
|
+
if (light.kind === "ambient")
|
|
130
|
+
weight = 1;
|
|
131
|
+
else if (light.kind === "hemisphere") {
|
|
132
|
+
const sky = 0.5 * normal.dot(light.direction) + 0.5;
|
|
133
|
+
r += light.ground[0] + (light.color[0] - light.ground[0]) * sky;
|
|
134
|
+
g += light.ground[1] + (light.color[1] - light.ground[1]) * sky;
|
|
135
|
+
b += light.ground[2] + (light.color[2] - light.ground[2]) * sky;
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
else if (light.kind === "directional")
|
|
139
|
+
weight = Math.max(0, normal.dot(light.direction));
|
|
140
|
+
else {
|
|
141
|
+
const dx = light.position.x - point.x;
|
|
142
|
+
const dy = light.position.y - point.y;
|
|
143
|
+
const dz = light.position.z - point.z;
|
|
144
|
+
const distance = Math.hypot(dx, dy, dz);
|
|
145
|
+
if (distance === 0)
|
|
146
|
+
continue;
|
|
147
|
+
const cosine = (normal.x * dx + normal.y * dy + normal.z * dz) / distance;
|
|
148
|
+
if (cosine <= 0)
|
|
149
|
+
continue;
|
|
150
|
+
weight = cosine * attenuation(distance, light.distance, light.decay);
|
|
151
|
+
if (light.cone !== undefined) {
|
|
152
|
+
const along = -(light.cone.axis.x * dx +
|
|
153
|
+
light.cone.axis.y * dy +
|
|
154
|
+
light.cone.axis.z * dz) / distance;
|
|
155
|
+
weight *= smoothstep(light.cone.outer, light.cone.inner, along);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
r += light.color[0] * weight;
|
|
159
|
+
g += light.color[1] * weight;
|
|
160
|
+
b += light.color[2] * weight;
|
|
161
|
+
}
|
|
162
|
+
return [r, g, b];
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
/** three.js's punctual-light distance attenuation. */
|
|
166
|
+
function attenuation(distance, cutoff, decay) {
|
|
167
|
+
let falloff = 1 / Math.max(Math.pow(distance, decay), 0.01);
|
|
168
|
+
if (cutoff > 0) {
|
|
169
|
+
const ratio = Math.min(1, Math.max(0, 1 - Math.pow(distance / cutoff, 4)));
|
|
170
|
+
falloff *= ratio * ratio;
|
|
171
|
+
}
|
|
172
|
+
return falloff;
|
|
173
|
+
}
|
|
174
|
+
/** Hermite step between two edges, as GLSL's `smoothstep`. */
|
|
175
|
+
function smoothstep(edge0, edge1, x) {
|
|
176
|
+
const t = Math.min(1, Math.max(0, (x - edge0) / (edge1 - edge0)));
|
|
177
|
+
return t * t * (3 - 2 * t);
|
|
178
|
+
}
|
|
179
|
+
//# sourceMappingURL=AutoMovieRasterLighting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutoMovieRasterLighting.js","sourceRoot":"","sources":["../../src/raster/AutoMovieRasterLighting.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { IAutoMovieSceneRaster } from "./IAutoMovieSceneRaster.js";
|
|
2
|
+
/**
|
|
3
|
+
* A contact sheet of Node-drawn frames, filled one frame at a time: each
|
|
4
|
+
* frame is area-averaged into its cell in row-major order and captioned
|
|
5
|
+
* after reduction, so the caption stays legible however small the cell is.
|
|
6
|
+
*
|
|
7
|
+
* Frames are reduced as they arrive, so a sheet never holds more than its own
|
|
8
|
+
* pixels; the finished sheet is an ordinary raster for
|
|
9
|
+
* `encodeAutoMovieRasterPng`.
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* const sheet = new AutoMovieRasterSheet(20, 5, 180, 320);
|
|
13
|
+
* for (const [seconds, frame] of frames) sheet.add(frame, `${seconds}s`);
|
|
14
|
+
* await writeFile("sheet.png", encodeAutoMovieRasterPng(sheet.finish()));
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states the fill order, the reduction, when captions are drawn, the memory bound and how the result is encoded.
|
|
18
|
+
* @evidence contracts/development/design.md#principled-representation The sheet is itself an IAutoMovieSceneRaster, so encoding and captioning reuse the frame path unchanged.
|
|
19
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface A constructor, `add` and `finish`; layout is fixed by the constructor.
|
|
20
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Nothing names a film or capture command; captions are caller text.
|
|
21
|
+
*/
|
|
22
|
+
export declare class AutoMovieRasterSheet {
|
|
23
|
+
/** The sheet pixels, opaque RGBA. */
|
|
24
|
+
private readonly sheet;
|
|
25
|
+
/** Cells filled so far. */
|
|
26
|
+
private count;
|
|
27
|
+
/** Number of cells. */
|
|
28
|
+
private readonly capacity;
|
|
29
|
+
/** Cells per row. */
|
|
30
|
+
private readonly columns;
|
|
31
|
+
/** Cell width in pixels. */
|
|
32
|
+
private readonly cellWidth;
|
|
33
|
+
/** Cell height in pixels. */
|
|
34
|
+
private readonly cellHeight;
|
|
35
|
+
/**
|
|
36
|
+
* Allocate an empty sheet.
|
|
37
|
+
*
|
|
38
|
+
* @param capacity Number of cells, a positive integer.
|
|
39
|
+
* @param columns Cells per row, a positive integer.
|
|
40
|
+
* @param cellWidth Cell width in pixels, a positive integer.
|
|
41
|
+
* @param cellHeight Cell height in pixels, a positive integer.
|
|
42
|
+
*/
|
|
43
|
+
constructor(capacity: number, columns: number, cellWidth: number, cellHeight: number);
|
|
44
|
+
/**
|
|
45
|
+
* Reduce one frame into the next cell and caption it.
|
|
46
|
+
*
|
|
47
|
+
* @evidence contracts/development/common.md#meaningful-documentation States that the frame fills the next cell and receives the caption.
|
|
48
|
+
* @evidence contracts/development/implementation.md#principled-implementation Each cell pixel averages the source pixels its footprint covers, so thin lines and small figures survive reduction instead of being skipped by point sampling.
|
|
49
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One pass over the cell's pixels, then one caption.
|
|
50
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A full sheet throws instead of overwriting a cell.
|
|
51
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Linear in the source frame's pixel count.
|
|
52
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The caption reuses the frame label stamp on a cell view of the sheet.
|
|
53
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The frame is not retained.
|
|
54
|
+
*/
|
|
55
|
+
add(frame: IAutoMovieSceneRaster, caption: string): void;
|
|
56
|
+
/**
|
|
57
|
+
* The sheet as filled so far; unfilled cells stay black.
|
|
58
|
+
*
|
|
59
|
+
* @evidence contracts/development/common.md#meaningful-documentation States what the result holds and how unfilled cells look.
|
|
60
|
+
* @evidence contracts/development/implementation.md#principled-implementation Returns the sheet raster itself, which every frame was reduced into.
|
|
61
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure A single return.
|
|
62
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts An empty sheet throws rather than producing a blank image.
|
|
63
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Constant time.
|
|
64
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work No copy is made.
|
|
65
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned raster; the sheet keeps no other buffer.
|
|
66
|
+
*/
|
|
67
|
+
finish(): IAutoMovieSceneRaster;
|
|
68
|
+
}
|