@automovie/render 0.2.0 → 0.3.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/lib/IAutoMovieCaptionEntry.d.ts +1 -28
- package/lib/IAutoMovieCaptionSidecar.d.ts +1 -25
- package/lib/IAutoMovieCapturedFrame.d.ts +1 -22
- package/lib/IAutoMovieGuidePassOutput.d.ts +1 -23
- package/lib/IAutoMoviePoseKeypointActor.d.ts +1 -36
- package/lib/IAutoMoviePoseKeypointFrame.d.ts +1 -25
- package/lib/IAutoMoviePoseKeypointSidecar.d.ts +1 -21
- package/lib/IAutoMovieRenderAdapters.d.ts +1 -34
- package/lib/IAutoMovieRenderAndSeeRequest.d.ts +1 -32
- package/lib/IAutoMovieRenderAndSeeResult.d.ts +1 -20
- package/lib/IAutoMovieRenderChunk.d.ts +1 -48
- package/lib/IAutoMovieRenderChunkPlan.d.ts +1 -32
- package/lib/IAutoMovieRenderPassManifest.d.ts +1 -21
- package/lib/IAutoMovieRenderReassembly.d.ts +1 -24
- package/lib/IAutoMovieRenderResult.d.ts +1 -39
- package/lib/IAutoMovieSequenceRenderAdapters.d.ts +1 -36
- package/lib/IAutoMovieSequenceRenderAndSeeRequest.d.ts +1 -36
- package/lib/IAutoMovieSequenceRenderAndSeeResult.d.ts +1 -23
- package/lib/IAutoMovieSequenceRenderFrame.d.ts +1 -41
- package/lib/IAutoMovieSequenceRenderPlan.d.ts +1 -76
- package/lib/IAutoMovieSequenceRenderResult.d.ts +1 -44
- package/lib/IAutoMovieSequenceRenderShotSpan.d.ts +1 -39
- package/lib/IAutoMovieSequenceRenderTransitionSpan.d.ts +1 -39
- package/lib/audio/mixAutoMovieAudioPcm.d.ts +2 -39
- package/lib/audio/mixAutoMovieAudioPcm.js.map +1 -1
- package/lib/audio/mixAutoMovieAudioPcm.mjs.map +1 -1
- package/lib/auditAutoMovieRenderObservation.d.ts +2 -14
- package/lib/auditAutoMovieRenderObservation.js.map +1 -1
- package/lib/auditAutoMovieRenderObservation.mjs.map +1 -1
- package/lib/cache/createAutoMovieHttpArtifactStore.d.ts +1 -1
- package/lib/cache/createAutoMovieHttpArtifactStore.mjs.map +1 -1
- package/lib/caption/IAutoMovieBeatCaption.d.ts +1 -22
- package/lib/caption/beatCaptions.d.ts +1 -2
- package/lib/caption/beatCaptions.js.map +1 -1
- package/lib/caption/beatCaptions.mjs.map +1 -1
- package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.d.ts +1 -12
- package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.js.map +1 -1
- package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.mjs.map +1 -1
- package/lib/caption/parseAutoMovieCaptionLanguage.d.ts +1 -14
- package/lib/caption/parseAutoMovieCaptionLanguage.js.map +1 -1
- package/lib/caption/parseAutoMovieCaptionLanguage.mjs.map +1 -1
- package/lib/capture/AutoMovieCaptureFolder.d.ts +3 -13
- package/lib/capture/AutoMovieCaptureFolder.js.map +1 -1
- package/lib/capture/AutoMovieCaptureFolder.mjs.map +1 -1
- package/lib/capture/IAutoMovieCaptureBudget.d.ts +1 -24
- package/lib/capture/IAutoMovieCaptureCell.d.ts +1 -33
- package/lib/capture/IAutoMovieCaptureComparison.d.ts +1 -75
- package/lib/capture/IAutoMovieCaptureDrawing.d.ts +1 -56
- package/lib/capture/IAutoMovieCaptureLayout.d.ts +1 -47
- package/lib/capture/IAutoMovieCapturePlan.d.ts +1 -30
- package/lib/capture/IAutoMovieCapturePlanRequest.d.ts +1 -97
- package/lib/capture/IAutoMovieCaptureRecord.d.ts +1 -134
- package/lib/capture/IAutoMovieCaptureRequestSource.d.ts +1 -36
- package/lib/capture/IAutoMovieCaptureResolution.d.ts +1 -20
- package/lib/capture/IAutoMovieCaptureSelection.d.ts +1 -23
- package/lib/capture/IAutoMovieCaptureStorage.d.ts +1 -76
- package/lib/capture/IAutoMovieCaptureSubject.d.ts +1 -81
- package/lib/capture/IAutoMovieCaptureTime.d.ts +1 -16
- package/lib/capture/IAutoMovieCaptureWindow.d.ts +1 -24
- package/lib/capture/compareAutoMovieCaptureRounds.d.ts +2 -23
- package/lib/capture/compareAutoMovieCaptureRounds.js.map +1 -1
- package/lib/capture/compareAutoMovieCaptureRounds.mjs.map +1 -1
- package/lib/capture/formatAutoMovieCapturePlanRequest.d.ts +1 -1
- package/lib/capture/formatAutoMovieCapturePlanRequest.js.map +1 -1
- package/lib/capture/formatAutoMovieCapturePlanRequest.mjs.map +1 -1
- package/lib/capture/markAutoMovieCaptureCell.d.ts +1 -1
- package/lib/capture/markAutoMovieCaptureCell.mjs.map +1 -1
- package/lib/capture/parseAutoMovieCapturePlanRequest.d.ts +1 -2
- package/lib/capture/parseAutoMovieCapturePlanRequest.js.map +1 -1
- package/lib/capture/parseAutoMovieCapturePlanRequest.mjs.map +1 -1
- package/lib/capture/planAutoMovieCapture.d.ts +2 -11
- package/lib/capture/planAutoMovieCapture.js.map +1 -1
- package/lib/capture/planAutoMovieCapture.mjs.map +1 -1
- package/lib/capture/planAutoMovieCaptureFrames.d.ts +2 -22
- package/lib/capture/planAutoMovieCaptureFrames.js.map +1 -1
- package/lib/capture/planAutoMovieCaptureFrames.mjs.map +1 -1
- package/lib/capture/planAutoMovieCaptureLayout.d.ts +2 -16
- package/lib/capture/planAutoMovieCaptureLayout.js.map +1 -1
- package/lib/capture/planAutoMovieCaptureLayout.mjs.map +1 -1
- package/lib/capture/planAutoMovieVideoFrames.d.ts +2 -8
- package/lib/capture/planAutoMovieVideoFrames.js.map +1 -1
- package/lib/capture/planAutoMovieVideoFrames.mjs.map +1 -1
- package/lib/capture/planAutoMovieVideoSceneCuts.d.ts +2 -8
- package/lib/capture/planAutoMovieVideoSceneCuts.js.map +1 -1
- package/lib/capture/planAutoMovieVideoSceneCuts.mjs.map +1 -1
- package/lib/capture/readAutoMovieVideoSceneCuts.d.ts +2 -6
- package/lib/capture/readAutoMovieVideoSceneCuts.js.map +1 -1
- package/lib/capture/readAutoMovieVideoSceneCuts.mjs.map +1 -1
- package/lib/capture/resolveAutoMovieCapturePatterns.d.ts +2 -10
- package/lib/capture/resolveAutoMovieCapturePatterns.js.map +1 -1
- package/lib/capture/resolveAutoMovieCapturePatterns.mjs.map +1 -1
- package/lib/capture/runAutoMovieCapture.d.ts +2 -21
- package/lib/capture/runAutoMovieCapture.js.map +1 -1
- package/lib/capture/runAutoMovieCapture.mjs.map +1 -1
- package/lib/capture/runAutoMovieVideoCapture.d.ts +2 -20
- package/lib/capture/runAutoMovieVideoCapture.js.map +1 -1
- package/lib/capture/runAutoMovieVideoCapture.mjs.map +1 -1
- package/lib/capture/scaleAutoMovieCaptureLabels.d.ts +2 -5
- package/lib/capture/scaleAutoMovieCaptureLabels.js.map +1 -1
- package/lib/capture/scaleAutoMovieCaptureLabels.mjs.map +1 -1
- package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.d.ts +2 -6
- package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.js.map +1 -1
- package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.mjs.map +1 -1
- package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.d.ts +2 -14
- package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.js.map +1 -1
- package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.mjs.map +1 -1
- package/lib/delivery/AutoMovieProductionPngRole.d.ts +1 -14
- package/lib/delivery/IAutoMovieProductionPngProfile.d.ts +1 -41
- package/lib/delivery/IAutoMovieProductionVideoProfile.d.ts +1 -46
- package/lib/delivery/assertAutoMovieCaptureClock.d.ts +2 -9
- package/lib/delivery/assertAutoMovieCaptureClock.js.map +1 -1
- package/lib/delivery/assertAutoMovieCaptureClock.mjs.map +1 -1
- package/lib/delivery/assertProductionPngPicture.d.ts +2 -6
- package/lib/delivery/assertProductionPngPicture.js.map +1 -1
- package/lib/delivery/assertProductionPngPicture.mjs.map +1 -1
- package/lib/delivery/assertProductionVideoProfile.d.ts +2 -6
- package/lib/delivery/assertProductionVideoProfile.js.map +1 -1
- package/lib/delivery/assertProductionVideoProfile.mjs.map +1 -1
- package/lib/delivery/auditAutoMovieDecodedFrames.d.ts +2 -35
- package/lib/delivery/auditAutoMovieDecodedFrames.js.map +1 -1
- package/lib/delivery/auditAutoMovieDecodedFrames.mjs.map +1 -1
- package/lib/delivery/auditAutoMovieEncodedPresentation.d.ts +2 -8
- package/lib/delivery/auditAutoMovieEncodedPresentation.js.map +1 -1
- package/lib/delivery/auditAutoMovieEncodedPresentation.mjs.map +1 -1
- package/lib/delivery/planAutoMovieVideoEncoding.d.ts +2 -18
- package/lib/delivery/planAutoMovieVideoEncoding.js.map +1 -1
- package/lib/delivery/planAutoMovieVideoEncoding.mjs.map +1 -1
- package/lib/delivery/productionOpusDescription.d.ts +2 -6
- package/lib/delivery/productionOpusDescription.js.map +1 -1
- package/lib/delivery/productionOpusDescription.mjs.map +1 -1
- package/lib/delivery/resolveProductionPngProfile.d.ts +2 -7
- package/lib/delivery/resolveProductionPngProfile.js.map +1 -1
- package/lib/delivery/resolveProductionPngProfile.mjs.map +1 -1
- package/lib/delivery/resolveProductionVideoProfile.d.ts +2 -7
- package/lib/delivery/resolveProductionVideoProfile.js.map +1 -1
- package/lib/delivery/resolveProductionVideoProfile.mjs.map +1 -1
- package/lib/draw/AutoMovieDrawSession.d.ts +3 -16
- package/lib/draw/AutoMovieDrawSession.js.map +1 -1
- package/lib/draw/AutoMovieDrawSession.mjs.map +1 -1
- package/lib/draw/IAutoMovieDrawCall.d.ts +1 -27
- package/lib/draw/IAutoMovieDrawDescription.d.ts +1 -15
- package/lib/draw/IAutoMovieDrawFunction.d.ts +1 -3
- package/lib/draw/IAutoMovieDrawResult.d.ts +1 -36
- package/lib/draw/IAutoMovieDrawScene.d.ts +9 -2
- package/lib/draw/decodeAutoMovieDrawPixels.d.ts +2 -6
- package/lib/draw/decodeAutoMovieDrawPixels.js.map +1 -1
- package/lib/draw/decodeAutoMovieDrawPixels.mjs.map +1 -1
- package/lib/draw/describeAutoMovieDrawScene.d.ts +4 -4
- package/lib/draw/describeAutoMovieDrawScene.js +10 -4
- package/lib/draw/describeAutoMovieDrawScene.js.map +1 -1
- package/lib/draw/describeAutoMovieDrawScene.mjs +8 -4
- package/lib/draw/describeAutoMovieDrawScene.mjs.map +1 -1
- package/lib/draw/index.d.ts +1 -0
- package/lib/draw/index.js +1 -0
- package/lib/draw/index.js.map +1 -1
- package/lib/draw/index.mjs +2 -1
- package/lib/draw/installAutoMovieDraw.d.ts +6 -6
- package/lib/draw/installAutoMovieDraw.js +18 -23
- package/lib/draw/installAutoMovieDraw.js.map +1 -1
- package/lib/draw/installAutoMovieDraw.mjs +16 -23
- package/lib/draw/installAutoMovieDraw.mjs.map +1 -1
- package/lib/draw/planAutoMovieDrawCall.d.ts +1 -3
- package/lib/draw/planAutoMovieDrawCall.js.map +1 -1
- package/lib/draw/planAutoMovieDrawCall.mjs.map +1 -1
- package/lib/draw/renderAutoMovieDrawnVideo.d.ts +2 -12
- package/lib/draw/renderAutoMovieDrawnVideo.js.map +1 -1
- package/lib/draw/renderAutoMovieDrawnVideo.mjs.map +1 -1
- package/lib/draw/replaceAutoMovieDrawInspection.d.ts +24 -0
- package/lib/draw/replaceAutoMovieDrawInspection.js +29 -0
- package/lib/draw/replaceAutoMovieDrawInspection.js.map +1 -0
- package/lib/draw/replaceAutoMovieDrawInspection.mjs +29 -0
- package/lib/draw/replaceAutoMovieDrawInspection.mjs.map +1 -0
- package/lib/draw/stampAutoMovieDrawLegend.d.ts +2 -4
- package/lib/draw/stampAutoMovieDrawLegend.js.map +1 -1
- package/lib/draw/stampAutoMovieDrawLegend.mjs.map +1 -1
- package/lib/film/AutoMovieOrderedScalar.d.ts +1 -15
- package/lib/film/IAutoMovieProductionAudioAssetIdentity.d.ts +1 -28
- package/lib/film/IAutoMovieProductionAudioAssetIdentityBase.d.ts +1 -29
- package/lib/film/IAutoMovieProductionEncoderIdentity.d.ts +1 -36
- package/lib/film/IAutoMovieProductionRenderChunk.d.ts +1 -39
- package/lib/film/IAutoMovieProductionRenderJobPlan.d.ts +1 -53
- package/lib/film/IAutoMovieProductionRenderRuntimeIdentity.d.ts +1 -31
- package/lib/film/IAutoMovieProductionRenderTier.d.ts +1 -25
- package/lib/film/equalOrderedScalars.d.ts +2 -5
- package/lib/film/equalOrderedScalars.js.map +1 -1
- package/lib/film/equalOrderedScalars.mjs.map +1 -1
- package/lib/film/normalizeAudioAssets.d.ts +1 -1
- package/lib/film/normalizeAudioAssets.js.map +1 -1
- package/lib/film/normalizeAudioAssets.mjs.map +1 -1
- package/lib/film/normalizeRenderTier.d.ts +1 -1
- package/lib/film/normalizeRenderTier.mjs.map +1 -1
- package/lib/film/planProductionRenderJob.d.ts +2 -16
- package/lib/film/planProductionRenderJob.js.map +1 -1
- package/lib/film/planProductionRenderJob.mjs.map +1 -1
- package/lib/film/resolveProductionRenderTierFrameFormat.d.ts +1 -2
- package/lib/film/resolveProductionRenderTierFrameFormat.mjs.map +1 -1
- package/lib/film/validWaveAudioIdentity.d.ts +1 -1
- package/lib/film/validWaveAudioIdentity.mjs.map +1 -1
- package/lib/index.mjs +8 -7
- package/lib/picture/AutoMovieRasterSheet.d.ts +2 -2
- package/lib/picture/AutoMovieRasterSheet.js.map +1 -1
- package/lib/picture/AutoMovieRasterSheet.mjs.map +1 -1
- package/lib/picture/IAutoMovieRasterComparison.d.ts +1 -33
- package/lib/picture/IAutoMovieRasterImage.d.ts +1 -17
- package/lib/picture/compareAutoMovieRasters.d.ts +1 -2
- package/lib/picture/compareAutoMovieRasters.js.map +1 -1
- package/lib/picture/compareAutoMovieRasters.mjs.map +1 -1
- package/lib/picture/decodeAutoMovieRasterPng.d.ts +1 -1
- package/lib/picture/decodeAutoMovieRasterPng.js.map +1 -1
- package/lib/picture/decodeAutoMovieRasterPng.mjs.map +1 -1
- package/lib/picture/encodeAutoMovieRasterPng.d.ts +1 -1
- package/lib/picture/encodeAutoMovieRasterPng.js.map +1 -1
- package/lib/picture/encodeAutoMovieRasterPng.mjs.map +1 -1
- package/lib/picture/hashAutoMovieRasterImage.d.ts +1 -1
- package/lib/picture/hashAutoMovieRasterImage.mjs.map +1 -1
- package/lib/picture/stampAutoMovieRasterLabel.d.ts +2 -5
- package/lib/picture/stampAutoMovieRasterLabel.js.map +1 -1
- package/lib/picture/stampAutoMovieRasterLabel.mjs.map +1 -1
- package/lib/planCaptionSidecar.d.ts +2 -8
- package/lib/planCaptionSidecar.js.map +1 -1
- package/lib/planCaptionSidecar.mjs.map +1 -1
- package/lib/planChunkedSequenceRender.d.ts +2 -9
- package/lib/planChunkedSequenceRender.js.map +1 -1
- package/lib/planChunkedSequenceRender.mjs.map +1 -1
- package/lib/planGuidePassOutputs.d.ts +2 -6
- package/lib/planGuidePassOutputs.js.map +1 -1
- package/lib/planGuidePassOutputs.mjs.map +1 -1
- package/lib/planPoseKeypointSidecar.d.ts +2 -12
- package/lib/planPoseKeypointSidecar.js.map +1 -1
- package/lib/planPoseKeypointSidecar.mjs.map +1 -1
- package/lib/planSequenceRender.d.ts +2 -9
- package/lib/planSequenceRender.js.map +1 -1
- package/lib/planSequenceRender.mjs.map +1 -1
- package/lib/planViewerFrameTimes.d.ts +2 -16
- package/lib/planViewerFrameTimes.js.map +1 -1
- package/lib/planViewerFrameTimes.mjs.map +1 -1
- package/lib/renderAndSee.d.ts +1 -2
- package/lib/renderAndSee.js.map +1 -1
- package/lib/renderAndSee.mjs.map +1 -1
- package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.d.ts +1 -41
- package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.d.ts +1 -53
- package/lib/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.d.ts +1 -27
- package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.d.ts +2 -13
- package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.js.map +1 -1
- package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.mjs.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.d.ts +2 -8
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.js.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.mjs.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.d.ts +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.js.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.mjs.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.d.ts +1 -2
- package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.js.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.mjs.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.d.ts +2 -8
- package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.js.map +1 -1
- package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.mjs.map +1 -1
- package/lib/renderCaptionSidecar.d.ts +1 -1
- package/lib/renderCaptionSidecar.mjs.map +1 -1
- package/lib/renderPoseKeypointSidecar.d.ts +1 -1
- package/lib/renderPoseKeypointSidecar.mjs.map +1 -1
- package/lib/renderSequenceAndSee.d.ts +1 -2
- package/lib/renderSequenceAndSee.js.map +1 -1
- package/lib/renderSequenceAndSee.mjs.map +1 -1
- package/lib/renderSequenceVideo.d.ts +1 -3
- package/lib/renderSequenceVideo.js.map +1 -1
- package/lib/renderSequenceVideo.mjs.map +1 -1
- package/lib/renderVideo.d.ts +1 -3
- package/lib/renderVideo.js.map +1 -1
- package/lib/renderVideo.mjs.map +1 -1
- package/lib/scene/AutoMovieFilmBeautyComposition.d.ts +1 -25
- package/lib/scene/AutoMoviePlayer.d.ts +1 -2
- package/lib/scene/AutoMoviePlayer.js.map +1 -1
- package/lib/scene/AutoMoviePlayer.mjs.map +1 -1
- package/lib/scene/IApplyAutoMovieSectionPlanesProps.d.ts +1 -1
- package/lib/scene/IAutoMovieFilmBeautyLayer.d.ts +1 -12
- package/lib/scene/IAutoMovieFormationPoseTake.d.ts +1 -22
- package/lib/scene/IAutoMovieFormationViewerObject.d.ts +1 -2
- package/lib/scene/IAutoMovieRigLocalTransform.d.ts +1 -15
- package/lib/scene/IAutoMovieSpringAxisSettlement.d.ts +2 -2
- package/lib/scene/IBakeFormationCycleProps.d.ts +1 -2
- package/lib/scene/applyAutoMovieRigLocals.d.ts +1 -2
- package/lib/scene/applyAutoMovieRigLocals.js.map +1 -1
- package/lib/scene/applyAutoMovieRigLocals.mjs.map +1 -1
- package/lib/scene/applyAutoMovieSectionPlanes.mjs.map +1 -1
- package/lib/scene/applyFormationCycleCadence.d.ts +1 -1
- package/lib/scene/applyFormationCycleCadence.mjs.map +1 -1
- package/lib/scene/applyPose.d.ts +1 -2
- package/lib/scene/applyPose.js.map +1 -1
- package/lib/scene/applyPose.mjs.map +1 -1
- package/lib/scene/applyRenderMode.js.map +1 -1
- package/lib/scene/applyRenderMode.mjs.map +1 -1
- package/lib/scene/applySampledObjectMotion.d.ts +1 -1
- package/lib/scene/applySampledObjectMotion.mjs.map +1 -1
- package/lib/scene/applySemanticMaskMode.d.ts +1 -1
- package/lib/scene/applySemanticMaskMode.js.map +1 -1
- package/lib/scene/applySemanticMaskMode.mjs.map +1 -1
- package/lib/scene/autoMovieAnalysisRampColor.d.ts +2 -5
- package/lib/scene/autoMovieAnalysisRampColor.js.map +1 -1
- package/lib/scene/autoMovieAnalysisRampColor.mjs.map +1 -1
- package/lib/scene/bakeFormationCycle.d.ts +2 -1
- package/lib/scene/bakeFormationCycle.js +3 -2
- package/lib/scene/bakeFormationCycle.js.map +1 -1
- package/lib/scene/bakeFormationCycle.mjs +3 -2
- package/lib/scene/bakeFormationCycle.mjs.map +1 -1
- package/lib/scene/buildAutoMovieConstruction.d.ts +2 -5
- package/lib/scene/buildAutoMovieConstruction.js.map +1 -1
- package/lib/scene/buildAutoMovieConstruction.mjs.map +1 -1
- package/lib/scene/buildGeometry.d.ts +1 -1
- package/lib/scene/buildGeometry.js.map +1 -1
- package/lib/scene/buildGeometry.mjs.map +1 -1
- package/lib/scene/buildInstancedEffect.js.map +1 -1
- package/lib/scene/buildInstancedEffect.mjs.map +1 -1
- package/lib/scene/buildInstancedFormation.js.map +1 -1
- package/lib/scene/buildInstancedFormation.mjs.map +1 -1
- package/lib/scene/buildSpaceObject.js.map +1 -1
- package/lib/scene/buildSpaceObject.mjs.map +1 -1
- package/lib/scene/createAutoMoviePhysicalPoseAdapter.d.ts +2 -2
- package/lib/scene/createAutoMoviePhysicalPoseAdapter.js.map +1 -1
- package/lib/scene/createAutoMoviePhysicalPoseAdapter.mjs.map +1 -1
- package/lib/scene/describeFormationTextureSources.d.ts +1 -2
- package/lib/scene/describeFormationTextureSources.mjs.map +1 -1
- package/lib/scene/formation/index.d.ts +1 -1
- package/lib/scene/formationCycleCadence.d.ts +1 -1
- package/lib/scene/formationCycleCadence.mjs.map +1 -1
- package/lib/scene/human-polygon/AutoMovieHumanPolygon.d.ts +7 -57
- package/lib/scene/human-polygon/applyHumanPolygonPose.d.ts +2 -2
- package/lib/scene/human-polygon/applyHumanPolygonPose.js.map +1 -1
- package/lib/scene/human-polygon/applyHumanPolygonPose.mjs.map +1 -1
- package/lib/scene/human-polygon/buildHumanPolygon.d.ts +2 -1
- package/lib/scene/human-polygon/buildHumanPolygon.js.map +1 -1
- package/lib/scene/human-polygon/buildHumanPolygon.mjs.map +1 -1
- package/lib/scene/human-polygon/buildHumanPolygonModule.d.ts +2 -2
- package/lib/scene/human-polygon/buildHumanPolygonModule.js.map +1 -1
- package/lib/scene/human-polygon/buildHumanPolygonModule.mjs.map +1 -1
- package/lib/scene/human-polygon/buildHumanPolygonParts.d.ts +2 -2
- package/lib/scene/human-polygon/buildHumanPolygonParts.js.map +1 -1
- package/lib/scene/human-polygon/buildHumanPolygonParts.mjs.map +1 -1
- package/lib/scene/human-polygon/createAutoMovieHumanPolygonFigure.d.ts +3 -2
- package/lib/scene/human-polygon/createAutoMovieHumanPolygonFigure.js.map +1 -1
- package/lib/scene/human-polygon/createAutoMovieHumanPolygonFigure.mjs.map +1 -1
- package/lib/scene/index.d.ts +1 -1
- package/lib/scene/index.js +0 -1
- package/lib/scene/index.js.map +1 -1
- package/lib/scene/index.mjs +6 -6
- package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.d.ts +2 -4
- package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.js.map +1 -1
- package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.mjs.map +1 -1
- package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.d.ts +1 -1
- package/lib/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.mjs.map +1 -1
- package/lib/scene/inspection/IApplyAutoMovieInspectionProps.d.ts +2 -3
- package/lib/scene/inspection/IAutoMovieInspectionCamera.d.ts +1 -29
- package/lib/scene/inspection/IAutoMovieInspectionHandle.d.ts +3 -6
- package/lib/scene/inspection/IAutoMovieInspectionKind.d.ts +1 -16
- package/lib/scene/inspection/IAutoMovieInspectionLabel.d.ts +1 -18
- package/lib/scene/inspection/IAutoMovieInspectionLegendEntry.d.ts +1 -22
- package/lib/scene/inspection/IAutoMovieInspectionMarkSet.d.ts +1 -1
- package/lib/scene/inspection/IAutoMovieInspectionMeasured.d.ts +1 -1
- package/lib/scene/inspection/IAutoMovieInspectionRequest.d.ts +1 -99
- package/lib/scene/inspection/IAutoMovieInspectionTrail.d.ts +1 -18
- package/lib/scene/inspection/IAutoMovieInspectionView.d.ts +1 -80
- package/lib/scene/inspection/applyAutoMovieInspection.js.map +1 -1
- package/lib/scene/inspection/applyAutoMovieInspection.mjs.map +1 -1
- package/lib/scene/inspection/applyAutoMovieInspectionSection.d.ts +1 -1
- package/lib/scene/inspection/applyAutoMovieInspectionSection.mjs.map +1 -1
- package/lib/scene/inspection/applyAutoMovieInspectionShade.d.ts +2 -2
- package/lib/scene/inspection/applyAutoMovieInspectionShade.js.map +1 -1
- package/lib/scene/inspection/applyAutoMovieInspectionShade.mjs.map +1 -1
- package/lib/scene/inspection/buildAutoMovieInspectionMarks.mjs.map +1 -1
- package/lib/scene/inspection/chooseAutoMovieInspectionMarks.d.ts +1 -1
- package/lib/scene/inspection/chooseAutoMovieInspectionMarks.mjs.map +1 -1
- package/lib/scene/inspection/colorAutoMovieInspectionObjects.d.ts +3 -3
- package/lib/scene/inspection/colorAutoMovieInspectionObjects.js.map +1 -1
- package/lib/scene/inspection/colorAutoMovieInspectionObjects.mjs.map +1 -1
- package/lib/scene/inspection/expandAutoMovieInspectionSweep.d.ts +2 -17
- package/lib/scene/inspection/expandAutoMovieInspectionSweep.js.map +1 -1
- package/lib/scene/inspection/expandAutoMovieInspectionSweep.mjs.map +1 -1
- package/lib/scene/inspection/focusAutoMovieInspection.d.ts +2 -3
- package/lib/scene/inspection/focusAutoMovieInspection.js.map +1 -1
- package/lib/scene/inspection/focusAutoMovieInspection.mjs.map +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionCameraView.d.ts +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionCameraView.js.map +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionCameraView.mjs.map +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionRequest.d.ts +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionRequest.js.map +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionRequest.mjs.map +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionView.d.ts +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionView.js.map +1 -1
- package/lib/scene/inspection/formatAutoMovieInspectionView.mjs.map +1 -1
- package/lib/scene/inspection/legendAutoMovieInspectionMarks.d.ts +2 -6
- package/lib/scene/inspection/legendAutoMovieInspectionMarks.js.map +1 -1
- package/lib/scene/inspection/legendAutoMovieInspectionMarks.mjs.map +1 -1
- package/lib/scene/inspection/listAutoMovieInspectionKinds.d.ts +2 -9
- package/lib/scene/inspection/listAutoMovieInspectionKinds.js.map +1 -1
- package/lib/scene/inspection/listAutoMovieInspectionKinds.mjs.map +1 -1
- package/lib/scene/inspection/markAutoMovieInspectionTrails.d.ts +1 -2
- package/lib/scene/inspection/markAutoMovieInspectionTrails.js.map +1 -1
- package/lib/scene/inspection/markAutoMovieInspectionTrails.mjs.map +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionDefects.d.ts +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionDefects.js.map +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionDefects.mjs.map +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionEdges.mjs.map +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionMeshes.d.ts +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionMeshes.mjs.map +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionPaths.d.ts +2 -7
- package/lib/scene/inspection/measureAutoMovieInspectionPaths.js.map +1 -1
- package/lib/scene/inspection/measureAutoMovieInspectionPaths.mjs.map +1 -1
- package/lib/scene/inspection/mergeAutoMovieInspectionLegends.d.ts +1 -1
- package/lib/scene/inspection/mergeAutoMovieInspectionLegends.mjs.map +1 -1
- package/lib/scene/inspection/parseAutoMovieInspectionRequest.d.ts +1 -1
- package/lib/scene/inspection/parseAutoMovieInspectionRequest.js.map +1 -1
- package/lib/scene/inspection/parseAutoMovieInspectionRequest.mjs.map +1 -1
- package/lib/scene/inspection/parseAutoMovieInspectionView.d.ts +1 -1
- package/lib/scene/inspection/parseAutoMovieInspectionView.js.map +1 -1
- package/lib/scene/inspection/parseAutoMovieInspectionView.mjs.map +1 -1
- package/lib/scene/inspection/placeAutoMovieInspectionLabels.d.ts +2 -6
- package/lib/scene/inspection/placeAutoMovieInspectionLabels.js.map +1 -1
- package/lib/scene/inspection/placeAutoMovieInspectionLabels.mjs.map +1 -1
- package/lib/scene/inspection/planAutoMovieInspectionTrailTimes.d.ts +2 -9
- package/lib/scene/inspection/planAutoMovieInspectionTrailTimes.js.map +1 -1
- package/lib/scene/inspection/planAutoMovieInspectionTrailTimes.mjs.map +1 -1
- package/lib/scene/inspection/resolveAutoMovieInspectionColors.d.ts +2 -18
- package/lib/scene/inspection/resolveAutoMovieInspectionColors.js.map +1 -1
- package/lib/scene/inspection/resolveAutoMovieInspectionColors.mjs.map +1 -1
- package/lib/scene/inspection/resolveAutoMovieInspectionView.d.ts +1 -2
- package/lib/scene/inspection/resolveAutoMovieInspectionView.js.map +1 -1
- package/lib/scene/inspection/resolveAutoMovieInspectionView.mjs.map +1 -1
- package/lib/scene/inspection/sampleAutoMovieInspectionTrails.d.ts +1 -1
- package/lib/scene/inspection/sampleAutoMovieInspectionTrails.js.map +1 -1
- package/lib/scene/inspection/sampleAutoMovieInspectionTrails.mjs.map +1 -1
- package/lib/scene/matchesAutoMovieShadowTextureProfile.d.ts +1 -1
- package/lib/scene/matchesAutoMovieShadowTextureProfile.mjs.map +1 -1
- package/lib/scene/observeAutoMovieRendererFrame.d.ts +2 -5
- package/lib/scene/observeAutoMovieRendererFrame.js.map +1 -1
- package/lib/scene/observeAutoMovieRendererFrame.mjs.map +1 -1
- package/lib/scene/planAutoMovieShadowTextureTarget.d.ts +1 -1
- package/lib/scene/planAutoMovieShadowTextureTarget.mjs.map +1 -1
- package/lib/scene/readAutoMovieFilmDisplayTextureResidency.d.ts +2 -6
- package/lib/scene/readAutoMovieFilmDisplayTextureResidency.js.map +1 -1
- package/lib/scene/readAutoMovieFilmDisplayTextureResidency.mjs.map +1 -1
- package/lib/scene/readAutoMovieMaterialTextureSources.d.ts +3 -5
- package/lib/scene/readAutoMovieMaterialTextureSources.js.map +1 -1
- package/lib/scene/readAutoMovieMaterialTextureSources.mjs.map +1 -1
- package/lib/scene/readAutoMovieRenderTextureTarget.d.ts +1 -1
- package/lib/scene/readAutoMovieRenderTextureTarget.mjs.map +1 -1
- package/lib/scene/readAutoMovieShadowTextureTargets.d.ts +1 -2
- package/lib/scene/readAutoMovieShadowTextureTargets.js.map +1 -1
- package/lib/scene/readAutoMovieShadowTextureTargets.mjs.map +1 -1
- package/lib/scene/readAutoMovieTextureSource.d.ts +1 -1
- package/lib/scene/readAutoMovieTextureSource.js.map +1 -1
- package/lib/scene/readAutoMovieTextureSource.mjs.map +1 -1
- package/lib/scene/readAutoMovieTransmissionTextureTarget.d.ts +1 -1
- package/lib/scene/readAutoMovieTransmissionTextureTarget.mjs.map +1 -1
- package/lib/scene/resolveAutoMovieFilmBeautyComposition.d.ts +2 -3
- package/lib/scene/resolveAutoMovieFilmBeautyComposition.js.map +1 -1
- package/lib/scene/resolveAutoMovieFilmBeautyComposition.mjs.map +1 -1
- package/lib/scene/semanticMask/IAutoMovieSemanticMaskBinding.d.ts +1 -19
- package/lib/scene/semanticMask/attachAutoMovieSemanticMask.d.ts +1 -1
- package/lib/scene/semanticMask/attachAutoMovieSemanticMask.mjs.map +1 -1
- package/lib/scene/semanticMask/autoMovieSemanticMaskOf.d.ts +1 -1
- package/lib/scene/semanticMask/autoMovieSemanticMaskOf.mjs.map +1 -1
- package/lib/sliceCaptionSidecar.d.ts +1 -1
- package/lib/sliceCaptionSidecar.mjs.map +1 -1
- package/package.json +7 -7
- package/src/IAutoMovieCaptionEntry.ts +1 -32
- package/src/IAutoMovieCaptionSidecar.ts +1 -29
- package/src/IAutoMovieCapturedFrame.ts +1 -24
- package/src/IAutoMovieGuidePassOutput.ts +1 -27
- package/src/IAutoMoviePoseKeypointActor.ts +1 -39
- package/src/IAutoMoviePoseKeypointFrame.ts +1 -28
- package/src/IAutoMoviePoseKeypointSidecar.ts +1 -25
- package/src/IAutoMovieRenderAdapters.ts +1 -39
- package/src/IAutoMovieRenderAndSeeRequest.ts +1 -38
- package/src/IAutoMovieRenderAndSeeResult.ts +1 -23
- package/src/IAutoMovieRenderChunk.ts +1 -62
- package/src/IAutoMovieRenderChunkPlan.ts +1 -40
- package/src/IAutoMovieRenderPassManifest.ts +1 -25
- package/src/IAutoMovieRenderReassembly.ts +1 -28
- package/src/IAutoMovieRenderResult.ts +1 -46
- package/src/IAutoMovieSequenceRenderAdapters.ts +1 -41
- package/src/IAutoMovieSequenceRenderAndSeeRequest.ts +1 -47
- package/src/IAutoMovieSequenceRenderAndSeeResult.ts +1 -23
- package/src/IAutoMovieSequenceRenderFrame.ts +1 -48
- package/src/IAutoMovieSequenceRenderPlan.ts +1 -88
- package/src/IAutoMovieSequenceRenderResult.ts +1 -52
- package/src/IAutoMovieSequenceRenderShotSpan.ts +1 -46
- package/src/IAutoMovieSequenceRenderTransitionSpan.ts +1 -46
- package/src/audio/mixAutoMovieAudioPcm.ts +10 -44
- package/src/auditAutoMovieRenderObservation.ts +5 -14
- package/src/cache/createAutoMovieHttpArtifactStore.ts +1 -1
- package/src/caption/IAutoMovieBeatCaption.ts +1 -23
- package/src/caption/beatCaptions.ts +1 -1
- package/src/caption/inspectAutoMovieCaptionReadabilityWithRuntime.ts +1 -12
- package/src/caption/parseAutoMovieCaptionLanguage.ts +1 -13
- package/src/capture/AutoMovieCaptureFolder.ts +10 -16
- package/src/capture/IAutoMovieCaptureBudget.ts +1 -26
- package/src/capture/IAutoMovieCaptureCell.ts +1 -42
- package/src/capture/IAutoMovieCaptureComparison.ts +1 -96
- package/src/capture/IAutoMovieCaptureDrawing.ts +1 -64
- package/src/capture/IAutoMovieCaptureLayout.ts +1 -51
- package/src/capture/IAutoMovieCapturePlan.ts +1 -36
- package/src/capture/IAutoMovieCapturePlanRequest.ts +1 -117
- package/src/capture/IAutoMovieCaptureRecord.ts +1 -174
- package/src/capture/IAutoMovieCaptureRequestSource.ts +1 -37
- package/src/capture/IAutoMovieCaptureResolution.ts +1 -23
- package/src/capture/IAutoMovieCaptureSelection.ts +1 -28
- package/src/capture/IAutoMovieCaptureStorage.ts +1 -76
- package/src/capture/IAutoMovieCaptureSubject.ts +1 -94
- package/src/capture/IAutoMovieCaptureTime.ts +1 -17
- package/src/capture/IAutoMovieCaptureWindow.ts +1 -29
- package/src/capture/compareAutoMovieCaptureRounds.ts +33 -48
- package/src/capture/formatAutoMovieCapturePlanRequest.ts +7 -3
- package/src/capture/markAutoMovieCaptureCell.ts +1 -1
- package/src/capture/parseAutoMovieCapturePlanRequest.ts +13 -10
- package/src/capture/planAutoMovieCapture.ts +20 -21
- package/src/capture/planAutoMovieCaptureFrames.ts +9 -28
- package/src/capture/planAutoMovieCaptureLayout.ts +8 -21
- package/src/capture/planAutoMovieVideoFrames.ts +5 -10
- package/src/capture/planAutoMovieVideoSceneCuts.ts +5 -10
- package/src/capture/readAutoMovieVideoSceneCuts.ts +5 -7
- package/src/capture/resolveAutoMovieCapturePatterns.ts +11 -14
- package/src/capture/runAutoMovieCapture.ts +19 -33
- package/src/capture/runAutoMovieVideoCapture.ts +13 -32
- package/src/capture/scaleAutoMovieCaptureLabels.ts +5 -2
- package/src/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.ts +5 -6
- package/src/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.ts +17 -27
- package/src/delivery/AutoMovieProductionPngRole.ts +1 -18
- package/src/delivery/IAutoMovieProductionPngProfile.ts +1 -52
- package/src/delivery/IAutoMovieProductionVideoProfile.ts +1 -48
- package/src/delivery/assertAutoMovieCaptureClock.ts +7 -7
- package/src/delivery/assertProductionPngPicture.ts +8 -13
- package/src/delivery/assertProductionVideoProfile.ts +5 -12
- package/src/delivery/auditAutoMovieDecodedFrames.ts +17 -56
- package/src/delivery/auditAutoMovieEncodedPresentation.ts +3 -8
- package/src/delivery/planAutoMovieVideoEncoding.ts +8 -23
- package/src/delivery/productionOpusDescription.ts +9 -15
- package/src/delivery/resolveProductionPngProfile.ts +9 -17
- package/src/delivery/resolveProductionVideoProfile.ts +9 -16
- package/src/draw/AutoMovieDrawSession.ts +19 -18
- package/src/draw/IAutoMovieDrawCall.ts +1 -34
- package/src/draw/IAutoMovieDrawDescription.ts +1 -17
- package/src/draw/IAutoMovieDrawFunction.ts +5 -3
- package/src/draw/IAutoMovieDrawResult.ts +1 -45
- package/src/draw/IAutoMovieDrawScene.ts +10 -2
- package/src/draw/decodeAutoMovieDrawPixels.ts +5 -3
- package/src/draw/describeAutoMovieDrawScene.ts +18 -11
- package/src/draw/index.ts +1 -0
- package/src/draw/installAutoMovieDraw.ts +43 -45
- package/src/draw/planAutoMovieDrawCall.ts +8 -5
- package/src/draw/renderAutoMovieDrawnVideo.ts +6 -9
- package/src/draw/replaceAutoMovieDrawInspection.ts +36 -0
- package/src/draw/stampAutoMovieDrawLegend.ts +7 -5
- package/src/film/AutoMovieOrderedScalar.ts +1 -15
- package/src/film/IAutoMovieProductionAudioAssetIdentity.ts +1 -40
- package/src/film/IAutoMovieProductionAudioAssetIdentityBase.ts +1 -34
- package/src/film/IAutoMovieProductionEncoderIdentity.ts +1 -42
- package/src/film/IAutoMovieProductionRenderChunk.ts +1 -47
- package/src/film/IAutoMovieProductionRenderJobPlan.ts +1 -73
- package/src/film/IAutoMovieProductionRenderRuntimeIdentity.ts +1 -37
- package/src/film/IAutoMovieProductionRenderTier.ts +1 -27
- package/src/film/equalOrderedScalars.ts +10 -10
- package/src/film/normalizeAudioAssets.ts +4 -2
- package/src/film/normalizeRenderTier.ts +1 -1
- package/src/film/planProductionRenderJob.ts +11 -48
- package/src/film/resolveProductionRenderTierFrameFormat.ts +1 -1
- package/src/film/validWaveAudioIdentity.ts +3 -3
- package/src/picture/AutoMovieRasterSheet.ts +7 -3
- package/src/picture/IAutoMovieRasterComparison.ts +1 -33
- package/src/picture/IAutoMovieRasterImage.ts +1 -19
- package/src/picture/compareAutoMovieRasters.ts +4 -2
- package/src/picture/decodeAutoMovieRasterPng.ts +2 -1
- package/src/picture/encodeAutoMovieRasterPng.ts +2 -1
- package/src/picture/hashAutoMovieRasterImage.ts +1 -1
- package/src/picture/stampAutoMovieRasterLabel.ts +5 -2
- package/src/planCaptionSidecar.ts +11 -30
- package/src/planChunkedSequenceRender.ts +15 -26
- package/src/planGuidePassOutputs.ts +10 -16
- package/src/planPoseKeypointSidecar.ts +11 -40
- package/src/planSequenceRender.ts +11 -32
- package/src/planViewerFrameTimes.ts +5 -22
- package/src/renderAndSee.ts +5 -2
- package/src/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.ts +1 -53
- package/src/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.ts +1 -61
- package/src/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.ts +1 -29
- package/src/renderBudgetPreflight/assessAutoMovieRenderBudget.ts +9 -37
- package/src/renderBudgetPreflight/autoMovieRenderBudgetEvidence.ts +11 -15
- package/src/renderBudgetPreflight/autoMovieRenderBudgetRefusal.ts +2 -3
- package/src/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.ts +4 -3
- package/src/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.ts +7 -19
- package/src/renderCaptionSidecar.ts +1 -1
- package/src/renderPoseKeypointSidecar.ts +1 -1
- package/src/renderSequenceAndSee.ts +5 -2
- package/src/renderSequenceVideo.ts +6 -4
- package/src/renderVideo.ts +5 -3
- package/src/scene/AutoMovieFilmBeautyComposition.ts +1 -24
- package/src/scene/AutoMoviePlayer.ts +12 -12
- package/src/scene/IApplyAutoMovieSectionPlanesProps.ts +1 -1
- package/src/scene/IAutoMovieFilmBeautyLayer.ts +1 -12
- package/src/scene/IAutoMovieFormationPoseTake.ts +1 -26
- package/src/scene/IAutoMovieFormationViewerObject.ts +4 -2
- package/src/scene/IAutoMovieRigLocalTransform.ts +1 -16
- package/src/scene/IAutoMovieSpringAxisSettlement.ts +2 -2
- package/src/scene/IBakeFormationCycleProps.ts +4 -2
- package/src/scene/applyAutoMovieRigLocals.ts +4 -2
- package/src/scene/applyAutoMovieSectionPlanes.ts +1 -1
- package/src/scene/applyFormationCycleCadence.ts +1 -1
- package/src/scene/applyPose.ts +2 -5
- package/src/scene/applyRenderMode.ts +5 -5
- package/src/scene/applySampledObjectMotion.ts +1 -1
- package/src/scene/applySemanticMaskMode.ts +1 -1
- package/src/scene/autoMovieAnalysisRampColor.ts +7 -5
- package/src/scene/bakeFormationCycle.ts +4 -3
- package/src/scene/buildAutoMovieConstruction.ts +2 -5
- package/src/scene/buildGeometry.ts +6 -9
- package/src/scene/buildInstancedEffect.ts +6 -6
- package/src/scene/buildInstancedFormation.ts +3 -3
- package/src/scene/buildSpaceObject.ts +7 -3
- package/src/scene/createAutoMoviePhysicalPoseAdapter.ts +4 -4
- package/src/scene/describeFormationTextureSources.ts +2 -2
- package/src/scene/formation/index.ts +1 -1
- package/src/scene/formationCycleCadence.ts +1 -1
- package/src/scene/human-polygon/AutoMovieHumanPolygon.ts +7 -67
- package/src/scene/human-polygon/applyHumanPolygonPose.ts +12 -7
- package/src/scene/human-polygon/buildHumanPolygon.ts +23 -12
- package/src/scene/human-polygon/buildHumanPolygonModule.ts +6 -3
- package/src/scene/human-polygon/buildHumanPolygonParts.ts +10 -6
- package/src/scene/human-polygon/createAutoMovieHumanPolygonFigure.ts +10 -3
- package/src/scene/index.ts +1 -1
- package/src/scene/inspection/AUTO_MOVIE_INSPECTION_KINDS.ts +3 -1
- package/src/scene/inspection/AUTO_MOVIE_INSPECTION_PALETTE.ts +1 -1
- package/src/scene/inspection/IApplyAutoMovieInspectionProps.ts +5 -3
- package/src/scene/inspection/IAutoMovieInspectionCamera.ts +1 -38
- package/src/scene/inspection/IAutoMovieInspectionHandle.ts +8 -6
- package/src/scene/inspection/IAutoMovieInspectionKind.ts +1 -18
- package/src/scene/inspection/IAutoMovieInspectionLabel.ts +1 -21
- package/src/scene/inspection/IAutoMovieInspectionLegendEntry.ts +1 -24
- package/src/scene/inspection/IAutoMovieInspectionMarkSet.ts +1 -1
- package/src/scene/inspection/IAutoMovieInspectionMeasured.ts +1 -1
- package/src/scene/inspection/IAutoMovieInspectionRequest.ts +1 -115
- package/src/scene/inspection/IAutoMovieInspectionTrail.ts +1 -21
- package/src/scene/inspection/IAutoMovieInspectionView.ts +1 -92
- package/src/scene/inspection/applyAutoMovieInspection.ts +12 -8
- package/src/scene/inspection/applyAutoMovieInspectionSection.ts +1 -1
- package/src/scene/inspection/applyAutoMovieInspectionShade.ts +2 -2
- package/src/scene/inspection/buildAutoMovieInspectionMarks.ts +1 -1
- package/src/scene/inspection/chooseAutoMovieInspectionMarks.ts +1 -1
- package/src/scene/inspection/colorAutoMovieInspectionObjects.ts +6 -3
- package/src/scene/inspection/expandAutoMovieInspectionSweep.ts +8 -15
- package/src/scene/inspection/focusAutoMovieInspection.ts +6 -4
- package/src/scene/inspection/formatAutoMovieInspectionCameraView.ts +2 -1
- package/src/scene/inspection/formatAutoMovieInspectionRequest.ts +6 -3
- package/src/scene/inspection/formatAutoMovieInspectionView.ts +4 -3
- package/src/scene/inspection/legendAutoMovieInspectionMarks.ts +6 -3
- package/src/scene/inspection/listAutoMovieInspectionKinds.ts +7 -10
- package/src/scene/inspection/markAutoMovieInspectionTrails.ts +4 -2
- package/src/scene/inspection/measureAutoMovieInspectionDefects.ts +5 -5
- package/src/scene/inspection/measureAutoMovieInspectionEdges.ts +1 -1
- package/src/scene/inspection/measureAutoMovieInspectionMeshes.ts +1 -1
- package/src/scene/inspection/measureAutoMovieInspectionPaths.ts +6 -3
- package/src/scene/inspection/mergeAutoMovieInspectionLegends.ts +1 -1
- package/src/scene/inspection/parseAutoMovieInspectionRequest.ts +10 -7
- package/src/scene/inspection/parseAutoMovieInspectionView.ts +6 -4
- package/src/scene/inspection/placeAutoMovieInspectionLabels.ts +6 -7
- package/src/scene/inspection/planAutoMovieInspectionTrailTimes.ts +4 -11
- package/src/scene/inspection/resolveAutoMovieInspectionColors.ts +7 -11
- package/src/scene/inspection/resolveAutoMovieInspectionView.ts +5 -3
- package/src/scene/inspection/sampleAutoMovieInspectionTrails.ts +1 -1
- package/src/scene/matchesAutoMovieShadowTextureProfile.ts +1 -1
- package/src/scene/observeAutoMovieRendererFrame.ts +3 -3
- package/src/scene/planAutoMovieShadowTextureTarget.ts +1 -1
- package/src/scene/readAutoMovieFilmDisplayTextureResidency.ts +3 -12
- package/src/scene/readAutoMovieMaterialTextureSources.ts +5 -3
- package/src/scene/readAutoMovieRenderTextureTarget.ts +1 -1
- package/src/scene/readAutoMovieShadowTextureTargets.ts +5 -5
- package/src/scene/readAutoMovieTextureSource.ts +4 -2
- package/src/scene/readAutoMovieTransmissionTextureTarget.ts +1 -1
- package/src/scene/resolveAutoMovieFilmBeautyComposition.ts +6 -4
- package/src/scene/semanticMask/IAutoMovieSemanticMaskBinding.ts +1 -24
- package/src/scene/semanticMask/attachAutoMovieSemanticMask.ts +1 -1
- package/src/scene/semanticMask/autoMovieSemanticMaskOf.ts +1 -1
- package/src/sliceCaptionSidecar.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applySemanticMaskMode.mjs","names":[],"sources":["../../src/scene/applySemanticMaskMode.ts"],"sourcesContent":["import * as THREE from \"three\";\n\nimport type { IAutoMovieRenderModeHandle } from \"./IAutoMovieRenderModeHandle.js\";\nimport { restoreAutoMovieRenderModeOnce } from \"./restoreAutoMovieRenderModeOnce.js\";\nimport {\n type
|
|
1
|
+
{"version":3,"file":"applySemanticMaskMode.mjs","names":[],"sources":["../../src/scene/applySemanticMaskMode.ts"],"sourcesContent":["import type { IAutoMovieSemanticMaskBinding } from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport type { IAutoMovieRenderModeHandle } from \"./IAutoMovieRenderModeHandle.js\";\nimport { restoreAutoMovieRenderModeOnce } from \"./restoreAutoMovieRenderModeOnce.js\";\nimport {\n type IAutoMovieSemanticMaskHandle,\n applyAutoMovieSemanticMask,\n} from \"./semanticMask/index.js\";\n\n/**\n * Mask pass over the stable semantic palette the scene was handed.\n *\n * The outer pass boundary suspends fog, image lighting, background and non-mesh\n * renderables. {@link applyAutoMovieSemanticMask} snapshots those already\n * suspended values for its own install. Inner restoration returns the outer\n * boundary's black background and suspended state, then outer restoration\n * returns the original background, atmosphere and helper visibility. Coverage counts scene\n * membership and palette resolution, not visible or rasterized pixels.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Applies the attached portable semantic design/palette through its canonical scene mapper and forwards painted/unaddressed/unresolved scene-membership coverage; valid admitted design/id ownership is the mapper's premise. Counts do not prove visibility/frustum/pixel coverage, and no child-index palette substitutes for a semantic identity.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Adapts the semantic mask owner's result into the common render-mode handle, leaving scene admission/material replacement and coverage computation with applyAutoMovieSemanticMask.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses the supplied real semantic palette and actual coverage without fixture ids or generated success counts; nested scene suspensions restore exact prior state rather than resetting arbitrary defaults.\n * @evidence contracts/development/common.md#meaningful-documentation Gives stable semantic-palette purpose, nested suspension ordering and returned coverage/restore ownership instead of claiming rendered success from presence of a binding.\n * @evidence contracts/development/implementation.md#efficient-algorithms Adds constant-size handle/coverage wrapping to the mapper's entity/scene/material traversal, preserving its dominant costs and temporary resource population rather than moving them out of the accounting.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses canonical semantic mapping and one mapper restore completion per install; nested snapshot scopes keep independent prior states and cannot share a cached restoration by scene identity alone.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows scene/binding and forwards the mapper-owned reversible resources through a memoized closer; no independent renderer, texture or task is acquired by this adapter, and actual native retirement remains the mapper/host boundary.\n */\nexport const applySemanticMaskMode: (\n scene: THREE.Scene,\n binding: IAutoMovieSemanticMaskBinding,\n) => IAutoMovieRenderModeHandle = (\n scene: THREE.Scene,\n binding: IAutoMovieSemanticMaskBinding,\n): IAutoMovieRenderModeHandle => {\n const handle: IAutoMovieSemanticMaskHandle = applyAutoMovieSemanticMask({\n scene,\n design: binding.design,\n mask: binding.mask,\n });\n return {\n mode: \"mask\",\n semantic: {\n painted: handle.painted,\n unaddressed: handle.unaddressed,\n unresolved: handle.unresolved,\n },\n restore: restoreAutoMovieRenderModeOnce(handle.restore),\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAa,yBAIX,OACA,YAC+B;CAC/B,MAAM,SAAuC,2BAA2B;EACtE;EACA,QAAQ,QAAQ;EAChB,MAAM,QAAQ;CAChB,CAAC;CACD,OAAO;EACL,MAAM;EACN,UAAU;GACR,SAAS,OAAO;GAChB,aAAa,OAAO;GACpB,YAAY,OAAO;EACrB;EACA,SAAS,+BAA+B,OAAO,OAAO;CACxD;AACF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IAutoMovieColor } from "@automovie/interface";
|
|
1
2
|
/**
|
|
2
3
|
* Map a normalized `[0, 1]` position on the ramp to a colour.
|
|
3
4
|
*
|
|
@@ -15,8 +16,4 @@
|
|
|
15
16
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses a single ramp definition across overlay builds; creates no texture or cache, and inexpensive scalar arithmetic does not warrant cross-request result retention.
|
|
16
17
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Retains no input or renderer resource; one returned RGB value belongs to the caller and no task or GPU handle is acquired.
|
|
17
18
|
*/
|
|
18
|
-
export declare const autoMovieAnalysisRampColor: (position: number) =>
|
|
19
|
-
r: number;
|
|
20
|
-
g: number;
|
|
21
|
-
b: number;
|
|
22
|
-
};
|
|
19
|
+
export declare const autoMovieAnalysisRampColor: (position: number) => Pick<IAutoMovieColor, "r" | "g" | "b">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoMovieAnalysisRampColor.js","sourceRoot":"","sources":["../../src/scene/autoMovieAnalysisRampColor.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"autoMovieAnalysisRampColor.js","sourceRoot":"","sources":["../../src/scene/autoMovieAnalysisRampColor.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,0BAA0B,GAEO,CAC5C,QAAgB,EACwB,EAAE;IAC1C,MAAM,CAAC,GAAW,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;IACrD,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;QACb,MAAM,KAAK,GAAW,CAAC,GAAG,CAAC,CAAC;QAC5B,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC;IAC1C,CAAC;IACD,MAAM,KAAK,GAAW,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;IACpC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AAC1C,CAAC,CAAC;AAZW,QAAA,0BAA0B,GAA1B,0BAA0B,CAYrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoMovieAnalysisRampColor.mjs","names":[],"sources":["../../src/scene/autoMovieAnalysisRampColor.ts"],"sourcesContent":["/**\n * Map a normalized `[0, 1]` position on the ramp to a colour.\n *\n * A three-stop blue-green-red ramp, interpolated linearly in each channel. It\n * returns RGB channel values without allocating a texture. The caller owns the\n * renderer's subsequent color-space conversion. Finite values outside the unit\n * interval clamp to the nearest endpoint; NaN propagates rather than becoming a\n * valid color.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Uses two linear segments through blue (0,0,1), green (0,1,0) and red (1,0,0), clamping normalized positions to [0,1]; finite normalized inputs are the overlay premise, with no claim about later renderer color management or NaN repair.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One scalar-to-RGB value function owns the overlay ramp definition without texture sampling, palette state or renderer dependence.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Endpoints and the green midpoint define the supported ramp, not expected-fixture exceptions; no foreign method replacement, hidden gamma adjustment or special metric key occurs.\n * @evidence contracts/development/common.md#meaningful-documentation States the three stops, piecewise channel interpolation, out-of-range clamping, caller color-space responsibility and NaN limitation.\n * @evidence contracts/development/implementation.md#efficient-algorithms Performs one clamp, branch and fixed-count arithmetic operations and allocates one three-channel value, constant time/space per point.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses a single ramp definition across overlay builds; creates no texture or cache, and inexpensive scalar arithmetic does not warrant cross-request result retention.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Retains no input or renderer resource; one returned RGB value belongs to the caller and no task or GPU handle is acquired.\n */\nexport const autoMovieAnalysisRampColor: (position: number) =>
|
|
1
|
+
{"version":3,"file":"autoMovieAnalysisRampColor.mjs","names":[],"sources":["../../src/scene/autoMovieAnalysisRampColor.ts"],"sourcesContent":["import type { IAutoMovieColor } from \"@automovie/interface\";\n\n/**\n * Map a normalized `[0, 1]` position on the ramp to a colour.\n *\n * A three-stop blue-green-red ramp, interpolated linearly in each channel. It\n * returns RGB channel values without allocating a texture. The caller owns the\n * renderer's subsequent color-space conversion. Finite values outside the unit\n * interval clamp to the nearest endpoint; NaN propagates rather than becoming a\n * valid color.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Uses two linear segments through blue (0,0,1), green (0,1,0) and red (1,0,0), clamping normalized positions to [0,1]; finite normalized inputs are the overlay premise, with no claim about later renderer color management or NaN repair.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One scalar-to-RGB value function owns the overlay ramp definition without texture sampling, palette state or renderer dependence.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Endpoints and the green midpoint define the supported ramp, not expected-fixture exceptions; no foreign method replacement, hidden gamma adjustment or special metric key occurs.\n * @evidence contracts/development/common.md#meaningful-documentation States the three stops, piecewise channel interpolation, out-of-range clamping, caller color-space responsibility and NaN limitation.\n * @evidence contracts/development/implementation.md#efficient-algorithms Performs one clamp, branch and fixed-count arithmetic operations and allocates one three-channel value, constant time/space per point.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses a single ramp definition across overlay builds; creates no texture or cache, and inexpensive scalar arithmetic does not warrant cross-request result retention.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Retains no input or renderer resource; one returned RGB value belongs to the caller and no task or GPU handle is acquired.\n */\nexport const autoMovieAnalysisRampColor: (\n position: number,\n) => Pick<IAutoMovieColor, \"r\" | \"g\" | \"b\"> = (\n position: number,\n): Pick<IAutoMovieColor, \"r\" | \"g\" | \"b\"> => {\n const t: number = Math.min(1, Math.max(0, position));\n if (t <= 0.5) {\n const local: number = t * 2;\n return { r: 0, g: local, b: 1 - local };\n }\n const local: number = (t - 0.5) * 2;\n return { r: local, g: 1 - local, b: 0 };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,MAAa,8BAGX,aAC2C;CAC3C,MAAM,IAAY,KAAK,IAAI,GAAG,KAAK,IAAI,GAAG,QAAQ,CAAC;CACnD,IAAI,KAAK,IAAK;EACZ,MAAM,QAAgB,IAAI;EAC1B,OAAO;GAAE,GAAG;GAAG,GAAG;GAAO,GAAG,IAAI;EAAM;CACxC;CACA,MAAM,SAAiB,IAAI,MAAO;CAClC,OAAO;EAAE,GAAG;EAAO,GAAG,IAAI;EAAO,GAAG;CAAE;AACxC"}
|
|
@@ -11,7 +11,8 @@ import type { IBakeFormationCycleProps } from "./IBakeFormationCycleProps.js";
|
|
|
11
11
|
*
|
|
12
12
|
* The poses are the given pose takes (`IBakeFormationCycleProps.takes`, a
|
|
13
13
|
* performed member's cycle) or, without them, come from {@link gaitMotion}, whose keyframe `i` of `samples` sits
|
|
14
|
-
* exactly at cycle position `i / samples
|
|
14
|
+
* exactly at cycle position `i / samples`. The loop-closing duplicate is
|
|
15
|
+
* omitted because texture playback wraps the last column to the first. Each sample passes through the same
|
|
15
16
|
* {@link applyPose} used by named performers. This bake passes default
|
|
16
17
|
* joint axes and no clinical rest frames; a caller using different explicit
|
|
17
18
|
* axes/rest frames may therefore obtain a different attitude at the same phase.
|
|
@@ -51,7 +51,8 @@ const formationCycleStride_js_1 = require("./formationCycleStride.js");
|
|
|
51
51
|
*
|
|
52
52
|
* The poses are the given pose takes (`IBakeFormationCycleProps.takes`, a
|
|
53
53
|
* performed member's cycle) or, without them, come from {@link gaitMotion}, whose keyframe `i` of `samples` sits
|
|
54
|
-
* exactly at cycle position `i / samples
|
|
54
|
+
* exactly at cycle position `i / samples`. The loop-closing duplicate is
|
|
55
|
+
* omitted because texture playback wraps the last column to the first. Each sample passes through the same
|
|
55
56
|
* {@link applyPose} used by named performers. This bake passes default
|
|
56
57
|
* joint axes and no clinical rest frames; a caller using different explicit
|
|
57
58
|
* axes/rest frames may therefore obtain a different attitude at the same phase.
|
|
@@ -81,7 +82,7 @@ const bakeFormationCycle = (input) => {
|
|
|
81
82
|
(0, engine_1.autoMovieModelGaits)(input.model).map((gait) => ({
|
|
82
83
|
gait: gait.name,
|
|
83
84
|
periodSeconds: gait.period,
|
|
84
|
-
poses: (0, engine_1.gaitMotion)(`${input.model.id}:${gait.name}`, skeleton.id, gait, samples).keyframes.map((k) => k.pose),
|
|
85
|
+
poses: (0, engine_1.gaitMotion)(`${input.model.id}:${gait.name}`, skeleton.id, gait, samples).keyframes.slice(0, samples).map((k) => k.pose),
|
|
85
86
|
}));
|
|
86
87
|
if (sources.length === 0)
|
|
87
88
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bakeFormationCycle.js","sourceRoot":"","sources":["../../src/scene/bakeFormationCycle.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAoE;
|
|
1
|
+
{"version":3,"file":"bakeFormationCycle.js","sourceRoot":"","sources":["../../src/scene/bakeFormationCycle.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAoE;AAQpE,MAAY,KAAK,kCAAc;AAE/B,iGAA2F;AAI3F,iDAA2C;AAC3C,+FAAyF;AACzF,uEAAiE;AAEjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;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,GAAG,KAAK,CAAC;QAChC,OAAO,CAAC,UAAU,GAAG,KAAK,CAAC,YAAY,CAAC;QACxC,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;QAC3B,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,YAAY,EAAE,IAAI,CAAC,YAAY,IAAI,IAAA,8CAAoB,EAAC,MAAM,CAAC;YAC/D,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,QAAQ;YACR,OAAO;SACR,CAAC;IACJ,CAAC,CACF,CACJ,CAAC;IACJ,MAAM,QAAQ,GAAiC,KAAK,CAAC,CAAC,CAAE,CAAC;IACzD,OAAO;QACL,OAAO;QACP,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CACpB,CACE,IAQC,EACO,EAAE,CAAC,IAAI,CAAC,IAAI,CACvB;QACD,KAAK,EAAE,IAAI,GAAG,CACZ,KAAK,CAAC,GAAG,CACP,CACE,IAAkC,EACe,EAAE,CACnD,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAU,CAC7B,CACF;QACD,QAAQ;QACR,MAAM,EAAE,QAAQ;QAChB,QAAQ,EAAE;YACR,qBAAqB,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,OAAO,EAAE;YAClD,qBAAqB,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;YACzC,kBAAkB,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YACrD,qBAAqB,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;YACnC,kBAAkB,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;SACjC;KACF,CAAC;AACJ,CAAC,CAAC;AAtMW,QAAA,kBAAkB,GAAlB,kBAAkB,CAsM7B"}
|
|
@@ -16,7 +16,8 @@ import * as THREE from "three";
|
|
|
16
16
|
*
|
|
17
17
|
* The poses are the given pose takes (`IBakeFormationCycleProps.takes`, a
|
|
18
18
|
* performed member's cycle) or, without them, come from {@link gaitMotion}, whose keyframe `i` of `samples` sits
|
|
19
|
-
* exactly at cycle position `i / samples
|
|
19
|
+
* exactly at cycle position `i / samples`. The loop-closing duplicate is
|
|
20
|
+
* omitted because texture playback wraps the last column to the first. Each sample passes through the same
|
|
20
21
|
* {@link applyPose} used by named performers. This bake passes default
|
|
21
22
|
* joint axes and no clinical rest frames; a caller using different explicit
|
|
22
23
|
* axes/rest frames may therefore obtain a different attitude at the same phase.
|
|
@@ -41,7 +42,7 @@ const bakeFormationCycle = (input) => {
|
|
|
41
42
|
const sources = input.takes ?? autoMovieModelGaits(input.model).map((gait) => ({
|
|
42
43
|
gait: gait.name,
|
|
43
44
|
periodSeconds: gait.period,
|
|
44
|
-
poses: gaitMotion(`${input.model.id}:${gait.name}`, skeleton.id, gait, samples).keyframes.map((k) => k.pose)
|
|
45
|
+
poses: gaitMotion(`${input.model.id}:${gait.name}`, skeleton.id, gait, samples).keyframes.slice(0, samples).map((k) => k.pose)
|
|
45
46
|
}));
|
|
46
47
|
if (sources.length === 0) return null;
|
|
47
48
|
if (sources.some((t) => t.poses.length !== samples || samples < 1)) throw new Error("bakeFormationCycle: every pose take holds the same positive count of poses");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bakeFormationCycle.mjs","names":[],"sources":["../../src/scene/bakeFormationCycle.ts"],"sourcesContent":["import { autoMovieModelGaits, gaitMotion } from \"@automovie/engine\";\nimport type {\n IAutoMovieGait,\n IAutoMovieKeyframe,\n IAutoMoviePose,\n IAutoMovieSkeleton,\n} from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport { AUTOMOVIE_FORMATION_CYCLE_SAMPLES } from \"./AUTOMOVIE_FORMATION_CYCLE_SAMPLES.js\";\nimport type { IAutoMovieFormationCycle } from \"./IAutoMovieFormationCycle.js\";\nimport type { IAutoMovieFormationCycleTake } from \"./IAutoMovieFormationCycleTake.js\";\nimport type { IAutoMovieFormationPoseTake } from \"./IAutoMovieFormationPoseTake.js\";\nimport type { IBakeFormationCycleProps } from \"./IBakeFormationCycleProps.js\";\nimport { applyPose } from \"./applyPose.js\";\nimport { constructAutoMovieOwnedResources } from \"./constructAutoMovieOwnedResources.js\";\nimport { formationCycleStride } from \"./formationCycleStride.js\";\n\n/**\n * Bake one runtime model's whole repertoire into rigid part-matrix tables.\n *\n * `built` must already be at rest with its world matrices current, because the\n * merged instance geometry was baked from exactly those rest matrices: what is\n * stored per sample is `posed * rest⁻¹`, the transform that carries a\n * rest-space vertex to where the cycle puts it. The object is left at the last\n * sampled pose; callers extract geometry before baking, never after.\n *\n * The poses are the given pose takes (`IBakeFormationCycleProps.takes`, a\n * performed member's cycle) or, without them, come from {@link gaitMotion}, whose keyframe `i` of `samples` sits\n * exactly at cycle position `i / samples`, and is applied through the same\n * {@link applyPose} used by named performers. This bake passes default\n * joint axes and no clinical rest frames; a caller using different explicit\n * axes/rest frames may therefore obtain a different attitude at the same phase.\n *\n * The table is a sampled Float32 affine approximation, not an exact continuous\n * rigid rotation or a proof of no-slip foot contact. Its stride uses the\n * existing lowest-part trajectory heuristic. Returned take textures transfer\n * to the representation owner; a later take's refusal retires earlier textures.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Samples canonical gaitMotion/applyPose and stores posedWorld*inverseRestWorld affine rows per rigid part; admitted invertible rest matrices, ordered parts and positive integral sample count are premises. Float32 matrix interpolation and lowest-part stride estimation remain approximate, and the caller's object stays at the last attempted pose even on refusal.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Owns one figure repertoire bake after rigid rest geometry extraction; each take carries timing/stride/table/texture together and the returned uniform cells bind the same fallback/active take consumed by cadence/shader helpers.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses actual gait declarations/rig parts and native nearest texture sampling, avoiding extension-dependent float linear filtering; sole box-bottom trajectory and fixed sample count are explicit bake heuristics, not asset-name exceptions or patched solvers.\n * @evidence contracts/development/common.md#meaningful-documentation States rest-before-bake ordering, mutable final-pose effect, affine table meaning, sampled precision/contact limitations and take texture transfer/failure rollback.\n * @evidence contracts/development/implementation.md#efficient-algorithms For G gaits, S samples, P parts and B bones, baking costs gait synthesis/FK plus S world-graph updates and P matrix/trajectory writes per gait; matrix bytes are 48*G*S*P, with temporary Vector3 tracks proportional to S*P per take and no anonymous-member dimension.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Computes inverse rest matrices/box-bottom anchors once and reuses one working Matrix4 across samples; all formation members borrow the baked tables later, while mutable rig/model inputs have no immutable revision key for cross-build memoization.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Immediately registers each DataTexture during repertoire construction and independently retires all prior takes on later refusal; success transfers finite G table textures/arrays to the representation owner. Borrowed rig/part resources are not disposed or pose-restored by the bake, and returned arrays remain until their representation is released.\n */\nexport const bakeFormationCycle: (\n input: IBakeFormationCycleProps,\n) => IAutoMovieFormationCycle | null = (\n input: IBakeFormationCycleProps,\n): IAutoMovieFormationCycle | null => {\n const skeleton: IAutoMovieSkeleton | null = input.model.skeleton;\n if (skeleton === null) return null;\n\n // The cycles to bake: the given pose tables, or each gait of the model synthesised at even phases.\n const samples: number =\n input.takes?.[0]?.poses.length ??\n input.samples ??\n AUTOMOVIE_FORMATION_CYCLE_SAMPLES;\n const sources: readonly IAutoMovieFormationPoseTake[] =\n input.takes ??\n autoMovieModelGaits(input.model).map(\n (gait: IAutoMovieGait): IAutoMovieFormationPoseTake => ({\n gait: gait.name,\n periodSeconds: gait.period,\n poses: gaitMotion(\n `${input.model.id}:${gait.name}`,\n skeleton.id,\n gait,\n samples,\n ).keyframes.map((k: IAutoMovieKeyframe): IAutoMoviePose => k.pose),\n }),\n );\n if (sources.length === 0) return null;\n if (\n sources.some(\n (t: IAutoMovieFormationPoseTake): boolean =>\n t.poses.length !== samples || samples < 1,\n )\n )\n throw new Error(\n \"bakeFormationCycle: every pose take holds the same positive count of poses\",\n );\n const rest: THREE.Matrix4[] = input.parts.map(\n (\n part: THREE.Mesh<\n THREE.BufferGeometry<\n THREE.NormalBufferAttributes,\n THREE.BufferGeometryEventMap\n >,\n | THREE.Material<THREE.MaterialEventMap>\n | THREE.Material<THREE.MaterialEventMap>[],\n THREE.Object3DEventMap\n >,\n ): THREE.Matrix4 => part.matrixWorld.clone().invert(),\n );\n // The point of a part that can meet the ground: the bottom of its own box,\n // in its own space, so the bake follows the surface a foot stands on rather\n // than the pivot it swings about.\n const soles: THREE.Vector3[] = input.parts.map(\n (\n part: THREE.Mesh<\n THREE.BufferGeometry<\n THREE.NormalBufferAttributes,\n THREE.BufferGeometryEventMap\n >,\n | THREE.Material<THREE.MaterialEventMap>\n | THREE.Material<THREE.MaterialEventMap>[],\n THREE.Object3DEventMap\n >,\n ): THREE.Vector3 => {\n part.geometry.computeBoundingBox();\n const box: THREE.Box3 = part.geometry.boundingBox!;\n return new THREE.Vector3(\n (box.min.x + box.max.x) / 2,\n box.min.y,\n (box.min.z + box.max.z) / 2,\n );\n },\n );\n const takes: IAutoMovieFormationCycleTake[] =\n constructAutoMovieOwnedResources(\n (\n own: <Resource extends { dispose(): void }>(\n resource: Resource,\n ) => Resource,\n ): {\n gait: string;\n strideMeters: number;\n periodSeconds: number;\n matrices: Float32Array<ArrayBuffer>;\n texture: THREE.DataTexture;\n }[] =>\n sources.map(\n (\n take: IAutoMovieFormationPoseTake,\n ): {\n gait: string;\n strideMeters: number;\n periodSeconds: number;\n matrices: Float32Array<ArrayBuffer>;\n texture: THREE.DataTexture;\n } => {\n const matrices: Float32Array<ArrayBuffer> = new Float32Array(\n input.parts.length * 3 * samples * 4,\n );\n const tracks: THREE.Vector3[][] = input.parts.map(\n (): THREE.Vector3[] => [] as THREE.Vector3[],\n );\n const posed: THREE.Matrix4 = new THREE.Matrix4();\n for (let sample: number = 0; sample < samples; ++sample) {\n applyPose(input.built, take.poses[sample]!, skeleton);\n input.built.object.updateMatrixWorld(true);\n input.parts.forEach(\n (\n part: THREE.Mesh<\n THREE.BufferGeometry<\n THREE.NormalBufferAttributes,\n THREE.BufferGeometryEventMap\n >,\n | THREE.Material<THREE.MaterialEventMap>\n | THREE.Material<THREE.MaterialEventMap>[],\n THREE.Object3DEventMap\n >,\n index: number,\n ): void => {\n const elements: THREE.Matrix4Tuple = posed.multiplyMatrices(\n part.matrixWorld,\n rest[index]!,\n ).elements;\n for (let row: number = 0; row < 3; ++row)\n for (let column: number = 0; column < 4; ++column)\n matrices[\n ((index * 3 + row) * samples + sample) * 4 + column\n ] = elements[column * 4 + row]!;\n tracks[index]!.push(\n soles[index]!.clone().applyMatrix4(part.matrixWorld),\n );\n },\n );\n }\n const texture: THREE.DataTexture = own(\n new THREE.DataTexture(\n matrices,\n samples,\n input.parts.length * 3,\n THREE.RGBAFormat,\n THREE.FloatType,\n ),\n );\n // Nearest sampling on purpose: linear filtering of 32-bit float textures is\n // an optional extension, and the two-step blend the shader performs itself\n // is the same arithmetic with none of the capability risk.\n texture.minFilter = THREE.NearestFilter;\n texture.magFilter = THREE.NearestFilter;\n texture.wrapS = THREE.ClampToEdgeWrapping;\n texture.wrapT = THREE.ClampToEdgeWrapping;\n texture.generateMipmaps = false;\n texture.colorSpace = THREE.NoColorSpace;\n texture.needsUpdate = true;\n return {\n gait: take.gait,\n strideMeters: take.strideMeters ?? formationCycleStride(tracks),\n periodSeconds: take.periodSeconds,\n matrices,\n texture,\n };\n },\n ),\n );\n const fallback: IAutoMovieFormationCycleTake = takes[0]!;\n return {\n samples,\n names: input.parts.map(\n (\n part: THREE.Mesh<\n THREE.BufferGeometry<\n THREE.NormalBufferAttributes,\n THREE.BufferGeometryEventMap\n >,\n | THREE.Material<THREE.MaterialEventMap>\n | THREE.Material<THREE.MaterialEventMap>[],\n THREE.Object3DEventMap\n >,\n ): string => part.name,\n ),\n takes: new Map(\n takes.map(\n (\n take: IAutoMovieFormationCycleTake,\n ): readonly [string, IAutoMovieFormationCycleTake] =>\n [take.gait, take] as const,\n ),\n ),\n fallback,\n active: fallback,\n uniforms: {\n automovieCycleTexture: { value: fallback.texture },\n automovieCycleSamples: { value: samples },\n automovieCycleRows: { value: input.parts.length * 3 },\n automovieCycleAdvance: { value: 0 },\n automovieCycleTurn: { value: 0 },\n },\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,MAAa,sBAGX,UACoC;CACpC,MAAM,WAAsC,MAAM,MAAM;CACxD,IAAI,aAAa,MAAM,OAAO;CAG9B,MAAM,UACJ,MAAM,QAAQ,EAAE,EAAE,MAAM,UACxB,MAAM,WAAA;CAER,MAAM,UACJ,MAAM,SACN,oBAAoB,MAAM,KAAK,CAAC,CAAC,KAC9B,UAAuD;EACtD,MAAM,KAAK;EACX,eAAe,KAAK;EACpB,OAAO,WACL,GAAG,MAAM,MAAM,GAAG,GAAG,KAAK,QAC1B,SAAS,IACT,MACA,OACF,CAAC,CAAC,UAAU,KAAK,MAA0C,EAAE,IAAI;CACnE,EACF;CACF,IAAI,QAAQ,WAAW,GAAG,OAAO;CACjC,IACE,QAAQ,MACL,MACC,EAAE,MAAM,WAAW,WAAW,UAAU,CAC5C,GAEA,MAAM,IAAI,MACR,4EACF;CACF,MAAM,OAAwB,MAAM,MAAM,KAEtC,SASkB,KAAK,YAAY,MAAM,CAAC,CAAC,OAAO,CACtD;CAIA,MAAM,QAAyB,MAAM,MAAM,KAEvC,SASkB;EAClB,KAAK,SAAS,mBAAmB;EACjC,MAAM,MAAkB,KAAK,SAAS;EACtC,OAAO,IAAI,MAAM,SACd,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,GAC1B,IAAI,IAAI,IACP,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,CAC5B;CACF,CACF;CACA,MAAM,QACJ,kCAEI,QAUA,QAAQ,KAEJ,SAOG;EACH,MAAM,WAAsC,IAAI,aAC9C,MAAM,MAAM,SAAS,IAAI,UAAU,CACrC;EACA,MAAM,SAA4B,MAAM,MAAM,UACrB,CAAC,CAC1B;EACA,MAAM,QAAuB,IAAI,MAAM,QAAQ;EAC/C,KAAK,IAAI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EAAE;GAClC,oBAAoB,EAAE,OAAO,EAAE;EACjC;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"bakeFormationCycle.mjs","names":[],"sources":["../../src/scene/bakeFormationCycle.ts"],"sourcesContent":["import { autoMovieModelGaits, gaitMotion } from \"@automovie/engine\";\nimport type {\n IAutoMovieFormationPoseTake,\n IAutoMovieGait,\n IAutoMovieKeyframe,\n IAutoMoviePose,\n IAutoMovieSkeleton,\n} from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport { AUTOMOVIE_FORMATION_CYCLE_SAMPLES } from \"./AUTOMOVIE_FORMATION_CYCLE_SAMPLES.js\";\nimport type { IAutoMovieFormationCycle } from \"./IAutoMovieFormationCycle.js\";\nimport type { IAutoMovieFormationCycleTake } from \"./IAutoMovieFormationCycleTake.js\";\nimport type { IBakeFormationCycleProps } from \"./IBakeFormationCycleProps.js\";\nimport { applyPose } from \"./applyPose.js\";\nimport { constructAutoMovieOwnedResources } from \"./constructAutoMovieOwnedResources.js\";\nimport { formationCycleStride } from \"./formationCycleStride.js\";\n\n/**\n * Bake one runtime model's whole repertoire into rigid part-matrix tables.\n *\n * `built` must already be at rest with its world matrices current, because the\n * merged instance geometry was baked from exactly those rest matrices: what is\n * stored per sample is `posed * rest⁻¹`, the transform that carries a\n * rest-space vertex to where the cycle puts it. The object is left at the last\n * sampled pose; callers extract geometry before baking, never after.\n *\n * The poses are the given pose takes (`IBakeFormationCycleProps.takes`, a\n * performed member's cycle) or, without them, come from {@link gaitMotion}, whose keyframe `i` of `samples` sits\n * exactly at cycle position `i / samples`. The loop-closing duplicate is\n * omitted because texture playback wraps the last column to the first. Each sample passes through the same\n * {@link applyPose} used by named performers. This bake passes default\n * joint axes and no clinical rest frames; a caller using different explicit\n * axes/rest frames may therefore obtain a different attitude at the same phase.\n *\n * The table is a sampled Float32 affine approximation, not an exact continuous\n * rigid rotation or a proof of no-slip foot contact. Its stride uses the\n * existing lowest-part trajectory heuristic. Returned take textures transfer\n * to the representation owner; a later take's refusal retires earlier textures.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Samples canonical gaitMotion/applyPose and stores posedWorld*inverseRestWorld affine rows per rigid part; admitted invertible rest matrices, ordered parts and positive integral sample count are premises. Float32 matrix interpolation and lowest-part stride estimation remain approximate, and the caller's object stays at the last attempted pose even on refusal.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Owns one figure repertoire bake after rigid rest geometry extraction; each take carries timing/stride/table/texture together and the returned uniform cells bind the same fallback/active take consumed by cadence/shader helpers.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses actual gait declarations/rig parts and native nearest texture sampling, avoiding extension-dependent float linear filtering; sole box-bottom trajectory and fixed sample count are explicit bake heuristics, not asset-name exceptions or patched solvers.\n * @evidence contracts/development/common.md#meaningful-documentation States rest-before-bake ordering, mutable final-pose effect, affine table meaning, sampled precision/contact limitations and take texture transfer/failure rollback.\n * @evidence contracts/development/implementation.md#efficient-algorithms For G gaits, S samples, P parts and B bones, baking costs gait synthesis/FK plus S world-graph updates and P matrix/trajectory writes per gait; matrix bytes are 48*G*S*P, with temporary Vector3 tracks proportional to S*P per take and no anonymous-member dimension.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Computes inverse rest matrices/box-bottom anchors once and reuses one working Matrix4 across samples; all formation members borrow the baked tables later, while mutable rig/model inputs have no immutable revision key for cross-build memoization.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Immediately registers each DataTexture during repertoire construction and independently retires all prior takes on later refusal; success transfers finite G table textures/arrays to the representation owner. Borrowed rig/part resources are not disposed or pose-restored by the bake, and returned arrays remain until their representation is released.\n */\nexport const bakeFormationCycle: (\n input: IBakeFormationCycleProps,\n) => IAutoMovieFormationCycle | null = (\n input: IBakeFormationCycleProps,\n): IAutoMovieFormationCycle | null => {\n const skeleton: IAutoMovieSkeleton | null = input.model.skeleton;\n if (skeleton === null) return null;\n\n // The cycles to bake: the given pose tables, or each gait of the model synthesised at even phases.\n const samples: number =\n input.takes?.[0]?.poses.length ??\n input.samples ??\n AUTOMOVIE_FORMATION_CYCLE_SAMPLES;\n const sources: readonly IAutoMovieFormationPoseTake[] =\n input.takes ??\n autoMovieModelGaits(input.model).map(\n (gait: IAutoMovieGait): IAutoMovieFormationPoseTake => ({\n gait: gait.name,\n periodSeconds: gait.period,\n poses: gaitMotion(\n `${input.model.id}:${gait.name}`,\n skeleton.id,\n gait,\n samples,\n ).keyframes.slice(0, samples).map((k: IAutoMovieKeyframe): IAutoMoviePose => k.pose),\n }),\n );\n if (sources.length === 0) return null;\n if (\n sources.some(\n (t: IAutoMovieFormationPoseTake): boolean =>\n t.poses.length !== samples || samples < 1,\n )\n )\n throw new Error(\n \"bakeFormationCycle: every pose take holds the same positive count of poses\",\n );\n const rest: THREE.Matrix4[] = input.parts.map(\n (\n part: THREE.Mesh<\n THREE.BufferGeometry<\n THREE.NormalBufferAttributes,\n THREE.BufferGeometryEventMap\n >,\n | THREE.Material<THREE.MaterialEventMap>\n | THREE.Material<THREE.MaterialEventMap>[],\n THREE.Object3DEventMap\n >,\n ): THREE.Matrix4 => part.matrixWorld.clone().invert(),\n );\n // The point of a part that can meet the ground: the bottom of its own box,\n // in its own space, so the bake follows the surface a foot stands on rather\n // than the pivot it swings about.\n const soles: THREE.Vector3[] = input.parts.map(\n (\n part: THREE.Mesh<\n THREE.BufferGeometry<\n THREE.NormalBufferAttributes,\n THREE.BufferGeometryEventMap\n >,\n | THREE.Material<THREE.MaterialEventMap>\n | THREE.Material<THREE.MaterialEventMap>[],\n THREE.Object3DEventMap\n >,\n ): THREE.Vector3 => {\n part.geometry.computeBoundingBox();\n const box: THREE.Box3 = part.geometry.boundingBox!;\n return new THREE.Vector3(\n (box.min.x + box.max.x) / 2,\n box.min.y,\n (box.min.z + box.max.z) / 2,\n );\n },\n );\n const takes: IAutoMovieFormationCycleTake[] =\n constructAutoMovieOwnedResources(\n (\n own: <Resource extends { dispose(): void }>(\n resource: Resource,\n ) => Resource,\n ): {\n gait: string;\n strideMeters: number;\n periodSeconds: number;\n matrices: Float32Array<ArrayBuffer>;\n texture: THREE.DataTexture;\n }[] =>\n sources.map(\n (\n take: IAutoMovieFormationPoseTake,\n ): {\n gait: string;\n strideMeters: number;\n periodSeconds: number;\n matrices: Float32Array<ArrayBuffer>;\n texture: THREE.DataTexture;\n } => {\n const matrices: Float32Array<ArrayBuffer> = new Float32Array(\n input.parts.length * 3 * samples * 4,\n );\n const tracks: THREE.Vector3[][] = input.parts.map(\n (): THREE.Vector3[] => [] as THREE.Vector3[],\n );\n const posed: THREE.Matrix4 = new THREE.Matrix4();\n for (let sample: number = 0; sample < samples; ++sample) {\n applyPose(input.built, take.poses[sample]!, skeleton);\n input.built.object.updateMatrixWorld(true);\n input.parts.forEach(\n (\n part: THREE.Mesh<\n THREE.BufferGeometry<\n THREE.NormalBufferAttributes,\n THREE.BufferGeometryEventMap\n >,\n | THREE.Material<THREE.MaterialEventMap>\n | THREE.Material<THREE.MaterialEventMap>[],\n THREE.Object3DEventMap\n >,\n index: number,\n ): void => {\n const elements: THREE.Matrix4Tuple = posed.multiplyMatrices(\n part.matrixWorld,\n rest[index]!,\n ).elements;\n for (let row: number = 0; row < 3; ++row)\n for (let column: number = 0; column < 4; ++column)\n matrices[\n ((index * 3 + row) * samples + sample) * 4 + column\n ] = elements[column * 4 + row]!;\n tracks[index]!.push(\n soles[index]!.clone().applyMatrix4(part.matrixWorld),\n );\n },\n );\n }\n const texture: THREE.DataTexture = own(\n new THREE.DataTexture(\n matrices,\n samples,\n input.parts.length * 3,\n THREE.RGBAFormat,\n THREE.FloatType,\n ),\n );\n // Nearest sampling on purpose: linear filtering of 32-bit float textures is\n // an optional extension, and the two-step blend the shader performs itself\n // is the same arithmetic with none of the capability risk.\n texture.minFilter = THREE.NearestFilter;\n texture.magFilter = THREE.NearestFilter;\n texture.wrapS = THREE.ClampToEdgeWrapping;\n texture.wrapT = THREE.ClampToEdgeWrapping;\n texture.generateMipmaps = false;\n texture.colorSpace = THREE.NoColorSpace;\n texture.needsUpdate = true;\n return {\n gait: take.gait,\n strideMeters: take.strideMeters ?? formationCycleStride(tracks),\n periodSeconds: take.periodSeconds,\n matrices,\n texture,\n };\n },\n ),\n );\n const fallback: IAutoMovieFormationCycleTake = takes[0]!;\n return {\n samples,\n names: input.parts.map(\n (\n part: THREE.Mesh<\n THREE.BufferGeometry<\n THREE.NormalBufferAttributes,\n THREE.BufferGeometryEventMap\n >,\n | THREE.Material<THREE.MaterialEventMap>\n | THREE.Material<THREE.MaterialEventMap>[],\n THREE.Object3DEventMap\n >,\n ): string => part.name,\n ),\n takes: new Map(\n takes.map(\n (\n take: IAutoMovieFormationCycleTake,\n ): readonly [string, IAutoMovieFormationCycleTake] =>\n [take.gait, take] as const,\n ),\n ),\n fallback,\n active: fallback,\n uniforms: {\n automovieCycleTexture: { value: fallback.texture },\n automovieCycleSamples: { value: samples },\n automovieCycleRows: { value: input.parts.length * 3 },\n automovieCycleAdvance: { value: 0 },\n automovieCycleTurn: { value: 0 },\n },\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDA,MAAa,sBAGX,UACoC;CACpC,MAAM,WAAsC,MAAM,MAAM;CACxD,IAAI,aAAa,MAAM,OAAO;CAG9B,MAAM,UACJ,MAAM,QAAQ,EAAE,EAAE,MAAM,UACxB,MAAM,WAAA;CAER,MAAM,UACJ,MAAM,SACN,oBAAoB,MAAM,KAAK,CAAC,CAAC,KAC9B,UAAuD;EACtD,MAAM,KAAK;EACX,eAAe,KAAK;EACpB,OAAO,WACL,GAAG,MAAM,MAAM,GAAG,GAAG,KAAK,QAC1B,SAAS,IACT,MACA,OACF,CAAC,CAAC,UAAU,MAAM,GAAG,OAAO,CAAC,CAAC,KAAK,MAA0C,EAAE,IAAI;CACrF,EACF;CACF,IAAI,QAAQ,WAAW,GAAG,OAAO;CACjC,IACE,QAAQ,MACL,MACC,EAAE,MAAM,WAAW,WAAW,UAAU,CAC5C,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;EAC1B,QAAQ,QAAQ,MAAM;EACtB,QAAQ,QAAQ,MAAM;EACtB,QAAQ,kBAAkB;EAC1B,QAAQ,aAAa,MAAM;EAC3B,QAAQ,cAAc;EACtB,OAAO;GACL,MAAM,KAAK;GACX,cAAc,KAAK,gBAAgB,qBAAqB,MAAM;GAC9D,eAAe,KAAK;GACpB;GACA;EACF;CACF,CACF,CACJ;CACF,MAAM,WAAyC,MAAM;CACrD,OAAO;EACL;EACA,OAAO,MAAM,MAAM,KAEf,SASW,KAAK,IACpB;EACA,OAAO,IAAI,IACT,MAAM,KAEF,SAEA,CAAC,KAAK,MAAM,IAAI,CACpB,CACF;EACA;EACA,QAAQ;EACR,UAAU;GACR,uBAAuB,EAAE,OAAO,SAAS,QAAQ;GACjD,uBAAuB,EAAE,OAAO,QAAQ;GACxC,oBAAoB,EAAE,OAAO,MAAM,MAAM,SAAS,EAAE;GACpD,uBAAuB,EAAE,OAAO,EAAE;GAClC,oBAAoB,EAAE,OAAO,EAAE;EACjC;CACF;AACF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IAutoMovieConstructionPolyline } from "@automovie/interface";
|
|
1
2
|
import * as THREE from "three";
|
|
2
3
|
/**
|
|
3
4
|
* Display caller-supplied generating polylines in model metres without refitting.
|
|
@@ -14,11 +15,7 @@ import * as THREE from "three";
|
|
|
14
15
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work All same-colour lines in this returned construction share one owned material; geometry is created once and no cross-request cache retains caller records.
|
|
15
16
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Construction rollback immediately owns every native allocation; successful output transfers geometries/material and one shared retirement promise to the caller, with no renderer, RAF, listener or global registry acquired.
|
|
16
17
|
*/
|
|
17
|
-
export declare function buildAutoMovieConstruction(lines: readonly {
|
|
18
|
-
id: string;
|
|
19
|
-
closed: boolean;
|
|
20
|
-
points: readonly [number, number, number][];
|
|
21
|
-
}[], options: {
|
|
18
|
+
export declare function buildAutoMovieConstruction(lines: readonly IAutoMovieConstructionPolyline[], options: {
|
|
22
19
|
color: number;
|
|
23
20
|
maxPoints: number;
|
|
24
21
|
}): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildAutoMovieConstruction.js","sourceRoot":"","sources":["../../src/scene/buildAutoMovieConstruction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"buildAutoMovieConstruction.js","sourceRoot":"","sources":["../../src/scene/buildAutoMovieConstruction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,MAAY,KAAK,kCAAc;AAE/B,+FAAyF;AACzF,iGAA2F;AAE3F;;;;;;;;;;;;;;GAcG;AACH,oCACE,KAAgD,EAChD,OAA6C;IAE7C,IACE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACrB,CAAC,OAAO;QACR,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC;QAChC,OAAO,CAAC,KAAK,GAAG,CAAC;QACjB,OAAO,CAAC,KAAK,GAAG,QAAQ;QACxB,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,SAAS,CAAC;QACxC,OAAO,CAAC,SAAS,GAAG,CAAC;QAErB,MAAM,IAAI,KAAK,CACb,iEAAiE,CAClE,CAAC;IACJ,MAAM,KAAK,GAAgB,IAAI,GAAG,EAAE,CAAC;IACrC,IAAI,KAAK,GAAW,CAAC,CAAC;IACtB,KAAK,IAAI,KAAK,GAAW,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QAC1D,MAAM,IAAI,GAA2B,KAAK,CAAC,KAAK,CAAC,CAAC;QAClD,IACE,CAAC,IAAI;YACL,OAAO,IAAI,CAAC,EAAE,KAAK,QAAQ;YAC3B,CAAC,IAAI,CAAC,EAAE;YACR,KAAK,CAAC,GAAG,CAAC,IAAI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ourcesContent":["import * as THREE from \"three\";\n\nimport { constructAutoMovieOwnedResources } from \"./constructAutoMovieOwnedResources.js\";\nimport { createAutoMovieResourceRetirement } from \"./createAutoMovieResourceRetirement.js\";\n\n/**\n * Display caller-supplied generating polylines in model metres without refitting.\n * Closed lines omit the repeated endpoint. The builder owns one material and one\n * geometry per line, registers allocations before attachment and transfers an\n * idempotent asynchronous disposer. Public disposal attempts every owned resource;\n * it does not certify physical GPU-driver retirement. The caller owns mounting.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Validated finite float32-representable generating samples become native Line/LineLoop objects; line closure and identity are explicit and geometry is never inferred from a displayed mesh.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure This generic viewer producer owns rendering and resource lifetime for construction while recovery and other generators remain the authorities for the lines' numerical meaning.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No curve refit, source overlay, coordinate weld, native method replacement or construction inferred from visible triangles enters display; invalid points and point budgets refuse before native allocation.\n * @evidence contracts/development/common.md#meaningful-documentation States metre units, closed-line endpoint convention, float32 display admission, caller mounting, first-allocation rollback, owned resources and disposal limits.\n * @evidence contracts/development/implementation.md#efficient-algorithms Validation and position conversion cost O(P) for P supplied points, bounded by maxPoints, with one geometry per line and one material shared by the call's lines.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work All same-colour lines in this returned construction share one owned material; geometry is created once and no cross-request cache retains caller records.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Construction rollback immediately owns every native allocation; successful output transfers geometries/material and one shared retirement promise to the caller, with no renderer, RAF, listener or global registry acquired.\n */\nexport function buildAutoMovieConstruction(\n lines: readonly
|
|
1
|
+
{"version":3,"file":"buildAutoMovieConstruction.mjs","names":[],"sources":["../../src/scene/buildAutoMovieConstruction.ts"],"sourcesContent":["import type { IAutoMovieConstructionPolyline } from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport { constructAutoMovieOwnedResources } from \"./constructAutoMovieOwnedResources.js\";\nimport { createAutoMovieResourceRetirement } from \"./createAutoMovieResourceRetirement.js\";\n\n/**\n * Display caller-supplied generating polylines in model metres without refitting.\n * Closed lines omit the repeated endpoint. The builder owns one material and one\n * geometry per line, registers allocations before attachment and transfers an\n * idempotent asynchronous disposer. Public disposal attempts every owned resource;\n * it does not certify physical GPU-driver retirement. The caller owns mounting.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Validated finite float32-representable generating samples become native Line/LineLoop objects; line closure and identity are explicit and geometry is never inferred from a displayed mesh.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure This generic viewer producer owns rendering and resource lifetime for construction while recovery and other generators remain the authorities for the lines' numerical meaning.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No curve refit, source overlay, coordinate weld, native method replacement or construction inferred from visible triangles enters display; invalid points and point budgets refuse before native allocation.\n * @evidence contracts/development/common.md#meaningful-documentation States metre units, closed-line endpoint convention, float32 display admission, caller mounting, first-allocation rollback, owned resources and disposal limits.\n * @evidence contracts/development/implementation.md#efficient-algorithms Validation and position conversion cost O(P) for P supplied points, bounded by maxPoints, with one geometry per line and one material shared by the call's lines.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work All same-colour lines in this returned construction share one owned material; geometry is created once and no cross-request cache retains caller records.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Construction rollback immediately owns every native allocation; successful output transfers geometries/material and one shared retirement promise to the caller, with no renderer, RAF, listener or global registry acquired.\n */\nexport function buildAutoMovieConstruction(\n lines: readonly IAutoMovieConstructionPolyline[],\n options: { color: number; maxPoints: number },\n): { object: THREE.Group; dispose: () => Promise<void> } {\n if (\n !Array.isArray(lines) ||\n !options ||\n !Number.isInteger(options.color) ||\n options.color < 0 ||\n options.color > 0xffffff ||\n !Number.isSafeInteger(options.maxPoints) ||\n options.maxPoints < 1\n )\n throw new Error(\n \"Construction needs an explicit colour and positive point budget\",\n );\n const names: Set<string> = new Set();\n let count: number = 0;\n for (let index: number = 0; index < lines.length; index++) {\n const line: (typeof lines)[number] = lines[index];\n if (\n !line ||\n typeof line.id !== \"string\" ||\n !line.id ||\n names.has(line.id) ||\n typeof line.closed !== \"boolean\" ||\n !Array.isArray(line.points) ||\n line.points.length < (line.closed ? 3 : 2)\n )\n throw new Error(\n \"Construction lines need unique identities and enough ordered points\",\n );\n names.add(line.id);\n count += line.points.length;\n if (!Number.isSafeInteger(count) || count > options.maxPoints)\n throw new Error(\"Construction point population exceeds maxPoints\");\n for (let point: number = 0; point < line.points.length; point++) {\n const position: [number, number, number] = line.points[point];\n if (!Array.isArray(position) || position.length !== 3)\n throw new Error(\"Construction points need three metre coordinates\");\n for (let axis: number = 0; axis < 3; axis++)\n if (\n !Number.isFinite(position[axis]) ||\n !Number.isFinite(Math.fround(position[axis]))\n )\n throw new Error(\n \"Construction coordinates must be finite and float32-representable\",\n );\n }\n }\n return constructAutoMovieOwnedResources(\n (\n own: <Resource extends { dispose(): void }>(\n resource: Resource,\n ) => Resource,\n ): {\n object: THREE.Group;\n dispose: () => Promise<void>;\n } => {\n const object: THREE.Group = new THREE.Group();\n const material: THREE.LineBasicMaterial = own(\n new THREE.LineBasicMaterial({ color: options.color }),\n );\n const resources: { dispose(): void }[] = [material];\n for (const line of lines) {\n const geometry: THREE.BufferGeometry = own(new THREE.BufferGeometry());\n resources.push(geometry);\n geometry.setAttribute(\n \"position\",\n new THREE.Float32BufferAttribute(line.points.flat(), 3),\n );\n const drawable: THREE.Line = line.closed\n ? new THREE.LineLoop(geometry, material)\n : new THREE.Line(geometry, material);\n drawable.name = line.id;\n object.add(drawable);\n }\n return {\n object,\n dispose: createAutoMovieResourceRetirement(\n resources.map(\n (resource: { dispose(): void }): (() => void) =>\n (): void =>\n resource.dispose(),\n ),\n ),\n };\n },\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,2BACd,OACA,SACuD;CACvD,IACE,CAAC,MAAM,QAAQ,KAAK,KACpB,CAAC,WACD,CAAC,OAAO,UAAU,QAAQ,KAAK,KAC/B,QAA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C;GACrE,UAAU,KAAK,QAAQ;GACvB,SAAS,aACP,YACA,IAAI,MAAM,uBAAuB,KAAK,OAAO,KAAK,GAAG,CAAC,CACxD;GACA,MAAM,WAAuB,KAAK,SAC9B,IAAI,MAAM,SAAS,UAAU,QAAQ,IACrC,IAAI,MAAM,KAAK,UAAU,QAAQ;GACrC,SAAS,OAAO,KAAK;GACrB,OAAO,IAAI,QAAQ;EACrB;EACA,OAAO;GACL;GACA,SAAS,kCACP,UAAU,KACP,mBAEG,SAAS,QAAQ,CACvB,CACF;EACF;CACF,CACF;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildGeometry.js","sourceRoot":"","sources":["../../src/scene/buildGeometry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"buildGeometry.js","sourceRoot":"","sources":["../../src/scene/buildGeometry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAA+E;AAO/E,MAAY,KAAK,kCAAc;AAE/B,iGAA2F;AAC3F,+FAAyF;AAEzF;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,aAAa,GAEE,CAC1B,QAA4B,EACN,EAAE;IACxB,OAAO,IAAA,sEAAgC,EACrC,CACE,GAEa,EAIb,EAAE;QACF,MAAM,GAAG,GAGL,GAAG,CAAC,IAAI,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC;QACpC,IAAI,QAAQ,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;YAClC,MAAM,CAAC,GAA2B,IAAA,mBAAU,EAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAC7D,GAAG,CAAC,YAAY,CACd,UAAU,EACV,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CACjD,CAAC;YACF,GAAG,CAAC,YAAY,CACd,QAAQ,EACR,IAAI,KAAK,C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,GAAG,CAAC,eAAe,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,CACtC,CACE,MAAiC,EACH,EAAE;oBAChC,MAAM,SAAS,GACb,MAAM,CAAC,OAAO,KAAK,IAAI;wBACrB,CAAC,CAAC,IAAI,KAAK,CAAC,sBAAsB,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC;wBAC9D,CAAC,CAAC,IAAI,KAAK,CAAC,sBAAsB,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;oBAC1D,SAAS,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;oBAC7B,OAAO,SAAS,CAAC;gBACnB,CAAC,CACF,CAAC;QACN,CAAC;QACD,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI;YAAE,GAAG,CAAC,oBAAoB,EAAE,CAAC;QACtD,wEAAiC,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACzE,wEAAiC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC5C,OAAO,GAAG,CAAC;IACb,CAAC,CACF,CAAC;AACJ,CAAC,CAAC;AApHW,QAAA,aAAa,GAAb,aAAa,CAoHxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildGeometry.mjs","names":[],"sources":["../../src/scene/buildGeometry.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"buildGeometry.mjs","names":[],"sources":["../../src/scene/buildGeometry.ts"],"sourcesContent":["import { realizeAutoMovieBicubicAtlas64, tessellate } from \"@automovie/engine\";\nimport type {\n IAutoMovieGeometry,\n IAutoMovieMesh,\n IAutoMovieMeshMorphTarget,\n IAutoMovieTessellation,\n} from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport { AutoMovieGeometryPhysicalVertices } from \"./AutoMovieGeometryPhysicalVertices.js\";\nimport { constructAutoMovieOwnedResources } from \"./constructAutoMovieOwnedResources.js\";\n\n/**\n * Build a `three.js` geometry from a automovie geometry node: tessellating a\n * parametric primitive or bicubic atlas through its engine owner, or uploading raw mesh arrays. Finite partial atlas output remains drawable with its processing diagnostics. Morph\n * targets become relative `morphAttributes` named after their targets, which a\n * mesh constructed on the geometry lists in `morphTargetDictionary`.\n * Its buffer object is owned before tessellation or attribute initialization;\n * an initialization refusal independently reports disposal and its original\n * cause rather than leaving an unreturned allocation with no owner.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Uses engine tessellation for primitives and realizes admitted raw position/normal/UV/color/relief/skin arrays as native typed attributes and morph targets as named relative morph attributes (zero normal deltas where a target has none but another does, as Three requires), computing normals only when absent and preserving physical-vertex identity through its owner helper; widths/index bounds and Float32/Uint16 representability are source premises, so numeric narrowing can differ from engine double precision.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Owns one Three buffer realization, leaving primitive topology to tessellate, texture semantics to material builders and simulation/render vertex correspondence to AutoMovieGeometryPhysicalVertices.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Writes the actual artifact arrays without geometry-id exceptions, copied UV channels or generated placeholder primitives; missing normals use native computation, not fixture normal values.\n * @evidence contracts/development/common.md#meaningful-documentation Describes primitive/raw realization and immediate geometry ownership/rollback; attribute comments identify the one admitted UV set and the physical/render correspondence helper supplies its own contract.\n * @evidence contracts/development/implementation.md#efficient-algorithms CPU allocation/copy grows with emitted vertices/indices, supplied attribute channels and morph targets (one or two Float32 copies of 3V per target), with one geometry and no redundant UV sets; missing-normal computation visits triangles, while engine primitive tessellation dominates its own shape population.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses canonical engine tessellation and physical-vertex mapping code; each mutable geometry belongs to an independent model owner and no immutable topology/revision key permits cross-build sharing here.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Registers the new BufferGeometry before attribute/tessellation work, transfers it only after full initialization and independently retires it on refusal; typed attributes remain bounded by the admitted mesh, and this producer owns no material, renderer or task.\n */\nexport const buildGeometry: (\n geometry: IAutoMovieGeometry,\n) => THREE.BufferGeometry = (\n geometry: IAutoMovieGeometry,\n): THREE.BufferGeometry => {\n return constructAutoMovieOwnedResources(\n (\n own: <Resource extends { dispose(): void }>(\n resource: Resource,\n ) => Resource,\n ): THREE.BufferGeometry<\n THREE.NormalBufferAttributes,\n THREE.BufferGeometryEventMap\n > => {\n const geo: THREE.BufferGeometry<\n THREE.NormalBufferAttributes,\n THREE.BufferGeometryEventMap\n > = own(new THREE.BufferGeometry());\n if (geometry.type === \"primitive\") {\n const t: IAutoMovieTessellation = tessellate(geometry.shape);\n geo.setAttribute(\n \"position\",\n new THREE.Float32BufferAttribute(t.positions, 3),\n );\n geo.setAttribute(\n \"normal\",\n new THREE.Float32BufferAttribute(t.normals, 3),\n );\n geo.setIndex(t.indices);\n return geo;\n }\n let mesh: IAutoMovieMesh;\n if (geometry.type === \"bicubic-atlas\") {\n const realized: ReturnType<typeof realizeAutoMovieBicubicAtlas64> =\n realizeAutoMovieBicubicAtlas64(geometry);\n mesh = realized.mesh;\n geo.userData.automovieAtlasRealization = {\n complete: realized.complete,\n diagnostics: realized.diagnostics,\n };\n } else mesh = geometry.mesh;\n geo.setAttribute(\n \"position\",\n new THREE.Float32BufferAttribute(mesh.positions, 3),\n );\n if (mesh.normals !== null)\n geo.setAttribute(\n \"normal\",\n new THREE.Float32BufferAttribute(mesh.normals, 3),\n );\n // One UV set, deliberately. `three.js` reads a map's `channel` to pick\n // between `uv`, `uv1`, `uv2` and `uv3`, and the artifact admits `texCoord` 0\n // alone (`validateModel`), so a mirrored `uv1` would be a second copy of the\n // same buffer that no material could ever address.\n if (mesh.uvs !== null)\n geo.setAttribute(\"uv\", new THREE.Float32BufferAttribute(mesh.uvs, 2));\n if (mesh.colors !== undefined)\n geo.setAttribute(\n \"color\",\n new THREE.Float32BufferAttribute(mesh.colors, 3),\n );\n if (mesh.reliefWeights !== undefined)\n geo.setAttribute(\n \"reliefWeight\",\n new THREE.Float32BufferAttribute(mesh.reliefWeights, 1),\n );\n if (mesh.indices !== null) geo.setIndex(mesh.indices);\n if (mesh.skin !== null) {\n geo.setAttribute(\n \"skinIndex\",\n new THREE.Uint16BufferAttribute(mesh.skin.boneIndices, 4),\n );\n geo.setAttribute(\n \"skinWeight\",\n new THREE.Float32BufferAttribute(mesh.skin.weights, 4),\n );\n }\n if (mesh.targets !== undefined && mesh.targets.length !== 0) {\n // Relative deltas, glTF's model; Three adds them before skinning. Three\n // needs a normal delta per position delta once any target has normals,\n // so a target without them contributes zeros.\n const targets: IAutoMovieMeshMorphTarget[] = mesh.targets;\n geo.morphTargetsRelative = true;\n geo.morphAttributes.position = targets.map(\n (target: IAutoMovieMeshMorphTarget): THREE.Float32BufferAttribute => {\n const attribute: THREE.Float32BufferAttribute =\n new THREE.Float32BufferAttribute(target.positions, 3);\n attribute.name = target.name;\n return attribute;\n },\n );\n if (\n targets.some(\n (target: IAutoMovieMeshMorphTarget): boolean =>\n target.normals !== null,\n )\n )\n geo.morphAttributes.normal = targets.map(\n (\n target: IAutoMovieMeshMorphTarget,\n ): THREE.Float32BufferAttribute => {\n const attribute: THREE.Float32BufferAttribute =\n target.normals === null\n ? new THREE.Float32BufferAttribute(target.positions.length, 3)\n : new THREE.Float32BufferAttribute(target.normals, 3);\n attribute.name = target.name;\n return attribute;\n },\n );\n }\n if (mesh.normals === null) geo.computeVertexNormals();\n AutoMovieGeometryPhysicalVertices.writeOwned(geo, mesh.physicalVertices);\n AutoMovieGeometryPhysicalVertices.read(geo);\n return geo;\n },\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA6BA,MAAa,iBAGX,aACyB;CACzB,OAAO,kCAEH,QAMG;EACH,MAAM,MAGF,IAAI,IAAI,MAAM,eAAe,CAAC;EAClC,IAAI,SAAS,SAAS,aAAa;GACjC,MAAM,IAA4B,WAAW,SAAS,KAAK;GAC3D,IAAI,aACF,YACA,IAAI,MAAM,uBAAuB,EAAE,WAAW,CAAC,CACjD;GACA,IAAI,aACF,UACA,IAAI,M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AAO,YAAY,IACvB,GAEA,IAAI,gBAAgB,SAAS,QAAQ,KAEjC,WACiC;IACjC,MAAM,YACJ,OAAO,YAAY,OACf,IAAI,MAAM,uBAAuB,OAAO,UAAU,QAAQ,CAAC,IAC3D,IAAI,MAAM,uBAAuB,OAAO,SAAS,CAAC;IACxD,UAAU,OAAO,OAAO;IACxB,OAAO;GACT,CACF;EACJ;EACA,IAAI,KAAK,YAAY,MAAM,IAAI,qBAAqB;EACpD,kCAAkC,WAAW,KAAK,KAAK,gBAAgB;EACvE,kCAAkC,KAAK,GAAG;EAC1C,OAAO;CACT,CACF;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildInstancedEffect.js","sourceRoot":"","sources":["../../src/scene/buildInstancedEffect.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"buildInstancedEffect.js","sourceRoot":"","sources":["../../src/scene/buildInstancedEffect.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAyD;AAMzD,MAAY,KAAK,kCAAc;AAK/B;;;;;;;;;;;;;;GAcG;AACI,MAAM,oBAAoB,GAEG,CAClC,MAAgC,EACF,EAAE;IAChC,MAAM,QAAQ,GAAwB,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACpE,MAAM,OAAO,GACX,IAAI,KAAK,CAAC,wBAAwB,CAChC,IAAI,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,EACnD,CAAC,CACF,CAAC;IACJ,QAAQ,CAAC,YAAY,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACnD,MAAM,QAAQ,GAAyB,IAAI,KAAK,CAAC,cAAc,CAAC;QAC9D,QAAQ,EAAE;YACR,cAAc,EAAE,EAAE,KAAK,EAAE,IAAI,KAAK,CAAC,KAAK,C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file":"buildInstancedEffect.mjs","names":[],"sources":["../../src/scene/buildInstancedEffect.ts"],"sourcesContent":["import { sampleCompiledEffect } from \"@automovie/engine\";\nimport type {\n IAutoMovieCompiledEffect,\n IAutoMovieEffectParticle,\n IAutoMovieEffectSample,\n} from \"@automovie/interface\";\nimport * as THREE from \"three\";\n\nimport type { IAutoMovieEffectViewerObject } from \"./IAutoMovieEffectViewerObject.js\";\nimport type { IAutoMovieEffectViewerStats } from \"./IAutoMovieEffectViewerStats.js\";\n\n/**\n * Build a compiled effect as fixed-capacity camera-facing billboard instances.\n * Numeric particles come from the engine's absolute fixed-step sampler. The\n * current tree exposes this producer without a production scene/film caller.\n * Its returned native mesh exposes resources for caller-owned retirement;\n * no complete disposal handle or partial-setup rollback is supplied here.\n *\n * @evidence contracts/development/implementation.md#principled-implementation Samples admitted compiled effects by absolute time and distance, then copies bounded live particle position/size/opacity into camera-world-oriented instance matrices; maxParticles bounds live buffers, recipe ranges/finite coordinates are upstream premises and a smooth radial feather defines billboard appearance rather than physical volumetric scattering.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure One native instanced plane stream projects the canonical sampler and reports its current scalar summary; there is no production scene/film consumer in the current tree, and no new runtime service is added to conceal that exported-only reach.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses actual seed/time/particle values and declared cap without fixture particles or GPU random state; radial feather thresholds0.28/0.5 and renderOrder10 are explicit current display conventions. Color uses native hex decoding/global color policy, and this custom shader has no final color-space chunk, so full captured-color parity is not guaranteed.\n * @evidence contracts/development/common.md#meaningful-documentation Gives fixed-step numerical ownership, camera-facing projection, live capacity, caller native-resource retirement and missing production/rollback boundaries rather than certifying a drawn effect.\n * @evidence contracts/development/implementation.md#efficient-algorithms Allocates B matrix/opacity capacity once for budget B and fills N live sampled particles per update, plus the sampler's candidate/lifetime/LOD cost; per-particle Vector3 temporaries are still allocated and transparent raster overdraw follows screen coverage, not just live count.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses one plane/material/instance buffer and working matrix/scale/camera quaternion across frames; absolute-time sampling recomputes live particles, since matching object identity is not an immutable recipe/time/distance equivalence key.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned mesh owns one geometry/material/native instance stream and retains the compiled effect through update, with bytes proportional to cap; no disposer/constructor rollback is returned, so callers must retire all three actual native roles and discard the handle. No worker or decoder is acquired.\n */\nexport const buildInstancedEffect: (\n effect: IAutoMovieCompiledEffect,\n) => IAutoMovieEffectViewerObject = (\n effect: IAutoMovieCompiledEffect,\n): IAutoMovieEffectViewerObject => {\n const geometry: THREE.PlaneGeometry = new THREE.PlaneGeometry(1, 1);\n const opacity: THREE.InstancedBufferAttribute =\n new THREE.InstancedBufferAttribute(\n new Float32Array(effect.recipe.budget.maxParticles),\n 1,\n );\n geometry.setAttribute(\"automovieOpacity\", opacity);\n const material: THREE.ShaderMaterial = new THREE.ShaderMaterial({\n uniforms: {\n automovieColor: { value: new THREE.Color(effect.recipe.particle.color) },\n },\n transparent: true,\n depthTest: true,\n depthWrite: false,\n polygonOffset: effect.recipe.motion.ballistic?.retainStains === true,\n polygonOffsetFactor: -1,\n polygonOffsetUnits: -1,\n vertexShader: `\n attribute float automovieOpacity;\n varying float vAutomovieOpacity;\n varying vec2 vAutomovieUv;\n void main() {\n vAutomovieOpacity = automovieOpacity;\n vAutomovieUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * instanceMatrix *\n vec4(position, 1.0);\n }\n `,\n fragmentShader: `\n uniform vec3 automovieColor;\n varying float vAutomovieOpacity;\n varying vec2 vAutomovieUv;\n void main() {\n float radius = length(vAutomovieUv - vec2(0.5));\n float feather = 1.0 - smoothstep(0.28, 0.5, radius);\n gl_FragColor = vec4(automovieColor, vAutomovieOpacity * feather);\n }\n `,\n });\n const mesh: THREE.InstancedMesh<\n THREE.PlaneGeometry,\n THREE.ShaderMaterial,\n THREE.Object3DEventMap\n > = new THREE.InstancedMesh(\n geometry,\n material,\n effect.recipe.budget.maxParticles,\n );\n mesh.name = `effect:${effect.zone}:${effect.id}`;\n mesh.count = 0;\n mesh.frustumCulled = false;\n mesh.renderOrder = 10;\n mesh.userData.automovieEffect = {\n zone: effect.zone,\n kind: effect.kind,\n digest: effect.digest,\n };\n const stats: IAutoMovieEffectViewerStats = {\n active: false,\n particles: 0,\n cap: effect.recipe.budget.maxParticles,\n intensity: 0,\n };\n const matrix: THREE.Matrix4 = new THREE.Matrix4();\n const scale: THREE.Vector3 = new THREE.Vector3();\n const cameraQuaternion: THREE.Quaternion = new THREE.Quaternion();\n const surfaceQuaternion: THREE.Quaternion = new THREE.Quaternion();\n const planeNormal: THREE.Vector3 = new THREE.Vector3(0, 0, 1);\n const surfaceNormal: THREE.Vector3 = new THREE.Vector3();\n return {\n object: mesh,\n stats,\n update(camera: THREE.PerspectiveCamera, time: number): void {\n const center: THREE.Vector3 = new THREE.Vector3(\n (effect.bounds.min.x + effect.bounds.max.x) / 2,\n (effect.bounds.min.y + effect.bounds.max.y) / 2,\n (effect.bounds.min.z + effect.bounds.max.z) / 2,\n );\n const cameraPosition: THREE.Vector3 = new THREE.Vector3();\n camera.getWorldPosition(cameraPosition);\n camera.getWorldQuaternion(cameraQuaternion);\n const sample: IAutoMovieEffectSample = sampleCompiledEffect(\n effect,\n time,\n cameraPosition.distanceTo(center),\n );\n sample.particles.forEach(\n (particle: IAutoMovieEffectParticle, index: number): void => {\n scale.set(particle.size, particle.size, particle.size);\n matrix.compose(\n new THREE.Vector3(\n particle.position.x,\n particle.position.y,\n particle.position.z,\n ),\n particle.normal\n ? surfaceQuaternion.setFromUnitVectors(\n planeNormal,\n surfaceNormal.set(\n particle.normal.x,\n particle.normal.y,\n particle.normal.z,\n ),\n )\n : cameraQuaternion,\n scale,\n );\n mesh.setMatrixAt(index, matrix);\n opacity.setX(index, particle.opacity);\n },\n );\n mesh.count = sample.particles.length;\n mesh.visible = sample.active && mesh.count > 0;\n mesh.instanceMatrix.needsUpdate = true;\n opacity.needsUpdate = true;\n stats.active = sample.active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,MAAM,SAAwB,IAAI,MAAM,SACrC,OAAO,OAAO,IAAI,IAAI,OAAO,OAAO,IAAI,KAAK,IAC7C,OAAO,OAAO,IAAI,IAAI,OAAO,OAAO,IAAI,KAAK,IAC7C,OAAO,OAAO,IAAI,IAAI,OAAO,OAAO,IAAI,KAAK,CAChD;GACA,MAAM,iBAAgC,IAAI,MAAM,QAAQ;GACxD,OAAO,iBAAiB,cAAc;GACtC,OAAO,mBAAmB,gBAAgB;GAC1C,MAAM,SAAiC,qBACrC,QACA,MACA,eAAe,WAAW,MAAM,CAClC;GACA,OAAO,UAAU,SACd,UAAoC,UAAwB;IAC3D,MAAM,IAAI,SAAS,MAAM,SAAS,MAAM,SAAS,IAAI;IACrD,OAAO,QACL,IAAI,MAAM,QACR,SAAS,SAAS,GAClB,SAAS,SAAS,GAClB,SAAS,SAAS,CACpB,GACA,SAAS,SACL,kBAAkB,mBAChB,aACA,cAAc,IACZ,SAAS,OAAO,GAChB,SAAS,OAAO,GAChB,SAAS,OAAO,CAClB,CACF,IACA,kBACJ,KACF;IACA,KAAK,YAAY,OAAO,MAAM;IAC9B,QAAQ,KAAK,OAAO,SAAS,OAAO;GACtC,CACF;GACA,KAAK,QAAQ,OAAO,UAAU;GAC9B,KAAK,UAAU,OAAO,UAAU,KAAK,QAAQ;GAC7C,KAAK,eAAe,cAAc;GAClC,QAAQ,cAAc;GACtB,MAAM,SAAS,OAAO;GACtB,MAAM,YAAY,OAAO,UAAU;GACnC,MAAM,YAAY,OAAO;EAC3B;CACF;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildInstancedFormation.js","sourceRoot":"","sources":["../../src/scene/buildInstancedFormation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAY2B;AAY3B,MAAY,KAAK,kCAAc;AAS/B,2EAAqE;AACrE,+FAAyF;AACzF,2FAAqF;AACrF,uDAA8D;AAC9D,6FAAuF;AACvF,6FA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