{"job_id":"anim-job-67a510b8-94b0-41f9-984b-6c2bd04ef46d","request_id":"bulk-2026-05-20T10-21-44-856Z-3-physics.08.friction.static-to-kinetic","status":"complete","asset":{"primary_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-67a510b8-94b0-41f9-984b-6c2bd04ef46d/walkthrough.mp4","thumbnail_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-67a510b8-94b0-41f9-984b-6c2bd04ef46d/thumb.jpg","transcript_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-67a510b8-94b0-41f9-984b-6c2bd04ef46d/transcript.vtt","interactive_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-67a510b8-94b0-41f9-984b-6c2bd04ef46d/index.html","scenefile_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-67a510b8-94b0-41f9-984b-6c2bd04ef46d/scene-source.json","duration_seconds":15,"byte_size":469586,"renderer":"html_three_js_local","parameters":{"style":"auto","executor":"native_render_executor","localPath":"/app/storage/assets/anim-job-67a510b8-94b0-41f9-984b-6c2bd04ef46d","interactivity":"none","renderer_style":"three_js","durationSeconds":15,"render_manifest":{"jobId":"anim-job-67a510b8-94b0-41f9-984b-6c2bd04ef46d","request":{"gap":{"topic":"friction-static_to_kinetic","severity":"moderate","error_type":"concept_misunderstanding","memory_state":"fragile","display_topic":"Static to Kinetic Friction","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":"Friction","ncert_class":8},"sub_topics":[{"topic":"friction-static_to_kinetic","key_concepts":["Static to Kinetic Friction","Friction"]}]},"metadata":{"priority":"normal","trace_id":"bulk-run-2026-05-20T10-21-44-856Z"},"exam_type":"neet","asset_type":"simulation","request_id":"bulk-2026-05-20T10-21-44-856Z-3-physics.08.friction.static-to-kinetic","subject_area":"physics"},"renderer":"html_three_js_local","storyboard":{"beats":[{"label":"Topic","visual":"Show the topic title and the key physical context.","narration":"Static to Kinetic Friction"},{"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":"Static to Kinetic Friction. Friction"}],"title":"Static to Kinetic Friction","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>Static vs Kinetic Friction: Conditional Physics</title>\n  <style>\n    :root{--bg:#0e121a;--panel:#1c232e;--line:#303449;--accent:#fc884f;--text:#faf9f8;--muted:#9f9ea1;--blue:#627da5;--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%,#1c232e 0%,var(--bg) 55%);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:#11191e;color:var(--accent);font-family:ui-monospace,monospace;font-size:0.9rem;box-shadow:inset 0 0 28px rgba(229,186,103,.08);}\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 #445862;border-radius:14px;position:relative;overflow:hidden;background:radial-gradient(circle at 50% 38%,#2f4a57,#0f1418 72%);box-shadow:0 18px 60px rgba(0,0,0,.45), inset 0 0 90px rgba(255,255,255,.03);}\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>Static vs Kinetic Friction</h1>\n    <p class=\"sub\">Friction changes behavior based on motion state</p>\n    <p class=\"formula\">f_s ≤ μ_s·N vs f_k = μ_k·N</p>\n    <label class=\"control\"><span>Applied Force: <strong id=\"v-force\">5</strong> N</span><input id=\"c-force\" type=\"range\" min=\"0\" max=\"20\" step=\"0.5\" value=\"5\"/></label>\n    <label class=\"control\"><span>μ_s (static): <strong id=\"v-mus\">0.6</strong></span><input id=\"c-mus\" type=\"range\" min=\"0.3\" max=\"1.0\" step=\"0.05\" value=\"0.6\"/></label>\n    <label class=\"control\"><span>μ_k (kinetic): <strong id=\"v-muk\">0.35</strong></span><input id=\"c-muk\" type=\"range\" min=\"0.1\" max=\"0.7\" step=\"0.05\" value=\"0.35\"/></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 style=\"color:var(--red)\">❌ Mistake:</strong> Friction always equals μ × N</li>\n      <li><strong style=\"color:var(--green)\">✓ Truth:</strong> Static friction adjusts up to limit; kinetic is constant</li>\n      <li><strong style=\"color:var(--blue)\">→ Key:</strong> Threshold (F_applied vs f_s,max) determines motion state</li>\n      <li>Watch: Force exceeds static limit → block accelerates</li>\n    </ul>\n  </aside>\n  <section>\n    <div class=\"stage\" id=\"stage\">\n      <div class=\"legend\" id=\"legend\">F=0 | No motion</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\":20,\"step\":0.5,\"value\":5,\"units\":\"N\"},\n  {\"key\":\"mus\",\"label\":\"μ_s (static)\",\"min\":0.3,\"max\":1.0,\"step\":0.05,\"value\":0.6,\"units\":\"\"},\n  {\"key\":\"muk\",\"label\":\"μ_k (kinetic)\",\"min\":0.1,\"max\":0.7,\"step\":0.05,\"value\":0.35,\"units\":\"\"},\n  {\"key\":\"mass\",\"label\":\"Mass\",\"min\":0.5,\"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 velocity=0;\n  let position=0;\n  let isMoving=false;\n  let stateTime=0;\n  let trailPoints=[];\n  let forceTrail=[];\n  let frictionTrail=[];\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*0.6)));\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 trail(points,color){\n    if(points.length<2)return;\n    ctx.strokeStyle=color;ctx.lineWidth=2;ctx.globalAlpha=0.4;\n    ctx.beginPath();ctx.moveTo(points[0].x,points[0].y);\n    for(let i=1;i<points.length;i++)ctx.lineTo(points[i].x,points[i].y);\n    ctx.stroke();ctx.globalAlpha=1;\n  }\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;ctx.beginPath();ctx.moveTo(x1,y1);ctx.lineTo(x2,y2);ctx.stroke();\n    ctx.fillStyle=color;ctx.beginPath();ctx.moveTo(x2,y2);ctx.lineTo(x2-s*nx+s*0.4*ny,y2-s*ny-s*0.4*nx);ctx.lineTo(x2-s*nx-s*0.4*ny,y2-s*ny+s*0.4*nx);ctx.fill();\n    if(label){\n      ctx.fillStyle=color;ctx.font=Math.round(cv.height*0.04)+'px sans-serif';ctx.textAlign='center';\n      ctx.fillText(label,x2+20,-5);\n    }\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 controls\n    const F_app=Number(document.getElementById('c-force').value);\n    const mu_s=Number(document.getElementById('c-mus').value);\n    const mu_k=Number(document.getElementById('c-muk').value);\n    const mass=Number(document.getElementById('c-mass').value);\n    \n    const g=9.8;\n    const N=mass*g;\n    const f_s_max=mu_s*N;\n    const f_k=mu_k*N;\n    \n    // Physics: determine friction based on motion state\n    let f_friction=0;\n    if(isMoving){\n      f_friction=f_k;\n      const a=(F_app-f_k)/mass;\n      velocity+=a*dt;\n      position+=velocity*dt;\n      if(velocity<=0.01){\n        isMoving=false;\n        velocity=0;\n      }\n    }else{\n      if(F_app>f_s_max){\n        isMoving=true;\n        const a=(F_app-f_k)/mass;\n        velocity=0.01;\n      }else{\n        f_friction=Math.min(F_app,f_s_max);\n        velocity=0;\n      }\n    }\n    \n    stateTime+=dt;\n    \n    // Draw scene\n    ctx.clearRect(0,0,W,H);\n    \n    // Background grid (ambient)\n    ctx.strokeStyle='rgba(48,52,73,0.15)';ctx.lineWidth=0.5;\n    for(let i=0;i<W;i+=60){ctx.beginPath();ctx.moveTo(i,0);ctx.lineTo(i,H);ctx.stroke();}\n    \n    // Ground and block\n    const groundY=H*0.65;\n    const blockW=60;\n    const blockH=40;\n    const blockX=100+position*30;\n    const blockY=groundY-blockH;\n    \n    // Ground surface\n    ctx.fillStyle='#445862';ctx.fillRect(0,groundY,W,8);\n    ctx.strokeStyle='#303449';ctx.lineWidth=1;ctx.strokeRect(0,groundY,W,8);\n    \n    // Block with shading\n    ctx.fillStyle=isMoving?'#b56745':'#8decb0';\n    ctx.fillRect(blockX,blockY,blockW,blockH);\n    ctx.strokeStyle='rgba(255,255,255,0.2)';ctx.lineWidth=2;ctx.strokeRect(blockX,blockY,blockW,blockH);\n    \n    // Block label\n    ctx.fillStyle=isMoving?'var(--red)':'var(--blue)';\n    ctx.font=Math.round(H*0.035)+'px sans-serif';ctx.textAlign='center';\n    ctx.fillStyle='#11191e';ctx.fillText(isMoving?'Moving':'Static',blockX+blockW/2,blockY+blockH/2+6);\n    \n    // Force arrow (applied)\n    const arrowStartX=blockX-20;\n    const arrowStartY=blockY+blockH/2;\n    const arrowEndX=arrowStartX-(F_app*20);\n    arrow(arrowStartX,arrowStartY,arrowEndX,arrowStartY,'#fc884f','F_app');\n    \n    // Friction arrow (opposing)\n    const fricArrowStart=blockX+blockW+10;\n    const fricArrowEnd=fricArrowStart+(f_friction*20);\n    arrow(fricArrowStart,arrowStartY,fricArrowEnd,arrowStartY,'#df8279',isMoving?'f_k':'f_s');\n    \n    // Glow pulse on threshold crossing\n    if(Math.abs(F_app-f_s_max)<1.5){\n      glowDot(blockX+blockW/2,blockY+blockH/2,25,'rgba(252,136,79,ALPHA)',0.3);\n    }\n    \n    // Data panel (kinetic info)\n    const panelX=W*0.65;\n    const panelY=30;\n    ctx.fillStyle='rgba(28,35,46,0.8)';ctx.fillRect(panelX,panelY,W-panelX-20,H*0.3);\n    ctx.strokeStyle='#465a64';ctx.lineWidth=1;ctx.strokeRect(panelX,panelY,W-panelX-20,H*0.3);\n    \n    ctx.fillStyle='var(--accent)';ctx.font='bold '+Math.round(H*0.035)+'px sans-serif';ctx.textAlign='left';\n    ctx.fillText('Physics State',panelX+10,panelY+24);\n    \n    ctx.fillStyle='var(--text)';ctx.font=Math.round(H*0.028)+'px sans-serif';\n    let line=1;\n    ctx.fillText('F_app = '+F_app.toFixed(1)+' N',panelX+10,panelY+24+line*26);line++;\n    ctx.fillText('f_s,max = '+f_s_max.toFixed(2)+' N',panelX+10,panelY+24+line*26);line++;\n    ctx.fillText('f_k = '+f_k.toFixed(2)+' N',panelX+10,panelY+24+line*26);line++;\n    ctx.fillText('f = '+f_friction.toFixed(2)+' N (active)',panelX+10,panelY+24+line*26);line++;\n    ctx.fillStyle=isMoving?'#df8279':'#8decb0';\n    ctx.fillText(isMoving?'Status: KINETIC':'Status: STATIC',panelX+10,panelY+24+line*26);\n    \n    // Threshold diagram (conceptual)\n    const diagX=30;const diagY=H*0.15;const diagW=120;\n    ctx.strokeStyle='#465a64';ctx.lineWidth=1;ctx.strokeRect(diagX,diagY,diagW,40);\n    ctx.fillStyle='rgba(48,70,80,0.4)';ctx.fillRect(diagX,diagY,diagW,40);\n    \n    // Threshold bar (red if exceeded)\n    const thresh","remediationGoal":"Close concept_misunderstanding for physics."},"rendererStyle":"three_js"}}},"metadata":{"rendered_at":"2026-05-20T10:38:01.732Z","cache_hit":false,"cost_usd":0},"error":null}