{"job_id":"anim-job-70e565be-9f59-4db1-b4fd-a465f76619e9","request_id":"test-physics-ohm-1b2ba770-6450-4b1c-a815-8b28db3d7c87-1778704510421","status":"complete","asset":{"primary_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-70e565be-9f59-4db1-b4fd-a465f76619e9/walkthrough.mp4","thumbnail_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-70e565be-9f59-4db1-b4fd-a465f76619e9/thumb.jpg","transcript_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-70e565be-9f59-4db1-b4fd-a465f76619e9/transcript.vtt","interactive_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-70e565be-9f59-4db1-b4fd-a465f76619e9/index.html","scenefile_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-70e565be-9f59-4db1-b4fd-a465f76619e9/scene-source.json","duration_seconds":15,"byte_size":500867,"renderer":"html_three_js_local","parameters":{"style":"auto","executor":"native_render_executor","localPath":"/app/storage/assets/anim-job-70e565be-9f59-4db1-b4fd-a465f76619e9","control_count":2,"interactivity":"none","simulation_id":"physics.10.electricity.ohms_law_vi_graph","renderer_style":"three_js","durationSeconds":15,"render_manifest":{"jobId":"anim-job-70e565be-9f59-4db1-b4fd-a465f76619e9","request":{"gap":{"topic":"ohm-law-vi-graph","severity":"moderate","error_type":"formula_misuse","memory_state":"fragile","display_topic":"Ohm Law V-I Graph","common_wrong_answer":"Current increases exponentially with voltage in a resistor.","confidence_at_error":"high","correct_understanding":"Current is directly proportional to voltage for fixed resistance."},"target":{"style":"auto","render":{"fps":30,"format":"mp4","resolution":"1920x1080","include_thumbnail":true,"include_transcript":true},"audience":{"tone":"neutral_instructional","grade":"10","language":"en"},"interactivity":"none","duration_seconds":15},"context":{"chapter":{"name":"Electricity","ncert_class":10,"ncert_chapter_number":12},"sub_topics":[{"topic":"Ohm Law","key_concepts":["Ohm","V I"]}]},"metadata":{"priority":"normal"},"exam_type":"neet","asset_type":"simulation","request_id":"test-physics-ohm-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":"Ohm Law V-I Graph"},{"label":"Mistake","visual":"Show the wrong approach and why it seems plausible.","narration":"Current increases exponentially with voltage in a resistor."},{"label":"Correction","visual":"Show the right approach step by step.","narration":"Current is directly proportional to voltage for fixed resistance."},{"label":"Concept","visual":"Highlight the key formula and the governing relationship.","narration":"Ohm. V I"}],"title":"Ohm Law V-I Graph","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>Ohm's Law: V-I Graph Misconception</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>Ohm's Law V-I Graph</h1>\n    <p class=\"sub\">Why current is NOT exponential with voltage</p>\n    <p class=\"formula\">I = V / R (Linear, not exponential)</p>\n    <label class=\"control\"><span>Voltage (V): <strong id=\"v-voltage\">5</strong> V</span><input id=\"c-voltage\" type=\"range\" min=\"1\" max=\"12\" step=\"0.5\" value=\"5\"/></label>\n    <label class=\"control\"><span>Resistance (Ω): <strong id=\"v-resistance\">10</strong> Ω</span><input id=\"c-resistance\" type=\"range\" min=\"2\" max=\"50\" step=\"2\" value=\"10\"/></label>\n    <label class=\"control\"><span>Animation Phase: <strong id=\"v-phase\">0</strong>%</span><input id=\"c-phase\" type=\"range\" min=\"0\" max=\"100\" step=\"1\" value=\"0\"/></label>\n    <ul>\n      <li><strong>Misconception:</strong> I ∝ e^V (exponential curve)</li>\n      <li><strong>Reality:</strong> I = V/R (straight line)</li>\n      <li><strong>Why:</strong> Resistance is constant; doubling V doubles I linearly</li>\n      <li><strong>Graph:</strong> Left shows wrong curve; right shows truth</li>\n    </ul>\n  </aside>\n  <section>\n    <div class=\"stage\" id=\"stage\">\n      <div class=\"legend\" id=\"legend\">V=5V, R=10Ω, I=0.5A</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\":\"voltage\",\"label\":\"Voltage\",\"min\":1,\"max\":12,\"step\":0.5,\"value\":5,\"units\":\"V\"},{\"key\":\"resistance\",\"label\":\"Resistance\",\"min\":2,\"max\":50,\"step\":2,\"value\":10,\"units\":\"Ω\"},{\"key\":\"phase\",\"label\":\"Animation Phase\",\"min\":0,\"max\":100,\"step\":1,\"value\":0,\"units\":\"%\"}];\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  let voltage=5,resistance=10,animPhase=0;\n  let wrongTrail=[],correctTrail=[];\n  const maxTrailLen=80;\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 trail(points,color){\n    if(points.length<2)return;\n    ctx.strokeStyle=color;ctx.lineWidth=2;ctx.globalAlpha=0.4;\n    ctx.beginPath();ctx.moveTo(points[0].x,points[0].y);\n    for(let i=1;i<points.length;i++)ctx.lineTo(points[i].x,points[i].y);\n    ctx.stroke();ctx.globalAlpha=1;\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  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    voltage=Number(document.getElementById('c-voltage').value);\n    resistance=Number(document.getElementById('c-resistance').value);\n    animPhase=Number(document.getElementById('c-phase').value);\n    \n    const currCurrent=voltage/resistance;\n    const t=animPhase/100;\n    \n    // Exponential (wrong) trace at time t scaled to voltage sweep\n    const wrongVoltage=Math.max(0.1,1+(voltage-1)*t);\n    const wrongCurrent=0.05*Math.exp(wrongVoltage*0.3);\n    \n    // Linear (correct) trace\n    const correctVoltage=Math.max(0.1,1+(voltage-1)*t);\n    const correctCurrent=correctVoltage/resistance;\n    \n    wrongTrail.push({x:wrongVoltage,y:wrongCurrent});\n    correctTrail.push({x:correctVoltage,y:correctCurrent});\n    if(wrongTrail.length>maxTrailLen)wrongTrail.shift();\n    if(correctTrail.length>maxTrailLen)correctTrail.shift();\n    \n    ctx.clearRect(0,0,W,H);\n    \n    // === BACKGROUND LAYER ===\n    ctx.fillStyle='#0a0f13';\n    ctx.fillRect(0,0,W,H);\n    ctx.fillStyle='rgba(50,70,85,0.15)';\n    for(let i=0;i<=10;i++){\n      ctx.fillRect(W*0.05+i*W*0.45/10,H*0.15,1,H*0.7);\n      ctx.fillRect(W*0.05,H*0.15+i*H*0.7/10,W*0.45,1);\n      ctx.fillRect(W*0.55+i*W*0.4/10,H*0.15,1,H*0.7);\n      ctx.fillRect(W*0.55,H*0.15+i*H*0.7/10,W*0.4,1);\n    }\n    \n    // === TITLE ===\n    ctx.fillStyle='var(--text)';\n    ctx.font=Math.round(H*0.05)+'px sans-serif';\n    ctx.textAlign='center';\n    ctx.fillText('MISCONCEPTION vs REALITY',W/2,H*0.08);\n    \n    // === LEFT GRAPH: EXPONENTIAL (WRONG) ===\n    const leftX0=W*0.075,leftY0=H*0.85;\n    const leftW=W*0.4,leftH=H*0.65;\n    \n    // Axes\n    ctx.strokeStyle='#de7f76';\n    ctx.lineWidth=2;\n    ctx.beginPath();ctx.moveTo(leftX0,leftY0);ctx.lineTo(leftX0,leftY0-leftH);ctx.stroke();\n    ctx.beginPath();ctx.moveTo(leftX0,leftY0);ctx.lineTo(leftX0+leftW,leftY0);ctx.stroke();\n    \n    // Labels\n    ctx.fillStyle='#de7f76';\n    ctx.font=Math.round(H*0.035)+'px sans-serif';\n    ctx.textAlign='right';ctx.fillText('I (A)',leftX0-8,leftY0-leftH-4);\n    ctx.textAlign='center';ctx.fillText('V (V)',leftX0+leftW+4,leftY0+H*0.04);\n    \n    // Exponential curve (WRONG)\n    ctx.strokeStyle='#de7f76';\n    ctx.lineWidth=2;\n    ctx.globalAlpha=0.5;\n    ctx.beginPath();\n    for(let vNorm=0;vNorm<=1;vNorm+=0.02){\n      const vVal=1+vNorm*11;\n      const iVal=0.05*Math.exp(vVal*0.3);\n      const px=leftX0+vNorm*leftW;\n      const py=leftY0-Math.min(iVal,1.2)*leftH;\n      if(vNorm===0)ctx.moveTo(px,py);\n      else ctx.lineTo(px,py);\n    }\n    ctx.stroke();\n    ctx.globalAlpha=1;\n    \n    // Wrong trace point\n    if(wrongTrail.length>0){\n      trail(wrongTrail.map(p=>({x:leftX0+((p.x-1)/11)*leftW,y:leftY0-Math.min(p.y,1.2)*leftH})),'#de7f76');\n      const last=wrongTrail[wrongTrail.length-1];\n      const wpx=leftX0+((last.x-1)/11)*leftW;\n      const wpy=leftY0-Math.min(last.y,1.2)*leftH;\n      glowDot(wpx,wpy,6,'rgba(222,127,118,ALPHA)',0.8);\n      ctx.fillStyle='#de7f76';\n      ctx.beginPath();ctx.arc(wpx,wpy,4,0,Math.PI*2);ctx.fill();\n    }\n    \n    // Label\n    ctx.fillStyle='#de7f76';\n    ctx.font=Math.round(H*0.04)+'px sans-serif';\n    ctx.textAlign='center';\n    ctx.fillText('❌ EXPONENTIAL',leftX0+leftW/2,leftY0+H*0.12);\n    ctx.font=Math.round(H*0.032)+'px sans-serif';\n    ctx.fillStyle='#c8d4da';\n    ctx.fillText('(Wrong: I ∝ e^V)',leftX0+leftW/2,leftY0+H*0.18);\n    \n    // === RIGHT GRAPH: LINEAR (CORRECT) ===\n    const rightX0=W*0.55,rightY0=H*0.85;\n    const rightW=W*0.4,rightH=H*0.65;\n    \n    // Axes\n    ctx.strokeStyle='#87e8a8';\n    ctx.lineWidth=2;\n    ctx.beginPath();ctx.moveTo(rightX0,rightY0);ctx.lineTo(rightX0,rightY0-rightH);ctx.stroke();\n    ctx.beginPath();ctx.moveTo(rightX0,rightY0);ctx.lineTo(rightX0+rightW,rightY0);ctx.stroke();\n    \n    // Labels\n    ctx.fillStyle='#87e8a8';\n    ctx.font=Math.round(H*0.035)+'px sans-serif';\n    ctx.textAlign='right';ctx.fillText('I (A)',rightX0-8,rightY0-rightH-4);\n    ctx.textAlign='center';ctx.fillText('V (V)',rightX0+rightW+4,rightY0+H*0.04);\n    \n    // Linear curve (CORRECT) - OHM'S LAW\n    ctx.strokeStyle='#87e8a8';\n    ctx.lineWidth=2.5;\n    ctx.globalAlpha=0.6;\n    ctx.beginPath();\n    for(let vNorm=0;vNorm<=1;vNorm+=0.02){\n      const vVal=1+vNorm*11;\n      const iVal=vVal/resistance;\n      const px=rightX0+vN","remediationGoal":"Close formula_misuse for physics."},"rendererStyle":"three_js"},"simulation_title":"Ohm's Law (V-I Graph)"}},"metadata":{"rendered_at":"2026-05-13T20:46:11.181Z","cache_hit":false,"cost_usd":0},"error":null}