{"job_id":"anim-job-edf64b67-5bce-4b3a-bf54-0558fdaa0628","request_id":"bulk-2026-05-21T06-14-14-458Z-2-a3-physics.08.force-pressure.balanced-vs-unbalanced","status":"complete","asset":{"primary_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-edf64b67-5bce-4b3a-bf54-0558fdaa0628/walkthrough.mp4","thumbnail_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-edf64b67-5bce-4b3a-bf54-0558fdaa0628/thumb.jpg","transcript_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-edf64b67-5bce-4b3a-bf54-0558fdaa0628/transcript.vtt","interactive_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-edf64b67-5bce-4b3a-bf54-0558fdaa0628/index.html","scenefile_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-edf64b67-5bce-4b3a-bf54-0558fdaa0628/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-edf64b67-5bce-4b3a-bf54-0558fdaa0628","interactivity":"none","renderer_style":"three_js","durationSeconds":15,"render_manifest":{"jobId":"anim-job-edf64b67-5bce-4b3a-bf54-0558fdaa0628","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-a3-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</h1>\n    <p class=\"sub\">Forces Change the Outcome</p>\n    <p class=\"formula\">ΣF = ma (Depends on mass & constraints)</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>Show Vectors</span><input id=\"c-vectors\" type=\"checkbox\" checked/></label>\n    <ul>\n      <li><strong style=\"color:#4ea8ff;\">Balanced:</strong> Fnet=0, a=0</li>\n      <li><strong style=\"color:#df8279;\">Unbalanced:</strong> Fnet≠0, a≠0</li>\n      <li>Forces determine motion, not reverse</li>\n      <li>Same object, different conditions</li>\n    </ul>\n  </aside>\n  <section>\n    <div class=\"stage\" id=\"stage\">\n      <div class=\"legend\" id=\"legend\">Applying 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 = [{\"key\":\"force\",\"label\":\"Applied Force\",\"min\":0,\"max\":150,\"step\":5,\"value\":50,\"units\":\"N\"},{\"key\":\"friction\",\"label\":\"Friction\",\"min\":0,\"max\":100,\"step\":5,\"value\":30,\"units\":\"N\"},{\"key\":\"vectors\",\"label\":\"Show Vectors\",\"min\":0,\"max\":1,\"step\":1,\"value\":1,\"units\":\"\"}];\nfor(const c of controls){\n  const inp=document.getElementById('c-'+c.key);\n  const out=document.getElementById('v-'+c.key);\n  if(inp){\n    inp.addEventListener('input',()=>{\n      if(inp.type==='checkbox'){\n        out.textContent=inp.checked?'ON':'OFF';\n      }else{\n        out.textContent=inp.value;\n      }\n      window.updateModel?.();\n    });\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  \n  let lastTs=0;\n  let x1=0,v1=0,x2=0,v2=0;\n  let time=0;\n  let glowPhase=0;\n  \n  const mass=10;\n  \n  function arrow(x1,y1,x2,y2,color,label){\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=2.5;\n    ctx.beginPath();ctx.moveTo(x1,y1);ctx.lineTo(x2,y2);ctx.stroke();\n    ctx.fillStyle=color;\n    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    if(label&&l>40){\n      ctx.fillStyle=color;\n      ctx.font=Math.round(cv.height*0.03)+'px sans-serif';\n      ctx.textAlign='center';\n      ctx.fillText(label,(x1+x2)*0.5,(y1+y2)*0.5-10);\n    }\n  }\n  \n  function drawBox(x,y,w,h,color,label,vel){\n    ctx.fillStyle=color;\n    ctx.fillRect(x-w/2,y-h/2,w,h);\n    ctx.strokeStyle='rgba(255,255,255,0.3)';\n    ctx.lineWidth=1.5;\n    ctx.strokeRect(x-w/2,y-h/2,w,h);\n    \n    ctx.fillStyle='#f3f7fa';\n    ctx.font='bold '+Math.round(cv.height*0.035)+'px sans-serif';\n    ctx.textAlign='center';\n    ctx.textBaseline='middle';\n    ctx.fillText(label,x,y);\n    \n    if(Math.abs(vel)>0.1){\n      ctx.fillStyle='rgba(206,206,206,0.7)';\n      ctx.font=Math.round(cv.height*0.025)+'px sans-serif';\n      ctx.textAlign='center';\n      ctx.fillText('v='+Math.abs(vel).toFixed(1)+' m/s',x,y+h/2+20);\n    }\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    const appliedForce=Number(document.getElementById('c-force').value);\n    const frictionForce=Number(document.getElementById('c-friction').value);\n    const showVectors=document.getElementById('c-vectors').checked;\n    \n    time+=dt;\n    \n    // Scene 1: Balanced Forces (0 to 7.5s)\n    if(time<7.5){\n      const netForce1=appliedForce-frictionForce;\n      const acc1=netForce1/mass;\n      v1+=acc1*dt;\n      x1+=v1*dt;\n      if(netForce1===0){v1*=0.98;}\n      if(x1>350)x1=350;\n      if(x1<0)x1=0;\n    }else if(time<15){\n      // Scene 2: Unbalanced Forces (7.5 to 15s)\n      const netForce2=appliedForce-frictionForce;\n      const acc2=netForce2/mass;\n      v2+=acc2*dt;\n      x2+=v2*dt;\n      if(x2>350)x2=350;\n      if(x2<0)x2=0;\n    }else{\n      time=0;x1=0;v1=0;x2=0;v2=0;\n    }\n    \n    glowPhase=(glowPhase+dt*3)%(Math.PI*2);\n    \n    ctx.fillStyle='#141b22';\n    ctx.fillRect(0,0,W,H);\n    \n    ctx.fillStyle='rgba(76,128,150,0.15)';\n    ctx.fillRect(0,H*0.5-2,W,4);\n    \n    // Split screen indication\n    const midX=W*0.5;\n    ctx.strokeStyle='rgba(59,74,85,0.5)';\n    ctx.lineWidth=1;\n    ctx.setLineDash([6,6]);\n    ctx.beginPath();ctx.moveTo(midX,0);ctx.lineTo(midX,H);ctx.stroke();\n    ctx.setLineDash([]);\n    \n    // SCENE 1: LEFT (0-7.5s)\n    if(time<7.5){\n      const progress=time/7.5;\n      ctx.fillStyle='rgba(0,150,200,0.1)';\n      ctx.fillRect(0,0,midX,H);\n      \n      ctx.fillStyle='rgba(78,168,255,0.3)';\n      ctx.font='bold '+Math.round(H*0.045)+'px sans-serif';\n      ctx.textAlign='center';\n      ctx.fillText('BALANCED',midX*0.5,H*0.08);\n      \n      const x1pos=midX*0.15+x1;\n      const y1pos=H*0.5;\n      const w=40,hh=30;\n      \n      drawBox(x1pos,y1pos,w,hh,'#4ea8ff','M',v1);\n      \n      if(showVectors){\n        const arrowLen1=Math.max(5,appliedForce*1.5);\n        const arrowLen2=Math.max(5,frictionForce*1.5);\n        arrow(x1pos+w/2+10,y1pos,x1pos+w/2+10+arrowLen1,y1pos,'#8decb0','F+');\n        arrow(x1pos-w/2-10,y1pos,x1pos-w/2-10-arrowLen2,y1pos,'#df8279','F-');\n      }\n      \n      const netF1=appliedForce-frictionForce;\n      const glow1=(Math.sin(glowPhase)+1)*0.5;\n      ctx.fillStyle='rgba(78,168,255,'+Math.max(0.2,glow1*0.5)+')';\n      ctx.beginPath();ctx.arc(x1pos,y1pos,w/2+8,0,Math.PI*2);ctx.fill();\n      \n      ctx.fillStyle='#4ea8ff';\n      ctx.font=Math.round(H*0.025)+'px sans-serif';\n      ctx.textAlign='center';\n      ctx.fillText('ΣF = '+netF1.toFixed(1)+' N',midX*0.5,H*0.75);\n      ctx.fillText('a = '+((netF1/mass).toFixed(2))+' m/s²',midX*0.5,H*0.8);\n      if(netF1===0){\n        ctx.fillStyle='#8decb0';\n        ctx.fillText('↳ Forces BALANCED',midX*0.5,H*0.88);\n      }\n    }\n    \n    // SCENE 2: RIGHT (7.5-15s)\n    if(time>=7.5){\n      const progress=(time-7.5)/7.5;\n      ctx.fillStyle='rgba(200,100,80,0.1)';\n      ctx.fillRect(midX,0,midX,H);\n      \n      ctx.fillStyle='rgba(223,130,121,0.3)';\n      ctx.font='bold '+Math.round(H*0.045)+'px sans-serif';\n      ctx.textAlign='center';\n      ctx.fillText('UNBALANCED',midX+midX*0.5,H*0.08);\n      \n      const x2pos=midX+(midX*0.15+x2);\n      const y2pos=H*0.5;\n      const w=40,hh=30;\n      \n      drawBox(x2pos,y2pos,w,hh,'#df8279','M',v2);\n      \n      if(showVectors){\n        const arrowLen1=Math.max(5,appliedForce*1.5);\n        const arrowLen2=Math.max(5,frictionForce*1.5);\n        arrow(x2pos+w/2+10,y2pos,x2pos+w/2+10+arrowLen1,y2pos,'#8decb0','F+');\n        arrow(x2pos-w/2-10,y2pos,x2pos-w/2-10-arrowLen2,y2pos,'#e0b15b','F-');\n      }\n      \n      const netF2=appliedForce-frictionForce;\n      const glow2=(Math.sin(glowPhase)+1)*0.5;\n      ctx.fillStyle='rgba(223,130,121,'+Math.max(0.3,glow2*0.6)+')';\n      ctx.beginPath();ctx.arc(x2pos,y2pos,w/2+10,0,Math.PI*2);ctx.fill();\n      \n      ctx.fillStyle='#df8279';\n      ctx.font=Math.round(H*","remediationGoal":"Close concept_misunderstanding for physics."},"rendererStyle":"three_js"}}},"metadata":{"rendered_at":"2026-05-21T06:20:37.556Z","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-1U41XX --remote-debugging-pipe --no-startup-window\n<launched> pid=45\n[pid=45][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-1U41XX --remote-debugging-pipe --no-startup-window\n  - <launched> pid=45\n  - [pid=45][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=45] <gracefully close start>\n  - [pid=45] <kill>\n  - [pid=45] <will force kill>\n  - [pid=45] <process did exit: exitCode=127, signal=null>\n  - [pid=45] starting temporary directories cleanup\n  - [pid=45] finished temporary directories cleanup\n  - [pid=45] <gracefully close end>\n","retryable":true}}