@fleox/agent3d 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +143 -0
- package/README.md +172 -2
- package/changelog.json +56 -0
- package/dist/agent/agent3d.mjs +11242 -0
- package/dist/agent/chunks/assets-BUUM9TUB.mjs +2448 -0
- package/dist/agent/chunks/browser-t_JL_B82.mjs +226 -0
- package/dist/agent/chunks/cdp-CaKRRzMX.mjs +177 -0
- package/dist/agent/chunks/check-CBO3Ekx1.mjs +971 -0
- package/dist/agent/chunks/export-BCI8vKw8.mjs +1130 -0
- package/dist/agent/chunks/gif-DQznzHTL.mjs +319 -0
- package/dist/agent/chunks/gltf-f_f0-OiV.mjs +207 -0
- package/dist/agent/chunks/imageCodec-BpDU9Lsq.mjs +101 -0
- package/dist/agent/chunks/jsonPath-DUCe1JpS.mjs +155 -0
- package/dist/agent/chunks/meshoptimizer-C-tN9jn5.mjs +1165 -0
- package/dist/agent/chunks/mp4-aOALfp3s.mjs +130 -0
- package/dist/agent/chunks/objects-DBAws7uf.mjs +53 -0
- package/dist/agent/chunks/optimizeSizing-CkZ3fZRp.mjs +540 -0
- package/dist/agent/chunks/package-Ck7_Nszg.mjs +75 -0
- package/dist/agent/chunks/png-DXfSGJZt.mjs +91 -0
- package/dist/agent/chunks/render-Cbuhz5uW.mjs +1511 -0
- package/dist/agent/chunks/rolldown-runtime-ebOQtxsr.mjs +18 -0
- package/dist/agent/chunks/scene-BgajNvBf.mjs +444 -0
- package/dist/agent/chunks/server-CACCerkZ.mjs +237 -0
- package/dist/agent/chunks/suggest-Cpcgv1RP.mjs +46 -0
- package/dist/agent/chunks/tools-DT2tetIK.mjs +1412 -0
- package/dist/agent/chunks/tree-BrNYGui2.mjs +75 -0
- package/dist/agent/chunks/webpAnim-qaq9YgKl.mjs +132 -0
- package/dist/runtime/agent3d-runtime.js +373 -0
- package/dist/runtime/agent3d-runtime.single.js +7360 -0
- package/dist/runtime/chunks/BufferGeometryUtils-Re3wQkXp.js +1 -0
- package/dist/runtime/chunks/EXRLoader-Bzm84si5.js +1 -0
- package/dist/runtime/chunks/FontLoader-BocwqK8V.js +2 -0
- package/dist/runtime/chunks/GLTFLoader-DHp1wv6J.js +1 -0
- package/dist/runtime/chunks/GroundedSkybox-esvlRCO0.js +1 -0
- package/dist/runtime/chunks/HDRLoader-DHrHp8fs.js +5 -0
- package/dist/runtime/chunks/OrbitControls-sjN2MF0e.js +1 -0
- package/dist/runtime/chunks/RectAreaLightUniformsLib-_mZ62yWn.js +1 -0
- package/dist/runtime/chunks/RoomEnvironment-CL4UR6ZW.js +1 -0
- package/dist/runtime/chunks/RoundedBoxGeometry-x-ot8ZSh.js +1 -0
- package/dist/runtime/chunks/SVGLoader-hRF0EwD-.js +1 -0
- package/dist/runtime/chunks/SkeletonUtils-DHlReJx3.js +1 -0
- package/dist/runtime/chunks/Sky-BrLN9Fk5.js +243 -0
- package/dist/runtime/chunks/audio-DbVNbf-r.js +1 -0
- package/dist/runtime/chunks/catalog-DL6sgPay.js +1 -0
- package/dist/runtime/chunks/easing-CXSz2e6P.js +1 -0
- package/dist/runtime/chunks/extrude-m04mghOS.js +1 -0
- package/dist/runtime/chunks/game-BoG2S6g4.js +20 -0
- package/dist/runtime/chunks/generators-OHhFCc2E.js +331 -0
- package/dist/runtime/chunks/materials-C2uffFEd.js +107 -0
- package/dist/runtime/chunks/meshGradient.glsl-BMatplLA.js +88 -0
- package/dist/runtime/chunks/meshopt_decoder.module-DXTYc6wn.js +1 -0
- package/dist/runtime/chunks/model-D-4xZz21.js +1 -0
- package/dist/runtime/chunks/params-DdApDOBw.js +1 -0
- package/dist/runtime/chunks/physicsHost-DPaVdM0R.js +1 -0
- package/dist/runtime/chunks/postfx-BpBXjLX3.js +1527 -0
- package/dist/runtime/chunks/postfx-i_J5Vf-l.js +1 -0
- package/dist/runtime/chunks/random-eeej60NW.js +1 -0
- package/dist/runtime/chunks/shaders-CmeJRio1.js +443 -0
- package/dist/runtime/chunks/svg-B3nZaQFD.js +1 -0
- package/dist/runtime/chunks/text-CmkU-b0C.js +2 -0
- package/dist/runtime/chunks/three.module-W4hp4qHb.js +4225 -0
- package/dist/runtime/chunks/toon-B5Jhf37V.js +6 -0
- package/dist/runtime/chunks/util-THUewKBk.js +1 -0
- package/dist/studio/assets/BufferGeometryUtils-wW9vV1l2.js +1 -0
- package/dist/studio/assets/EXRLoader-f8U8jnlr.js +1 -0
- package/dist/studio/assets/FontLoader-9sHudKzD.js +2 -0
- package/dist/studio/assets/GLTFLoader-C3C_3K62.js +1 -0
- package/dist/studio/assets/GroundedSkybox-BTqmv4fv.js +1 -0
- package/dist/studio/assets/HDRLoader-CkQyrTWY.js +5 -0
- package/dist/studio/assets/OrbitControls-fcOgB96a.js +1 -0
- package/dist/studio/assets/RectAreaLightUniformsLib-CZHWO9xf.js +1 -0
- package/dist/studio/assets/RoomEnvironment-BsISzuCp.js +1 -0
- package/dist/studio/assets/SVGLoader-BIkQDT66.js +1 -0
- package/dist/studio/assets/SkeletonUtils-CG5akqME.js +1 -0
- package/dist/studio/assets/Sky-C282PFL1.js +243 -0
- package/dist/studio/assets/audio-JD1kyX0A.js +1 -0
- package/dist/studio/assets/camera-BhKdE9ej.js +2 -0
- package/dist/studio/assets/editor-BgY_RoRd.js +1 -0
- package/dist/studio/assets/extrude-CnayHczh.js +1 -0
- package/dist/studio/assets/game-Dv5s4eMN.js +19 -0
- package/dist/studio/assets/generators-DVX3bAxe.js +331 -0
- package/dist/studio/assets/index-BQT0otii.css +1 -0
- package/dist/studio/assets/index-Dh-2Y34U.js +479 -0
- package/dist/studio/assets/meshopt_decoder.module-DXTYc6wn.js +1 -0
- package/dist/studio/assets/meshoptimizer-BCSwHBL3.js +1 -0
- package/dist/studio/assets/model-XZSP52pV.js +2 -0
- package/dist/studio/assets/physicsHost-C84FddIe.js +1 -0
- package/dist/studio/assets/postfx-BWWXb8i8.js +1527 -0
- package/dist/studio/assets/runtime-k_MFerbJ.js +572 -0
- package/dist/studio/assets/shaders-BEznGIct.js +443 -0
- package/dist/studio/assets/svg-DT8kx37i.js +2 -0
- package/dist/studio/assets/text-5DsJJHcj.js +3 -0
- package/dist/studio/assets/three.module-ByMn_ZTv.js +4225 -0
- package/dist/studio/index.html +16 -0
- package/library/LICENSES.md +77 -0
- package/library/fonts/LICENSES.md +42 -0
- package/library/fonts/anton.typeface.json +1 -0
- package/library/fonts/bebas-neue.typeface.json +1 -0
- package/library/fonts/display.typeface.json +1 -0
- package/library/fonts/inter-black.typeface.json +1 -0
- package/library/fonts/lobster.typeface.json +1 -0
- package/library/fonts/mono.typeface.json +1 -0
- package/library/fonts/montserrat-extrabold.typeface.json +1 -0
- package/library/fonts/pacifico.typeface.json +1 -0
- package/library/fonts/sans-bold.typeface.json +1 -0
- package/library/fonts/sans.typeface.json +1 -0
- package/library/fonts/serif-bold.typeface.json +1 -0
- package/library/fonts/serif.typeface.json +1 -0
- package/library/fonts/space-grotesk-bold.typeface.json +1 -0
- package/library/hdri/beach.hdr +0 -0
- package/library/hdri/beach.jpg +0 -0
- package/library/hdri/city.hdr +0 -0
- package/library/hdri/city.jpg +0 -0
- package/library/hdri/forest.hdr +0 -0
- package/library/hdri/forest.jpg +0 -0
- package/library/hdri/night-city.hdr +0 -0
- package/library/hdri/night-city.jpg +0 -0
- package/library/hdri/night.hdr +0 -0
- package/library/hdri/night.jpg +0 -0
- package/library/hdri/sky.hdr +0 -0
- package/library/hdri/sky.jpg +0 -0
- package/library/hdri/softbox.hdr +0 -0
- package/library/hdri/softbox.jpg +0 -0
- package/library/hdri/studio.hdr +0 -0
- package/library/hdri/studio.jpg +0 -0
- package/library/hdri/sunset.hdr +0 -0
- package/library/hdri/sunset.jpg +0 -0
- package/library/hdri/warehouse.hdr +0 -0
- package/library/hdri/warehouse.jpg +0 -0
- package/library/index.json +5510 -0
- package/library/models/animals/fish.glb +0 -0
- package/library/models/animals/fox.glb +0 -0
- package/library/models/buildings/castle.glb +0 -0
- package/library/models/buildings/house.glb +0 -0
- package/library/models/buildings/market.glb +0 -0
- package/library/models/buildings/tavern.glb +0 -0
- package/library/models/buildings/tower.glb +0 -0
- package/library/models/buildings/windmill.glb +0 -0
- package/library/models/characters/barbarian.glb +0 -0
- package/library/models/characters/knight.glb +0 -0
- package/library/models/characters/mage.glb +0 -0
- package/library/models/characters/mini-soldier.glb +0 -0
- package/library/models/characters/platformer-hero.glb +0 -0
- package/library/models/characters/robot.glb +0 -0
- package/library/models/characters/rogue.glb +0 -0
- package/library/models/characters/skeleton.glb +0 -0
- package/library/models/city/building-a.glb +0 -0
- package/library/models/city/building-b.glb +0 -0
- package/library/models/city/building-tall.glb +0 -0
- package/library/models/city/fire-hydrant.glb +0 -0
- package/library/models/city/road-corner.glb +0 -0
- package/library/models/city/road-crossing.glb +0 -0
- package/library/models/city/road-junction.glb +0 -0
- package/library/models/city/road-straight.glb +0 -0
- package/library/models/city/streetlight.glb +0 -0
- package/library/models/city/suburban-house.glb +0 -0
- package/library/models/city/traffic-light.glb +0 -0
- package/library/models/city/water-tower.glb +0 -0
- package/library/models/food/apple.glb +0 -0
- package/library/models/food/avocado.glb +0 -0
- package/library/models/food/baguette.glb +0 -0
- package/library/models/food/bread-loaf.glb +0 -0
- package/library/models/food/burger.glb +0 -0
- package/library/models/food/carrot.glb +0 -0
- package/library/models/food/cheese.glb +0 -0
- package/library/models/food/cookie.glb +0 -0
- package/library/models/food/croissant.glb +0 -0
- package/library/models/food/cupcake.glb +0 -0
- package/library/models/food/dinner-plate.glb +0 -0
- package/library/models/food/donut.glb +0 -0
- package/library/models/food/ketchup.glb +0 -0
- package/library/models/food/mug.glb +0 -0
- package/library/models/food/pain-au-chocolat.glb +0 -0
- package/library/models/food/stew.glb +0 -0
- package/library/models/food/tomato.glb +0 -0
- package/library/models/food/veggie-burger.glb +0 -0
- package/library/models/nature/bush.glb +0 -0
- package/library/models/nature/cactus.glb +0 -0
- package/library/models/nature/cloud.glb +0 -0
- package/library/models/nature/fir-tree.glb +0 -0
- package/library/models/nature/forest-patch.glb +0 -0
- package/library/models/nature/grass-small.glb +0 -0
- package/library/models/nature/grass.glb +0 -0
- package/library/models/nature/hex-grass.glb +0 -0
- package/library/models/nature/hex-water.glb +0 -0
- package/library/models/nature/hills.glb +0 -0
- package/library/models/nature/mountain.glb +0 -0
- package/library/models/nature/pine-autumn.glb +0 -0
- package/library/models/nature/pine-tree.glb +0 -0
- package/library/models/nature/pumpkin.glb +0 -0
- package/library/models/nature/rock-flat.glb +0 -0
- package/library/models/nature/rock.glb +0 -0
- package/library/models/nature/tree-dead.glb +0 -0
- package/library/models/nature/tree-slim.glb +0 -0
- package/library/models/nature/trees-cluster.glb +0 -0
- package/library/models/nature/waterlily.glb +0 -0
- package/library/models/platformer/blaster.glb +0 -0
- package/library/models/platformer/block-coin.glb +0 -0
- package/library/models/platformer/brick.glb +0 -0
- package/library/models/platformer/coin.glb +0 -0
- package/library/models/platformer/enemy-flying.glb +0 -0
- package/library/models/platformer/flag.glb +0 -0
- package/library/models/platformer/platform-falling.glb +0 -0
- package/library/models/platformer/platform-grass-round.glb +0 -0
- package/library/models/platformer/platform-large.glb +0 -0
- package/library/models/platformer/platform-medium.glb +0 -0
- package/library/models/platformer/platform.glb +0 -0
- package/library/models/platformer/target.glb +0 -0
- package/library/models/platformer/track-corner.glb +0 -0
- package/library/models/platformer/track-straight.glb +0 -0
- package/library/models/platformer/wall-low.glb +0 -0
- package/library/models/products/boombox.glb +0 -0
- package/library/models/products/iridescent-lamp.glb +0 -0
- package/library/models/products/lantern.glb +0 -0
- package/library/models/products/lounge-chair.glb +0 -0
- package/library/models/products/sneaker.glb +0 -0
- package/library/models/products/velvet-sofa.glb +0 -0
- package/library/models/products/water-bottle.glb +0 -0
- package/library/models/props/alarm-clock.glb +0 -0
- package/library/models/props/armchair.glb +0 -0
- package/library/models/props/barrel.glb +0 -0
- package/library/models/props/bench.glb +0 -0
- package/library/models/props/brass-vase.glb +0 -0
- package/library/models/props/chest.glb +0 -0
- package/library/models/props/coffee-table.glb +0 -0
- package/library/models/props/coin-stack.glb +0 -0
- package/library/models/props/coin.glb +0 -0
- package/library/models/props/couch.glb +0 -0
- package/library/models/props/crate.glb +0 -0
- package/library/models/props/flag.glb +0 -0
- package/library/models/props/gravestone.glb +0 -0
- package/library/models/props/key.glb +0 -0
- package/library/models/props/lamp.glb +0 -0
- package/library/models/props/lantern.glb +0 -0
- package/library/models/props/marble-bust.glb +0 -0
- package/library/models/props/modern-armchair.glb +0 -0
- package/library/models/props/potted-succulent.glb +0 -0
- package/library/models/props/rubber-duck.glb +0 -0
- package/library/models/props/shield.glb +0 -0
- package/library/models/props/sword-shield.glb +0 -0
- package/library/models/props/sword.glb +0 -0
- package/library/models/props/table.glb +0 -0
- package/library/models/props/tent.glb +0 -0
- package/library/models/props/torch.glb +0 -0
- package/library/models/props/trophy.glb +0 -0
- package/library/models/space/base-module.glb +0 -0
- package/library/models/space/lander.glb +0 -0
- package/library/models/space/landing-pad.glb +0 -0
- package/library/models/space/rocks.glb +0 -0
- package/library/models/space/solar-panel.glb +0 -0
- package/library/models/space/space-truck.glb +0 -0
- package/library/models/space/wind-turbine.glb +0 -0
- package/library/models/vehicles/car.glb +0 -0
- package/library/models/vehicles/hatchback.glb +0 -0
- package/library/models/vehicles/motorcycle.glb +0 -0
- package/library/models/vehicles/police-car.glb +0 -0
- package/library/models/vehicles/taxi.glb +0 -0
- package/library/models/vehicles/truck.glb +0 -0
- package/library/sources.json +2856 -0
- package/library/textures/brick-color.jpg +0 -0
- package/library/textures/brick-normal.jpg +0 -0
- package/library/textures/brick-roughness.jpg +0 -0
- package/library/textures/concrete-color.jpg +0 -0
- package/library/textures/concrete-normal.jpg +0 -0
- package/library/textures/concrete-roughness.jpg +0 -0
- package/library/textures/fabric-color.jpg +0 -0
- package/library/textures/fabric-normal.jpg +0 -0
- package/library/textures/fabric-roughness.jpg +0 -0
- package/library/textures/grass-ground-color.jpg +0 -0
- package/library/textures/grass-ground-normal.jpg +0 -0
- package/library/textures/grass-ground-roughness.jpg +0 -0
- package/library/textures/rusty-metal-color.jpg +0 -0
- package/library/textures/rusty-metal-normal.jpg +0 -0
- package/library/textures/rusty-metal-roughness.jpg +0 -0
- package/library/textures/wood-planks-color.jpg +0 -0
- package/library/textures/wood-planks-normal.jpg +0 -0
- package/library/textures/wood-planks-roughness.jpg +0 -0
- package/package.json +67 -4
- package/plugin/.claude-plugin/plugin.json +19 -0
- package/plugin/skills/agent3d-assets/SKILL.md +140 -0
- package/plugin/skills/agent3d-assets/references/sources.md +33 -0
- package/plugin/skills/agent3d-create/SKILL.md +141 -0
- package/plugin/skills/agent3d-create/references/art-direction.md +144 -0
- package/plugin/skills/agent3d-create/references/recipes.md +1357 -0
- package/plugin/skills/agent3d-edit/SKILL.md +121 -0
- package/plugin/skills/agent3d-edit/references/patch-ops.md +278 -0
- package/plugin/skills/agent3d-game/SKILL.md +111 -0
- package/plugin/skills/agent3d-game/references/game-patterns.md +262 -0
- package/plugin/skills/agent3d-game/references/script-api.md +211 -0
- package/plugin/skills/agent3d-publish/SKILL.md +161 -0
- package/plugin/skills/agent3d-publish/references/integrations.md +221 -0
- package/templates/banner-aurora-night/README.md +15 -0
- package/templates/banner-aurora-night/agent3d.json +8 -0
- package/templates/banner-aurora-night/preview.png +0 -0
- package/templates/banner-aurora-night/scene.json +327 -0
- package/templates/banner-aurora-night/template.json +24 -0
- package/templates/banner-data-bars/README.md +15 -0
- package/templates/banner-data-bars/agent3d.json +8 -0
- package/templates/banner-data-bars/preview.png +0 -0
- package/templates/banner-data-bars/scene.json +222 -0
- package/templates/banner-data-bars/template.json +25 -0
- package/templates/banner-floating-shapes/README.md +15 -0
- package/templates/banner-floating-shapes/agent3d.json +8 -0
- package/templates/banner-floating-shapes/preview.png +0 -0
- package/templates/banner-floating-shapes/scene.json +703 -0
- package/templates/banner-floating-shapes/template.json +24 -0
- package/templates/banner-gradient-blob/README.md +16 -0
- package/templates/banner-gradient-blob/agent3d.json +8 -0
- package/templates/banner-gradient-blob/preview.png +0 -0
- package/templates/banner-gradient-blob/scene.json +330 -0
- package/templates/banner-gradient-blob/template.json +21 -0
- package/templates/banner-liquid-chrome/README.md +16 -0
- package/templates/banner-liquid-chrome/agent3d.json +8 -0
- package/templates/banner-liquid-chrome/preview.png +0 -0
- package/templates/banner-liquid-chrome/scene.json +290 -0
- package/templates/banner-liquid-chrome/template.json +24 -0
- package/templates/banner-logo-extrude/README.md +24 -0
- package/templates/banner-logo-extrude/agent3d.json +8 -0
- package/templates/banner-logo-extrude/assets/logo.svg +6 -0
- package/templates/banner-logo-extrude/assets/manifest.json +13 -0
- package/templates/banner-logo-extrude/preview.png +0 -0
- package/templates/banner-logo-extrude/scene.json +332 -0
- package/templates/banner-logo-extrude/template.json +22 -0
- package/templates/banner-neon-title/README.md +18 -0
- package/templates/banner-neon-title/agent3d.json +8 -0
- package/templates/banner-neon-title/preview.png +0 -0
- package/templates/banner-neon-title/scene.json +494 -0
- package/templates/banner-neon-title/template.json +25 -0
- package/templates/banner-wave-grid/README.md +18 -0
- package/templates/banner-wave-grid/agent3d.json +8 -0
- package/templates/banner-wave-grid/preview.png +0 -0
- package/templates/banner-wave-grid/scene.json +217 -0
- package/templates/banner-wave-grid/template.json +23 -0
- package/templates/card-hover-3d/README.md +16 -0
- package/templates/card-hover-3d/agent3d.json +8 -0
- package/templates/card-hover-3d/preview.png +0 -0
- package/templates/card-hover-3d/scene.json +359 -0
- package/templates/card-hover-3d/template.json +21 -0
- package/templates/card-product-tilt/README.md +14 -0
- package/templates/card-product-tilt/agent3d.json +8 -0
- package/templates/card-product-tilt/preview.png +0 -0
- package/templates/card-product-tilt/scene.json +296 -0
- package/templates/card-product-tilt/template.json +23 -0
- package/templates/character-mascot-hero/README.md +19 -0
- package/templates/character-mascot-hero/agent3d.json +8 -0
- package/templates/character-mascot-hero/preview.png +0 -0
- package/templates/character-mascot-hero/scene.json +512 -0
- package/templates/character-mascot-hero/template.json +8 -0
- package/templates/character-showcase/README.md +27 -0
- package/templates/character-showcase/agent3d.json +8 -0
- package/templates/character-showcase/preview.png +0 -0
- package/templates/character-showcase/scene.json +440 -0
- package/templates/character-showcase/template.json +24 -0
- package/templates/diorama-city/README.md +21 -0
- package/templates/diorama-city/agent3d.json +8 -0
- package/templates/diorama-city/preview.png +0 -0
- package/templates/diorama-city/scene.json +432 -0
- package/templates/diorama-city/template.json +21 -0
- package/templates/game-basket/README.md +25 -0
- package/templates/game-basket/agent3d.json +8 -0
- package/templates/game-basket/preview.png +0 -0
- package/templates/game-basket/scene.json +640 -0
- package/templates/game-basket/scripts/basket.js +176 -0
- package/templates/game-basket/template.json +8 -0
- package/templates/game-coin-collector/README.md +28 -0
- package/templates/game-coin-collector/agent3d.json +8 -0
- package/templates/game-coin-collector/preview.png +0 -0
- package/templates/game-coin-collector/scene.json +900 -0
- package/templates/game-coin-collector/scripts/collector.js +210 -0
- package/templates/game-coin-collector/template.json +19 -0
- package/templates/game-maze/README.md +24 -0
- package/templates/game-maze/agent3d.json +8 -0
- package/templates/game-maze/preview.png +0 -0
- package/templates/game-maze/scene.json +315 -0
- package/templates/game-maze/scripts/maze.js +168 -0
- package/templates/game-maze/template.json +18 -0
- package/templates/game-physics-playground/README.md +30 -0
- package/templates/game-physics-playground/agent3d.json +8 -0
- package/templates/game-physics-playground/preview.png +0 -0
- package/templates/game-physics-playground/scene.json +1712 -0
- package/templates/game-physics-playground/scripts/playground.js +151 -0
- package/templates/game-physics-playground/template.json +19 -0
- package/templates/game-platformer/README.md +26 -0
- package/templates/game-platformer/agent3d.json +8 -0
- package/templates/game-platformer/preview.png +0 -0
- package/templates/game-platformer/scene.json +1063 -0
- package/templates/game-platformer/scripts/platformer.js +222 -0
- package/templates/game-platformer/template.json +8 -0
- package/templates/game-runner/README.md +30 -0
- package/templates/game-runner/agent3d.json +8 -0
- package/templates/game-runner/preview.png +0 -0
- package/templates/game-runner/scene.json +1317 -0
- package/templates/game-runner/scripts/runner.js +263 -0
- package/templates/game-runner/template.json +18 -0
- package/templates/game-tap-targets/README.md +21 -0
- package/templates/game-tap-targets/agent3d.json +8 -0
- package/templates/game-tap-targets/preview.png +0 -0
- package/templates/game-tap-targets/scene.json +924 -0
- package/templates/game-tap-targets/scripts/targets.js +159 -0
- package/templates/game-tap-targets/template.json +19 -0
- package/templates/hero-floating-island/README.md +18 -0
- package/templates/hero-floating-island/agent3d.json +8 -0
- package/templates/hero-floating-island/preview.png +0 -0
- package/templates/hero-floating-island/scene.json +658 -0
- package/templates/hero-floating-island/template.json +8 -0
- package/templates/hero-perfume-luxury/README.md +18 -0
- package/templates/hero-perfume-luxury/agent3d.json +8 -0
- package/templates/hero-perfume-luxury/preview.png +0 -0
- package/templates/hero-perfume-luxury/scene.json +529 -0
- package/templates/hero-perfume-luxury/template.json +27 -0
- package/templates/hero-product-turntable/README.md +16 -0
- package/templates/hero-product-turntable/agent3d.json +8 -0
- package/templates/hero-product-turntable/preview.png +0 -0
- package/templates/hero-product-turntable/scene.json +225 -0
- package/templates/hero-product-turntable/template.json +21 -0
- package/templates/hero-saas-globe/README.md +16 -0
- package/templates/hero-saas-globe/agent3d.json +8 -0
- package/templates/hero-saas-globe/preview.png +0 -0
- package/templates/hero-saas-globe/scene.json +318 -0
- package/templates/hero-saas-globe/template.json +24 -0
- package/templates/hero-scroll-story/README.md +26 -0
- package/templates/hero-scroll-story/agent3d.json +8 -0
- package/templates/hero-scroll-story/preview.png +0 -0
- package/templates/hero-scroll-story/scene.json +642 -0
- package/templates/hero-scroll-story/template.json +22 -0
- package/templates/hero-sneaker-showcase/README.md +19 -0
- package/templates/hero-sneaker-showcase/agent3d.json +8 -0
- package/templates/hero-sneaker-showcase/preview.png +0 -0
- package/templates/hero-sneaker-showcase/scene.json +523 -0
- package/templates/hero-sneaker-showcase/template.json +23 -0
- package/templates/hero-space-planet/README.md +17 -0
- package/templates/hero-space-planet/agent3d.json +8 -0
- package/templates/hero-space-planet/preview.png +0 -0
- package/templates/hero-space-planet/scene.json +330 -0
- package/templates/hero-space-planet/template.json +21 -0
- package/templates/landscape-island/README.md +21 -0
- package/templates/landscape-island/agent3d.json +8 -0
- package/templates/landscape-island/preview.png +0 -0
- package/templates/landscape-island/scene.json +716 -0
- package/templates/landscape-island/template.json +24 -0
- package/templates/landscape-night-galaxy/README.md +25 -0
- package/templates/landscape-night-galaxy/agent3d.json +8 -0
- package/templates/landscape-night-galaxy/preview.png +0 -0
- package/templates/landscape-night-galaxy/scene.json +403 -0
- package/templates/landscape-night-galaxy/template.json +8 -0
- package/templates/landscape-valley-sunset/README.md +20 -0
- package/templates/landscape-valley-sunset/agent3d.json +8 -0
- package/templates/landscape-valley-sunset/preview.png +0 -0
- package/templates/landscape-valley-sunset/scene.json +265 -0
- package/templates/landscape-valley-sunset/template.json +22 -0
- package/templates/scene-cozy-room/README.md +21 -0
- package/templates/scene-cozy-room/agent3d.json +8 -0
- package/templates/scene-cozy-room/preview.png +0 -0
- package/templates/scene-cozy-room/scene.json +728 -0
- package/templates/scene-cozy-room/template.json +8 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"id": "banner-wave-grid",
|
|
4
|
+
"title": "Wave grid banner",
|
|
5
|
+
"ariaLabel": "Animated banner: a rippling grid of glowing dots under the headline {data.headline|Real-time insights}",
|
|
6
|
+
"seed": 5,
|
|
7
|
+
"target": {
|
|
8
|
+
"kind": "banner",
|
|
9
|
+
"aspect": "4:1",
|
|
10
|
+
"budgetKb": 250,
|
|
11
|
+
"reducedMotion": "static",
|
|
12
|
+
"posterTime": 2,
|
|
13
|
+
"maxDpr": 2
|
|
14
|
+
},
|
|
15
|
+
"camera": {
|
|
16
|
+
"type": "perspective",
|
|
17
|
+
"fov": 32,
|
|
18
|
+
"position": [
|
|
19
|
+
0,
|
|
20
|
+
3.4,
|
|
21
|
+
11
|
|
22
|
+
],
|
|
23
|
+
"target": [
|
|
24
|
+
0,
|
|
25
|
+
0.3,
|
|
26
|
+
0
|
|
27
|
+
],
|
|
28
|
+
"controls": "parallax",
|
|
29
|
+
"parallax": {
|
|
30
|
+
"strength": 0.6,
|
|
31
|
+
"smoothing": 0.94
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"environment": {
|
|
35
|
+
"background": {
|
|
36
|
+
"radial": [
|
|
37
|
+
"#0d1b3d",
|
|
38
|
+
"#040814"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"lighting": "night",
|
|
42
|
+
"fog": {
|
|
43
|
+
"color": "#050a18",
|
|
44
|
+
"near": 10,
|
|
45
|
+
"far": 26
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"lights": [
|
|
49
|
+
{
|
|
50
|
+
"id": "ambient",
|
|
51
|
+
"type": "ambient",
|
|
52
|
+
"intensity": 0.4
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "key",
|
|
56
|
+
"type": "directional",
|
|
57
|
+
"position": [
|
|
58
|
+
2,
|
|
59
|
+
5,
|
|
60
|
+
6
|
|
61
|
+
],
|
|
62
|
+
"intensity": 1
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"objects": [
|
|
66
|
+
{
|
|
67
|
+
"id": "grid",
|
|
68
|
+
"kind": "generator",
|
|
69
|
+
"generator": "waveGrid",
|
|
70
|
+
"params": {
|
|
71
|
+
"columns": 170,
|
|
72
|
+
"rows": 48,
|
|
73
|
+
"spacing": 0.24,
|
|
74
|
+
"amplitude": 0.5,
|
|
75
|
+
"speed": 0.8,
|
|
76
|
+
"shape": "dots",
|
|
77
|
+
"colors": [
|
|
78
|
+
"#22d3ee",
|
|
79
|
+
"#6366f1",
|
|
80
|
+
"#e879f9"
|
|
81
|
+
],
|
|
82
|
+
"pointerRipple": true
|
|
83
|
+
},
|
|
84
|
+
"position": [
|
|
85
|
+
0,
|
|
86
|
+
-2.1,
|
|
87
|
+
-4
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"id": "headline",
|
|
92
|
+
"kind": "text",
|
|
93
|
+
"text": "{data.headline|Real-time insights}",
|
|
94
|
+
"font": "space-grotesk-bold",
|
|
95
|
+
"size": 0.7,
|
|
96
|
+
"depth": 0,
|
|
97
|
+
"bevel": 0,
|
|
98
|
+
"letterSpacing": -0.01,
|
|
99
|
+
"position": [
|
|
100
|
+
0,
|
|
101
|
+
1.55,
|
|
102
|
+
1
|
|
103
|
+
],
|
|
104
|
+
"material": {
|
|
105
|
+
"type": "basic",
|
|
106
|
+
"color": "#c9e6ff"
|
|
107
|
+
},
|
|
108
|
+
"behaviours": [],
|
|
109
|
+
"reveal": {
|
|
110
|
+
"effect": "rise",
|
|
111
|
+
"stagger": 0.035,
|
|
112
|
+
"duration": 0.7,
|
|
113
|
+
"delay": 0.3
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "kicker",
|
|
118
|
+
"kind": "text",
|
|
119
|
+
"text": "{data.kicker|LIVE DATA · 24/7}",
|
|
120
|
+
"font": "mono",
|
|
121
|
+
"size": 0.17,
|
|
122
|
+
"depth": 0,
|
|
123
|
+
"letterSpacing": 0.14,
|
|
124
|
+
"position": [
|
|
125
|
+
0,
|
|
126
|
+
2.45,
|
|
127
|
+
1
|
|
128
|
+
],
|
|
129
|
+
"material": {
|
|
130
|
+
"type": "basic",
|
|
131
|
+
"color": "#67e8f9"
|
|
132
|
+
},
|
|
133
|
+
"behaviours": [
|
|
134
|
+
{
|
|
135
|
+
"type": "appear",
|
|
136
|
+
"effect": "fade",
|
|
137
|
+
"duration": 0.8,
|
|
138
|
+
"delay": 0.1
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"type": "blink",
|
|
142
|
+
"interval": 3,
|
|
143
|
+
"duration": 0.08
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "motes",
|
|
149
|
+
"kind": "particles",
|
|
150
|
+
"preset": "dust",
|
|
151
|
+
"count": 120,
|
|
152
|
+
"area": [
|
|
153
|
+
30,
|
|
154
|
+
5,
|
|
155
|
+
8
|
|
156
|
+
],
|
|
157
|
+
"color": "#7dd3fc",
|
|
158
|
+
"size": 0.03,
|
|
159
|
+
"opacity": 0.6
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"timeline": {
|
|
163
|
+
"duration": 8,
|
|
164
|
+
"loop": true,
|
|
165
|
+
"tracks": [
|
|
166
|
+
{
|
|
167
|
+
"target": "grid.rotation.y",
|
|
168
|
+
"keys": [
|
|
169
|
+
[
|
|
170
|
+
0,
|
|
171
|
+
-3
|
|
172
|
+
],
|
|
173
|
+
[
|
|
174
|
+
4,
|
|
175
|
+
3
|
|
176
|
+
],
|
|
177
|
+
[
|
|
178
|
+
8,
|
|
179
|
+
-3
|
|
180
|
+
]
|
|
181
|
+
],
|
|
182
|
+
"ease": "inOutSine"
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
"postfx": [
|
|
187
|
+
{
|
|
188
|
+
"type": "bloom",
|
|
189
|
+
"strength": 1.0,
|
|
190
|
+
"radius": 0.55,
|
|
191
|
+
"threshold": 0.9,
|
|
192
|
+
"smoothing": 0.3
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"type": "grading",
|
|
196
|
+
"look": "cool",
|
|
197
|
+
"intensity": 0.5,
|
|
198
|
+
"contrast": 1.1
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"type": "chromatic",
|
|
202
|
+
"amount": 0.001
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"type": "vignette",
|
|
206
|
+
"darkness": 1
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"type": "taa",
|
|
210
|
+
"samples": 8
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"data": {
|
|
214
|
+
"headline": "Real-time insights",
|
|
215
|
+
"kicker": "LIVE DATA · 24/7"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "banner-wave-grid",
|
|
3
|
+
"title": "Wave grid banner",
|
|
4
|
+
"description": "Dark tech / data 4:1 banner: a field of ~8,000 dots in a cyan-indigo-pink ramp undulating like a signal and rippling under the pointer, beneath a crisp Space Grotesk headline revealed letter by letter and a blinking mono kicker (data-bound).",
|
|
5
|
+
"kind": "banner",
|
|
6
|
+
"tags": [
|
|
7
|
+
"banner",
|
|
8
|
+
"tech",
|
|
9
|
+
"data",
|
|
10
|
+
"ai",
|
|
11
|
+
"saas",
|
|
12
|
+
"analytics",
|
|
13
|
+
"dots",
|
|
14
|
+
"wave",
|
|
15
|
+
"grid",
|
|
16
|
+
"signal",
|
|
17
|
+
"dark",
|
|
18
|
+
"pointer",
|
|
19
|
+
"reveal",
|
|
20
|
+
"data-bindings"
|
|
21
|
+
],
|
|
22
|
+
"aspect": "4:1"
|
|
23
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# 3D product card
|
|
2
|
+
|
|
3
|
+
A 4:5 card for product grids: a realistic PBR water bottle (`library:models/products/water-bottle.glb`) turning slowly above a glossy sage disc with a gold base trim and a soft contact shadow (`environment.contactShadows`), in front of a soft gradient backdrop circle with a thin halo, three small floating pebbles, studio HDRI reflections, a softbox light rig, a warm rim light, a pale radial background and the `product` look (AO, crisp grade, supersampled stills). On hover the product rig lifts, tilts toward the pointer and grows slightly. A flat name and price (data-bound) sit along the bottom; the product links to `{data.url}`.
|
|
4
|
+
|
|
5
|
+
## What to tweak
|
|
6
|
+
|
|
7
|
+
| Change | Where |
|
|
8
|
+
|---|---|
|
|
9
|
+
| Name / price / link | `data.name`, `data.price`, `data.url` (or `data-name`… on the embed); delete `objects#name` / `#price` to use an HTML overlay instead |
|
|
10
|
+
| Product | `objects#product.src` (any library model or `assets/<file>.glb`), `.fit` (largest dimension ≈ 1.55 for this frame) |
|
|
11
|
+
| Hover feel | `objects#productRig` behaviours: `hoverLift.height` / `.tilt`, `hoverScale.scale` |
|
|
12
|
+
| Idle spin | `objects#product` `rotate.speed` (deg/s; 0 = still) |
|
|
13
|
+
| Card colours | `environment.background.radial`, `objects#disc.material.color`, `objects#backdrop.material.gradient`, `objects#baseRing` (gold trim), shadow tint `environment.contactShadows.color` |
|
|
14
|
+
| Calmer card | remove `objects#backdrop`, `#halo`, `#pebbleA/B/C` (each is one draw call) |
|
|
15
|
+
|
|
16
|
+
Tone mapping is `neutral` so brand colours stay accurate. Many cards on one page: keep `target.lazy` (default) so off-screen cards don't render.
|
|
Binary file
|
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"id": "card-hover-3d",
|
|
4
|
+
"title": "3D product card",
|
|
5
|
+
"ariaLabel": "{data.name|Trail Flask} reusable bottle, {data.price|$34}: rotates gently and lifts when hovered",
|
|
6
|
+
"seed": 1,
|
|
7
|
+
"target": {
|
|
8
|
+
"kind": "card",
|
|
9
|
+
"aspect": "4:5",
|
|
10
|
+
"budgetKb": 800,
|
|
11
|
+
"reducedMotion": "static",
|
|
12
|
+
"posterTime": 1,
|
|
13
|
+
"maxDpr": 2,
|
|
14
|
+
"toneMapping": "neutral"
|
|
15
|
+
},
|
|
16
|
+
"camera": {
|
|
17
|
+
"type": "perspective",
|
|
18
|
+
"fov": 30,
|
|
19
|
+
"position": [
|
|
20
|
+
0,
|
|
21
|
+
1.35,
|
|
22
|
+
6.8
|
|
23
|
+
],
|
|
24
|
+
"target": [
|
|
25
|
+
0,
|
|
26
|
+
0.75,
|
|
27
|
+
0
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"environment": {
|
|
31
|
+
"background": {
|
|
32
|
+
"radial": [
|
|
33
|
+
"#f8f5ee",
|
|
34
|
+
"#dfeae2"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"lighting": {
|
|
38
|
+
"hdri": "library:hdri/studio.hdr",
|
|
39
|
+
"intensity": 0.9
|
|
40
|
+
},
|
|
41
|
+
"rig": {
|
|
42
|
+
"preset": "softbox",
|
|
43
|
+
"intensity": 0.8
|
|
44
|
+
},
|
|
45
|
+
"contactShadows": {
|
|
46
|
+
"opacity": 0.55,
|
|
47
|
+
"blur": 2.4,
|
|
48
|
+
"color": "#2d4a3e",
|
|
49
|
+
"y": 0.121,
|
|
50
|
+
"size": 2.4
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"lights": [
|
|
54
|
+
{
|
|
55
|
+
"id": "rim",
|
|
56
|
+
"type": "directional",
|
|
57
|
+
"position": [
|
|
58
|
+
-3,
|
|
59
|
+
3.5,
|
|
60
|
+
-4
|
|
61
|
+
],
|
|
62
|
+
"color": "#fff1dc",
|
|
63
|
+
"intensity": 1.8
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"objects": [
|
|
67
|
+
{
|
|
68
|
+
"id": "backdrop",
|
|
69
|
+
"kind": "mesh",
|
|
70
|
+
"geometry": {
|
|
71
|
+
"type": "circle",
|
|
72
|
+
"radius": 1.2,
|
|
73
|
+
"segments": 96
|
|
74
|
+
},
|
|
75
|
+
"position": [
|
|
76
|
+
0,
|
|
77
|
+
1.5,
|
|
78
|
+
-1.6
|
|
79
|
+
],
|
|
80
|
+
"material": {
|
|
81
|
+
"type": "gradient",
|
|
82
|
+
"gradient": [
|
|
83
|
+
"#e4efe7",
|
|
84
|
+
"#c7ddcf"
|
|
85
|
+
],
|
|
86
|
+
"roughness": 0.95
|
|
87
|
+
},
|
|
88
|
+
"receiveShadow": true,
|
|
89
|
+
"castShadow": false
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": "halo",
|
|
93
|
+
"kind": "mesh",
|
|
94
|
+
"geometry": {
|
|
95
|
+
"type": "torus",
|
|
96
|
+
"radius": 1.3,
|
|
97
|
+
"tube": 0.012,
|
|
98
|
+
"tubularSegments": 160,
|
|
99
|
+
"radialSegments": 8
|
|
100
|
+
},
|
|
101
|
+
"position": [
|
|
102
|
+
0,
|
|
103
|
+
1.5,
|
|
104
|
+
-1.58
|
|
105
|
+
],
|
|
106
|
+
"material": {
|
|
107
|
+
"type": "basic",
|
|
108
|
+
"color": "#ffffff",
|
|
109
|
+
"opacity": 0.85,
|
|
110
|
+
"transparent": true
|
|
111
|
+
},
|
|
112
|
+
"castShadow": false
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"id": "disc",
|
|
116
|
+
"kind": "mesh",
|
|
117
|
+
"geometry": {
|
|
118
|
+
"type": "cylinder",
|
|
119
|
+
"radiusTop": 1.05,
|
|
120
|
+
"radiusBottom": 1.1,
|
|
121
|
+
"height": 0.12,
|
|
122
|
+
"segments": 96
|
|
123
|
+
},
|
|
124
|
+
"position": [
|
|
125
|
+
0,
|
|
126
|
+
0.06,
|
|
127
|
+
0
|
|
128
|
+
],
|
|
129
|
+
"material": {
|
|
130
|
+
"type": "physical",
|
|
131
|
+
"color": "#cfe3d6",
|
|
132
|
+
"roughness": 0.35,
|
|
133
|
+
"clearcoat": 0.6
|
|
134
|
+
},
|
|
135
|
+
"receiveShadow": true,
|
|
136
|
+
"castShadow": false
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"id": "baseRing",
|
|
140
|
+
"kind": "mesh",
|
|
141
|
+
"geometry": {
|
|
142
|
+
"type": "torus",
|
|
143
|
+
"radius": 1.115,
|
|
144
|
+
"tube": 0.018,
|
|
145
|
+
"tubularSegments": 160,
|
|
146
|
+
"radialSegments": 8
|
|
147
|
+
},
|
|
148
|
+
"position": [
|
|
149
|
+
0,
|
|
150
|
+
0.02,
|
|
151
|
+
0
|
|
152
|
+
],
|
|
153
|
+
"rotation": [
|
|
154
|
+
90,
|
|
155
|
+
0,
|
|
156
|
+
0
|
|
157
|
+
],
|
|
158
|
+
"material": {
|
|
159
|
+
"preset": "gold",
|
|
160
|
+
"color": "#d9b77a"
|
|
161
|
+
},
|
|
162
|
+
"castShadow": false
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"id": "productRig",
|
|
166
|
+
"kind": "group",
|
|
167
|
+
"position": [
|
|
168
|
+
0,
|
|
169
|
+
0.3,
|
|
170
|
+
0
|
|
171
|
+
],
|
|
172
|
+
"behaviours": [
|
|
173
|
+
{
|
|
174
|
+
"type": "hoverLift",
|
|
175
|
+
"height": 0.25,
|
|
176
|
+
"tilt": 12
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"type": "hoverScale",
|
|
180
|
+
"scale": 1.06
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"type": "float",
|
|
184
|
+
"amplitude": 0.05,
|
|
185
|
+
"speed": 0.4
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"children": [
|
|
189
|
+
{
|
|
190
|
+
"id": "product",
|
|
191
|
+
"kind": "model",
|
|
192
|
+
"src": "library:models/products/water-bottle.glb",
|
|
193
|
+
"fit": 1.55,
|
|
194
|
+
"rotation": [
|
|
195
|
+
0,
|
|
196
|
+
0,
|
|
197
|
+
0
|
|
198
|
+
],
|
|
199
|
+
"castShadow": true,
|
|
200
|
+
"behaviours": [
|
|
201
|
+
{
|
|
202
|
+
"type": "rotate",
|
|
203
|
+
"speed": 18
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"href": "{data.url|#product}"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"id": "pebbleA",
|
|
212
|
+
"kind": "mesh",
|
|
213
|
+
"geometry": {
|
|
214
|
+
"type": "sphere",
|
|
215
|
+
"radius": 0.13,
|
|
216
|
+
"segments": 32
|
|
217
|
+
},
|
|
218
|
+
"position": [
|
|
219
|
+
-0.95,
|
|
220
|
+
0.8,
|
|
221
|
+
0.45
|
|
222
|
+
],
|
|
223
|
+
"material": {
|
|
224
|
+
"preset": "clay",
|
|
225
|
+
"color": "#f2c9a8"
|
|
226
|
+
},
|
|
227
|
+
"behaviours": [
|
|
228
|
+
{
|
|
229
|
+
"type": "float",
|
|
230
|
+
"amplitude": 0.08,
|
|
231
|
+
"speed": 0.5
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
"castShadow": false
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"id": "pebbleB",
|
|
238
|
+
"kind": "mesh",
|
|
239
|
+
"geometry": {
|
|
240
|
+
"type": "capsule",
|
|
241
|
+
"radius": 0.07,
|
|
242
|
+
"length": 0.22
|
|
243
|
+
},
|
|
244
|
+
"position": [
|
|
245
|
+
0.95,
|
|
246
|
+
1.75,
|
|
247
|
+
0.1
|
|
248
|
+
],
|
|
249
|
+
"rotation": [
|
|
250
|
+
0,
|
|
251
|
+
0,
|
|
252
|
+
35
|
|
253
|
+
],
|
|
254
|
+
"material": {
|
|
255
|
+
"preset": "clay",
|
|
256
|
+
"color": "#a9cdb8"
|
|
257
|
+
},
|
|
258
|
+
"behaviours": [
|
|
259
|
+
{
|
|
260
|
+
"type": "float",
|
|
261
|
+
"amplitude": 0.1,
|
|
262
|
+
"speed": 0.35
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"castShadow": false
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"id": "pebbleC",
|
|
269
|
+
"kind": "mesh",
|
|
270
|
+
"geometry": {
|
|
271
|
+
"type": "sphere",
|
|
272
|
+
"radius": 0.07,
|
|
273
|
+
"segments": 24
|
|
274
|
+
},
|
|
275
|
+
"position": [
|
|
276
|
+
0.9,
|
|
277
|
+
0.5,
|
|
278
|
+
0.7
|
|
279
|
+
],
|
|
280
|
+
"material": {
|
|
281
|
+
"preset": "pearl"
|
|
282
|
+
},
|
|
283
|
+
"behaviours": [
|
|
284
|
+
{
|
|
285
|
+
"type": "float",
|
|
286
|
+
"amplitude": 0.06,
|
|
287
|
+
"speed": 0.6
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
"castShadow": false
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"id": "name",
|
|
294
|
+
"kind": "text",
|
|
295
|
+
"text": "{data.name|Trail Flask}",
|
|
296
|
+
"font": "sans-bold",
|
|
297
|
+
"size": 0.14,
|
|
298
|
+
"depth": 0,
|
|
299
|
+
"align": "left",
|
|
300
|
+
"position": [
|
|
301
|
+
-1.05,
|
|
302
|
+
-0.55,
|
|
303
|
+
0.9
|
|
304
|
+
],
|
|
305
|
+
"material": {
|
|
306
|
+
"type": "basic",
|
|
307
|
+
"color": "#1f3a30"
|
|
308
|
+
},
|
|
309
|
+
"behaviours": [
|
|
310
|
+
{
|
|
311
|
+
"type": "appear",
|
|
312
|
+
"effect": "rise",
|
|
313
|
+
"duration": 0.7,
|
|
314
|
+
"delay": 0.2,
|
|
315
|
+
"ease": "outCubic"
|
|
316
|
+
}
|
|
317
|
+
]
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"id": "price",
|
|
321
|
+
"kind": "text",
|
|
322
|
+
"text": "{data.price|$34}",
|
|
323
|
+
"font": "sans-bold",
|
|
324
|
+
"size": 0.14,
|
|
325
|
+
"depth": 0,
|
|
326
|
+
"align": "right",
|
|
327
|
+
"position": [
|
|
328
|
+
1.05,
|
|
329
|
+
-0.55,
|
|
330
|
+
0.9
|
|
331
|
+
],
|
|
332
|
+
"material": {
|
|
333
|
+
"type": "basic",
|
|
334
|
+
"color": "#b8893e"
|
|
335
|
+
},
|
|
336
|
+
"behaviours": [
|
|
337
|
+
{
|
|
338
|
+
"type": "appear",
|
|
339
|
+
"effect": "rise",
|
|
340
|
+
"duration": 0.7,
|
|
341
|
+
"delay": 0.35,
|
|
342
|
+
"ease": "outCubic"
|
|
343
|
+
}
|
|
344
|
+
]
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
"data": {
|
|
348
|
+
"name": "Trail Flask",
|
|
349
|
+
"price": "$34",
|
|
350
|
+
"url": "#product"
|
|
351
|
+
},
|
|
352
|
+
"postfx": [
|
|
353
|
+
{
|
|
354
|
+
"type": "look",
|
|
355
|
+
"preset": "product",
|
|
356
|
+
"intensity": 0.8
|
|
357
|
+
}
|
|
358
|
+
]
|
|
359
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "card-hover-3d",
|
|
3
|
+
"title": "3D product card",
|
|
4
|
+
"description": "Clean product card (4:5): a PBR water bottle turning over a glossy sage disc with a soft contact shadow, softbox lighting and product look; it lifts, tilts toward the pointer and grows on hover, with a data-bound name, price and link \u2014 drop it into any product grid.",
|
|
5
|
+
"kind": "card",
|
|
6
|
+
"tags": [
|
|
7
|
+
"card",
|
|
8
|
+
"product",
|
|
9
|
+
"ecommerce",
|
|
10
|
+
"hover",
|
|
11
|
+
"bottle",
|
|
12
|
+
"studio",
|
|
13
|
+
"price",
|
|
14
|
+
"shop",
|
|
15
|
+
"grid",
|
|
16
|
+
"light",
|
|
17
|
+
"contact-shadows",
|
|
18
|
+
"data-bindings"
|
|
19
|
+
],
|
|
20
|
+
"aspect": "4:5"
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Product tilt card
|
|
2
|
+
|
|
3
|
+
A 4:5 product card: a thin clear-coated plate with an `iridescentFoil` face (the rainbow glare moves as the card tilts), a sun disc, and the library rubber duck **popping out of the card** (it sits 0.6 units in front and its head overflows the top edge). The whole `card` group has the `tilt` behaviour (leans toward the pointer anywhere over the canvas, lifts and grows), an entrance rise, and links to `{data.url}`. Clicking the duck bounces it; magic sparkles drift around.
|
|
4
|
+
|
|
5
|
+
## What to tweak
|
|
6
|
+
|
|
7
|
+
| Change | Where |
|
|
8
|
+
|---|---|
|
|
9
|
+
| Name / price / badge / link | `data.name`, `data.price`, `data.badge`, `data.url` (or `data-*` on the embed) |
|
|
10
|
+
| Product | `objects#duck.src` + `fit` (keep the top of the model above y ≈ 1.5 for the pop-out) |
|
|
11
|
+
| Card palette | `objects#face.material.uniforms.tint` (foil tint), `objects#window.material.color` (disc), `objects#plate.material.color` (rim), background radial |
|
|
12
|
+
| Tilt feel | `objects#card.behaviours[0]` (`maxAngle`, `lift`, `hoverOnly: true` to tilt only over the card) |
|
|
13
|
+
|
|
14
|
+
Reduced motion shows a still card (no tilt). Budget ≈ 375 KB of 400 (the duck model is 250 KB); a lighter product keeps it well under.
|
|
Binary file
|