# KUPAR Shot Studio

A browser workspace for staging watch moodshots, wrist studies and lifestyle photographs. The mannequin, product proxy, lighting and camera run locally in WebGL 2. Each shot supports one watch, one figure, up to 32 props, eight light sources and eight camera angles.

## Host on Cloudflare Pages

Upload `kupar-cloudflare.zip` with Cloudflare Pages Direct Upload. The archive contains a root `index.html`, bundled JavaScript, the gravity worker, the KP mark, reference thumbnails and the companion skill. The site needs no API key or backend. To build from source, run `npm ci` and `npm run build` with Node.js 20 or newer. Deploy `dist/`.

For local use, extract the deploy ZIP and serve its directory with `python -m http.server 8080`, then open `http://localhost:8080`. Directly opening `index.html` also depends on the browser's local-file settings. Use a desktop browser with hardware acceleration for detailed scenes.

## Work in the viewport

- Open **Shot library**, choose a starting shot, or import a v1 or v2 scene JSON. **Studio view** shows the floor plane, editing handles and a live inset of the shooting camera. **Shot camera** shows the exported composition.
- Select a wrist or ankle and drag it. The elbow or knee follows. Alt-drag moves the joint in depth. Grab an elbow to change the bend. Use **Frame posing wrist** or **Edit fingers** for close work. **Open**, **Relax**, **Point** and **Fist** apply to the chosen hand. **Reset figure** restores the preset posture and position.
- Click **Move**, **Rotate** or **Scale** on the left of the viewport. For Move, drag an arrow along one direction, a small square in its plane, or the center freely. For Scale, drag an end box along a single dimension or the center for uniform scale. **World / Local** sets the orientation. Prop dimensions always follow the object's own axes.
- **Rotate** starts in **View**, with a single ring facing you. Click **Tilt**, **Turn** or **Roll** below the viewport to choose a different direction. Drag anywhere on the ring or grab the white dot. The angle appears during the drag. Edge-on rings stay wide enough to grab. A fastened watch has one roll ring around the forearm. Select **Move** to slide it along the arm.
- Hold **Shift** on a handle for fine movement. Switch on **Snap** or hold **Ctrl** to snap rotation to 15°, translation to grid increments, and scale to 10% steps. Click **Gizmo** to switch to the separate precision pads, then drag a pad horizontally. **G / R / S** are optional tool shortcuts. **Esc** cancels a drag.
- Middle-drag to orbit, Shift-middle-drag or right-drag to pan, and scroll or Ctrl-middle-drag to zoom. You can also select **Orbit**, **Pan** or **Zoom** and left-drag. Double-click a subject or click **Frame selection** to bring it into view. Use **Front**, **Side**, **Top** or numpad **1**, **3**, **7**. Numpad **0** switches between the studio and shot camera. **?** opens the shortcut list.
- Drag an inspector value sideways. Shift-drag gives finer control. Use its minus and plus buttons, or focus the value and press an arrow key, to step once.
- Use the layer eye to toggle visibility and its bin or the **Delete** key to remove it. Hidden props do not participate in surface picking or a gravity drop. The camera eye controls its editing guides. Duplicate the shooting camera to keep an alternate angle. Click a saved camera to make it active. The scene keeps one shooting camera.
- In **Set**, add a prop, change its surface and dimensions, or duplicate it. **Snap to floor** uses the transformed geometry. **Place on support** lets you click another prop. **Place feet on support** positions the figure over the picked surface. The grid and contact guides belong to Studio view.
- **Reset scene** restores the current library shot. **Undo** and **Redo** include deletes and resets. Drafts save in this browser after edits. Export the scene JSON to keep a portable copy.

The library includes 14 moodshots, three handshots, four lifestyle scenes, 40 props and 10 lighting setups. Try **Prism gallery**, **Listening session** or **Espresso counter** for a staged tabletop composition. Each set element can be selected and adjusted separately.

## Watch, lighting and camera

- Choose the worn wrist, fit, clearance, friction and axial position. A fastened band uses a measured wrist cross-section and a bounded gravity approximation. **Release clasp & settle** simulates an open rigid band against the posed scene. **Replay fall** shows its recorded motion. **Refasten to wrist** restores attachment. A standalone product has adjustable loop dimensions and a **Drop under gravity** action.
- The drop uses a rigid case and band with sampled contacts. It stops at rest or at four simulated seconds. A time-limited snapshot can still be moving. Fine strap articulation, fabric simulation and body self-collision are outside the physics model.
- In **Light**, apply a setup, add or hide sources, drag a lamp, or click its aim point. Set panel width, spot angle, intensity and light color as appropriate to the source. Changing a lighting setup replaces the current sources in one undoable edit.
- Compose in Studio view and use **Align camera to studio view** to transfer that framing. The shot takes the chosen aspect ratio and focal length. **Frame watch** looks toward the dial. **Depth of field** enables a depth-based lens preview in the shooting camera, inset and exported PNG. Adjust the aperture and focus on the dial, look-at target or a clicked surface. Blur is screen-space and can show edge artifacts at large apertures.

## Generate the photograph

Choose **Export shot → Download shot ZIP**. By default it contains three files.

| File | Use |
| --- | --- |
| `name-brief.json` | Generation brief with the active camera, watch inclusion and placement, pose, visible set layers and enabled lights |
| `name.png` | Clean camera frame for pose, composition, product scale and lighting, 1600 pixels on the longest edge |
| `name.json` | Editable scene for reopening in Shot Studio, including transforms, joints and saved camera angles |

Give the generator the brief and matching PNG. For an identifiable SKU, attach its actual front photo and any relevant side or rear photo. The product photos determine design details. Disable the watch in Layers before exporting a bare-wrist plate.

Install `kupar-shot-to-prompt.zip` where custom skills are supported or attach the plain `SKILL.md` and ask the assistant to use it. For example, “Use the brief and composition PNG for the pose and framing. Use front.jpg for the watch. Write one image-generation prompt.”

The figure assets use MakeHuman community meshes. Credits and license are included under `anatomy/`. The header uses the KP mark from kupar.in. Pose handles guide the figure within joint limits. Extreme poses can still crease or intersect the mesh. Check the camera frame before exporting.
