Skip to content

Releases

v1.16.0

Choose a tag to compare

@m4bwav m4bwav released this 23 Nov 03:05
151375b

kb performance: effect culling by projected size, origin rebase pointer, half-resolution fog with measured costs.

v1.15.0

Choose a tag to compare

@m4bwav m4bwav released this 22 Nov 05:14
b492882

threewright-assets names vinish.dev free 3D models (CC BY 4.0) and Poly Pizza; points to polywright's list of big free libraries.

v1.14.0

Choose a tag to compare

@m4bwav m4bwav released this 22 Nov 04:58
e1b4f6d

tw shot writes .view.json and --view reopens it, so before/after shots and bug reports show the same view. threewright-debug uses it; geospatial note on temporal AA with a rebased origin.

threewright 1.13.0

Choose a tag to compare

@m4bwav m4bwav released this 21 Nov 22:43
f222040

What's Changed

  • threewright-shaders: lighting, stencil and transparency reference from The Godot Shaders Bible by @m4bwav in #39
  • Release 1.13.0 by @m4bwav in #40

Full Changelog: v1.12.0...v1.13.0

v1.12.0

Choose a tag to compare

@m4bwav m4bwav released this 21 Nov 02:15
a6a3dc9
  • threewright-shaders references/ray-tracing-in-shaders.md: for ray tracers and ray marchers written in GLSL or TSL, a ray-origin offset along the geometric normal in float steps (shadow acne), a precise ray/sphere test, environment mip level from ray spread, running-mean accumulation in float render targets, and delta tracking for volumes. Every block compiles on tests/fixtures/pages/ray-tracing, whose rtMeasure() gives the quoted numbers (a fixed tMin of 1e-4 marks 42% of a ground plane as shadowed 10,000 units out, the offset 0%; the textbook sphere fills the frame where the stable form lands within 0.1% of the expected area); a browser test asserts them.
  • threewright-shaders references/sampling.md: which sampler and pdf (cosine hemisphere, concentric disk, cone for sphere lights, triangle, environment-map CDF, VNDF over plain GGX), the four-times-samples rule, and fireflies (clamp versus path regularization, three-gpu-pathtracer filterGlossyFactor). The JS samplers are histogram-checked in tests/sampling.test.mjs.
  • threewright-debug symptoms: shadow acne in a custom ray tracer, a hard bump terminator, jitter far from the origin. clay-material.md: the bump terminator fix as a documented option, unverified.
  • Methods from Ray Tracing Gems (Haines and Akenine-Moller, eds., 2019, CC BY-NC-ND 4.0), chapters cited in each file; written fresh, no code or equations copied.

v1.11.0

Choose a tag to compare

@m4bwav m4bwav released this 20 Nov 21:57
61a50c6
  • tw feel <page> [--actions ...] [--seconds 5] [--fps 60] [--box name=x,y,w,h ...] [--player "<js>"] [--pixels] [--band x,y,w,h] [--probe "<css>"] [--out dir] [--json] (scripts/lib/feel.mjs): game feel as numbers. The page runs on the virtual clock and every frame is read (a small screenshot, and on a three.js page the main camera). Reports input to response per key or click (per box or the whole frame; on three.js pages also frames until the camera leaves its extrapolated path by 0.05 and 0.5 units), freeze runs inside motion (hit-stop), flashes (hold, fade ms, fade shape; FAIL above 3 in any 1 s), shake bursts (camera: residual after a centred 9-frame median, frames, ms, peak units, px at the subject depth, degrees; --pixels or no camera: phase correlation of a band, two-pass median detrend, peak px x and y), FOV range, per-box rise and decay to 63% and 90% with curve shape (linear, ease-in, exponential, cut) and update periods, camera-hides-player share with --player (a world-box test between camera and player; FAIL above 2% of frames or a run over 1 s), and --probe class spans. Exits 1 on FAIL. The camera is read through tw's per-instance renderer.render wrapper: three r169+ assigns render on each instance, so prototype hooks never fire.
  • tw play --delays 0,300: one run per reaction delay (ms between decision and input) and a difficulty read (decorative, delay-matters, fast-fails). --softlock S: status softlock when frames advance and input is sent but position and score stay put for S s (windows are reported on every run with a 3 s window). result.json gains firstScore (tick and time the score first rose), score and softlocks; score and position are read from common state shapes.
  • tw shot --metrics: advisory look numbers (colour entropy, dominant colour share, edge density, contrast) with low: notes under 3.0 bits, over 60%, under 0.04 and under 60. Never a failure.
  • tw check and tw perf print a warning when the GPU string is SwiftShader or another software renderer; tw perf prints it before any frame time.
  • threewright-games done checklist: line 14 must show active play, not a title or menu; new line 14b (tw feel), 14c (a URL flag such as ?stage=N that jumps to a stage), 12a gains --delays and --softlock, and a SwiftShader note on frame-time lines.
  • Fixtures feel-3d (three.js chase camera), feel-2d (Canvas 2D), feel-box, play-track, play-hazard, written fresh; tests in tests/feel.test.mjs and tests/play.test.mjs.
  • Methods from the 2026-11 web-game technique harvest (five published games and game-making skills measured on screen); numbers and methods only, no code, art or names in fixtures or docs. Sources: op7418/guizang-game-skill (AGPL, README ideas only), larryzpl123 Skybreak Protocol, dcjaychou Design Ridge Run, vitaminclaude Voidstruck (PolyForm Strict, played and measured only), efeislekel game-forge-claude-skill (no licence, ideas only).

v1.10.0

Choose a tag to compare

@m4bwav m4bwav released this 20 Nov 21:19
d22d18d
  • tw play <page|dist> [--bot bot.mjs | --monkey] [--seconds 60] [--seed 1] [--stuck 5] [--out dir]: closed-loop play with a bot's decide(state, ctx) or a seeded random monkey. Writes trace.jsonl, result.json (done, fail, timeout, crash, stuck) and fail.png at the failure tick; exits 1 on crash, stuck, fail or an uncaught exception.
  • threewright-games done checklist line 12a: play soak over three seeds plus a goal bot.
  • Bot-runner loop idea from VibeGame, arXiv:2610.33106; written fresh. Stuck detection, the exception hook and the monkey policy are additions.

v1.9.0

Choose a tag to compare

@m4bwav m4bwav released this 20 Nov 04:57
56b3371
  • threewright-shaders: Book of Shaders fragment rules in kb tsl and seeded-randomness, and tw lint rules glsl-float-int-literal, glsl-step-visible-edge, glsl-unwrapped-time (73 lint rules).
  • kb from Real-Time Rendering 4e: bottleneck test order and ms-not-fps in performance, PBR value ranges and specular aliasing in materials, perspective aliasing and bias order in lighting-and-shadows; threewright-debug symptoms rows for sparkling highlights and TRAA trails.

1.7.0

Choose a tag to compare

@m4bwav m4bwav released this 19 Nov 19:45
ccad476

kb recipe pixel-art-render-target: small WebGLRenderTarget with a bleed margin, camera snapped to whole art pixels, sub-pixel offset at upscale for smooth pans, sharp-bilinear upscale shader. Ideas from the Murder engine (MIT) and Cole Cecil's 2017 post; written fresh.

threewright 1.6.0

Choose a tag to compare

@m4bwav m4bwav released this 19 Nov 04:34
1acb0a8
  • threewright-shaders references/hit-effects-tsl.md: the six hit-effect recipes (shield, capsule bullet holes, depth-Laplacian outline as a RenderPipeline output, nested beam, black hole, octave-offset fbm) in TSL for WebGPURenderer. Every block is in tests/fixtures/pages/hit-fx-tsl; a unit test keeps them identical and a browser test runs tw check on it (WebGPU backend, no errors, pixels drawn).
  • Shield overcharge veins in both GLSL and TSL: thin lightning lines where sin-warped fbm crosses its middle value, driven by uOvercharge / overcharge. Idea from sloppysteaks69/GPU-Bandits (no licence); written fresh.
  • Noted in the TSL file: vec3(new Color()) renders black, use color().