Skip to content

armgit / raea

Public Imported from GitHub
0

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.

Commits on main

Sound guides: the review's fixes. tonejs-instruments is CC-BY 3.0 (its README), so every example that plays it credits it, and MusyngKite and FatBoy are left out as share-alike, not unlicensed. The SAO licence text says what Stability's Community License says: the person owns what it makes as far as the law allows, its sounds train no other generative model, its duties to ship the agreement, a notice and "Powered by Stability AI" fall on raea, and until raea settles them (SN2) the agent names the licence and links it instead of telling the person what it requires. Setup takes uv and git from raea's pinned tools/ensure.sh instead of an unpinned installer, names the Command Line Tools stub's status 1, and says RAEA_AUDIO_AUTOSETUP=0 stops setup-audio too. sources.md gives a one-line fetch for VSCO 2 CE and VCSL (their SFZ branches), Salamander V3, Groove MIDI (checked against its published SHA-256) and MuseScore General, each with its licence beside it; takes Mixkit's sound effects on the same terms as Pixabay's and FreePats' CC0 and CC-BY banks only. The MIDI converter pairs note-ons with note-offs, keeps a track per channel and writes raea/music's MidiFile shape, and the drum map is Roland's, which Groove MIDI was recorded on (hi-hat edges at 22 and 26, an open hi-hat take in the kit). Samplers get a root every 3 to 4 semitones: the examples fetch roots with no --notes and write the urls the command prints. The game example plays VCSL's recorded marimba instead of a TokenSynth one, raea/music's named instruments are marked as synth sketches, raea gen makes music only when the person asks for a track, the reel's bed is the person's own track or nothing, and raea sao and raea tokensynth take --dir so a take lands in the edit's asset store.
shinyobjectz committed 12 days ago
9c5ab64
RT3: the decoder's tests in a file of their own
shinyobjectz committed 12 days ago
ab2a085
#165: an <R3F> scene lit by PMREMGenerator.fromScene(new RoomEnvironment(), sigma) is lit by that room, as three lights it. Since #131, fromScene handed back a stand-in that raea left out with a warning, because raea's <Environment> and its engine took panorama files only: the scene was drawn with no environment, so a box three draws 255,195,160 on its front face came out 136,76,58, and anything the room alone lights was near black. <Environment> now takes `room` (three.js's RoomEnvironment, made with no file) and `blur` (fromScene's sigma) in place of `src`. The engine makes the room itself (raea-sys-environment room.rs): RoomEnvironment's room, boxes, light boxes and point light at three r185's sizes and strengths, each direction from fromScene's cube camera traced to what it hits and shaded with three's Lambert, GGX and light falloff, blurred by sigma as fromScene's two half blurs do, then filtered like any panorama; runtime/look names it in env_srcs as room:SIGMA. On the R3F side, fromScene of a RoomEnvironment returns a texture marked with its sigma, which lights.ts turns into <Environment room blur> with the scene's environmentIntensity and rotation, and as the background when the room is that too; fromScene of any other scene, and fromCubemap, are still left out with a warning. The other way round, src/three (room.ts) draws <Environment room> as RoomEnvironment through the renderer's PMREMGenerator, and the source export writes it so. Tests: room.rs checks the room's light at 14 directions against three's own RoomEnvironment object (within 1e-3), the blur and the source name; runtime/look's camera test reads room sources into env_srcs; the envmap conformance test and test/errors.test.tsx hold the props and the conversion, and export.test.tsx the export. test/room/check.sh renders test/room/room.tsx and holds three pixels within 8 levels of three's, which test/room/three.ts works out on the CPU with three 0.185's PMREM and MeshStandardMaterial shading: #131's box face is 255,189,155 (three 255,195,160; 136,76,58 before), and two grey boxes lit by the room alone are 137 and 125 (three 140 and 127; 23 and 19 before). Left open: fromScene's options.position is drawn from the origin, with a warning, and the light meter does not count a room. Filed as R3F15b in docs/r3f.feature.
shinyobjectz committed 12 days ago
9202d88
#162: bench/at-time checks that every still of a batch shows its own frame's time, as it does alone and as a scene stepped through every frame before it does. The fix (cdebceb9d9, a frame-pure load's plugin clock is pure: Time and the keyed rows are the frame drawn's) was held only by runtime/plugins' unit tests, and nothing drew the issue's case. Since #77 a still of a scene no plugin carries state for isn't stepped to, and the plugins' clock then never moved: every still sampled globals.time 0, and a batch's later frames drew its first frame's <Material> uniforms, which land as keyed rows. time.tsx is one 64 x 64 face with globals.time on its left half and a <Material> uniform the frame gives its time on its right, so the halves match only when Time is the frame's; its stepped twin carries an empty animation player, which Bevy carries from frame to frame, so its stills are stepped to as every still was in 0.1.0. The check draws both at 90, 30, 60 in one run and the pure one at 90 alone: each frame's halves must match, each pure frame must match the stepped one, 90 alone must match the batch's 90, the frames must move on, and the pure stills must step no frame. On the build from before the fix: globals.time 0 on every frame and the uniform frozen at the batch's first (0 and 135 levels on all three), up to 225 levels off the stepped scene. On main: 137, 188 and 225 on both halves of 30, 60 and 90, the same as the stepped scene, with no frame stepped.
shinyobjectz committed 12 days ago
2a98bbc
#159: --aov and RAEA_PASS keep the camera single-sampled on every frame. Both read the camera's prepasses (depth and motion vectors, depth and normals) through single-sampled bindings, so they put Msaa::Off on the camera once, with the prepasses. The camera row's post-processing then put multisampling back: raea-sys-post's sync, on the first frame whose post columns changed (a bloom ramp), restored the Msaa the camera was made with, and msaa_for_3d did it on every frame a live scene (a game) set rows. The prepasses became multisampled and the frame's bind group was refused ("Texture binding 0 expects multisampled = false, but given a view with samples = 4"), at frame 2 of a render with frames 0 and 1 written. A camera whose prepasses a pass reads now carries raea_sys_frame::camera::PrepassRead, put on with the prepasses by --aov (aov_prepasses) and RAEA_PASS (compose's mark). sync and msaa_for_3d leave such a camera's MSAA off, and sync no longer takes off a depth or normal prepass that AO brought when the AO goes. aov_prepasses finds its cameras by PrepassRead, not by the motion-vector prepass, which a motion-blurred camera already had, so that camera was never made single-sampled. The readback refuses a multisampled prepass with a message instead of handing it to the GPU, whose validation error stopped the render. Tests: raea-sys-post's a_camera_whose_prepasses_are_read_stays_single_sampled (before: Sample4 once the bloom changes); bench/aov-msaa/check.sh renders frames 0 to 5 of a bloom ramp and of a game with --aov, and the ramp with RAEA_PASS=depth (before: each refused at frame 2).
shinyobjectz committed 12 days ago
57e0737
1046ee9