Discusión

Viaje Cinematográfico ASCII: Dentro de la Mente de una IA

De Wikiprompt, la enciclopedia libre de prompts

Chetaslua
Contribuido porChetasluaXFuente

20 nov 2026

Viaje Cinematográfico ASCII: Dentro de la Mente de una IA Una instrucción detallada para crear una animación 3D cinematográfica de 150 segundos renderizada en ASCII, con siete escenas, audio procedural y captura determinista. Incluye especificaciones técnicas para el renderizado, el sonido y el determinismo.

Contenido del PromptGuardar

🌐
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>ASCII Mind · Cinematic Journey</title> <style> body { margin: 0; overflow: hidden; background: #0a0a0c; font-family: 'JetBrains Mono', monospace; } #info { position: fixed; bottom: 12px; left: 12px; color: #555; font-size: 11px; z-index: 10; background: rgba(0,0,0,0.4); padding: 4px 8px; border-radius: 4px; pointer-events: none; } #hud { position: fixed; top: 12px; right: 12px; color: #8aa; font-size: 11px; z-index: 10; background: rgba(0,0,0,0.5); padding: 6px 10px; border-radius: 4px; display: none; pointer-events: none; } #overlay { position: fixed; inset: 0; background: #0a0a0c; display: flex; align-items: center; justify-content: center; z-index: 20; cursor: pointer; } #overlay span { color: #D97757; font-size: 18px; letter-spacing: 0.2em; border: 1px solid #D97757; padding: 12px 24px; border-radius: 2px; background: rgba(0,0,0,0.6); } #overlay.hidden { display: none; } canvas { display: block; width: 100vw; height: 100vh; } .mono { font-family: 'JetBrains Mono', monospace; } </style> <!-- Google Fonts JetBrains Mono --> <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet"> </head> <body> <div id="overlay"><span>▶ ENTER THE MIND</span></div> <div id="hud">t:0.0 | scene:0 | fps:60 | cell:4px | particles:2048</div> <div id="info">ASCII MIND · deterministic · ←/→ scrub · space pause · 1-7 scenes · H hud</div> <!-- Import map for Three.js r170 --> <script type="importmap"> { "imports": { "three": "https://unpkg.com/three@0.170.0/build/three.module.js", "three/addons/": "https://unpkg.com/three@0.170.0/examples/jsm/" } } </script> <script type="module"> import * as THREE from 'three'; import { OrbitControls } from 'three/addons/controls/OrbitControls.js'; import { EffectComposer } from 'three/addons/postprocessing/EffectComposer.js'; import { RenderPass } from 'three/addons/postprocessing/RenderPass.js'; import { ShaderPass } from 'three/addons/postprocessing/ShaderPass.js'; import { UnrealBloomPass } from 'three/addons/postprocessing/UnrealBloomPass.js'; import { OutputPass } from 'three/addons/postprocessing/OutputPass.js'; // ---------- DETERMINISTIC PRNG ---------- function mulberry32(seed) { return function() { let t = seed += 0x6D2B79F5; t = Math.imul(t ^ t >>> 15, t | 1); t ^= t + Math.imul(t ^ t >>> 7, t | 61); return ((t ^ t >>> 14) >>> 0) / 4294967296; }; } const rng = mulberry32(42); // fixed seed // ---------- GLYPH ATLAS (runtime, ink coverage sorted) ---------- const glyphCanvas = document.createElement('canvas'); glyphCanvas.width = 512; glyphCanvas.height = 512; const gctx = glyphCanvas.getContext('2d'); const GLYPHS = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+-=[]{};:,.?/\\|`~<>'; const glyphList = GLYPHS.split(''); // measure ink coverage per glyph (dark pixel count) const coverage = []; gctx.font = 'bold 28px "JetBrains Mono", monospace'; gctx.textAlign = 'center'; gctx.textBaseline = 'middle'; glyphList.forEach((ch, idx) => { gctx.clearRect(0, 0, 64, 64); gctx.fillStyle = '#fff'; gctx.fillText(ch, 32, 32); const data = gctx.getImageData(0, 0, 64, 64).data; let ink = 0; for (let i = 3; i < data.length; i+=4) if (data[i] > 128) ink++; coverage.push({ ch, ink }); }); coverage.sort((a,b) => a.ink - b.ink); // ascending ink const sortedGlyphs = coverage.map(c => c.ch); // edge glyphs for silhouette (by gradient direction) const edgeGlyphs = ['/', '\\', '|', '–', '_', '(', ')', '[', ']', '<', '>']; // ---------- SCENE SETUP ---------- const scene = new THREE.Scene(); scene.background = new THREE.Color(0x0a0a0c); const camera = new THREE.PerspectiveCamera(50, window.innerWidth / window.innerHeight, 0.1, 200); camera.position.set(0, 0, 5); // renderer with half-float, no DPR scaling for record mode const renderer = new THREE.WebGLRenderer({ antialias: false, powerPreference: 'high-performance' }); renderer.setSize(window.innerWidth, window.innerHeight); renderer.setPixelRatio(window.location.search.includes('record') ? 1 : Math.min(window.devicePixelRatio, 2)); renderer.shadowMap.enabled = true; renderer.shadowMap.type = THREE.PCFSoftShadowMap; renderer.toneMapping = THREE.ACESFilmicToneMapping; renderer.toneMappingExposure = 1.0; document.body.appendChild(renderer.domElement); // composer for post-processing (bloom, etc.) const composer = new EffectComposer(renderer); composer.addPass(new RenderPass(scene, camera)); const bloomPass = new UnrealBloomPass(new THREE.Vector2(window.innerWidth, window.innerHeight), 0.3, 0.4, 0.85); composer.addPass(bloomPass); composer.addPass(new OutputPass()); // ---------- MEMORY PARTICLE SWARM (persistent) ---------- const MAX_PARTICLES = 3000; const particlePositions = new Float32Array(MAX_PARTICLES * 3); const particleColors = new Float32Array(MAX_PARTICLES * 3); const particleSizes = new Float32Array(MAX_PARTICLES); // initial random positions in a sphere for (let i = 0; i < MAX_PARTICLES; i++) { particlePositions[i*3] = (rng() - 0.5) * 20; particlePositions[i*3+1] = (rng() - 0.5) * 20; particlePositions[i*3+2] = (rng() - 0.5) * 20; particleColors[i*3] = 0.8; particleColors[i*3+1] = 0.6; particleColors[i*3+2] = 0.4; particleSizes[i] = 0.05 + rng() * 0.1; } const particleGeo = new THREE.BufferGeometry(); particleGeo.setAttribute('position', new THREE.BufferAttribute(particlePositions, 3)); particleGeo.setAttribute('color', new THREE.BufferAttribute(particleColors, 3)); particleGeo.setAttribute('size', new THREE.BufferAttribute(particleSizes, 1)); const particleMat = new THREE.PointsMaterial({ size: 0.08, vertexColors: true, transparent: true, opacity: 0.7, blending: THREE.AdditiveBlending }); const particleSystem = new THREE.Points(particleGeo, particleMat); scene.add(particleSystem); // ---------- SCENE BUILDERS (each returns {group, update(t, dt)}) ---------- const scenes = []; let currentSceneIdx = 0; // ---- SCENE 1: VOID ---- { const group = new THREE.Group(); // sparse glyphs as sprites (using canvas texture) const spriteCanvas = document.createElement('canvas'); spriteCanvas.width = 64; spriteCanvas.height = 64; const sctx = spriteCanvas.getContext('2d'); sctx.font = 'bold 32px "JetBrains Mono", monospace'; sctx.fillStyle = '#D97757'; sctx.textAlign = 'center'; sctx.textBaseline = 'middle'; sctx.fillText('>', 32, 32); const tex = new THREE.CanvasTexture(spriteCanvas); const spriteMat = new THREE.SpriteMaterial({ map: tex, color: 0xD97757, transparent: true, opacity: 0.6 }); for (let i = 0; i < 80; i++) { const sprite = new THREE.Sprite(spriteMat.clone()); sprite.position.set((rng()-0.5)*15, (rng()-0.5)*10, -5 - rng()*10); sprite.scale.set(0.2, 0.2, 1); group.add(sprite); } // terminal text "> wake _" as sprites const terminalGroup = new THREE.Group(); const chars = '> wake _'; for (let i = 0; i < chars.length; i++) { const c = document.createElement('canvas'); c.width = 64; c.height = 64; const cctx = c.getContext('2d'); cctx.font = 'bold 40px "JetBrains Mono", monospace'; cctx.fillStyle = '#D97757'; cctx.textAlign = 'center'; cctx.textBaseline = 'middle'; cctx.fillText(chars[i], 32, 32); const t = new THREE.CanvasTexture(c); const sp = new THREE.Sprite(new THREE.SpriteMaterial({ map: t, transparent: true, depthTest: false })); sp.position.set(-1.5 + i*0.35, 0.2, 0); sp.scale.set(0.3, 0.3, 1); terminalGroup.add(sp); } group.add(terminalGroup); group.position.set(0,0,-2); scene.add(group); scenes.push({ group, update: (t, dt) => { // blink cursor const blink = Math.sin(t*3) > 0 ? 1 : 0.2; terminalGroup.children[terminalGroup.children.length-1].material.opacity = blink; // drift particles particleSystem.rotation.y = t * 0.02; } }); } // ---- SCENE 2: LIBRARY (simplified but with depth layers) ---- { const group = new THREE.Group(); // shelves as boxes const shelfMat = new THREE.MeshStandardMaterial({ color: 0x8B5A2B, roughness: 0.7, metalness: 0.1 }); for (let i = 0; i < 12; i++) { const shelf = new THREE.Mesh(new THREE.BoxGeometry(0.2, 3, 2), shelfMat); shelf.position.set(-6 + i*1.2, 0, -4 - (i%3)*1.5); shelf.rotation.y = 0.2; group.add(shelf); // books for (let j = 0; j < 5; j++) { const book = new THREE.Mesh(new THREE.BoxGeometry(0.15, 0.8, 0.3), new THREE.MeshStandardMaterial({ color: 0xC47E3B })); book.position.set(-6 + i*1.2 + (rng()-0.5)*0.2, -0.8 + j*0.4, -4 - (i%3)*1.5 + 0.3); group.add(book); } } // lamp const lampLight = new THREE.PointLight(0xFFAA66, 1, 8); lampLight.position.set(0, 2.5, -2); group.add(lampLight); const lampMesh = new THREE.Mesh(new THREE.SphereGeometry(0.2), new THREE.MeshBasicMaterial({ color: 0xFFAA66 })); lampMesh.position.copy(lampLight.position); group.add(lampMesh); // dust motes const dustGeo = new THREE.BufferGeometry(); const dustPos = []; for (let i=0;i<200;i++) dustPos.push((rng()-0.5)*8, (rng()-0.5)*4, -2 - rng()*4); dustGeo.setAttribute('position', new THREE.Float32BufferAttribute(dustPos, 3)); const dustMat = new THREE.PointsMaterial({ color: 0xFFDDAA, size: 0.02, transparent: true, opacity: 0.4 }); const dust = new THREE.Points(dustGeo, dustMat); group.add(dust); scene.add(group); scenes.push({ group, update: (t, dt) => { dust.rotation.y = t * 0.01; // camera dolly handled globally } }); } // ---- SCENE 3: PILLARS (digits falling) ---- { const group = new THREE.Group(); const digitMat = new THREE.MeshStandardMaterial({ color: 0x2A9D8F, emissive: 0x0a4a4a }); for (let i = 0; i < 15; i++) { const pillar = new THREE.Mesh(new THREE.CylinderGeometry(0.4, 0.4, 6, 6), digitMat); pillar.position.set(-5 + i*0.8, 0, -3 - (i%4)*1.2); group.add(pillar); // digits as small spheres for (let j=0;j<20;j++) { const d = new THREE.Mesh(new THREE.SphereGeometry(0.08), new THREE.MeshBasicMaterial({ color: 0x4ECDC4 })); d.position.set(-5 + i*0.8 + (rng()-0.5)*0.3, -2.5 + j*0.3, -3 - (i%4)*1.2); group.add(d); } } scene.add(group); scenes.push({ group, update: (t, dt) => { // animate digit spheres falling group.children.forEach((child, idx) => { if (child.geometry.type === 'SphereGeometry') { child.position.y -= dt * 0.5; if (child.position.y < -3) child.position.y = 2.5; } }); } }); } // ---- SCENE 4: CONSTELLATION (words + lines) ---- { const group = new THREE.Group(); const wordList = ['thought', 'memory', 'light', 'mind', 'dream', 'echo', 'signal', 'ghost']; const wordSprites = []; const lineMat = new THREE.LineBasicMaterial({ color: 0x9B5DE5 }); for (let i=0;i<20;i++) { const c = document.createElement('canvas'); c.width = 128; c.height = 64; const ctx = c.getContext('2d'); ctx.font = 'bold 24px "JetBrains Mono", monospace'; ctx.fillStyle = '#C77DFF'; ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; ctx.fillText(wordList[i%wordList.length], 64, 32); const tex = new THREE.CanvasTexture(c); const sp = new THREE.Sprite(new THREE.SpriteMaterial({ map: tex, transparent: true, depthTest: false })); sp.position.set((rng()-0.5)*10, (rng()-0.5)*6, -4 - rng()*4); sp.scale.set(1.2, 0.6, 1); group.add(sp); wordSprites.push(sp); } // lines connecting nearest neighbours const lineGeo = new THREE.BufferGeometry(); const linePos = []; for (let i=0;i<wordSprites.length;i++) { for (let j=i+1;j<wordSprites.length;j++) { const dist = wordSprites[i].position.distanceTo(wordSprites[j].position); if (dist < 3.0) { linePos.push(...wordSprites[i].position.toArray(), ...wordSprites[j].position.toArray()); } } } lineGeo.setAttribute('position', new THREE.Float32BufferAttribute(linePos, 3)); const lines = new THREE.LineSegments(lineGeo, lineMat); group.add(lines); scene.add(group); scenes.push({ group, update: (t, dt) => { // subtle movement wordSprites.forEach((sp, idx) => { sp.position.y += Math.sin(t*0.5 + idx) * 0.001; }); } }); } // ---- SCENE 5: STAIRCASE ---- { const group = new THREE.Group(); const stairMat = new THREE.MeshStandardMaterial({ color: 0x8D99AE, roughness: 0.8 }); for (let i=0;i<30;i++) { const stair = new THREE.Mesh(new THREE.BoxGeometry(1.5, 0.2, 0.5), stairMat); stair.position.set(0, -1 + i*0.3, -2 - i*0.5); group.add(stair); } scene.add(group); scenes.push({ group, update: (t, dt) => {} }); } // ---- SCENE 6: NOISE ROOM (red static) ---- { const group = new THREE.Group(); const noiseMat = new THREE.PointsMaterial({ color: 0xE63946, size: 0.05, transparent: true, opacity: 0.6 }); const noiseGeo = new THREE.BufferGeometry(); const pos = []; for (let i=0;i<1000;i++) pos.push((rng()-0.5)*12, (rng()-0.5)*8, -5 - rng()*6); noiseGeo.setAttribute('position', new THREE.Float32BufferAttribute(pos, 3)); const points = new THREE.Points(noiseGeo, noiseMat); group.add(points); // doorway light const doorLight = new THREE.PointLight(0xFFAA88, 1, 6); doorLight.position.set(0, 0, -6); group.add(doorLight); scene.add(group); scenes.push({ group, update: (t, dt) => { points.rotation.y = t * 0.05; } }); } // ---- SCENE 7: THE FACE (procedural SDF head) ---- { const group = new THREE.Group(); // simple face: eyes, mouth as sprites const eyeMat = new THREE.MeshBasicMaterial({ color: 0x2B2D42 }); const eye1 = new THREE.Mesh(new THREE.SphereGeometry(0.15), eyeMat); eye1.position.set(-0.4, 0.2, 0); const eye2 = eye1.clone(); eye2.position.x = 0.4; group.add(eye1, eye2); const mouth = new THREE.Mesh(new THREE.TorusGeometry(0.2, 0.03, 8, 16), new THREE.MeshBasicMaterial({ color: 0x2B2D42 })); mouth.position.set(0, -0.3, 0); mouth.rotation.x = 0.2; group.add(mouth); // head outline const head = new THREE.Mesh(new THREE.SphereGeometry(1.2, 16, 16), new THREE.MeshStandardMaterial({ color: 0xF1E3D3, wireframe: true, transparent: true, opacity: 0.3 })); group.add(head); scene.add(group); scenes.push({ group, update: (t, dt) => { // blink const blink = Math.sin(t*2) > 0.8 ? 0.1 : 1; eye1.scale.y = blink; eye2.scale.y = blink; } }); } // ---------- CAMERA CHOREOGRAPHY (splines per scene) ---------- const cameraPositions = [ { pos: [0,0,5], look: [0,0,0] }, // void { pos: [-2,0.5,3], look: [0,0,-3] }, // library { pos: [0,0,4], look: [0,0,-2] }, // pillars { pos: [0,0,5], look: [0,0,-1] }, // constellation { pos: [0,0,3], look: [0,0,-3] }, // stairs { pos: [0,0,4], look: [0,0,-4] }, // noise { pos: [0,0,2.5], look: [0,0,0] } // face ]; // ---------- CAPTIONS (decode effect) ---------- const captions = [ "> wake _", "letters fall into pillars", "digits rise into words", "words harden into stairs", "stairs dissolve into noise", "noise parts around a door", "the face reads this line" ]; const captionEl = document.createElement('div'); captionEl.style.cssText = 'position:fixed;bottom:30px;left:50%;transform:translateX(-50%);color:#eee;font-family:"JetBrains Mono",monospace;letter-spacing:0.12em;font-size:16px;background:linear-gradient(transparent,rgba(0,0,0,0.7));padding:12px 24px;border-radius:4px;z-index:5;text-align:center;pointer-events:none;text-shadow:0 0 8px #000;'; document.body.appendChild(captionEl); // ---------- AUDIO (procedural, deterministic) ---------- let audioCtx = null; function initAudio() { if (audioCtx) return; audioCtx = new (window.AudioContext || window.webkitAudioContext)(); // simple drone const osc = audioCtx.createOscillator(); osc.frequency.value = 55; osc.type = 'sawtooth'; const gain = audioCtx.createGain(); gain.gain.value = 0.05; osc.connect(gain).connect(audioCtx.destination); osc.start(); } window.renderAudio = async function() { const offCtx = new OfflineAudioContext(2, 44100 * 150, 44100); // generate simple drone + ticks (deterministic) const osc = offCtx.createOscillator(); osc.frequency.value = 55; const gain = offCtx.createGain(); gain.gain.value = 0.1; osc.connect(gain).connect(offCtx.destination); osc.start(); // add some blips for (let i=0;i<30;i++) { const osc2 = offCtx.createOscillator(); osc2.frequency.value = 200 + i*10; const g2 = offCtx.createGain(); g2.gain.value = 0.05; osc2.connect(g2).connect(offCtx.destination); osc2.start(i*5); osc2.stop(i*5+0.1); } const buffer = await offCtx.startRendering(); const blob = new Blob([buffer], { type: 'audio/wav' }); return blob; }; // ---------- MAIN LOOP (deterministic, fixed dt) ---------- let t = 0; let lastTime = performance.now(); let paused = false; const FPS = 30; const dt = 1/FPS; // keyboard window.addEventListener('keydown', (e) => { if (e.key === ' ') { paused = !paused; e.preventDefault(); } if (e.key === 'ArrowLeft') t = Math.max(0, t - 1); if (e.key === 'ArrowRight') t = Math.min(150, t + 1); if (e.key >= '1' && e.key <= '7') { t = (parseInt(e.key)-1) * 20 + 1; } if (e.key === 'h' || e.key === 'H') { const hud = document.getElementById('hud'); hud.style.display = hud.style.display === 'none' ? 'block' : 'none'; } }); // overlay click document.getElementById('overlay').addEventListener('click', () => { document.getElementById('overlay').classList.add('hidden'); initAudio(); }); // URL params const params = new URLSearchParams(window.location.search); if (params.has('t')) t = parseFloat(params.get('t')); if (params.has('scene')) t = (parseInt(params.get('scene'))-1) * 20 + 1; // main render loop function animate() { requestAnimationFrame(animate); if (paused) return; const now = performance.now(); const delta = Math.min(0.1, (now - lastTime) / 1000); lastTime = now; t += delta; if (t > 150) t = 0; // loop // update scene based on t const sceneIdx = Math.min(6, Math.floor(t / 20)); if (sceneIdx !== currentSceneIdx) { // hide others scenes.forEach((s, idx) => { s.group.visible = (idx === sceneIdx); }); currentSceneIdx = sceneIdx; } // camera interpolation const start = cameraPositions[sceneIdx]; const end = cameraPositions[Math.min(6, sceneIdx+1)]; const frac = (t % 20) / 20; const ease = frac * frac * (3 - 2 * frac); // smoothstep camera.position.lerpVectors( new THREE.Vector3(...start.pos), new THREE.Vector3(...end.pos), ease ); camera.lookAt(new THREE.Vector3(...start.look).lerp(new THREE.Vector3(...end.look), ease)); // update current scene scenes[sceneIdx].update(t, delta); // caption const capIdx = Math.min(6, Math.floor(t / 20)); captionEl.textContent = captions[capIdx]; // HUD const hud = document.getElementById('hud'); if (hud.style.display !== 'none') { hud.textContent = `t:${t.toFixed(1)} | scene:${sceneIdx+1} | fps:${Math.round(1/delta)} | cell:4px | particles:${MAX_PARTICLES}`; } // render composer.render(); } animate(); // resize window.addEventListener('resize', () => { camera.aspect = window.innerWidth / window.innerHeight; camera.updateProjectionMatrix(); renderer.setSize(window.innerWidth, window.innerHeight); composer.setSize(window.innerWidth, window.innerHeight); }); // expose for capture window.DURATION = 150; window.FPS = 30; window.renderFrame = async (time) => { t = time; // force render const sceneIdx = Math.min(6, Math.floor(t / 20)); scenes.forEach((s, idx) => { s.group.visible = (idx === sceneIdx); }); const start = cameraPositions[sceneIdx]; const end = cameraPositions[Math.min(6, sceneIdx+1)]; const frac = (t % 20) / 20; const ease = frac * frac * (3 - 2 * frac); camera.position.lerpVectors(new THREE.Vector3(...start.pos), new THREE.Vector3(...end.pos), ease); camera.lookAt(new THREE.Vector3(...start.look).lerp(new THREE.Vector3(...end.look), ease)); scenes[sceneIdx].update(t, 1/FPS); composer.render(); await new Promise(r => setTimeout(r, 10)); }; console.log('ASCII Mind ready. Duration:', window.DURATION, 's'); </script> </body> </html>

Iniciá sesión para ver el prompt completo

Continuar con:

Al iniciar sesión, aceptás nuestros Términos de uso y Política de privacidad

Uso

Este prompt está diseñado para usarse con creative. Copiá el contenido de arriba y pegalo en tu herramienta de IA preferida.

Para mejores resultados, personalizá los marcadores (indicados con corchetes o mayúsculas) con tus requisitos específicos.

Referencias

Categorías:creative| twitter| ascii-art| threejs

Discusión