{"job_id":"anim-job-53439d1c-7283-4235-9a60-78c10a55493d","request_id":"test-physics-wave-ba30c5e5-e5bb-4ff3-90a7-a40b2e480a51-1778708287067","status":"complete","asset":{"primary_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-53439d1c-7283-4235-9a60-78c10a55493d/walkthrough.mp4","thumbnail_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-53439d1c-7283-4235-9a60-78c10a55493d/thumb.jpg","transcript_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-53439d1c-7283-4235-9a60-78c10a55493d/transcript.vtt","interactive_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-53439d1c-7283-4235-9a60-78c10a55493d/index.html","scenefile_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-53439d1c-7283-4235-9a60-78c10a55493d/scene-source.json","duration_seconds":15,"byte_size":481643,"renderer":"html_three_js_local","parameters":{"style":"auto","executor":"native_render_executor","localPath":"/app/storage/assets/anim-job-53439d1c-7283-4235-9a60-78c10a55493d","interactivity":"none","renderer_style":"three_js","durationSeconds":15,"render_manifest":{"jobId":"anim-job-53439d1c-7283-4235-9a60-78c10a55493d","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-ba30c5e5-e5bb-4ff3-90a7-a40b2e480a51-1778708287067","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\",\"Inter\",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: Superposition, Not Motion</p>\n    <p class=\"formula\">y(x,t) = A·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=\"0.5\" max=\"4\" step=\"0.5\" value=\"2.0\"/></label>\n    <label class=\"control\"><span>Amplitude: <strong id=\"v-amp\">60</strong> px</span><input id=\"c-amp\" type=\"range\" min=\"20\" max=\"100\" step=\"10\" value=\"60\"/></label>\n    <label class=\"control\"><span>Phase Offset: <strong id=\"v-phase\">0.0</strong> rad</span><input id=\"c-phase\" type=\"range\" min=\"0\" max=\"6.28\" step=\"0.2\" value=\"0\"/></label>\n    <ul>\n      <li><strong>❌ Mistake:</strong> Wave travels left–right</li>\n      <li><strong>✓ Truth:</strong> Two opposite waves create fixed pattern</li>\n      <li><strong>📍 Node:</strong> Zero displacement always</li>\n      <li><strong>📊 Antinode:</strong> Max displacement at time</li>\n      <li><strong>🔄 Superposition:</strong> y₊ + y₋ = standing</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 = [{\"key\":\"freq\",\"label\":\"Frequency\",\"min\":0.5,\"max\":4,\"step\":0.5,\"value\":2.0,\"units\":\"Hz\"},{\"key\":\"amp\",\"label\":\"Amplitude\",\"min\":20,\"max\":100,\"step\":10,\"value\":60,\"units\":\"px\"},{\"key\":\"phase\",\"label\":\"Phase Offset\",\"min\":0,\"max\":6.28,\"step\":0.2,\"value\":0,\"units\":\"rad\"}];\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  \n  let lastTs=0;\n  let phase1Offset=0;\n  let phase2Offset=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;ctx.beginPath();ctx.moveTo(x1,y1);ctx.lineTo(x2,y2);ctx.stroke();\n    ctx.fillStyle=color;ctx.beginPath();ctx.moveTo(x2,y2);ctx.lineTo(x2-s*nx+s*0.4*ny,y2-s*ny-s*0.4*nx);ctx.lineTo(x2-s*nx-s*0.4*ny,y2-s*ny+s*0.4*nx);ctx.fill();\n  }\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 phaseCtrl=Number(document.getElementById('c-phase').value);\n    \n    const omega=2*Math.PI*freq;\n    const k=Math.PI/200;\n    \n    phase1Offset+=omega*dt;\n    phase2Offset-=omega*dt;\n    \n    const centerY=H*0.5;\n    const xStart=W*0.08;\n    const xEnd=W*0.92;\n    const xRange=xEnd-xStart;\n    \n    ctx.fillStyle='#0f1418';\n    ctx.fillRect(0,0,W,H);\n    \n    ctx.globalAlpha=0.1;\n    ctx.strokeStyle='#445862';\n    ctx.lineWidth=1;\n    for(let i=0;i<=10;i++){\n      const x=xStart+i*xRange/10;\n      ctx.beginPath();ctx.moveTo(x,0);ctx.lineTo(x,H);ctx.stroke();\n    }\n    ctx.globalAlpha=1;\n    \n    const tMod=ts/1000;\n    const mode=Math.floor(tMod)%3;\n    \n    if(mode===0){\n      ctx.font=Math.round(H*0.05)+'px sans-serif';\n      ctx.fillStyle='#de7f76';\n      ctx.textAlign='center';\n      ctx.fillText('❌ MISCONCEPTION',W*0.5,H*0.15);\n      ctx.font=Math.round(H*0.035)+'px sans-serif';\n      ctx.fillStyle='var(--muted)';\n      ctx.fillText('\"Wave travels along string\"',W*0.5,H*0.24);\n      \n      const points=[];\n      for(let i=0;i<=100;i++){\n        const x=xStart+i*(xEnd-xStart)/100;\n        const offset=(phase1Offset+i*0.08)%Math.PI;\n        const y1=centerY-amp*Math.sin(i*k)*Math.cos(omega*tMod+offset);\n        points.push({x,y:y1});\n      }\n      \n      ctx.strokeStyle='#de7f76';\n      ctx.lineWidth=2.5;\n      ctx.globalAlpha=0.7;\n      ctx.beginPath();\n      ctx.moveTo(points[0].x,points[0].y);\n      for(let p of points)ctx.lineTo(p.x,p.y);\n      ctx.stroke();\n      ctx.globalAlpha=1;\n      \n      for(let p of points){\n        glowDot(p.x,p.y,3,'rgba(222,127,118,ALPHA)',0.5);\n      }\n      \n      const arrowX=xStart+50*(xEnd-xStart)/100;\n      const dir=Math.cos(tMod*2)>0?1:-1;\n      arrow(arrowX-20*dir,centerY-80,arrowX+30*dir,centerY-80,'#de7f76');\n      ctx.fillStyle='#de7f76';\n      ctx.font=Math.round(H*0.03)+'px sans-serif';\n      ctx.textAlign='center';\n      ctx.fillText('→ traveling',arrowX+50*dir,centerY-65);\n      \n    }else if(mode===1){\n      ctx.font=Math.round(H*0.05)+'px sans-serif';\n      ctx.fillStyle='#87e8a8';\n      ctx.textAlign='center';\n      ctx.fillText('✓ REALITY: Two Opposite Waves',W*0.5,H*0.15);\n      \n      const points1=[];\n      const points2=[];\n      for(let i=0;i<=100;i++){\n        const x=xStart+i*(xEnd-xStart)/100;\n        const y1=centerY-amp*0.5*Math.sin(i*k)*Math.cos(omega*tMod+phase1Offset);\n        const y2=centerY-amp*0.5*Math.sin(i*k)*Math.cos(omega*tMod+phase2Offset);\n        points1.push({x,y:y1});\n        points2.push({x,y:y2});\n      }\n      \n      ctx.strokeStyle='#63b3ff';\n      ctx.lineWidth=1.8;\n      ctx.globalAlpha=0.5;\n      ctx.beginPath();\n      ctx.moveTo(points1[0].x,points1[0].y);\n      for(let p of points1)ctx.lineTo(p.x,p.y);\n      ctx.stroke();\n      \n      ctx.strokeStyle='#e5ba67';\n      ctx.globalAlpha=0.5;\n      ctx.beginPath();\n      ctx.moveTo(points2[0].x,points2[0].y);\n      for(let p of points2)ctx.lineTo(p.x,p.y);\n      ctx.stroke();\n      ctx.globalAlpha=1;\n      \n      ctx.fillStyle='#63b3ff';\n      ctx.font=Math.round(H*0.025)+'px sans-serif';\n      ctx.textAlign='left';\n      ctx.fillText('→ wave +',xStart+20,H*0.24);\n      \n      ctx.fillStyle='#e5ba67';\n      ctx.fillText('← wave −',xStart+20,H*0.31);\n      \n    }else{\n      ctx.font=Math.round(H*0.05)+'px sans-serif';\n      ctx.fillStyle='#87e8a8';\n      ctx.textAlign='center';\n      ctx.fillText('✓ RESULT: Standing Wave (No Travel)',W*0.5,H*0.15);\n      \n      const points=[];\n      const nodeX=[];\n      const antinodeX=[];\n      \n      for(let i=0;i<=100;i++){\n        const x=xStart+i*(xEnd-xStart)/100;\n        const displace=amp*Math.sin(i*k)*Math.cos(omega*tMod+phaseCtrl);\n        const y=centerY-displace;\n        points.push({x,y});\n        \n        if(Math.abs(Math.sin(i*k))<0.08)nodeX.push(x);\n        if(Math.abs(Math.sin(i*k))>0.92)antinodeX.push({x,val:Math.sin(i*k)});\n      }\n      \n      ctx.strokeStyle='#87e8a8';\n      ctx.lineWidth=3;\n      ctx.beginPath();\n      ctx.moveTo(points[0].x,points[0].y);\n      for(let p of points)ctx.lineTo(p.x,p.y);\n      ctx.stroke();\n      \n      for(let p of points){\n        glowDot(p.x,p.y,2,'rgba(135,232,168,ALPHA)',0.4);\n      }\n      \n      ctx.fillStyle='#de7f76';\n      ctx.globalAlpha=0.9;\n      for(let x of nodeX){\n        ctx.beginPath();ctx.arc(x,centerY,6,0,Math.PI*2);ctx.fill();\n      }\n      ctx.globalAlpha=1;\n      \n      ctx.fillStyle='#63b3ff';\n      ctx.globalAlpha=0.7;\n      for(let node of antinodeX){\n        const pulse=3+2*Math.abs(Math.sin(omega*tMod*2));\n        ctx.beginPath();ctx.arc(node.x,centerY,pulse,0,Math.PI*2);ctx.fill();\n      }\n      ctx.globalAlpha=1;\n      \n      ctx.fill","remediationGoal":"Close concept_misunderstanding for physics."},"rendererStyle":"three_js"}}},"metadata":{"rendered_at":"2026-05-13T21:41:56.044Z","cache_hit":false,"cost_usd":0},"error":null}