You are right. The missing model is not "pick a shape, adjust width." It is "describe the pose of the surface in the photograph."
I’m adding a pose system now: movable axis, true arbitrary-angle cylinder math, center move gizmo, rotation handle, artwork rotation, and scenario starters such as upright can, leaning bottle, horizontal tube, diagonal pen, card on table, and angled pouch.
The model now separates three things designers actually deal with: the photographed object's pose, the local surface shape, and the artwork's own orientation. I’m validating the full build and generated Photoshop payload now.
The workflow is now pose-first, matching how designers actually approach different mockup photographs.
What Changed
- Added independent layers for surface pose, surface deformation, and artwork orientation.
- Cylinder axes can now be positioned at any angle: upright, leaning, diagonal, or horizontal.
- Cylinder width and curvature are calculated perpendicular and parallel to the actual axis, rather than assuming a vertical object.
- Added a black center handle to move the entire surface.
- Added a magenta rotation handle to rotate the full surface without changing its dimensions.
- Added independent artwork rotation from −180° to 180°.
- Added axis angle and axis length controls.
- Separated top and bottom curvature handles so they no longer overlap the axis handles.
Designer Scenarios
The setup panel now includes practical starting poses:
- Upright can
- Leaning bottle
- Horizontal tube
- Diagonal pen
- Card on table
- Standing box face
- Rotated screen
- Front pouch
- Angled pouch
- Wall flag
- Hanging banner
These only initialize the geometry, allowing designers to fit it to uploaded photographs.
Rendering Improvements
- Replaced the repeated-image SVG workaround with a piecewise affine Canvas renderer.
- Artwork is divided into triangular UV regions and projected through the calculated surface grid.
- Perspective planes now use a true projective homography instead of bilinear interpolation.
- Uploaded artwork rotates in UV space before being wrapped.
- Canvas images are cached so warps can redraw during handle movement.
Photoshop Export
- Transformation maps now preserve artwork rotation.
- Cylinder maps preserve both axis endpoints.
- Generated UXP code calculates axis center, length, and rotation from those endpoints instead of assuming a vertical cylinder.
Landing Page
Added a pose-first workflow section explaining how the approach changes for leaning bottles, horizontal pens, perspective cards, angled pouches, and sideways artwork.
Production build passes successfully. Browser-level pointer interaction is implemented with SVG coordinate transforms and Pointer Capture, but automated browser drag testing was not available.