# 3D Workout — tasks

`[x]` done, `[ ]` to do. Questions for Austin are in `DECISIONS.md`.

## Next up

- [ ] Austin tries v0.1 on a phone and a computer and answers the open questions in `DECISIONS.md` (which exercises first, how realistic the models should get, whether to go to WebGL now).
- [ ] More exercises: burpee, mountain climbers, dips, pike push-up, calf raise, bird dog, superman, bicycle crunch, wall sit and plank (the last two are holds, which need a timer instead of reps).
- [ ] Hold-time exercises: an exercise that is held for seconds, with a countdown in workout mode.

## Phase 1: working prototype (v0.1, done)

- [x] Skeleton rig with two-bone IK, a pose function per exercise, and unit tests for bone lengths, the floor, seamless loops and smoothness.
- [x] Eight exercises: push-up, squat, pull-up, alternating lunge, jumping jacks, sit-up, glute bridge, high knees.
- [x] Canvas 2D renderer: perspective, depth sorting, shading, outlines, floor grid, shadow, props (mat, pull-up bar), skeleton view, light and dark themes.
- [x] Pointer-based orbit controls: drag to rotate (mouse, touch, pen), pinch and wheel zoom, double-tap reset, coasting, keyboard, optional pause while holding.
- [x] Exercise library with still previews and group filter.
- [x] Plan builder: sets, reps and rest, reorder, duplicate, remove, total time, sample workout.
- [x] Workout mode: set and rep counters, rest timers, skip, previous and next, pause, completion screen.
- [x] Saving, export and import of the plan and settings, erase all.
- [x] Phone layout with the viewer pinned at the top, reduced-motion support, keyboard access.
- [x] Home-page thumbnail drawn from the real models (`dev/make-thumb.mjs`), animated with a static version for reduced motion.

## Phase 2: better models and rendering

- [ ] A WebGL renderer behind the same `resize` and `render` interface (lit capsules first, then real meshes), chosen at load with the Canvas 2D renderer as the fallback.
- [ ] Better bodies: a proper mesh with skinning driven by the same joints, hands and feet, clothing or a mannequin look.
- [ ] Correct draw order without sorting tricks (a depth buffer comes with WebGL).
- [ ] Smooth transitions between exercises in workout mode instead of cutting.

## Phase 3: workout features

- [ ] Saved workout templates and several named plans.
- [ ] History of finished workouts, with streaks.
- [ ] Sound and voice cues for reps and rests; a wake lock so the screen stays on.
- [ ] Difficulty variations per exercise (incline push-up, assisted pull-up, jump squat).
- [ ] Share a plan as a link.
- [ ] Installable as an offline app (manifest and service worker).

## Later ideas

- [ ] Drag-and-drop reordering in the plan on top of the up and down buttons.
- [ ] Equipment filter (no equipment, bar, bands).
- [ ] A form-check mode that draws the angles at the key joints.
