{"job_id":"anim-job-756eff47-9d12-4cf3-bfb7-aea7420299b6","request_id":"bulk-2026-05-21T05-50-51-670Z-2-a2-physics.08.force-pressure.balanced-vs-unbalanced","status":"complete","asset":{"primary_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-756eff47-9d12-4cf3-bfb7-aea7420299b6/walkthrough.mp4","thumbnail_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-756eff47-9d12-4cf3-bfb7-aea7420299b6/thumb.jpg","transcript_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-756eff47-9d12-4cf3-bfb7-aea7420299b6/transcript.vtt","interactive_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-756eff47-9d12-4cf3-bfb7-aea7420299b6/index.html","scenefile_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-756eff47-9d12-4cf3-bfb7-aea7420299b6/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-756eff47-9d12-4cf3-bfb7-aea7420299b6","interactivity":"none","renderer_style":"three_js","durationSeconds":15,"render_manifest":{"jobId":"anim-job-756eff47-9d12-4cf3-bfb7-aea7420299b6","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-21T05-50-51-670Z"},"exam_type":"neet","asset_type":"simulation","request_id":"bulk-2026-05-21T05-50-51-670Z-2-a2-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 conditions: what works changes when constraints change.</p>\n    <p class=\"formula\">ΣF = ma | a = 0 (balanced)</p>\n    <label class=\"control\"><span>Applied Force: <strong id=\"v-force\">2</strong> N</span><input id=\"c-force\" type=\"range\" min=\"0\" max=\"10\" step=\"0.5\" value=\"2\"/></label>\n    <label class=\"control\"><span>Friction: <strong id=\"v-friction\">2</strong> N</span><input id=\"c-friction\" type=\"range\" min=\"0\" max=\"10\" step=\"0.5\" value=\"2\"/></label>\n    <label class=\"control\"><span>Mass: <strong id=\"v-mass\">2</strong> kg</span><input id=\"c-mass\" type=\"range\" min=\"0.5\" max=\"5\" step=\"0.5\" value=\"2\"/></label>\n    <ul>\n      <li><strong>✗ Wrong:</strong> Forces always have the same effect</li>\n      <li><strong>✓ Correct:</strong> When ΣF = 0, object is at constant velocity (no change)</li>\n      <li><strong>✓ Correct:</strong> When ΣF ≠ 0, object accelerates (a = ΣF/m)</li>\n      <li><strong>Key:</strong> Same forces, different results based on balance</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\":\"force\",\"label\":\"Applied Force\",\"min\":0,\"max\":10,\"step\":0.5,\"value\":2,\"units\":\"N\"},{\"key\":\"friction\",\"label\":\"Friction\",\"min\":0,\"max\":10,\"step\":0.5,\"value\":2,\"units\":\"N\"},{\"key\":\"mass\",\"label\":\"Mass\",\"min\":0.5,\"max\":5,\"step\":0.5,\"value\":2,\"units\":\"kg\"}];\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  // State variables\n  let pos = 0;\n  let vel = 0;\n  let time = 0;\n  let accel = 0;\n  let trailPoints = [];\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,width){\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=width||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    // Read slider values\n    const appliedForce = Number(document.getElementById('c-force').value);\n    const friction = Number(document.getElementById('c-friction').value);\n    const mass = Number(document.getElementById('c-mass').value);\n    \n    // Physics: calculate net force\n    const netForce = appliedForce - friction;\n    accel = netForce / mass;\n    \n    // Update velocity and position\n    vel += accel * dt;\n    pos += vel * dt;\n    \n    // Clamp position within bounds\n    const leftBound = W * 0.15;\n    const rightBound = W * 0.85;\n    if(pos < leftBound) { pos = leftBound; vel = 0; }\n    if(pos > rightBound) { pos = rightBound; vel = 0; }\n    \n    // Track trail\n    trailPoints.push({x: pos, y: H*0.65});\n    if(trailPoints.length > 120) trailPoints.shift();\n    \n    time += dt;\n    \n    // ===== DRAW =====\n    ctx.clearRect(0,0,W,H);\n    \n    // Background grid\n    ctx.strokeStyle='rgba(91,128,150,0.15)';\n    ctx.lineWidth=1;\n    for(let i=0;i<W;i+=W/8){\n      ctx.beginPath();ctx.moveTo(i,H*0.5);ctx.lineTo(i,H);ctx.stroke();\n    }\n    \n    // Ground\n    ctx.fillStyle='rgba(75,97,112,0.4)';\n    ctx.fillRect(0,H*0.75,W,H*0.25);\n    ctx.strokeStyle='#3B4A55';\n    ctx.lineWidth=2;\n    ctx.beginPath();ctx.moveTo(0,H*0.75);ctx.lineTo(W,H*0.75);ctx.stroke();\n    \n    // Trail visualization\n    if(trailPoints.length>1){\n      ctx.strokeStyle='rgba(78,168,255,0.3)';\n      ctx.lineWidth=3;\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    // Object (box)\n    const objW = W*0.06;\n    const objH = H*0.12;\n    const objY = H*0.63;\n    \n    // Determine state color\n    let stateColor = '#8decb0';\n    let isBalanced = Math.abs(netForce)<0.1;\n    if(isBalanced) stateColor='#e0b15b';\n    if(netForce>0.5) stateColor='#df8279';\n    \n    // Draw object with glow\n    glowDot(pos, objY, objW*0.8, stateColor.replace('#','rgba(')+',.15)', 0.25);\n    ctx.fillStyle=stateColor;\n    ctx.fillRect(pos-objW/2, objY-objH/2, objW, objH);\n    ctx.strokeStyle='#F3F7FA';\n    ctx.lineWidth=2;\n    ctx.strokeRect(pos-objW/2, objY-objH/2, objW, objH);\n    \n    // Draw velocity vector\n    const velArrowLen = Math.abs(vel)*30;\n    if(Math.abs(vel)>0.05){\n      const velCol = vel>0?'#4ea8ff':'#df8279';\n      arrow(pos, objY-objH/2-10, pos+Math.sign(vel)*velArrowLen, objY-objH/2-10, velCol, 3);\n    }\n    \n    // Applied force arrow (red, pointing right)\n    const forceArrowLen = appliedForce*20;\n    if(appliedForce>0.2){\n      arrow(pos-objW/2, objY+objH/2+15, pos-objW/2+forceArrowLen, objY+objH/2+15, '#C66B5E', 3);\n    }\n    \n    // Friction arrow (blue, pointing left)\n    const frictionArrowLen = friction*20;\n    if(friction>0.2){\n      arrow(pos+objW/2, objY+objH/2+15, pos+objW/2-frictionArrowLen, objY+objH/2+15, '#4ea8ff', 3);\n    }\n    \n    // Labels\n    ctx.fillStyle='var(--text)';\n    ctx.font=Math.round(H*0.04)+'px sans-serif';\n    ctx.fillText('Applied', pos-objW/2-60, objY+objH/2+40);\n    ctx.fillStyle='#C66B5E';\n    ctx.fillText(appliedForce.toFixed(1)+' N', pos-objW/2-60, objY+objH/2+56);\n    \n    ctx.fillStyle='#4ea8ff';\n    ctx.fillText('Friction: '+friction.toFixed(1)+' N', pos+objW/2+20, objY+objH/2+56);\n    \n    // Top info panel\n    ctx.fillStyle='#e0b15b';\n    ctx.font='bold '+Math.round(H*0.045)+'px sans-serif';\n    const balanceStatus = isBalanced?'BALANCED':'UNBALANCED';\n    const balanceCol = isBalanced?'#e0b15b':'#df8279';\n    ctx.fillStyle=balanceCol;\n    ctx.fillText(balanceStatus, W*0.05, H*0.12);\n    \n    ctx.fillStyle='#F3F7FA';\n    ctx.font=Math.round(H*0.035)+'px sans-serif';\n    ctx.fillText('ΣF = '+netForce.toFixed(1)+' N', W*0.05, H*0.18);\n    ctx.fillText('a = '+accel.toFixed(2)+' m/s²', W*0.05, H*0.24);\n    ctx.fillText('v = '+vel.toFixed(2)+' m/s', W*0.05, H*0.30);\n    \n    // State indicator\n    if(isBalanced){\n      ctx.fillStyle='rgba(224,177,91,0.8)';\n      ctx.fillText('→ Constant velocity (or at rest)', W*0.05, H*0.40);\n    } else if(netForce>0){\n      ctx.fillStyle='rgba(223,130,121,0.9)';\n      ctx.fillText('→ Accelerating rightward', W*0.05, H*0.40);\n    } else {\n      ctx.fillStyle='rgba(223,130,121,0.9)';\n      ctx.fillText('→ Accelerating leftward', W*0.05, H*0.40);\n    }\n    \n    // Legend\n    let legendText='Adjust forces to see behavior change';\n    if(isBalanced) legendText='Forces balanced: constant motion';\n    if(appliedForce>friction+0.3) legendText='Net force →: object accelerates right';\n    if(friction>appliedForce+0.3) legendText='Net force ←: object accelerates left';\n    \n    document.getElementById('legend').textContent=legendText;\n    \n    requestAnimationFrame(tick);\n  }\n  requestAnimationFrame(tick);\n  \n  window.updateModel=function(){\n    pos=0;vel=0;accel=0;trailPoints=[];\n  };","remediationGoal":"Close concept_misunderstanding for physics."},"rendererStyle":"three_js"}}},"metadata":{"rendered_at":"2026-05-21T05:56:58.951Z","cache_hit":false,"cost_usd":0},"error":{"code":"RENDER_TIMEOUT","message":"browserType.launch: Executable doesn't exist at /root/.cache/ms-playwright/chromium_headless_shell-1223/chrome-headless-shell-linux64/chrome-headless-shell\n╔════════════════════════════════════════════════════════════╗\n║ Looks like Playwright was just installed or updated.       ║\n║ Please run the following command to download new browsers: ║\n║                                                            ║\n║     npx playwright install                                 ║\n║                                                            ║\n║ <3 Playwright Team                                         ║\n╚════════════════════════════════════════════════════════════╝","retryable":true}}