paralaif's picture
Add generated music and sound: Tone.js band, ambience, beat-synced animation, video export
4a0e872 verified
Raw History Blame Contribute Delete
12.2 kB
{
"threejs": {
"en": "three.js is a JavaScript library that draws 3D graphics in the browser on top of WebGL. You describe a scene with objects, lights and a camera, and a renderer draws it to a canvas every frame.",
"es": "three.js es una librería de JavaScript que dibuja gráficos 3D en el navegador sobre WebGL. Describes una escena con objetos, luces y una cámara, y un renderer la dibuja en un canvas en cada fotograma."
},
"scene": {
"en": "A THREE.Scene is the root container. Everything you want drawn (meshes, lights, groups) is added with scene.add(object), and removed with scene.remove(object).",
"es": "THREE.Scene es el contenedor raíz. Todo lo que quieras dibujar (mallas, luces, grupos) se añade con scene.add(objeto) y se quita con scene.remove(objeto)."
},
"camera": {
"en": "The camera decides what is visible. PerspectiveCamera(fov, aspect, near, far) imitates a real lens; OrthographicCamera has no perspective. Move it with camera.position.set(x, y, z) and aim it with camera.lookAt(target).",
"es": "La cámara decide qué se ve. PerspectiveCamera(fov, aspect, near, far) imita una lente real; OrthographicCamera no tiene perspectiva. Se mueve con camera.position.set(x, y, z) y se apunta con camera.lookAt(objetivo)."
},
"renderer": {
"en": "WebGLRenderer draws a scene from a camera into a canvas: renderer.render(scene, camera). Call it every frame with renderer.setAnimationLoop(fn), and set the size with renderer.setSize(width, height).",
"es": "WebGLRenderer dibuja una escena vista desde una cámara en un canvas: renderer.render(scene, camera). Se llama en cada fotograma con renderer.setAnimationLoop(fn), y el tamaño se fija con renderer.setSize(ancho, alto)."
},
"mesh": {
"en": "A Mesh is a visible object: geometry (the shape) plus material (the look). Example: new THREE.Mesh(new THREE.BoxGeometry(1, 1, 1), new THREE.MeshStandardMaterial({ color: 'red' })).",
"es": "Un Mesh es un objeto visible: geometría (la forma) más material (el aspecto). Ejemplo: new THREE.Mesh(new THREE.BoxGeometry(1, 1, 1), new THREE.MeshStandardMaterial({ color: 'red' }))."
},
"geometry": {
"en": "A geometry holds the vertices of a shape. Built-in ones include BoxGeometry, SphereGeometry, CylinderGeometry, ConeGeometry, TorusGeometry and PlaneGeometry. Every object in this app is assembled from those primitives.",
"es": "Una geometría guarda los vértices de una forma. Las incluidas son BoxGeometry, SphereGeometry, CylinderGeometry, ConeGeometry, TorusGeometry y PlaneGeometry, entre otras. Todos los objetos de esta app se arman con esas primitivas."
},
"material": {
"en": "A material defines how a surface looks. MeshBasicMaterial ignores light, MeshStandardMaterial reacts to it with roughness and metalness, and MeshToonMaterial gives a cartoon look. Set transparent: true and opacity for see-through surfaces.",
"es": "Un material define cómo se ve una superficie. MeshBasicMaterial ignora la luz, MeshStandardMaterial reacciona a ella con roughness y metalness, y MeshToonMaterial da un aspecto de dibujo. Usa transparent: true y opacity para superficies translúcidas."
},
"light": {
"en": "Lights make standard materials visible. AmbientLight and HemisphereLight fill the whole scene, DirectionalLight acts like the sun, PointLight like a bulb and SpotLight like a torch. A black scene usually means there is no light.",
"es": "Las luces hacen visibles los materiales estándar. AmbientLight y HemisphereLight rellenan toda la escena, DirectionalLight actúa como el sol, PointLight como una bombilla y SpotLight como una linterna. Una escena negra casi siempre significa que falta una luz."
},
"shadow": {
"en": "Shadows need three switches: renderer.shadowMap.enabled = true, light.castShadow = true, and on each mesh castShadow and/or receiveShadow = true. Tune light.shadow.mapSize and the shadow camera bounds for quality.",
"es": "Las sombras necesitan tres interruptores: renderer.shadowMap.enabled = true, light.castShadow = true y, en cada malla, castShadow y/o receiveShadow = true. La calidad se ajusta con light.shadow.mapSize y los límites de la cámara de sombra."
},
"animation": {
"en": "The simplest animation changes position, rotation or scale every frame inside the render loop, using elapsed time. For keyframes use AnimationMixer with AnimationClip. This app animates everything procedurally from the time value.",
"es": "La animación más simple cambia posición, rotación o escala en cada fotograma dentro del bucle de render, usando el tiempo transcurrido. Para keyframes se usa AnimationMixer con AnimationClip. Esta app anima todo de forma procedural a partir del tiempo."
},
"texture": {
"en": "A texture is an image mapped onto a surface. Load it with new THREE.TextureLoader().load(url) and assign it to material.map. CanvasTexture turns a 2D canvas drawing into a texture.",
"es": "Una textura es una imagen aplicada a una superficie. Se carga con new THREE.TextureLoader().load(url) y se asigna a material.map. CanvasTexture convierte un dibujo de canvas 2D en textura."
},
"gltf": {
"en": "glTF (.gltf or .glb) is the standard 3D format for the web. Load models with GLTFLoader and save scenes with GLTFExporter. The export button here writes a .glb you can open in Blender.",
"es": "glTF (.gltf o .glb) es el formato 3D estándar para la web. Los modelos se cargan con GLTFLoader y las escenas se guardan con GLTFExporter. El botón de exportar de esta app genera un .glb que puedes abrir en Blender."
},
"controls": {
"en": "OrbitControls lets the user orbit, zoom and pan with the mouse or touch: new OrbitControls(camera, renderer.domElement), then controls.update() every frame. Here you can drag the view at any time.",
"es": "OrbitControls permite orbitar, hacer zoom y desplazar con el ratón o el dedo: new OrbitControls(camera, renderer.domElement) y luego controls.update() en cada fotograma. Aquí puedes arrastrar la vista en cualquier momento."
},
"raycaster": {
"en": "A Raycaster shoots a ray from the camera through the mouse position and returns the objects it hits: raycaster.setFromCamera(pointer, camera) followed by raycaster.intersectObjects(scene.children).",
"es": "Un Raycaster lanza un rayo desde la cámara a través de la posición del ratón y devuelve los objetos que toca: raycaster.setFromCamera(pointer, camera) seguido de raycaster.intersectObjects(scene.children)."
},
"fog": {
"en": "Fog fades distant objects into a colour: scene.fog = new THREE.Fog(color, near, far) or new THREE.FogExp2(color, density). Match the fog colour to the background so the horizon blends.",
"es": "La niebla desvanece los objetos lejanos hacia un color: scene.fog = new THREE.Fog(color, near, far) o new THREE.FogExp2(color, densidad). Usa el mismo color que el fondo para que el horizonte se funda."
},
"performance": {
"en": "To keep the frame rate high: reuse geometries and materials, merge static meshes or use InstancedMesh, limit shadow-casting lights, cap the pixel ratio at 2, and dispose of what you remove.",
"es": "Para mantener los fps altos: reutiliza geometrías y materiales, fusiona mallas estáticas o usa InstancedMesh, limita las luces con sombra, limita el pixel ratio a 2 y libera con dispose lo que quites."
},
"group": {
"en": "A Group (or any Object3D) can hold children with parent.add(child). Children inherit the parent's position, rotation and scale, which is how a leg swings from a hip or a rider follows a horse.",
"es": "Un Group (o cualquier Object3D) puede tener hijos con padre.add(hijo). Los hijos heredan posición, rotación y escala del padre; así una pata gira desde la cadera o un jinete sigue a su caballo."
},
"color": {
"en": "THREE.Color accepts hex numbers (0xff0000), CSS strings ('red', '#ff0000') or HSL via setHSL. Change a material at any time with material.color.set('blue').",
"es": "THREE.Color acepta números hexadecimales (0xff0000), cadenas CSS ('red', '#ff0000') o HSL con setHSL. Cambia un material en cualquier momento con material.color.set('blue')."
},
"resize": {
"en": "On resize, update three things: camera.aspect = width / height, camera.updateProjectionMatrix(), and renderer.setSize(width, height). A stretched image means the aspect was not updated.",
"es": "Al cambiar el tamaño hay que actualizar tres cosas: camera.aspect = ancho / alto, camera.updateProjectionMatrix() y renderer.setSize(ancho, alto). Una imagen estirada indica que no se actualizó el aspecto."
},
"particles": {
"en": "Particles are a THREE.Points object: one BufferGeometry with many positions and a PointsMaterial. Move the positions every frame and set needsUpdate. The rain, snow and stars here are built that way.",
"es": "Las partículas son un objeto THREE.Points: una BufferGeometry con muchas posiciones y un PointsMaterial. Se mueven las posiciones en cada fotograma y se marca needsUpdate. La lluvia, la nieve y las estrellas de esta app están hechas así."
},
"music": {
"en": "The music is generated live, not recorded. I pick a mood, a style and a tempo (from your words, or from the scene if you say nothing) and a small procedural band plays a chord progression, bass, drums and a melody with Tone.js. Dancing and jumping follow the beat. Try \"sad jazz music\", \"make the music faster\", \"no drums\" or \"stop the music\".",
"es": "La música se genera en vivo, no está grabada. Elijo un ánimo, un estilo y un tempo (de tus palabras, o de la escena si no dices nada) y una pequeña banda procedural toca acordes, bajo, batería y melodía con Tone.js. El baile y los saltos siguen el pulso. Prueba \"música de jazz triste\", \"haz la música más rápida\", \"sin batería\" o \"quita la música\"."
},
"help": {
"en": "Describe a scene and I build it: \"a red fox jumping over a car in the desert at sunset\". Then edit it: \"make the fox blue\", \"add a tree\", \"remove the car\", \"make it rain\", \"zoom out\", \"play calm music\". You can also ask about three.js.",
"es": "Describe una escena y la construyo: \"un zorro rojo saltando sobre un coche en el desierto al atardecer\". Luego edítala: \"haz el zorro azul\", \"añade un árbol\", \"quita el coche\", \"que llueva\", \"aleja la cámara\", \"pon música tranquila\". También puedes preguntar sobre three.js."
},
"objects": {
"en": "I know: dog, cat, horse, cow, pig, sheep, fox, bear, elephant, giraffe, rabbit, lion, dragon, dinosaur, man, woman, robot, alien, astronaut, knight, wizard, bird, duck, chicken, fish, shark, penguin, snowman, ghost, car, truck, bus, bike, skateboard, boat, plane, rocket, train, ufo, helicopter, tree, house, ball, box, chair, table, rock, flower, cactus, mushroom, tower, lamp, bench, balloon.",
"es": "Conozco: perro, gato, caballo, vaca, cerdo, oveja, zorro, oso, elefante, jirafa, conejo, león, dragón, dinosaurio, hombre, mujer, robot, alien, astronauta, caballero, mago, pájaro, pato, gallina, pez, tiburón, pingüino, muñeco de nieve, fantasma, coche, camión, autobús, bicicleta, patineta, barco, avión, cohete, tren, ovni, helicóptero, árbol, casa, pelota, caja, silla, mesa, roca, flor, cactus, hongo, torre, lámpara, banco, globo."
},
"actions": {
"en": "Actions: standing, walking, running, jumping, spinning, dancing, flying, floating, sitting, sleeping, waving, bouncing, rolling, walking in circles, shaking, swimming, driving.",
"es": "Acciones: esperando, caminando, corriendo, saltando, girando, bailando, volando, flotando, sentado, durmiendo, saludando, rebotando, rodando, caminando en círculos, temblando, nadando, conduciendo."
},
"about": {
"en": "I am a tiny Transformer trained from scratch on synthetic prompts. I do not generate geometry: I translate your sentence into a compact scene language, and procedural three.js code builds and animates the result. I run entirely in your browser.",
"es": "Soy un Transformer diminuto entrenado desde cero con frases sintéticas. No genero geometría: traduzco tu frase a un lenguaje de escena compacto, y código procedural de three.js construye y anima el resultado. Funciono por completo en tu navegador."
}
}