The mathematical beauty of hyperbezier curves
The hyperbezier is a proposed curve family for 2D vector design, defined by the Cesàro equation κ(s) = (as+b)/(cs²+ds+1)^1.5, intended as a strict improvement on cubic Béziers. It closely matches cubic Béziers at small deflection angles and contains Euler spirals, exact circular arcs, several log-aesthetic curves and near-exact hyperbolas. It also reaches sharp superellipse corners and approximates elastica reasonably well. Its curvature integrates cleanly to a Whewell equation, has at most one inflection point, and has curvature extrema found by solving a quadratic. Open work includes a final control-point mapping, G2-continuous splines and curve fitting for pen and touch data.
Related posts
- How We Built the BFCM 2023 Globe
Shopify Engineering mediumAdeptShopify's BFCM 2023 live-orders globe was built with Three.js and React-three-fiber, and most of its effects are drawn in single instanced draw calls. Order arcs are cubic Bézier curves evaluated in the vertex shader from per-instance attributes stored in an interleaved buffer. They are billboarded using the cross product of the curve tangent and the camera direction, and dissolve via UV-driven noise. Instancing let the team render tens of thousands of arcs, and up to a million on an M1 laptop, where earlier per-mesh arcs struggled past 1000 on mobile. The same approach covers fireworks, city dots and orbiting airplanes, along with fixes for a camera flip caused by the lookAt up vector, Hermite-spline 'loopy arcs', and working around WebGL's 255-byte attribute stride limit.
- Box2D 3.1
Box2D mediumAdeptBox2D 3.1 fixes most bugs and build problems from 3.0 and adds an experimental geometric character mover built from collision queries and a specialized solver that runs outside the physics world. A rewritten sensor system no longer piggybacks on contacts: it ignores body type and sleep state, runs at the end of the step for undelayed, deterministic, multithreaded begin/end events, and exposes current overlaps. Rolling resistance and tangent speed (conveyor belts) are new shape surface properties using the SIMD contact solver. SSE2 is now the default on x64 instead of AVX2, Neon is optimized for Apple Silicon, continuous collision is about twice as fast, and GJK is 20% faster.
- 2D Asset Generation: AI for Game Development #4
Hugging Face mediumAdeptStable Diffusion's Image2Image mode can be used as one step in a conventional 2D art workflow rather than a replacement for it: rough hand sketches are fed in, the output is painted over in an image editor, and the result is fed back in. Denoising strength sets how far the output strays from the input. A corn icon was produced in under 10 minutes by starting at 0.8 for exploration and dropping to 0.6 for refinement. A scythe icon was harder because training data skews toward weapons. That kind of bias can be countered with prompt engineering and negative prompts, or with customization techniques such as DreamBooth, textual inversion and LoRA.
- Dynamic Tree Improvements
Box2D hardMasterBox2D's dynamic tree inserts a new proxy using a greedy, single-descent heuristic that approximates minimizing the surface area heuristic (SAH) instead of doing an exhaustive search, since incremental insertion is inherently greedy anyway. At each internal node it compares the direct cost of making the current node the sibling (area of the union) plus an inherited cost accumulated from enlarging ancestors. It also computes an optimistic lower-bound cost for descending into each child. For internal children, that bound is inheritedCost + Area(Union(C, D)) + min(0, Area(D) - Area(C)), clamped so the child itself can still be chosen as the sibling.
- Efficient Controllable Generation for SDXL with T2I-Adapters
Hugging Face mediumAdeptT2I-Adapter-SDXL drives the 2.6B-parameter SDXL model with a 79M-parameter adapter that runs once per generation, unlike ControlNet, which runs alongside the UNet at every denoising step. That makes it about 94% smaller than ControlNet-SDXL (158 MB vs 2.5 GB in fp16). Checkpoints for sketch, canny, lineart, depth and openpose conditioning were trained on 3M LAION-Aesthetics pairs at batch size 128, learning rate 1e-5, for 20k–35k steps. They are usable through the diffusers StableDiffusionXLAdapterPipeline, with adapter_conditioning_scale and adapter_conditioning_factor controlling how strongly and for how many steps the condition applies.