Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
Code Commits Issues Pull requests Wiki Builds Discussions Projects Insights Search Commits on main R3F23: a pass is the same one frame to frame by what was drawn, and a ShaderMaterial reads a target's image as drawn (R3F23c, part). targets.ts names what a pass drew (its scene, and the lone mesh's material or the override material) and counts passes into the same target by that, so GPUComputationRenderer's quad, drawn once with its pass-through shader and then each frame with the variable's, keeps one layer and camera for its compute pass from frame 0 on, not the init's (passes.ts keys a pass by texture, what and count). shader.ts never asks for a raw linear copy of a target raea's engine draws: three-shader takes that copy once, before any pass has filled it. Tests: targets.test.tsx (the swapped quad's compute pass at frames 0 and 2; a ShaderMaterial's texture is the camera's image, v turned over) shinyobjectz committed 13 days ago
eb43664 Copy SHA R3F23: what an app draws into a render target itself, drawn on raea's GPU (R3F23b). A gl.render into a target that sdk/r3f doesn't do on the CPU is recorded on the renderer that drew it (targets.ts renderInto) with its scene's parts as they were then, so two passes of one quad with another uniform each keep their own. passes.ts puts each pass's parts on a render layer of its own (64 up) and adds a camera part into the target's image ("render:<texture uuid>@WxH:WxH", ":float" for a float target), ordered before the screen's in draw order, cleared to the pass scene's background or the renderer's clear colour; a bare THREE.Camera's full-screen quad is drawn by an orthographic one. A material reading the target's texture names that image, with v turned over as a flipY picture's is (texture.ts flipsY, in scene.ts and shader.ts). session.ts and program.ts empty a renderer's passes as each frame steps, so a still of frame 3 has frame 3's passes. Cube and 3D targets stay left out. Tests: test/targets.test.tsx (the fbo probe, one frame's passes, two passes of one quad), the reflector case in errors.test.tsx; the parity case test/parity/targets.tsx (in-fbo) shinyobjectz committed 13 days ago
0226bbb Copy SHA R3F22: three's compute and storage buffers run in the engine. raea-sys-shader shared.rs keeps a storage buffer by key (Bevy's ShaderBuffer, made once with its size and first contents, kept on the GPU, reset by a fresh three session; the empty one for an unused slot), the facility the computes that write it and the node materials that read it share. raea-sys-compute three.rs reads a <Compute kernels shared runs>: each kernel three's own WGSL with its storage bindings by key and its uniforms packed by three's struct, and the frame's runs queued once each by (epoch, seq) and dispatched in order before the other computes, a run whose pipeline or buffer isn't ready held. raea-sys-three-shader storage.rs binds two read-only shared buffers to a node material (bindings 11 and 12), and repeats a BufferMesh with copies count times with each copy's number, matrix and attributes (not frustum-culled). Two fixes the parity render found: runtime-scene keys a compute row's kernels, shared and runs frame by frame (a run after frame 0 never reached the engine), and three-shader's unlit entry premultiplies an additive material's colour with no alpha (three_blend in tone.wesl), since Bevy blends AlphaMode::Add as premultiplied alpha. compute lib.rs's groups_of and column serve the written, inline and three computes alike. docs/r3f.feature: R3F22 done, in-tsl-particles SSIM 0.9510 shinyobjectz committed 13 days ago
fef9a1b Copy SHA R3F22: sdk/r3f runs TSL compute: gl.compute and computeAsync record each ComputeNode as three's own WGSL (its WGSLNodeBuilder against the stand-in renderer), its dispatch size as three's WebGPU backend works it out and its uniforms' values then, and the walk empties them into one Compute part a frame (src/input/tsl-compute.ts: kernels, shared buffers by their attribute's key, the frame's runs in order; epoch, seq, fresh). A node material reading a storage buffer (.element(i), .toAttribute()) reads the same shared buffer by key (tsl-storage.ts, tsl.ts: at most two, tsl_s0 and tsl_s1), and one on an InstancedMesh is compiled for copies: one BufferMesh of the geometry with copies {count, attributes, matrices}, instance_index its own attribute tsl_copy (tsl-instances.ts, scene.ts instancedParts before copyParts). sdk/render: Compute takes {kernels, shared, runs} as keyed columns, BufferMesh takes copies. test/compute.test.tsx 6/6; the parity case in-tsl-particles (65,536 particles a compute swirls, drawn as copies) in test/parity/tsl.tsx and tools/parity.sh shinyobjectz committed 13 days ago
371751d Copy SHA CH48c: words to a sewn garment through SigLIP 2, trained with no captions. Each lean design is pictured from four sides (bake_batch.py PICTURES=1) and embedded with SigLIP 2 on the CPU (garment_embed.py); a small network learns the design's 122 settings as 196 slots (garment_params.py) from the picture embeddings, centred and with noise added, and is asked with a line's text embedding centred on a bank of garment lines (garment_model.py train, eval, make). words.sh makes each line a design, cuts it to SOMA, drapes and pictures it. First run on 86 designs: held out, the top's kind 0.66 against 0.44 most common, the bottom's 0.59 against 0.31; twelve lines of words 11 of 12, as many as the nearest picture, where a random design passes one or two; seven lines all valid patterns that hang right, six read as asked. sample_designs.py takes a given design (DESIGN, GID); sheet.py labels a garment asked in words with its words shinyobjectz committed 13 days ago
7d893bb Copy SHA CH49: worn pieces across periods and genres (a futuristic motorcycle helmet, a Victorian top hat, a Roman legionary's helmet, sci-fi armour), and the keyed fit made to hold them. The colour decides what is body, not the distance: a helmet's crown within the cut of the skull was cut through, showing the skin. A separate piece hugging the skin all over (the soles, never drawn) is dropped, as is one mostly magenta and a shadowed hand's dark magenta. Each piece rides one bone whole, the one nearest its centre, never a neck bone, a midline bone when it crosses the middle: before, a helmet split across head and neck and a breastplate rode the right arm. CH48: the data engine resumes (samples only the designs short of N, skips draped ones), a rejected design leaves no folder, and a failed drape is one line instead of a traceback that stopped the run shinyobjectz committed 13 days ago
af1a2c4 Copy SHA CH49: worn hard pieces from words, and CH48b: the garment training data at scale. tools/garments/wear.sh draws a piece on SOMA's mannequin with an image model, makes it 3D with Idol on this machine, lays it on SOMA (the turn searched, then turn, size and place refined against the skin), cuts the bare body away (by distance, or by a magenta key for pieces that leave skin bare), lifts what is kept 4 mm off the skin, and gives each face the bone it lies nearest, so each piece rides its bone rigidly as one part. Pilot: plate armour, fitted at SOMA's height within 0.05 per cent, walks with the body front and back. engine.sh LEAN=1 keeps what training needs, about 0.4 MB a design. The plan: periods, genres and armour in the training set (CH48b), rigid worn pieces (CH49) shinyobjectz committed 13 days ago
9055f72 Copy SHA