{"job_id":"anim-job-c803e67a-1dd3-43b2-a79c-9ce4c016964c","request_id":"bulk-2026-05-21T09-24-28-957Z-2-a1-physics.08.force-pressure.balanced-vs-unbalanced","status":"complete","asset":{"primary_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-c803e67a-1dd3-43b2-a79c-9ce4c016964c/walkthrough.mp4","thumbnail_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-c803e67a-1dd3-43b2-a79c-9ce4c016964c/thumb.jpg","transcript_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-c803e67a-1dd3-43b2-a79c-9ce4c016964c/transcript.vtt","interactive_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-c803e67a-1dd3-43b2-a79c-9ce4c016964c/index.html","scenefile_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-c803e67a-1dd3-43b2-a79c-9ce4c016964c/scene-source.json","duration_seconds":15,"byte_size":477312,"renderer":"html_three_js_local","parameters":{"style":"auto","executor":"native_render_executor","localPath":"/app/storage/assets/anim-job-c803e67a-1dd3-43b2-a79c-9ce4c016964c","interactivity":"none","renderer_style":"three_js","durationSeconds":15,"render_manifest":{"jobId":"anim-job-c803e67a-1dd3-43b2-a79c-9ce4c016964c","request":{"gap":{"topic":"force_pressure-balanced_vs_unbalanced","severity":"moderate","error_type":"concept_misunderstanding","memory_state":"fragile","display_topic":"Balanced vs Unbalanced Forces","common_wrong_answer":"The concept works the same way in all conditions.","confidence_at_error":"high","correct_understanding":"The concept depends on constraints, assumptions, and variable relationships."},"target":{"style":"auto","render":{"fps":30,"format":"mp4","resolution":"1920x1080","include_thumbnail":true,"include_transcript":true},"audience":{"tone":"neutral_instructional","grade":"8","language":"en"},"interactivity":"none","duration_seconds":15},"context":{"chapter":{"name":"Force & Pressure","ncert_class":8},"sub_topics":[{"topic":"force_pressure-balanced_vs_unbalanced","key_concepts":["Balanced vs Unbalanced Forces","Force & Pressure"]}]},"metadata":{"priority":"normal","trace_id":"bulk-run-2026-05-21T09-24-28-957Z"},"exam_type":"neet","asset_type":"simulation","request_id":"bulk-2026-05-21T09-24-28-957Z-2-a1-physics.08.force-pressure.balanced-vs-unbalanced","subject_area":"physics"},"renderer":"html_three_js_local","storyboard":{"beats":[{"label":"Topic","visual":"Show the topic title and the key physical context.","narration":"Balanced vs Unbalanced Forces"},{"label":"Mistake","visual":"Show the wrong approach and why it seems plausible.","narration":"The concept works the same way in all conditions."},{"label":"Correction","visual":"Show the right approach step by step.","narration":"The concept depends on constraints, assumptions, and variable relationships."},{"label":"Concept","visual":"Highlight the key formula and the governing relationship.","narration":"Balanced vs Unbalanced Forces. Force & Pressure"}],"title":"Balanced vs Unbalanced Forces","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>Balanced vs Unbalanced Forces</title>\n  <style>\n    :root{--bg:#101417;--panel:#1c232e;--line:#3b4a55;--accent:#e0b15b;--text:#f3f7fa;--muted:#a8b4bf;--blue:#4ea8ff;--green:#8decb0;--red:#df8279;}\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%,#2a3944 0%,var(--bg) 58%);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(28,35,46,.86),rgba(14,18,26,.94));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:#162029;color:var(--accent);font-family:ui-monospace,monospace;font-size:0.9rem;box-shadow:inset 0 0 28px rgba(224,177,91,.14);}\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 #4b6170;border-radius:14px;position:relative;overflow:hidden;background:radial-gradient(circle at 50% 38%,#3f6272,#141b22 72%);box-shadow:0 18px 60px rgba(0,0,0,.42), inset 0 0 90px rgba(255,255,255,.05);}\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>Balanced vs Unbalanced Forces</h1>\n    <p class=\"sub\">Why net force matters: context determines motion</p>\n    <p class=\"formula\">F<sub>net</sub> = ΣF determines acceleration</p>\n    <label class=\"control\"><span>Applied Force: <strong id=\"v-force\">50</strong> N</span><input id=\"c-force\" type=\"range\" min=\"0\" max=\"150\" step=\"5\" value=\"50\"/></label>\n    <label class=\"control\"><span>Friction: <strong id=\"v-friction\">30</strong> N</span><input id=\"c-friction\" type=\"range\" min=\"0\" max=\"100\" step=\"5\" value=\"30\"/></label>\n    <label class=\"control\"><span>Case: <strong id=\"v-case\">Unbalanced</strong></span><input id=\"c-case\" type=\"range\" min=\"0\" max=\"1\" step=\"1\" value=\"0\"/></label>\n    <ul>\n      <li><strong style=\"color:#df8279\">✗ Misconception:</strong> Forces work the same always</li>\n      <li><strong style=\"color:#8decb0\">✓ Truth:</strong> F<sub>net</sub> determines outcome</li>\n      <li><strong style=\"color:#4ea8ff\">Key:</strong> Equal forces → balanced (v constant)</li>\n      <li><strong style=\"color:#4ea8ff\">Key:</strong> Unequal forces → acceleration</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\":\"force\",\"label\":\"Applied Force\",\"min\":0,\"max\":150,\"step\":5,\"value\":50,\"units\":\"N\"},\n  {\"key\":\"friction\",\"label\":\"Friction\",\"min\":0,\"max\":100,\"step\":5,\"value\":30,\"units\":\"N\"},\n  {\"key\":\"case\",\"label\":\"Case\",\"min\":0,\"max\":1,\"step\":1,\"value\":0,\"units\":\"\"}\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',()=>{\n    if(c.key==='case'){\n      out.textContent=inp.value==='0'?'Unbalanced':'Balanced';\n    } else {\n      out.textContent=inp.value;\n    }\n    window.updateModel?.();\n  });\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  // State variables\n  let posX=200, velX=0, accelX=0;\n  let time=0;\n  let trailPoints=[];\n  let graphPoints=[];\n  let cycleCounter=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,thickness=2){\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=12;\n    ctx.strokeStyle=color;ctx.lineWidth=thickness;\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    // Read sliders\n    const appliedForce=Number(document.getElementById('c-force').value);\n    const friction=Number(document.getElementById('c-friction').value);\n    const caseMode=Number(document.getElementById('c-case').value);\n\n    // Determine net force based on case\n    let netForce;\n    if(caseMode===0){\n      // Unbalanced: user controls applied force, friction is fixed\n      netForce=appliedForce-friction;\n    } else {\n      // Balanced: force equals friction (demonstrate equilibrium)\n      netForce=0;\n    }\n\n    // Physics: F_net = ma, so a = F_net/m (m=1 for simplicity)\n    accelX=netForce;\n    velX+=accelX*dt;\n    \n    // Damping for stability\n    velX*=0.98;\n    posX+=velX*dt;\n\n    // Boundary clamp\n    const boxLeft=180, boxRight=W-180;\n    if(posX<boxLeft){posX=boxLeft;velX=0;}\n    if(posX>boxRight){posX=boxRight;velX=0;}\n\n    time+=dt;\n\n    // Trail\n    trailPoints.push({x:posX,y:H*0.55});\n    if(trailPoints.length>120)trailPoints.shift();\n\n    // Graph: track velocity over time\n    graphPoints.push({t:time,v:velX});\n    if(graphPoints.length>180)graphPoints.shift();\n\n    // ===== DRAW =====\n    ctx.clearRect(0,0,W,H);\n\n    // Background layers\n    ctx.fillStyle='rgba(20,27,34,0.4)';\n    ctx.fillRect(0,0,W,H*0.65);\n\n    // Ground line\n    ctx.strokeStyle='#465a64';ctx.lineWidth=2;\n    ctx.beginPath();ctx.moveTo(160,H*0.62);ctx.lineTo(W-160,H*0.62);ctx.stroke();\n\n    // Box (object)\n    const boxW=50, boxH=35;\n    ctx.fillStyle='#3f7a9f';\n    ctx.fillRect(posX-boxW/2,H*0.55-boxH/2,boxW,boxH);\n    \n    // Glow effect if accelerating\n    if(Math.abs(accelX)>2){\n      glowDot(posX,H*0.55,'#4ea8ff',0.5);\n    }\n\n    // Trail (velocity history)\n    if(trailPoints.length>1){\n      ctx.strokeStyle='rgba(78,168,255,0.3)';ctx.lineWidth=1.5;\n      ctx.beginPath();ctx.moveTo(trailPoints[0].x,trailPoints[0].y);\n      for(let i=1;i<trailPoints.length;i++){\n        ctx.lineTo(trailPoints[i].x,trailPoints[i].y);\n      }\n      ctx.stroke();\n    }\n\n    // Force vectors (above box)\n    const vecScale=0.3;\n    const vecY=H*0.42;\n    \n    // Applied force (right, green)\n    const appVecLen=appliedForce*vecScale;\n    arrow(posX-25,vecY,posX-25+appVecLen,vecY,'#8decb0',3);\n    ctx.fillStyle='#8decb0';ctx.font=Math.round(H*0.035)+'px sans-serif';\n    ctx.textAlign='center';ctx.fillText('F_app',posX-25+appVecLen/2,vecY-12);\n\n    // Friction force (left, red)\n    const frictionVecLen=-friction*vecScale;\n    arrow(posX+25,vecY,posX+25+frictionVecLen,vecY,'#df8279',3);\n    ctx.fillStyle='#df8279';ctx.font=Math.round(H*0.035)+'px sans-serif';\n    ctx.textAlign='center';ctx.fillText('F_friction',posX+25+frictionVecLen/2,vecY-12);\n\n    // Net force label (center, yellow if nonzero)\n    ctx.fillStyle=Math.abs(netForce)>2?'#e0b15b':'#8decb0';\n    ctx.font=Math.round(H*0.04)+'px sans-serif';ctx.textAlign='center';\n    ctx.fillText('F_net = '+Math.round(netForce)+' N',W/2,H*0.2);\n\n    // Status\n    const status=caseMode===0?'UNBALANCED':'BALANCED';\n    const statusColor=caseMode===0?'#4ea8ff':'#8decb0';\n    ctx.fillStyle=statusColor;ctx.font=Math.round(H*0.045)+'px sans-serif';\n    ctx.fillText(status,W/2,H*0.25);\n\n    // Case description\n    ctx.fillStyle='#a8b4bf';ctx.font=Math.round(H*0.032)+'px sans-serif';\n    if(caseMode===0){\n      ctx.fillText('Applied force ≠ Friction',W/2,H*0.295);\n      ctx.fillText('→ Object accelerates',W/2,H*0.335);\n    } else {\n      ctx.fillText('Applied force = Friction',W/2,H*0.295);\n      ctx.fillText('→ Constant velocity (or at rest)',W/2,H*0.335);\n    }\n\n    // Velocity text\n    ctx.fillStyle='#4ea8ff';ctx.font=Math.round(H*0.032)+'px sans-serif';\n    ctx.textAlign='left';\n    ctx.fillText('v = '+Math.round(velX*10)/10+' m/s',190,H*0.75);\n    ctx.fillText('a = '+Math.round(accelX*10)/10+' m/s²',190,H*0.8);\n\n    // Graph: velocity over time (bottom right)\n    const graphX=W-240, graphY=H-100, graphW=220, graphH=80;\n    ctx.strokeStyle='#465a64';ctx.lineWidth=1;\n    ctx.strokeRect(graphX,graphY,graphW,graphH);\n    ctx.fillStyle='rgba(20,27,34,0.6)';\n    ctx.fillRect(graphX,graphY,graphW,graphH);\n\n    // Graph axes\n    ctx.strokeStyle='#3b4a55';ctx.lineWidth=1;\n    ctx.beginPath();ctx.moveTo(graphX+30,graphY+graphH-10);ctx.lineTo(graphX+graphW-10,graphY+graphH-10);ctx.stroke();\n    ctx.beginPath();ctx.moveTo(graphX+30,graphY+10);ctx.lineTo(graphX+30,graphY+graphH-10);ctx.stroke();\n\n    // Plot velocity history\n    if(graphPoints.length>1){\n      ctx.strokeStyle='#4ea8ff';ctx.lineWidth=1.5;\n      ctx.beginPath();\n      for(let i=0;i<graphPoints.length;i++){\n        const px=graphX+30+(i/(graphPoints.length-1||1))*(graphW-50);\n        const vy=graphPoints[i].v;\n        const maxV=Math.max(Math.abs(velX),1)*2;\n        const py=graphY+graphH-10-(vy/(maxV||1))*60;\n        if(i===0)ctx.moveTo(px","remediationGoal":"Close concept_misunderstanding for physics."},"rendererStyle":"three_js"}}},"metadata":{"rendered_at":"2026-05-21T09:33:59.767Z","cache_hit":false,"cost_usd":0},"error":null}