3D engine that AI agents drive
Merge branch 'worktree-agent-a31d01207c9396e72' into feat/scene-kits
Nguyen Xuan An089f93978bc2
diff --cc docs/guide.mdindex bbe459b7,18d2b5bf..926a5c5e--- a/docs/guide.md+++ b/docs/guide.md@@@ -162,10 -162,17 +162,21 @@@ Collapsed output triangles cause errorsThe [surface patch contract](/surface.md) defines projector orientation, depth and local clearance.Patches and shrinkwrap are static operations. They do not follow skin or morph deformation.+## HDR environment lighting++Pass `environment: { map }` to light and reflect from an equirectangular HDR image. `loadHdri(url)` from `67js/addons/hdri` parses a Poly Haven `.hdr` file, and `createEnvironmentMap` accepts your own float data. Without a map, rendering is unchanged. The [lighting contract](/lighting.md#environment-maps-ibl) covers rotation, background display, memory and limits.++ ## Humanoid retargeting and crowds++ `67js/addons/retarget` is in the current source and not yet published. It moves a humanoid clip onto another skeleton and offsets many copies in time.++ 1. Build rigs with `createRigFromSkin(asset.skins[0])`. Name families (Mixamo, VRM, Unreal, Rigify, Quaternius) map through `mapHumanoidBones`; fix a miss with `targetOverrides`.+ 2. Call `retargetClip(sourceRig, targetRig, clip, { rootMotion })`.+ 3. Play it with `createSkinClipPlayer(skin, clip).apply(seconds)`, then `renderer.updateParts(parts)`.+ 4. For a crowd, `createCrowd({ count, clip, seed })` gives placement, time offsets and playback rates. Each instance needs its own skin pose.++ The [retarget contract](/retarget.md) covers rest-pose assumptions and measured cost. Mixamo clips need the owner's Adobe login to download; the code only consumes files.+## Baked liquid`67js/addons/spume` is in the current source and not yet published. It plays back liquid baked offline by the Spume GPU solver.diff --cc package.jsonindex 61448a4a,f889e597..28f18d47--- a/package.json+++ b/package.json@@@ -76,9 -76,9 +76,10 @@@"./addons/surface-attachment": "./build/surface-attachment.js","./addons/physics": "./build/physics.js","./addons/spume": "./build/spume.js",+ "./addons/retarget": "./build/retarget.js","./addons/agent-scene": "./build/agent-scene.js","./addons/agent-asset": "./build/agent-asset.js",+ "./addons/hdri": "./build/hdri.js","./package.json": "./package.json"},"scripts": {diff --cc vite.lib.config.jsindex fd407d67,c4dd14cb..d4a015f7--- a/vite.lib.config.js+++ b/vite.lib.config.js@@@ -26,9 -26,9 +26,10 @@@ export default defineConfig('surface-attachment': 'src/surface-attachment.js',physics: 'src/physics.js',spume: 'src/spume.js',+ retarget: 'src/retarget.js','agent-scene': 'src/agent-scene.js','agent-asset': 'src/agent-asset.js',+ hdri: 'src/hdri.js',},formats: ['es'],fileName: (_, entry) => entry === 'core' ? '67.module.js' : `${entry}.js`,