Skip to content

v0.2.0

Choose a tag to compare

@kalwalt kalwalt released this 03 Nov 22:58
· 80 commits to master since this release
9fd45a1

Changed

  • Graph format v5 (#12): plugins: [{ id, version }] lists the plugins a graph's nodes
    come from, with the minimum version. Version 4 graphs are rejected; add
    "plugins": [{ "id": "jsartoolkitNFT", "version": "0.1.0" }] to those with jsartoolkitNFT.* nodes
    and set "version": 5. A missing plugin is reported by name.
  • The jsartoolkitNFT nodes are now a plugin (plugins/jsartoolkit-nft/), with unchanged node
    types, ports, params and tracking (same trace before and after). Its socket types are
    jsartoolkitNFT.cameraParams, jsartoolkitNFT.dataset and jsartoolkitNFT.settings (were artk*).
  • The controller runs the tracker in the facade's own worker, createNFTTrackerWorker from the
    light client of @webarkit/jsartoolkit-nft 1.16.0 (#14), instead of a worker of ours. Its
    worker files are served from jsartoolkit-nft/<version>/ next to the page; exported apps get only the
    worker of their build. A worker that does not start within 30 s fails the controller with a
    clear error (the dataset loads that follow have no limit; stopping the graph ends them). Requires @webarkit/jsartoolkit-nft ≥ 1.16.0, whose One Euro filter keeps poses
    rigid: One Euro-filtered poses differ slightly from 1.15.0 (no other tracking change).

Added

  • MCP server (#8, npm run mcp:studio, declared in .mcp.json): catalog_list, graph_validate,
    graph_create, graph_edit, tracking_run (the graph's tracker on JPEG images in Node, as trace
    records) and export_bundle (the standalone app, from the studio build in dist/). Plugins can run their trackers in Node with a
    HeadlessTracker (plugin API), listed in webarkit-studio.node.config.ts. Traces gain an images
    source (several still images, not replayable; additive, TRACE_VERSION unchanged).

  • Trackability check for NFT datasets (#10): npm run trackability -- <dataset> rates the
    feature points the NFT generator wrote (detection points, coverage, repetition, tracking
    points), with hints; the logic is plugins/jsartoolkit-nft/trackability.ts, ready for the MCP
    server (#8). npm run example:marker and npm run example:project take a generated marker to
    a project file with a glTF model, and Creative tools sets up
    Blender, ComfyUI and Krita.

  • Plugin API (#12): a typed StudioPlugin manifest (src/plugin-api, types only) that adds
    nodes, sockets, factories and export files; plugins listed in webarkit-studio.config.ts are
    checked when loaded and become lazy chunks. See Writing a plugin.

  • Image and Video File sources (source.image, source.videoFile): a still
    image or a recorded video instead of the camera, and the
    "pinball · image, no camera" demo (#2).

  • Assets: upload images, videos, NFT datasets and glTF models into the project
    (saved in IndexedDB) and use them from asset params as asset://<id>/<name>
    references. A graph using them needs its project's assets to run.

  • Export → Project (.zip): the graph with its uploaded assets; Import…
    opens it. The standalone app export bundles uploads under data/assets/.

  • scene.gltf (glTF Model) on Three.js and Babylon.js, with live scale,
    rotation and position; models/cube.glb as its default model.

  • Editor: a right-click menu with node search (name, category, library) and a palette filter;
    undo / redo, including param edits; a minimap and Arrange; copy, paste and duplicate of
    node selections, keeping the wires between them; a Properties panel for the selected node (#2).

  • Param kinds vector3 and matrix4 (values are number arrays; the graph version is unchanged).

  • Primitive: live Position (mm) and Rotation (degrees); Spin turns it about its own Z axis.
    glTF Model uses the same Position / Rotation vectors.

  • Math nodes (#25): math.number, math.vector3, math.splitVector3, math.add, math.multiply, math.addVector3, math.scaleVector3,
    math.sin (degrees) and math.time, on new number and vector3 sockets, renderer-independent.
    An input with the same name as a param overrides it while connected; Primitive gets a position
    input. Demo: pinball · math nodes, a cube bobbing on the marker.

  • Colour nodes (#33): a color socket ([r, g, b, a], 0–1, sRGB), color.rgba and color.split.
    Primitive and Light take a color input that overrides their Color param; alpha below 1 makes a
    Primitive transparent on both renderers. Light's Color applies live. The math demo also fades the cube. The color namespace is
    reserved for built-in nodes (a plugin cannot use color as its id).

  • math.expression (#34), a formula node and the first step of the script nodes: 40 + 30 * sin(t * 180)
    with variables a–d (params or inputs) and t (its own seconds, or an input), operators, comparisons,
    ? :, and functions (trigonometry in degrees). Parsed by the studio itself, without eval; the editor
    shows a formula error under its field; formulas are limited to 500 characters and 64 nesting levels.
    ParamSpec (plugin API) gains an optional syntax: 'expression' for such fields. Demo: pinball · one formula.