{"job_id":"anim-job-31c586d1-f785-4437-b7ec-0de886d54103","request_id":"bulk-2026-05-21T06-14-14-458Z-2-a1-physics.08.force-pressure.balanced-vs-unbalanced","status":"complete","asset":{"primary_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-31c586d1-f785-4437-b7ec-0de886d54103/walkthrough.mp4","thumbnail_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-31c586d1-f785-4437-b7ec-0de886d54103/thumb.jpg","transcript_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-31c586d1-f785-4437-b7ec-0de886d54103/transcript.vtt","interactive_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-31c586d1-f785-4437-b7ec-0de886d54103/index.html","scenefile_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-31c586d1-f785-4437-b7ec-0de886d54103/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-31c586d1-f785-4437-b7ec-0de886d54103","interactivity":"none","renderer_style":"three_js","durationSeconds":15,"render_manifest":{"jobId":"anim-job-31c586d1-f785-4437-b7ec-0de886d54103","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-21T06-14-14-458Z"},"exam_type":"neet","asset_type":"simulation","request_id":"bulk-2026-05-21T06-14-14-458Z-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\">Forces depend on constraints — acceleration changes when forces are unbalanced.</p>\n    <p class=\"formula\">ΣF = ma or ΣF = 0</p>\n    <label class=\"control\"><span>Applied Force: <strong id=\"v-force\">15</strong> N</span><input id=\"c-force\" type=\"range\" min=\"0\" max=\"30\" step=\"1\" value=\"15\"/></label>\n    <label class=\"control\"><span>Friction: <strong id=\"v-friction\">5</strong> N</span><input id=\"c-friction\" type=\"range\" min=\"0\" max=\"20\" step=\"1\" value=\"5\"/></label>\n    <label class=\"control\"><span>Mass: <strong id=\"v-mass\">2</strong> kg</span><input id=\"c-mass\" type=\"range\" min=\"1\" max=\"5\" step=\"0.5\" value=\"2\"/></label>\n    <ul>\n      <li><strong style=\"color:#8decb0;\">✓ Correct:</strong> Forces + motion depend on the balance of ALL forces</li>\n      <li><strong style=\"color:#df8279;\">✗ Misconception:</strong> \"The concept works the same way always\"</li>\n      <li><strong style=\"color:#4ea8ff;\">Key:</strong> When ΣF ≠ 0 → acceleration occurs. When ΣF = 0 → constant velocity</li>\n    </ul>\n  </aside>\n  <section>\n    <div class=\"stage\" id=\"stage\">\n      <div class=\"legend\" id=\"legend\">Scenario: Unbalanced Forces</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\":30,\"step\":1,\"value\":15,\"units\":\"N\"},\n  {\"key\":\"friction\",\"label\":\"Friction\",\"min\":0,\"max\":20,\"step\":1,\"value\":5,\"units\":\"N\"},\n  {\"key\":\"mass\",\"label\":\"Mass\",\"min\":1,\"max\":5,\"step\":0.5,\"value\":2,\"units\":\"kg\"}\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',()=>{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, vel = 0, acc = 0;\n  let trailPoints = [];\n  let graphHistory = [];\n  let phase = 0;\n  \n  function glowDot(x,y,r,color,a){\n    const g=ctx.createRadialGradient(x,y,0,x,y,r*2.6);\n    const c1=color.replace('ALPHA',String(a));\n    const c2=color.replace('ALPHA','0');\n    g.addColorStop(0,c1);\n    g.addColorStop(1,c2);\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);\n    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 mass = Number(document.getElementById('c-mass').value);\n    \n    // Physics: net force and acceleration\n    const netForce = appliedForce - friction;\n    acc = netForce / mass;\n    \n    // Update velocity and position\n    vel += acc * dt;\n    pos += vel * dt;\n    \n    // Limit position and reset if needed\n    if(pos > 300 || pos < -300){\n      pos = 0;\n      vel = 0;\n      trailPoints = [];\n    }\n    \n    // Add to trail\n    const boxX = 200 + pos;\n    const boxY = H * 0.55;\n    trailPoints.push({x: boxX, y: boxY});\n    if(trailPoints.length > 80) trailPoints.shift();\n    \n    // Add to graph history\n    graphHistory.push({net: netForce, acc: acc});\n    if(graphHistory.length > 120) graphHistory.shift();\n    \n    // Clear canvas\n    ctx.clearRect(0,0,W,H);\n    \n    // === Layer 1: Background ===\n    ctx.fillStyle='#1a2938';\n    ctx.fillRect(0, H*0.42, W, H*0.18);\n    ctx.fillStyle='rgba(58, 95, 120, 0.2)';\n    ctx.fillRect(0, H*0.38, W, 2);\n    \n    // === Layer 2: Force diagram ===\n    // Box (object)\n    ctx.fillStyle=netForce === 0 ? '#8decb0' : '#4ea8ff';\n    ctx.fillRect(boxX-20, boxY-15, 40, 30);\n    ctx.strokeStyle='#f3f7fa';\n    ctx.lineWidth=2;\n    ctx.strokeRect(boxX-20, boxY-15, 40, 30);\n    ctx.fillStyle='#101417';\n    ctx.font=Math.round(H*0.024)+'px monospace';\n    ctx.textAlign='center';\n    ctx.fillText('m',boxX,boxY+6);\n    \n    // Applied Force arrow (green/blue)\n    const applyArrowLen = Math.abs(appliedForce) * 4;\n    if(appliedForce > 0){\n      arrow(boxX+20, boxY-8, boxX+20+applyArrowLen, boxY-8, '#8decb0');\n      ctx.fillStyle='#8decb0';\n      ctx.font=Math.round(H*0.022)+'px sans-serif';\n      ctx.textAlign='left';\n      ctx.fillText('F_app=' + appliedForce.toFixed(0) + 'N', boxX+30+applyArrowLen, boxY-12);\n    }\n    \n    // Friction arrow (red)\n    const fricArrowLen = friction * 4;\n    if(friction > 0){\n      arrow(boxX-20, boxY+8, boxX-20-fricArrowLen, boxY+8, '#df8279');\n      ctx.fillStyle='#df8279';\n      ctx.font=Math.round(H*0.022)+'px sans-serif';\n      ctx.textAlign='right';\n      ctx.fillText('f=' + friction.toFixed(0) + 'N', boxX-30-fricArrowLen, boxY+14);\n    }\n    \n    // Net force label\n    ctx.fillStyle = netForce > 1 ? '#4ea8ff' : netForce < -1 ? '#df8279' : '#8decb0';\n    ctx.font='bold ' + Math.round(H*0.028)+'px sans-serif';\n    ctx.textAlign='center';\n    ctx.fillText('ΣF = ' + netForce.toFixed(1) + ' N', W*0.25, H*0.18);\n    \n    // Acceleration label\n    ctx.fillStyle = Math.abs(acc) > 0.1 ? '#4ea8ff' : '#8decb0';\n    ctx.font='bold ' + Math.round(H*0.028)+'px sans-serif';\n    ctx.fillText('a = ' + acc.toFixed(2) + ' m/s²', W*0.25, H*0.24);\n    \n    // Velocity readout\n    ctx.fillStyle='#e0b15b';\n    ctx.font=Math.round(H*0.024)+'px monospace';\n    ctx.fillText('v = ' + vel.toFixed(2) + ' m/s', W*0.25, H*0.31);\n    \n    // === Layer 3: Motion trail ===\n    if(trailPoints.length > 1){\n      ctx.strokeStyle='rgba(78, 168, 255, 0.3)';\n      ctx.lineWidth=1;\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    // Glow effect for object motion\n    if(Math.abs(acc) > 0.1){\n      glowDot(boxX, boxY, 18, 'rgba(78, 168, 255, ALPHA)', 0.4);\n    } else {\n      glowDot(boxX, boxY, 18, 'rgba(141, 236, 176, ALPHA)', 0.4);\n    }\n    \n    // === Layer 4: Graph (history of net force and acceleration) ===\n    const graphX = W * 0.65;\n    const graphY = H * 0.15;\n    const graphW = W * 0.3;\n    const graphH = H * 0.25;\n    \n    // Graph frame\n    ctx.strokeStyle='#465a64';\n    ctx.lineWidth=1;\n    ctx.strokeRect(graphX, graphY, graphW, graphH);\n    ctx.fillStyle='rgba(20, 30, 40, 0.4)';\n    ctx.fillRect(graphX, graphY, graphW, graphH);\n    \n    // Grid lines\n    ctx.strokeStyle='rgba(58, 74, 85, 0.3)';\n    ctx.lineWidth=0.5;\n    for(let i=0; i<=2; i++){\n      const y = graphY + (graphH/2)*i;\n      ctx.beginPath();ctx.moveTo(graphX, y);ctx.lineTo(graphX+graphW, y);ctx.stroke();\n    }\n    \n    // Plot net force line\n    if(graphHistory.length > 1){\n      ctx.strokeStyle='#df8279';\n      ctx.lineWidth=2;\n      ctx.beginPath();\n      for(let i=0; i<graphHistory.length; i++){\n        const h = graphHistory[i];\n        const px = graphX + (i/120)*graphW;\n        const py = graphY + graphH*0.5 - (h.net/25)*(graphH*0.45);\n        if(i===0) ctx.moveTo(px, py);\n        else ctx.lineTo(px, py);\n      }\n      ctx.stroke();\n    }\n    \n    // Plot acceleration line\n    if(graphHistory.length > 1){\n      ctx.strokeStyle='#4ea8ff';\n      ctx.lineWidth=2;\n      ctx.beginPath();\n      for(let i=0; i<graphHistory","remediationGoal":"Close concept_misunderstanding for physics."},"rendererStyle":"three_js"}}},"metadata":{"rendered_at":"2026-05-21T06:19:39.637Z","cache_hit":false,"cost_usd":0},"error":{"code":"RENDER_TIMEOUT","message":"browserType.launch: Target page, context or browser has been closed\nBrowser logs:\n\n<launching> /ms-playwright/chromium_headless_shell-1223/chrome-headless-shell-linux64/chrome-headless-shell --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-edgeupdater --disable-extensions --disable-features=AvoidUnnecessaryBeforeUnloadCheckSync,BoundaryEventDispatchTracksNodeRemoval,DestroyProfileOnBrowserClose,DialMediaRouteProvider,GlobalMediaControls,HttpsUpgrades,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate,AutoDeElevate,RenderDocument,OptimizationHints,msForceBrowserSignIn,msEdgeUpdateLaunchServicesPreferredVersion --enable-features=CDPScreenshotNewSurface --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --edge-skip-compat-layer-relaunch --disable-infobars --disable-search-engine-choice-screen --disable-sync --enable-unsafe-swiftshader --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-sandbox --disable-dev-shm-usage --user-data-dir=/tmp/playwright_chromiumdev_profile-UsCir5 --remote-debugging-pipe --no-startup-window\n<launched> pid=39\n[pid=39][err] /ms-playwright/chromium_headless_shell-1223/chrome-headless-shell-linux64/chrome-headless-shell: error while loading shared libraries: libXfixes.so.3: cannot open shared object file: No such file or directory\nCall log:\n  - <launching> /ms-playwright/chromium_headless_shell-1223/chrome-headless-shell-linux64/chrome-headless-shell --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-edgeupdater --disable-extensions --disable-features=AvoidUnnecessaryBeforeUnloadCheckSync,BoundaryEventDispatchTracksNodeRemoval,DestroyProfileOnBrowserClose,DialMediaRouteProvider,GlobalMediaControls,HttpsUpgrades,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate,AutoDeElevate,RenderDocument,OptimizationHints,msForceBrowserSignIn,msEdgeUpdateLaunchServicesPreferredVersion --enable-features=CDPScreenshotNewSurface --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --edge-skip-compat-layer-relaunch --disable-infobars --disable-search-engine-choice-screen --disable-sync --enable-unsafe-swiftshader --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-sandbox --disable-dev-shm-usage --user-data-dir=/tmp/playwright_chromiumdev_profile-UsCir5 --remote-debugging-pipe --no-startup-window\n  - <launched> pid=39\n  - [pid=39][err] /ms-playwright/chromium_headless_shell-1223/chrome-headless-shell-linux64/chrome-headless-shell: error while loading shared libraries: libXfixes.so.3: cannot open shared object file: No such file or directory\n  - [pid=39] <gracefully close start>\n  - [pid=39] <kill>\n  - [pid=39] <will force kill>\n  - [pid=39] <process did exit: exitCode=127, signal=null>\n  - [pid=39] starting temporary directories cleanup\n  - [pid=39] finished temporary directories cleanup\n  - [pid=39] <gracefully close end>\n","retryable":true}}