# Threejs World Generation > Construye mundos Three.js deterministas, editables y de punto de vista libre desde texto o briefs. Úsalo para terreno cinematográfico, regiones semánticas, biomas procedurales, hitos y vuelos de cámara. Fuente: https://skillsagentes.com/skills/calesthio/openmontage/threejs-world-generation Markdown: https://skillsagentes.com/skills/calesthio/openmontage/threejs-world-generation.md Repositorio: https://github.com/calesthio/OpenMontage Autor: calesthio Licencia: AGPL-3.0 Actualizado: hace 9 días Coste de contexto: 112 tok instalada, 2k tok al activarse, 4k tok con todos los archivos del bundle Bundle: 4 archivos, 16 KB Permisos que pide: ninguno declarado ## Instalación Un skill son archivos markdown: los mismos archivos valen para cualquier agente y lo único que cambia es el directorio de destino, es decir la bandera `--agent`. Añade `-g` para instalarlo en todos los proyectos de la máquina. ```bash # Claude Code npx -y skills add calesthio/OpenMontage --skill threejs-world-generation --agent claude-code # Cursor npx -y skills add calesthio/OpenMontage --skill threejs-world-generation --agent cursor # Codex npx -y skills add calesthio/OpenMontage --skill threejs-world-generation --agent codex # Gemini CLI npx -y skills add calesthio/OpenMontage --skill threejs-world-generation --agent gemini # Windsurf npx -y skills add calesthio/OpenMontage --skill threejs-world-generation --agent windsurf # Cline npx -y skills add calesthio/OpenMontage --skill threejs-world-generation --agent cline ``` ## Qué hace - Construye mundos Three.js deterministas, editables y de punto de vista libre a partir de texto o de briefs estructurados - Obliga a elegir el nivel de fidelidad de forma explícita antes de empezar - Sigue un flujo de seis pasos: separar intención de finalización, planificar global, construir el terreno, inspeccionar por regiones, refinar en bucles acotados y componer sin sobrescribir - Cubre regiones semánticas, biomas procedurales, hitos explícitos, dispersión ambiental y vuelos de cámara - Integra la herramienta `threejs_world` de OpenMontage con HyperFrames, con puertas de calidad y diagnóstico del mundo ## Cuándo usarla - Terreno 3D cinematográfico, regiones semánticas o biomas procedurales - Hitos explícitos, dispersión ambiental o vuelos de cámara - Se pide un entorno 3D real en lugar de metraje 2D generado ## Cuándo no - Un único objeto 3D aislado - Una escena plana de parallax ## Qué la activa - "Genera un mundo 3D a partir de esta descripción" - "Créame un terreno cinematográfico con biomas" - "Haz un vuelo de cámara por este entorno" ## Antes de instalar - Necesita la herramienta `threejs_world` de OpenMontage; para mallas reales en lugar de primitivas, el skill complementario es `3d-asset-generation`. ## Archivos - SKILL.md — 8 KB - agents/openai.yaml — 265 B - references/world-spec.md — 4 KB - references/worldclaw-principles.md — 3 KB ## SKILL.md Reproducido tal cual desde calesthio/OpenMontage bajo AGPL-3.0. Esta sección es el documento original y está en inglés. # Three.js World Generation For production meshes and Blender assembly, also read `3d-asset-generation`. Three.js remains the semantic interactive/blockout renderer; Blender is the production renderer when the brief calls for dense reference-grade scenery. The production handoff must include target dimensions for imported assets, semantic scatter exclusion zones, terrain-following water/path geometry, landmark visibility policy, camera clearance, and global/regional/walk review frames. These are world-spec contracts, not manual Blender cleanup notes. Create a persistent scene graph, not a sequence of unrelated 2D shots. Preserve the user's explicit constraints, infer missing construction details separately, establish the global terrain first, and refine selected regions without disturbing the world-wide spatial contract. ## Choose the fidelity tier explicitly - `blockout`: procedural primitives, vertex colors, semantic/layout validation, fast iteration. Never call this production-quality, reference-grade, or visually equivalent to WorldClaw. - `production`: licensed local GLTF/GLB catalogs, a minimum eight-model palette across four semantic categories, three PBR terrain layers, asset provenance, walk-level repetition review, and no primitive landmark fallback. For a hero video or any reference showing populated textured environments, use `production`. If its catalog/material/provider requirements cannot be met, stop at preflight or the asset gate. Do not render a blockout as the final deliverable. ## Read first - Read [references/worldclaw-principles.md](references/worldclaw-principles.md) when planning or explaining the coarse-to-fine method. - Read [references/world-spec.md](references/world-spec.md) before authoring a `world_spec` or calling `threejs_world`. - Read `hyperframes-core`, `hyperframes-animation`, and `hyperframes-animation/adapters/three.md` before editing the emitted workspace. - Read `threejs-loaders`, `threejs-materials`, `threejs-textures`, `threejs-lighting`, and `threejs-postprocessing` for production-tier work. ## Route the request - Use the `animation` pipeline for design-led, explanatory, abstract, or music-led world films. - Use the `cinematic` pipeline for trailer-like mood, dramatic reveals, or source-plus-world edits. - Choose HyperFrames when the deliverable is the code-native Three.js world. Choose Blender for reference-grade hero rendering and FFmpeg only to package Blender's numbered frames and approved audio. Record that choice at proposal; do not silently switch after approval. - Keep this as a capability inside existing pipelines. Do not create a new pipeline merely because a scene is 3D. ## Workflow ### 1. Separate intent from completion Record two lists before planning: - `explicit_constraints`: only facts the user supplied. - `inferred_details`: scale, region coverage, terrain operators, densities, palette refinements, and camera details added to make the world executable. Never smuggle an inferred landmark, biome, or story beat into the explicit list. ### 2. Plan globally Author one shared `world_spec` containing: - world scale, terrain resolution, elevation range, and seed; - semantic regions with normalized centers, radii, landform operators, palette, and scatter recipes; - atmosphere and lighting shared across all regions; - explicit landmarks with stable IDs and world-space placement; - a complete camera path with time, position, target, and field of view. Prefer 3-7 regions. Each region must contribute a distinct silhouette, surface read, or functional role. ### 3. Build the terrain foundation For production, first call `threejs_asset_catalog` to install rights-safe catalogs under `projects//assets/3d/catalogs//`. Record source, license, archive hash, model inventory, and every selected model in the asset manifest. Then call `threejs_world` with `quality_tier: "production"` and the installed catalog paths. ```python from tools.graphics.threejs_world import ThreeJSWorld result = ThreeJSWorld().execute({ "operation": "build", "world_spec": world_spec, "output_path": "projects//hyperframes", "duration_seconds": 60, "render_mode": "cinematic", "quality_tier": "production", "asset_catalog_paths": ["projects//assets/3d/catalogs/kenney-nature-kit"], }) ``` Treat `world.json`, `world-spec.js`, `world-runtime.js`, and `world-report.json` as editable assets. Do not flatten them into a video until the assets gate is approved. ### 4. Inspect regionally Build a second pass with `render_mode: "semantic"` or `"wireframe"` when spatial problems are hard to see in the cinematic material pass. Inspect snapshots from global, regional, and walk-level viewpoints. Maintain an issue queue with stable subjects: - terrain transition or silhouette; - landmark scale, pose, or contact; - scatter density, slope rejection, or repetition; - material contrast and atmosphere; - camera clearance, clipping, or weak framing. Fix only the affected region or object when possible. Preserve the seed, region IDs, camera times, and unrelated parameters. ### 5. Refine with bounded loops Run at most three render-guided refinement rounds: 1. build the workspace; 2. run the unified HyperFrames `check` gate and snapshot representative times; 3. inspect frames and update the issue queue; 4. change the narrowest relevant spec fields; 5. rebuild with the same seed and compare. Stop when no substantial issue remains or the iteration budget is reached. Report residual limitations rather than disguising them with overlays. ### 6. Compose without overwriting For browser-native delivery, set `render_runtime: "hyperframes"` and `composition_mode: "atelier"`; `video_compose` must preserve the authored workspace. For reference-grade video, render a Blender PNG sequence with `resume: true`, then set `render_runtime: "ffmpeg"` for packaging. Preserve the world spec and `.blend` as the editable source of truth. ## Quality gates - Terrain is continuous and region boundaries blend without obvious seams. - Every landmark touches its support surface and remains inside world bounds. - Scatter respects region affinity, slope limits, and deterministic seed behavior. - Global, regional, and walk-level frames all read as the same continuous world. - Camera paths remain above terrain, avoid clipping, and provide at least one scale-establishing reveal. - World source remains editable after render: regions, landmarks, camera keys, and palette have stable IDs or fields. - HyperFrames `check` and post-render review pass before delivery. Use the legacy `validate` or `inspect` operations only when supporting an older runtime. - Production beauty frames contain textured assets at foreground, midground, and background depths; no dominant object may read as an untextured box, cone, octahedron, or dodecahedron. - Production requires at least four semantic asset categories, eight distinct models, three PBR terrain layers, one regional composition review per camera-critical region, and explicit repetition/contact findings. ## Boundaries - The production catalog path materially improves geometry and surface richness, but it still does not reproduce WorldClaw's GPT-Image-2, SAM3, SAM3D, Hunyuan3D, BlenderMCP, or four-H20 implementation. - Do not claim articulated assets, game physics, navigation meshes, or interaction logic unless another tool explicitly adds them. - Do not use unseeded randomness, wall-clock animation, remote models, or render-time asset fetches. - Do not delete the lower-level `threejs-*` skills. They are the subsystem references used when extending this runtime. ## Dónde encaja - Categoría: [Diseño y UI](https://skillsagentes.com/categorias/diseno-ui.md) — Sistemas de diseño, trabajo con componentes y acabado visual. - Creador: [calesthio](https://skillsagentes.com/creators/calesthio.md) — 0 skills en el directorio - [Todas las skills](https://skillsagentes.com/skills.md) - [Ranking de instalaciones](https://skillsagentes.com/ranking.md) ## Otras skills del mismo repositorio - [Seedance 2 5](https://skillsagentes.com/skills/calesthio/openmontage/seedance-2-5.md): Genera vídeo cinematográfico de 4-30 s con ByteDance Seedance 2.5 por fal.ai, Volcengine Ark, Runway o ComfyUI. Cubre el contrato de prompt 2.5, cortes duros, locks de continuidad y voz. - [Comfyui](https://skillsagentes.com/skills/calesthio/openmontage/comfyui.md): Úsalo al trabajar con workflows de ComfyUI en OpenMontage: comfyui_image/video/music, workflows propios, selección de output_node, modelos que faltan, LoRAs, poca VRAM e importación de workflows de la comunidad. - [Fish Audio Tts](https://skillsagentes.com/skills/calesthio/openmontage/fish-audio-tts.md): Genera narración expresiva y multilingüe con fish.audio (modelos S1 / S2) y reutiliza voces clonadas mediante reference_id. - [Minimax H3](https://skillsagentes.com/skills/calesthio/openmontage/minimax-h3.md): Genera vídeo con MiniMax H3 (Hailuo 3.0) por la API oficial v2, fal.ai, Runway, nodos partner de ComfyUI o pesos abiertos locales. Clips de 4-15s a 2K con animación de primer/último fotograma. - [Gemini Omni](https://skillsagentes.com/skills/calesthio/openmontage/gemini-omni.md): Genera y edita conversacionalmente vídeos cortos con Google Gemini Omni Flash: itera con ediciones en lenguaje natural, clips de 3-10s a 720p con audio y texto en pantalla, e imágenes de referencia por etiquetas. --- Skills Agentes · [Índice de páginas en markdown](https://skillsagentes.com/sitemap.md) · [Inicio](https://skillsagentes.com/index.md)