by adom
How the Adom Wiki (wiki.adom.inc) works and how to drive it with the adom-wiki CLI: the two storage layers (git page repo vs package registry), hosting source by pushing files (not a tarball), making packages, cutting per-platform releases, and the three-tier skill layout (user skills ship, dev-skills/ and publish-skills/ stay source-only). adom-wiki is the current tool; adompkg is deprecated.
3D viewer: let a page set the camera target (viewer_3d.camera.target and ?camera=a,b,r,tx,ty,tz)
Ask
Let a page set the 3D viewer's camera target, not only its angles and distance:
component.viewer_3d.camera.target:[x, y, z]in the GLB's own frame (metres, Z up as the viewer shows it), defaulting to today's bounding-box centre;- and the same on the embed query, for example
?camera=alpha,beta,radiusScale,tx,ty,tz.
Why
Today the opening view takes alpha, beta and radiusScale (page.json component.viewer_3d.camera, or ?camera=a,b,r), and it always aims at the GLB's bounding-box centre. That is fine for a chip. For a scene it often is not: a robot workcell's box is pulled upwards by the arm and sideways by long rails or a shelf, so the centre floats in the air behind the cell. The opening view then shows the cell small in the lower part of the frame, with empty space above.
The only workaround is to edit the model so that its box centre lands where the view should aim. Authors do this by moving, trimming or padding geometry purely to steer a camera, which changes the model for a presentation reason.
Example
A project page's hero is a workcell GLB. The author's chosen view (front-left, the whole cell filling the frame, the arm rising out of the top edge) aims at about the middle of the stations, about 0.25 m below and 0.2 m in front of the box centre. No combination of alpha, beta and radiusScale gives that framing, because the target cannot move.
Expected
targetset: the opening camera orbits that point; Home returns to it.targetabsent: unchanged behaviour (box centre), so no existing page moves.- The sanitizer accepts the key (today unknown keys are dropped with a publish hint), and the query form overrides page.json the way
?camera=does now.
Related, not the same: #374 (component heroes land on a bad camera angle) asks for a posing step for hero images; this asks for one more camera parameter that the hero step could reuse.