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 DR0: docs/direction.feature, the plan for direction that holds. One world of facts, findings and rules in raea/ecs's form, so a person's notes become checks and a project is built in an order that can't skip modelling, blocking or review. 28 scenarios (DR0 to DR27) with what raea already has and the gap in each, read against the code. DR0's decisions are decided. bench/direction/proto/world.ts proves the form on raea/ecs as it is, under plain bun: a 2D lyric, a 3D rider and seat, a footage cut and a cue in one world, four checks as systems, a three-ask note, six cases and two cheats as expected. shinyobjectz committed 19 days ago
086115c Copy SHA A script's solid is its expression until something needs the solid. /3d's manifold held a built Manifold for every solid a script made, so a set made of cuts was cut twice on every open: once here as the script ran, and again by the renderer, which builds its meshes from the expressions (and now keeps them on disk). A boolean, a move, a rotate and a scale now only write the expression; a query, a mesh, an export or an operation on the solid itself builds it then, from the expression (raea-core-shape's solid_or_empty, so a boolean that left nothing can still be asked whether it is empty). A launch-film set played offscreen at frame 0: 4.6 s to 3.6 s, another 4.4 s to 3.2 s, each frame the same bytes as before; examples/headless/solids-and-worlds.ts passes its 12 checks. shinyobjectz committed 19 days ago
f25c925 Copy SHA A video's bright parts come out whole on GPUs whose compilers treat a signed shift into the sign bit as undefined. nv12.k packs four luma bytes (and two chroma pairs) into a word with shl, the top byte by 24, and the WGSL shifted i32: a byte of 128 or more overflows into the sign bit, which WGSL defines but a driver's compiler (a Windows on ARM GPU's, #82) didn't, so every 4 pixels of a bright region came out as two right and two at 255, white stripes over the whole video (the reporter's luma plane: 29,489 of 29,495 words whose second byte is 128+ have both top bytes 255; none below). K's shl now shifts as u32 and bitcasts back, the same bits as the interpreter's wrapping_shl, so nv12.k, nv12buf.k and p010buf.k (whose 22-bit shift overflows the same way) are unchanged. 1 test: the WGSL shifts unsigned, and on the GPU all 256 bytes pack as the interpreter packs them. shinyobjectz committed 19 days ago
05c9788 Copy SHA An ImagePlane plays its sprite sheet and swaps its picture in an mp4 render: a video's 3D is drawn live, frame by frame, and a live frame sent a panel only its placement, visibility and screen values, so the cell `frame` showed, the `src` it showed and its sheet's grid stayed at frame 0's for the whole film (a folder of PNGs, made from a program, played them). A live frame now sends a panel's sheet_frame, sheet_cols, sheet_rows and src when they change (live.rs's columns, and the fast path, which leaves a panel whose src changed to the full path: it holds the raw src against the one it last made a row from, so an unchanged one costs nothing); the engine swaps a live panel's picture when its row's src names another (scene3d::Pictures' `live`, found as spawn finds it). A program keys a part's grid as it keys its cell (it was the first frame's), so a src that changes to a sheet of another grid shows that sheet's cells; a card whose height follows its picture takes the new picture's shape. Found making 0.1.1's app showreel, which worked around it by rendering frames. 2 tests: raea-runtime-look's sheet keys, and raea-runtime-live's live_sheet (raea-runtime-scene is at its 2,000-line limit), where RAEA_LIVE3D_CHECK holds the fast path against the full one; a 30-frame repro reads the right cell and grid at frame 20 in the mp4, the program render and the PNGs. shinyobjectz committed 19 days ago
281da9c Copy SHA Shadow maps fit a GPU with little memory of its own (#66): on Vulkan raea reads the largest heap the GPU calls its own (device-local) and, when a scene's <Shadows> gives no size, makes the sun's and spots' maps 2048 a side under 2 GB and 1024 under 1 GB instead of 4096, saying so once. An AMD APU's own memory on Vulkan is the carve-out its firmware leaves it (often 512 MB), and wgpu's allocator never puts a GPU-only texture anywhere else, so a sun's four 4096 cascades, 268 MB of depth, are the likeliest cause of #66's OutOfMemory on a Ryzen 7 4700U (not reproduced: there's no such machine here). On an RTX 4070 the blocks example's first frame holds 571 MB of GPU memory with 4096 maps, 370 MB with 2048 and 319 MB with 1024 (Vulkan, wgpu's allocated total, a build of this change with the heap size forced). The heap read gave 12012 MB on the 4070 and 32606 MB on lavapipe, which keep 4096; DX12 and Metal draw in the system's shared memory and keep 4096 too. A <Shadows mapSize> still wins. shinyobjectz committed 19 days ago
85f20fa Copy SHA