Repository navigation
Releases
v1.2.3
Fixes: fix CLI exports, stop tracking node_modules
es3d glb now uses the library exporter and honours --lod, --instancing and --quantize (the demo packer is --pack). x3d, usd, scad and js run. Bad option values fail instead of being ignored. fmt keeps JSON, the converter detects JSON ES3D files, and pack:check runs on Windows.
v1.2.2
Bug fix. A stage created with interactive: false still blocked touch scrolling on its canvas. OrbitControls now keeps touch-action in step with enabled however it is set.
Conformance fix. In close-ups, level 0 could still be more than a pixel off. The reference reader now makes a finer level on demand (level 0 at 2, 4 or 8 times the quality) and draws the coarsest one that is within a pixel. Shapes with fixed segments are unchanged.
Performance. When a frame has no more opaque triangles than pixels, both backends draw a depth pre-pass, so each covered pixel is shaded once. The picture is unchanged.
v1.2.1
Bug-fix. Performance fix. When a page streamed fragments into a stage, each time the geometry pool grew, the next frame uploaded the whole pool again rather than just the new meshes.
A growing pool now keeps what is already on the GPU, copies it there into the larger buffer, and uploads only the new meshes.
Apologies for the back-to-back updates.
v1.2.0
Release 1.2.0: stage fragments, worker compiling and a one-file browser build
stage.add() shows another complete document inside the stage's document: a map tile, a room, a route. Only that document is compiled when it is added, replaced or removed, and a document plus fragments draws exactly the picture of one merged document on WebGPU and WebGL2. stage.prepare() compiles in a worker started from the stage's own file, changes are applied within stage.changeBudget, and stage.drawn() and stage.stats say when a change is on screen and what it cost. @es3d/es3d/browser is the whole browser-safe library in one file, importFiles takes File objects, and the stage file is fully minified.
The purpose of this change is to make the file format have more global applications and make it easier to distribute on CDNs.
v1.1.2
v1.1.1
Fix three.js, USD and X3D converter bugs in 1.1.1.
A material first used inside a repeat stays in scope for the rest of the three.js module, and flattened copies share one geometry. USDA references keep the prototype type, a parent keeps its own transform, and X3D Classic geometry USE is drawn again.
v1.1.0
@es3d/es3d/stage lets a page move its own shapes. setTransform(id, matrix) writes a column-major matrix onto an element that appears once. A shared definition, or a or copy, is left as the file drew it.
The converter, Studio and the es3d command now read and write X3D, USDA and OpenSCAD, and write a three.js module. X3D export is Classic (.x3dv). USD is USDA text. OpenSCAD is read. The three.js file is export only. --flatten writes the same triangles as glTF.
Some of these convertors are a bit shaky, so I expect there may be need to update them later down the line.
v1.0.2
Version 1.0.2 groups repeated warnings in the human-readable report. Warnings that share a code, the element name in the message, and the same message are shown once, at the first location, with Reported N times. Showing the first. The summary line still counts every warning. doc.diagnostics and validate --json still list each one. Errors stay one by one.
The optimizer treats a token in an x- attribute as a reference when it names an existing id, and updates that token when it merges a duplicate material. A definition named only by an extension is kept.
The format is unchanged. version="1.1" still opens, a new attribute or a new value is still an error, and x- elements inside polygon, line, use, and animate still round-trip in all three syntaxes and draw the ordinary shapes.
npm to v1.0.2
This will set the stage for the v1.1.0 release! Thank you for taking the time to look at the ES3D project!
v1.0.1b
createStage followed the detached canvas after a WebGPU fallback, so the live canvas stayed 300x150 or stopped tracking its parent. It now sizes the canvas that is actually drawn on. That canvas is replaced only when WebGPU or a 2D context was created.
WebGL2 dispose no longer loses the context, so the same canvas can be used again. A restored context rebuilds its GL objects, and a still scene redraws when the device pixel ratio changes.
npm to v1.0.1
Thank you for visiting my first ES3D bug-fix!
This contains a publish.yml fix regarding npm permissions.
v1.0.1
createStage followed the detached canvas after a WebGPU fallback, so the live canvas stayed 300x150 or stopped tracking its parent. It now sizes the canvas that is actually drawn on. That canvas is replaced only when WebGPU or a 2D context was created.
WebGL2 dispose no longer loses the context, so the same canvas can be used again. A restored context rebuilds its GL objects, and a still scene redraws when the device pixel ratio changes.
npm to v1.0.1
Thank you for visiting my first ES3D bug-fix!