{"job_id":"anim-job-6d426d8c-a474-48b2-ac44-99f1b9d526df","request_id":"test-physics-wave-1b2ba770-6450-4b1c-a815-8b28db3d7c87-1778704510421","status":"complete","asset":{"primary_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-6d426d8c-a474-48b2-ac44-99f1b9d526df/walkthrough.mp4","thumbnail_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-6d426d8c-a474-48b2-ac44-99f1b9d526df/thumb.jpg","transcript_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-6d426d8c-a474-48b2-ac44-99f1b9d526df/transcript.vtt","interactive_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-6d426d8c-a474-48b2-ac44-99f1b9d526df/index.html","scenefile_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-6d426d8c-a474-48b2-ac44-99f1b9d526df/scene-source.json","duration_seconds":15,"byte_size":542462,"renderer":"html_three_js_local","parameters":{"style":"auto","executor":"native_render_executor","localPath":"/app/storage/assets/anim-job-6d426d8c-a474-48b2-ac44-99f1b9d526df","interactivity":"none","renderer_style":"three_js","durationSeconds":15,"render_manifest":{"jobId":"anim-job-6d426d8c-a474-48b2-ac44-99f1b9d526df","request":{"gap":{"topic":"standing-wave-nodes","severity":"moderate","error_type":"concept_misunderstanding","memory_state":"fragile","display_topic":"Standing Waves — Nodes and Antinodes","common_wrong_answer":"Standing waves travel along the string just like travelling waves.","confidence_at_error":"high","correct_understanding":"Standing waves are formed by superposition of two opposite-traveling waves. Nodes are fixed points of zero displacement; antinodes have maximum displacement."},"target":{"style":"auto","render":{"fps":30,"format":"mp4","resolution":"1920x1080","include_thumbnail":true,"include_transcript":true},"audience":{"tone":"neutral_instructional","grade":"11","language":"en"},"interactivity":"none","duration_seconds":15},"context":{"chapter":{"name":"Waves","ncert_class":11,"ncert_chapter_number":15},"sub_topics":[{"topic":"Standing Waves","key_concepts":["superposition","standing wave","node","antinode","resonance"]}]},"metadata":{"priority":"normal"},"exam_type":"neet","asset_type":"simulation","request_id":"test-physics-wave-1b2ba770-6450-4b1c-a815-8b28db3d7c87-1778704510421","subject_area":"physics"},"renderer":"html_three_js_local","storyboard":{"beats":[{"label":"Topic","visual":"Show the topic title and the key physical context.","narration":"Standing Waves — Nodes and Antinodes"},{"label":"Mistake","visual":"Show the wrong approach and why it seems plausible.","narration":"Standing waves travel along the string just like travelling waves."},{"label":"Correction","visual":"Show the right approach step by step.","narration":"Standing waves are formed by superposition of two opposite-traveling waves. Nodes are fixed points of zero displacement; antinodes have maximum displacement."},{"label":"Concept","visual":"Highlight the key formula and the governing relationship.","narration":"superposition. standing wave. node"}],"title":"Standing Waves — Nodes and Antinodes","sceneCode":"<!doctype html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"utf-8\"/>\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n  <title>Standing Waves: Nodes & Antinodes</title>\n  <style>\n    :root{--bg:#0f1418;--panel:#182228;--line:#2e3e46;--accent:#e5ba67;--text:#f4f1ea;--muted:#c8d4da;--blue:#63b3ff;--green:#87e8a8;--red:#de7f76;}\n    *{box-sizing:border-box;}\n    body{margin:0;font-family:\"Plus Jakarta Sans\",\"Manrope\",ui-sans-serif,system-ui,sans-serif;background:radial-gradient(120% 90% at 20% -5%,#24343d 0%,var(--bg) 55%);color:var(--text);}\n    main{min-height:100vh;display:grid;grid-template-columns:minmax(300px,380px) 1fr;}\n    aside{border-right:1px solid var(--line);background:linear-gradient(180deg,rgba(31,46,53,.86),rgba(24,34,40,.92));padding:24px;overflow:auto;backdrop-filter:blur(6px);}\n    section{padding:24px;display:grid;place-items:center;}\n    h1{margin:0 0 10px;font-size:1.65rem;line-height:1.15;}\n    .sub{margin:0 0 16px;color:var(--muted);}\n    .formula{margin:0 0 14px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#11191e;color:var(--accent);font-family:ui-monospace,monospace;font-size:0.9rem;box-shadow:inset 0 0 28px rgba(229,186,103,.08);}\n    .control{display:grid;gap:6px;margin:12px 0;}\n    .control input{width:100%;accent-color:var(--accent);}\n    ul{margin:14px 0 0 18px;padding:0;color:var(--muted);display:grid;gap:6px;}\n    .stage{width:min(1020px,95%);aspect-ratio:16/9;border:1px solid #445862;border-radius:14px;position:relative;overflow:hidden;background:radial-gradient(circle at 50% 38%,#2f4a57,#0f1418 72%);box-shadow:0 18px 60px rgba(0,0,0,.45), inset 0 0 90px rgba(255,255,255,.03);}\n    .stage::before{content:\"\";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.06),transparent 34%);pointer-events:none;}\n    .legend{position:absolute;right:12px;top:12px;padding:8px 10px;border-radius:10px;border:1px solid #465a64;background:rgba(9,14,18,.58);font-size:0.8rem;color:var(--muted);backdrop-filter:blur(4px);}\n    @media(max-width:900px){main{grid-template-columns:1fr;}aside{border-right:0;border-bottom:1px solid var(--line);}}\n  </style>\n</head>\n<body>\n<main>\n  <aside>\n    <h1>Standing Waves</h1>\n    <p class=\"sub\">Nodes & Antinodes: The Superposition Reality</p>\n    <p class=\"formula\">y(x,t) = 2A sin(kx) cos(ωt)</p>\n    <label class=\"control\"><span>Frequency: <strong id=\"v-freq\">2.0</strong> Hz</span><input id=\"c-freq\" type=\"range\" min=\"1\" max=\"4\" step=\"0.5\" value=\"2.0\"/></label>\n    <label class=\"control\"><span>Amplitude: <strong id=\"v-amp\">40</strong> px</span><input id=\"c-amp\" type=\"range\" min=\"10\" max=\"80\" step=\"5\" value=\"40\"/></label>\n    <label class=\"control\"><span>View Mode</span><select id=\"c-mode\" style=\"width:100%;padding:8px;background:#11191e;border:1px solid #445862;color:var(--text);border-radius:6px;\">\n      <option value=\"superpose\">Superposition (Correct)</option>\n      <option value=\"travelling\">Travelling Wave (Mistake)</option>\n    </select></label>\n    <ul>\n      <li><strong style=\"color:var(--green)\">✓ Correct:</strong> Two counter-propagating waves create stationary nodes.</li>\n      <li><strong style=\"color:var(--red)\">✗ Mistake:</strong> Thinking the wave travels left/right like a single pulse.</li>\n      <li>Nodes = zero displacement (always). Antinodes = max displacement.</li>\n    </ul>\n  </aside>\n  <section>\n    <div class=\"stage\" id=\"stage\">\n      <div class=\"legend\" id=\"legend\">Ready</div>\n      <canvas id=\"sim-cv\" style=\"position:absolute;inset:0;width:100%;height:100%;\"></canvas>\n    </div>\n  </section>\n</main>\n<script>\nconst controls = [\n  {\"key\":\"freq\",\"label\":\"Frequency\",\"min\":1,\"max\":4,\"step\":0.5,\"value\":2.0,\"units\":\"Hz\"},\n  {\"key\":\"amp\",\"label\":\"Amplitude\",\"min\":10,\"max\":80,\"step\":5,\"value\":40,\"units\":\"px\"}\n];\nfor(const c of controls){\n  const inp=document.getElementById('c-'+c.key);\n  const out=document.getElementById('v-'+c.key);\n  inp?.addEventListener('input',()=>{out.textContent=inp.value;window.updateModel?.();});\n}\n(function(){\n  const cv=document.getElementById('sim-cv');\n  const ctx=cv.getContext('2d');\n  function resize(){const r=cv.getBoundingClientRect();if(r.width>0){cv.width=r.width;cv.height=r.height;}}\n  resize();new ResizeObserver(resize).observe(cv);\n  let lastTs=0;\n  \n  function glowDot(x,y,r,color,a){\n    const g=ctx.createRadialGradient(x,y,0,x,y,r*2.6);\n    g.addColorStop(0,color.replace('ALPHA',String(a)));\n    g.addColorStop(1,color.replace('ALPHA','0'));\n    ctx.fillStyle=g;ctx.beginPath();ctx.arc(x,y,r*2.6,0,Math.PI*2);ctx.fill();\n  }\n  \n  function arrow(x1,y1,x2,y2,color){\n    const dx=x2-x1,dy=y2-y1,l=Math.sqrt(dx*dx+dy*dy);\n    if(l<2)return;\n    const nx=dx/l,ny=dy/l,s=10;\n    ctx.strokeStyle=color;ctx.lineWidth=2;\n    ctx.beginPath();ctx.moveTo(x1,y1);ctx.lineTo(x2,y2);ctx.stroke();\n    ctx.fillStyle=color;ctx.beginPath();\n    ctx.moveTo(x2,y2);\n    ctx.lineTo(x2-s*nx+s*0.4*ny,y2-s*ny-s*0.4*nx);\n    ctx.lineTo(x2-s*nx-s*0.4*ny,y2-s*ny+s*0.4*nx);\n    ctx.fill();\n  }\n  \n  let phase = 0;\n  let travelPhase = 0;\n  \n  function tick(ts){\n    const dt=Math.min(0.04,(ts-lastTs)/1000);lastTs=ts;\n    const W=cv.width,H=cv.height;\n    \n    const freq = Number(document.getElementById('c-freq').value);\n    const amp = Number(document.getElementById('c-amp').value);\n    const mode = document.getElementById('c-mode').value;\n    \n    phase += freq * 2 * Math.PI * dt;\n    travelPhase += freq * 2 * Math.PI * dt;\n    \n    ctx.fillStyle='#0f1418';ctx.fillRect(0,0,W,H);\n    \n    const centerY = H * 0.45;\n    const startX = W * 0.08;\n    const endX = W * 0.92;\n    const stringLength = endX - startX;\n    \n    // Grid and reference\n    ctx.strokeStyle='#2e3e46';ctx.lineWidth=1;\n    for(let i=0;i<=8;i++){\n      const x = startX + (stringLength/8)*i;\n      ctx.beginPath();ctx.moveTo(x,centerY-120);ctx.lineTo(x,centerY+120);ctx.stroke();\n    }\n    \n    ctx.strokeStyle='#445862';ctx.lineWidth=2;\n    ctx.setLineDash([5,5]);\n    ctx.beginPath();ctx.moveTo(startX,centerY);ctx.lineTo(endX,centerY);ctx.stroke();\n    ctx.setLineDash([]);\n    \n    if(mode === 'superpose'){\n      // Draw two counter-propagating waves\n      ctx.strokeStyle='rgba(99,179,255,0.4)';ctx.lineWidth=2;\n      ctx.beginPath();\n      for(let i=0;i<=100;i++){\n        const t = i/100;\n        const x = startX + t*stringLength;\n        const k = 4*Math.PI;\n        const rightMoving = amp*Math.sin(k*t-phase);\n        const y = centerY + rightMoving;\n        if(i===0)ctx.moveTo(x,y);\n        else ctx.lineTo(x,y);\n      }\n      ctx.stroke();\n      \n      ctx.strokeStyle='rgba(135,232,168,0.4)';ctx.lineWidth=2;\n      ctx.beginPath();\n      for(let i=0;i<=100;i++){\n        const t = i/100;\n        const x = startX + t*stringLength;\n        const k = 4*Math.PI;\n        const leftMoving = amp*Math.sin(k*t+phase);\n        const y = centerY + leftMoving;\n        if(i===0)ctx.moveTo(x,y);\n        else ctx.lineTo(x,y);\n      }\n      ctx.stroke();\n      \n      // Draw standing wave (superposition)\n      ctx.strokeStyle='var(--accent)';\n      ctx.globalAlpha=0.8;\n      ctx.lineWidth=3;\n      ctx.beginPath();\n      for(let i=0;i<=200;i++){\n        const t = i/200;\n        const x = startX + t*stringLength;\n        const k = 4*Math.PI;\n        const standing = 2*amp*Math.sin(k*t)*Math.cos(phase);\n        const y = centerY + standing;\n        if(i===0)ctx.moveTo(x,y);\n        else ctx.lineTo(x,y);\n      }\n      ctx.stroke();\n      ctx.globalAlpha=1;\n      \n      // Mark nodes and antinodes\n      for(let i=0;i<=4;i++){\n        const x = startX + (stringLength/4)*i;\n        glowDot(x,centerY,4.5,'rgba(0,255,0,ALPHA)',0.7);\n        ctx.fillStyle='#87e8a8';ctx.font=Math.round(H*0.035)+'px sans-serif';\n        ctx.textAlign='center';ctx.fillText('N',x,centerY-50);\n      }\n      \n      for(let i=0;i<4;i++){\n        const x = startX + (stringLength/8)+(stringLength/4)*i;\n        glowDot(x,centerY,6.5,'rgba(229,186,103,ALPHA)',0.8);\n        ctx.fillStyle='#e5ba67';ctx.font=Math.round(H*0.035)+'px sans-serif';\n        ctx.textAlign='center';ctx.fillText('A',x,centerY-65);\n      }\n      \n      ctx.fillStyle='#87e8a8';ctx.font=Math.round(H*0.032)+'px sans-serif';\n      ctx.textAlign='left';\n      ctx.fillText('↑ Right-going wave (blue)',W*0.12,H*0.08);\n      ctx.fillStyle='#63b3ff';ctx.fillText('↓ + Left-going wave (green)',W*0.12,H*0.12);\n      ctx.fillStyle='#e5ba67';ctx.fillText('= Standing wave (yellow)',W*0.12,H*0.16);\n      \n      document.getElementById('legend').textContent='Superposition: TWO waves create FIXED nodes';\n    }\n    else {\n      // Travelling wave misconception\n      ctx.strokeStyle='rgba(222,127,118,0.6)';ctx.lineWidth=2;\n      ctx.beginPath();\n      for(let i=0;i<=100;i++){\n        const t = i/100;\n        const x = startX + t*stringLength;\n        const k = 4*Math.PI;\n        const wave = amp*Math.sin(k*(t - travelPhase/(2*Math.PI*freq)));\n        const y = centerY + wave;\n        if(i===0)ctx.moveTo(x,y);\n        else ctx.lineTo(x,y);\n      }\n      ctx.stroke();\n      \n      ctx.strokeStyle='rgba(222,127,118,0.3)';ctx.lineWidth=2;ctx.setLineDash([5,5]);\n      ctx.beginPath();\n      for(let i=0;i<=100;i++){\n        const t = i/100;\n        const x = startX + t*stringLength;\n        const k = 4*Math.PI;\n        const wave = amp*Math.sin(k*(t - travelPhase/(2*Math.PI*freq) - 0.15));\n        const y = centerY + wave;\n        if(i===0)ctx.moveTo(x,y);\n        else ctx.lineTo(x,y);\n      }\n      ctx.stroke();\n      ctx.setLineDash([]);\n      \n      const arrowPos = 0.3 + 0.2*Math.sin(travelPhase);\n      arrow(startX+stringLength*arrowPos-30,centerY+10,startX+stringLength*arrowPos+30,centerY+10,'#de7f76');\n      \n      ctx.fillStyle='#de7f76';ctx.font=Math.round(H*0.04)+'px sans-serif';\n      ctx.textAlign='center';ctx.fillText('✗ WRONG: Wave travels',W*0.5,H*0.1);\n      ctx.font=Math.round(H*0.032)+'px sans-serif';\n      ctx.fillText('(This is NOT how standing waves work!)',W*0.5,H*0.16);\n      \n      document.getElementById('legend').textContent='Misconception: Treating standing wave as travelling';\n    }\n    \n    requestAnimationFrame(tick);\n  }\n  requestAnimationFrame(tick);\n  window.updateModel=function(){};\n})();\n</script>\n</body>\n</html>","remediationGoal":"Close concept_misunderstanding for physics."},"rendererStyle":"three_js"}}},"metadata":{"rendered_at":"2026-05-13T20:40:49.721Z","cache_hit":false,"cost_usd":0},"error":null}