sidrefresh's picture
Add files using upload-large-folder tool
92f480e verified
Raw History Blame Contribute Delete
7.95 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Rigging isn't Scary — Level 1 (Blender), Parts 1–4</title>
<style>
html, body { margin: 0; background: #1b1b1b; color: #e6e6e6; font: 15px/1.4 "DejaVu Sans", Arial, sans-serif; }
.wrap { display: flex; height: 100vh; }
.side { width: 300px; min-width: 300px; overflow-y: auto; background: #242424; border-right: 1px solid #333; padding: 10px 12px; box-sizing: border-box; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
video { width: 100%; height: auto; max-height: calc(100vh - 118px); background: #000; display: block; }
.bar { padding: 8px 10px; background: #2b2b2b; border-top: 1px solid #333; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
button { background: #3a3a3a; color: #eee; border: 1px solid #555; border-radius: 4px; padding: 6px 10px; font-size: 14px; cursor: pointer; }
button:hover { background: #4a4a4a; }
button.on { background: #e87d0d; color: #111; border-color: #e87d0d; }
.time { font-variant-numeric: tabular-nums; margin-left: auto; font-size: 15px; }
h1 { font-size: 16px; margin: 4px 0 10px; }
h2 { font-size: 14px; margin: 14px 0 4px; color: #ffb066; }
.part { display: block; width: 100%; text-align: left; margin: 3px 0; padding: 8px; }
.part.on { background: #e87d0d; color: #111; }
ul { list-style: none; padding: 0; margin: 0; }
li a { display: block; color: #ddd; text-decoration: none; padding: 3px 4px; border-radius: 3px; }
li a:hover { background: #3a3a3a; }
li a .t { display: inline-block; width: 46px; color: #999; font-variant-numeric: tabular-nums; }
.note { font-size: 12px; color: #999; margin-top: 12px; }
</style>
</head>
<body>
<div class="wrap">
<div class="side">
<h1>Rigging isn't Scary — Level 1 (CGDive)</h1>
<button class="part on" id="p1" onclick="loadPart(1)">Part 1 — Rigging Sucks… but it makes your characters move! (18:33)</button>
<button class="part" id="p2" onclick="loadPart(2)">Part 2 — L1-2: The No.1 Rigging Tool (IK) (8:46)</button>
<button class="part" id="p3" onclick="loadPart(3)">Part 3 — L1-3: Solid Weight Painting Workflow (13:45)</button>
<button class="part" id="p4" onclick="loadPart(4)">Part 4 — L1-4: Animation Basics (9:36)</button>
<h2>Compare both results</h2>
<button class="part" onclick="loadPart(4, 498)">Straight walk — speed correction · 8:18</button>
<button class="part" onclick="loadPart(4, 529)">Curved walk — path and turning · 8:49</button>
<p class="note">Both walks are required. These references complement watching the complete tutorials. Compare the motion and presentation of each result.</p>
<h2>Chapters</h2>
<ul id="chapters"></ul>
<p class="note">English captions are burned into the picture. Click a chapter to inspect a paused frame, then press Play. Each part remembers your place; switching away pauses playback. The buttons under the video step ±10 s / ±60 s, change speed, and pause. Space also toggles play/pause when the page (not a button) has focus.</p>
</div>
<div class="main">
<video id="v" controls preload="metadata" muted></video>
<p id="error" role="alert" hidden style="padding: 10px">This tutorial video could not load. Reopen the Tutorial desktop shortcut; if it still fails, report the missing video.</p>
<div class="bar">
<button onclick="togglePlay()" id="play">Play</button>
<button onclick="seek(-60)">−60 s</button>
<button onclick="seek(-10)">−10 s</button>
<button onclick="seek(10)">+10 s</button>
<button onclick="seek(60)">+60 s</button>
<button onclick="frame(-1/30)">◂ frame</button>
<button onclick="frame(1/30)">frame ▸</button>
<button onclick="rate(0.5)" id="r0.5">0.5×</button>
<button onclick="rate(0.75)" id="r0.75">0.75×</button>
<button onclick="rate(1)" id="r1" class="on">1×</button>
<button onclick="rate(1.5)" id="r1.5">1.5×</button>
<button onclick="rate(2)" id="r2">2×</button>
<span class="time" id="time">Part 1 · 0:00 / 0:00</span>
</div>
</div>
</div>
<script>
const CH = {
1: [["0:00","Intro"],["0:58","Rigging Definition"],["1:36","Armatures & Bones 101"],["6:02","(sponsor) Skillshare — skip"],["7:29","Rigging Practice (open Beginner_01.blend)"],["12:34","Bone Names"],["14:35","Bone Parenting"],["16:00","Automatic Weights"],["17:59","Keep going"]],
2: [["0:00","Rig Mechanisms"],["0:39","What is Inverse Kinematics (IK)"],["1:21","IK Setup"],["3:04","IK Pole Target"],["4:20","IK Troubleshooting"],["5:43","Fix Foot Sinking"],["6:23","Fix Foot Disconnecting (Copy Location)"],["7:12","Parent IK Pole to Target"],["7:50","Symmetrize IK"],["8:08","Keep going"]],
3: [["0:00","Coming up in this video"],["0:45","Automatic Weights with Multiple Objects (the hat)"],["1:13","Bone Heat error (info only)"],["1:32","Weight Painting 101"],["4:36","Root Bone"],["5:35","Deform Bones"],["7:16","(sponsor) Brilliant — skip"],["8:20","Bone Shapes"],["11:22","Bone Colors"],["12:18","Bone Collections"],["13:05","Keep going"]],
4: [["0:00","Intro"],["0:14","Timeline Basics"],["0:49","Walk Cycle"],["6:25","Extend the Walk Cycle"],["6:58","Walk in Space"],["9:15","Keep going"]],
};
const v = document.getElementById('v');
let part = 1;
const positions = {1: 0, 2: 0, 3: 0, 4: 0};
let selectedRate = 1;
let ready = false;
function ts(s){ s=Math.max(0,Math.floor(s)); const m=Math.floor(s/60), r=s%60; return m+':'+(r<10?'0':'')+r; }
function parse(t){ const p=t.split(':').map(Number); return p.length===2? p[0]*60+p[1] : p[0]*3600+p[1]*60+p[2]; }
function remember(){ if (ready) positions[part] = v.currentTime; }
function loadPart(n, at){
remember(); v.pause(); ready = false;
part = n;
const target = at === undefined ? positions[n] : at;
document.getElementById('error').hidden = true;
v.onloadedmetadata = () => {
v.currentTime = Math.min(target, v.duration);
v.playbackRate = selectedRate;
ready = true; update();
};
v.src = 'part'+n+'.mp4'; v.load();
for (const k of [1,2,3,4]) document.getElementById('p'+k).className = 'part' + (k===n?' on':'');
const ul = document.getElementById('chapters'); ul.innerHTML='';
for (const [t,name] of CH[n]) { const li=document.createElement('li'); const a=document.createElement('a'); a.href='#';
a.innerHTML='<span class="t">'+t+'</span>'+name; a.onclick=(e)=>{e.preventDefault(); v.pause(); if (ready) v.currentTime=parse(t);}; li.appendChild(a); ul.appendChild(li); }
update();
}
function togglePlay(){ if (v.paused) v.play().catch(error => { if (error.name !== 'AbortError') document.getElementById('error').hidden = false; }); else v.pause(); }
function seek(d){ v.currentTime = Math.max(0, Math.min((v.duration||1e9), v.currentTime + d)); }
function frame(d){ v.pause(); seek(d); }
function rate(r){ selectedRate = r; v.playbackRate = r; for (const x of [0.5,0.75,1,1.5,2]) document.getElementById('r'+x).className = (x===r?'on':''); }
function update(){ document.getElementById('time').textContent = 'Part '+part+' · '+ts(v.currentTime)+' / '+ts(v.duration||0); document.getElementById('play').textContent = v.paused ? 'Play' : 'Pause'; }
v.addEventListener('timeupdate', () => { remember(); update(); }); v.addEventListener('loadedmetadata', update); v.addEventListener('play', update); v.addEventListener('pause', update);
window.addEventListener('blur', () => v.pause());
document.addEventListener('visibilitychange', () => { if (document.hidden) v.pause(); });
v.addEventListener('error', () => { document.getElementById('error').hidden = false; });
document.addEventListener('keydown', (e)=>{ if (e.target.tagName==='BUTTON') return; if (e.code==='Space'){ e.preventDefault(); togglePlay(); } if (e.key==='ArrowLeft'){ e.preventDefault(); seek(-10);} if (e.key==='ArrowRight'){ e.preventDefault(); seek(10);} });
loadPart(1);
</script>
</body>
</html>