{"job_id":"anim-job-cba9537f-751f-4a95-8b3d-eb379abecc0d","request_id":"bulk-2026-05-21T02-06-59-858Z-2-physics.08.force-pressure.balanced-vs-unbalanced","status":"complete","asset":{"primary_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-cba9537f-751f-4a95-8b3d-eb379abecc0d/walkthrough.mp4","thumbnail_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-cba9537f-751f-4a95-8b3d-eb379abecc0d/thumb.jpg","transcript_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-cba9537f-751f-4a95-8b3d-eb379abecc0d/transcript.vtt","interactive_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-cba9537f-751f-4a95-8b3d-eb379abecc0d/index.html","scenefile_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-cba9537f-751f-4a95-8b3d-eb379abecc0d/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-cba9537f-751f-4a95-8b3d-eb379abecc0d","interactivity":"none","renderer_style":"three_js","durationSeconds":15,"render_manifest":{"jobId":"anim-job-cba9537f-751f-4a95-8b3d-eb379abecc0d","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-21T02-06-59-858Z"},"exam_type":"neet","asset_type":"simulation","request_id":"bulk-2026-05-21T02-06-59-858Z-2-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\">Forces depend on constraints and whether they cancel out</p>\n    <p class=\"formula\">ΣF = ma (not always zero!)</p>\n    <label class=\"control\"><span>Applied Force: <strong id=\"v-force\">8</strong> N</span><input id=\"c-force\" type=\"range\" min=\"0\" max=\"20\" step=\"0.5\" value=\"8\"/></label>\n    <label class=\"control\"><span>Friction Force: <strong id=\"v-friction\">5</strong> N</span><input id=\"c-friction\" type=\"range\" min=\"0\" max=\"20\" step=\"0.5\" value=\"5\"/></label>\n    <label class=\"control\"><span>Show Scenario: <strong id=\"v-scenario\">Balanced</strong></span><input id=\"c-scenario\" type=\"range\" min=\"0\" max=\"1\" step=\"1\" value=\"0\"/></label>\n    <ul>\n      <li><strong>❌ Myth:</strong> Forces always balance in all cases</li>\n      <li><strong>✓ Reality:</strong> Forces ONLY balance when ΣF = 0 (a = 0)</li>\n      <li><strong>Key:</strong> When forces don't cancel → acceleration occurs</li>\n      <li><strong>Watch:</strong> Change forces to see balanced vs unbalanced motion</li>\n    </ul>\n  </aside>\n  <section>\n    <div class=\"stage\" id=\"stage\">\n      <div class=\"legend\" id=\"legend\">Scenario: Balanced</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\":\"force\",\"label\":\"Applied Force\",\"min\":0,\"max\":20,\"step\":0.5,\"value\":8,\"units\":\"N\"},{\"key\":\"friction\",\"label\":\"Friction Force\",\"min\":0,\"max\":20,\"step\":0.5,\"value\":5,\"units\":\"N\"},{\"key\":\"scenario\",\"label\":\"Show Scenario\",\"min\":0,\"max\":1,\"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',()=>{\n    if(c.key==='scenario'){out.textContent=inp.value=='0'?'Balanced':'Unbalanced';}\n    else{out.textContent=inp.value;}\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 = 0, velX = 0, accelX = 0, time = 0;\n  let trailPoints = [];\n  const maxTrailLen = 40;\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.5;\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 appliedF = Number(document.getElementById('c-force').value);\n    const frictionF = Number(document.getElementById('c-friction').value);\n    const scenarioMode = Number(document.getElementById('c-scenario').value);\n\n    // Determine net force and acceleration (mass = 5 kg)\n    const mass = 5;\n    let netForce = 0;\n    let isBalanced = false;\n\n    if(scenarioMode === 0){\n      // BALANCED: user must set forces equal\n      netForce = appliedF - frictionF;\n      isBalanced = Math.abs(netForce) < 0.5;\n    } else {\n      // UNBALANCED: show net force dynamically\n      netForce = appliedF - frictionF;\n      isBalanced = false;\n    }\n\n    accelX = netForce / mass;\n\n    // Update velocity and position\n    velX += accelX * dt;\n    posX += velX * dt;\n\n    // Clamp position to visible range, add friction to motion\n    const maxX = W * 0.7;\n    if(posX > maxX){posX = maxX; velX = 0;}\n    if(posX < W * 0.05){posX = W * 0.05; velX = 0;}\n\n    // Add trail point\n    const blockX = W * 0.1 + posX;\n    const blockY = H * 0.55;\n    trailPoints.push({x: blockX, y: blockY});\n    if(trailPoints.length > maxTrailLen)trailPoints.shift();\n\n    // Clear canvas\n    ctx.clearRect(0,0,W,H);\n\n    // Draw background grid (faint)\n    ctx.strokeStyle='rgba(59,74,85,0.2)';\n    ctx.lineWidth=1;\n    for(let i=0;i<W;i+=40){\n      ctx.beginPath();ctx.moveTo(i,0);ctx.lineTo(i,H);ctx.stroke();\n    }\n\n    // Draw ground line\n    ctx.strokeStyle='#3B4A55';\n    ctx.lineWidth=3;\n    ctx.beginPath();ctx.moveTo(W*0.05, blockY+30);ctx.lineTo(W*0.9, blockY+30);ctx.stroke();\n\n    // Draw friction indicator (ground texture)\n    ctx.fillStyle='rgba(59,74,85,0.3)';\n    for(let i=0;i<10;i++){\n      const xx = W*0.05 + (i*W*0.085);\n      ctx.fillRect(xx, blockY+30, 8, 10);\n    }\n\n    // Draw motion trail (faint)\n    if(trailPoints.length>1){\n      ctx.strokeStyle='rgba(78,168,255,0.25)';\n      ctx.lineWidth=2;\n      ctx.beginPath();\n      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    // Draw block (box)\n    const blockW = 40, blockH = 35;\n    ctx.fillStyle = isBalanced ? '#8decb0' : '#df8279';\n    ctx.fillRect(blockX - blockW/2, blockY - blockH/2, blockW, blockH);\n    ctx.strokeStyle = isBalanced ? '#5ab87d' : '#c66b5e';\n    ctx.lineWidth = 2;\n    ctx.strokeRect(blockX - blockW/2, blockY - blockH/2, blockW, blockH);\n\n    // Glow effect based on net force\n    const glowAlpha = Math.min(0.8, Math.abs(netForce) / 15);\n    glowDot(blockX, blockY, 25, isBalanced ? 'rgba(93,184,125,ALPHA)' : 'rgba(198,107,94,ALPHA)', glowAlpha);\n\n    // Draw applied force arrow (blue)\n    const arrowStartX = blockX - blockW/2 - 15;\n    const arrowEndX = arrowStartX - appliedF * 3.5;\n    arrow(arrowStartX, blockY, arrowEndX, blockY, '#4EA8FF');\n\n    // Draw friction force arrow (red)\n    const frictionStartX = blockX + blockW/2 + 15;\n    const frictionEndX = frictionStartX + frictionF * 3.5;\n    arrow(frictionStartX, blockY, frictionEndX, blockY, '#DF8279');\n\n    // Force labels\n    ctx.fillStyle = '#4EA8FF';\n    ctx.font = Math.round(H*0.045)+'px sans-serif';\n    ctx.textAlign = 'center';\n    ctx.fillText('Applied', arrowStartX, blockY - 45);\n    ctx.fillText(appliedF.toFixed(1)+' N', arrowStartX, blockY - 25);\n\n    ctx.fillStyle = '#DF8279';\n    ctx.fillText('Friction', frictionStartX, blockY - 45);\n    ctx.fillText(frictionF.toFixed(1)+' N', frictionStartX, blockY - 25);\n\n    // Net force display (large, center)\n    ctx.fillStyle = isBalanced ? '#8decb0' : '#E0B15B';\n    ctx.font = 'bold '+Math.round(H*0.065)+'px sans-serif';\n    ctx.textAlign = 'center';\n    ctx.fillText('ΣF = '+netForce.toFixed(1)+' N', W*0.5, H*0.15);\n\n    ctx.fillStyle = isBalanced ? '#5ab87d' : '#c66b5e';\n    ctx.font = Math.round(H*0.04)+'px sans-serif';\n    ctx.fillText('a = '+accelX.toFixed(2)+' m/s²', W*0.5, H*0.22);\n\n    // Velocity readout\n    ctx.fillStyle = '#4EA8FF';\n    ctx.font = Math.round(H*0.035)+'px sans-serif';\n    ctx.fillText('v = '+velX.toFixed(2)+' m/s', W*0.5, H*0.88);\n\n    // Legend/status\n    let legendText = isBalanced ? 'BALANCED: ΣF=0, a=0, v=const' : 'UNBALANCED: ΣF≠0, a≠0, moving';\n    document.getElementById('legend').textContent = legendText;\n\n    // Misconception label (top-left corner for context)\n    ctx.fillStyle = '#C66B5E';\n    ctx.font = Math.round(H*0.032)+'px sans-serif';\n    ctx.textAlign = 'left';\n    if(isBalanced){\n      ctx.fillText('✓ Forces balance → No acceleration', W*0.05, H*0.05);\n    } else {\n      ctx.fillText('⚠ Net force present → Acceleration occurs', W*0.05, H*0.05);\n    }\n\n    time += dt;\n    requestAnimationFrame(tick);\n  }\n  requestAnimationFrame(tick);\n  window.updateModel=function(){\n    posX = 0;\n    velX = 0;\n    accelX = 0;\n    trailPoints = [];\n  };\n})();\n</script>\n</body>\n</html>","remediationGoal":"Close concept_misunderstanding for physics."},"rendererStyle":"three_js"}}},"metadata":{"rendered_at":"2026-05-21T02:13:09.764Z","cache_hit":false,"cost_usd":0},"error":null}