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 LT21: detail cross-fades on every surface and from where the GPU measures. raea's generated fragments for ShaderExt (surfaceShader: surface and lit hooks) and ShaderMaterial (shade) never called Bevy's visibility-range dither, so a part drawn with them (the city's facades, glass and ground) drew both levels fully inside a fade band and cut one at the band's edge, a pop: on the 540p fly over 1917 Berlin, detail made one-frame spikes of 45, 20, 19 and 17 tiles at frames 41, 117, 122 and 157 where the JS levels made theirs at 58, 106, 112 and 148. Both fragments now call visibility_range_dither under @if(VISIBILITY_RANGE_DITHER), as Bevy's own pbr fragment does (a source with its own @fragment calls it itself). And Bevy's GPU dither measures from a mesh's origin (mesh_world_from_local[3]) while its CPU check measured from the box's centre under use_aabb, which raea-sys-lod set for meshes baked in world coordinates (a city tile's origin is the world's, its geometry hundreds of metres off), so the two disagreed. Now every range is measured from the origin (use_aabb off) and moved by how much farther the origin is than what the part is measured to: its nearest edge (edge), the mesh's own middle when its origin lies outside its bounds, else nothing; the move can be negative, and a range never goes below 0. A moved range is rewritten once the eye has gone a third of its way to the nearest fading band, which bounds a stale move's error (the distance moves as far as the eye, a move twice as far). RAEA_LOD_DEBUG=time now times apply inside it: between two systems ordered around it others ran, so it read 1 ms with no Details at all. shinyobjectz committed 11 days ago
c77c485 Copy SHA LT21: detail costs the live scene no more than JS levels. A part's detail is a component row, and the live diff's fast path refused any scene holding rows of another kind, so every frame of a scene with a detail took the full diff: on 1917 Berlin's 1440p walk, step 29.7 ms against 10.6 ms with the levels picked in JS. Now the fast path keeps component rows as last sent and goes the full way only on a frame where any part's components change (scene_sig: light_sig plus each part's components), and a component row whose part has gone counts its missing frames and is forgotten as the full path forgets it. RAEA_LIVE3D_CHECK agrees over 3,413 frames of a moving scene where a part with a detail goes and comes back and another's detail changes. raea-sys-lod's apply keeps each part's meshes, bounds and last eye, walks its meshes again only when a mesh is added or its Detail changes, moves edge ranges by whole metres and rewrites a part only once the eye has moved a third of its way to the nearest fading band, since Bevy rebuilds its whole range table on any changed VisibilityRange. RAEA_LOD_DEBUG=time prints apply's time a frame. Walk at 1440p, JS levels then detail: step 10.6 / 11.8 ms, work p50 48.2 / 50.0, p99 100.5 / 87.1; fly: step 4.9 / 6.2, work p50 44.6 / 42.2, p99 139.7 / 125.0. shinyobjectz committed 11 days ago
a3fec64 Copy SHA LT21: detail for anything raea draws. A part's `detail` prop (<Model>, <Mesh3d>) is raea-sys-lod's reflected Detail, which each frame becomes Bevy's VisibilityRange on every mesh under the part (a glTF's meshes are its children). It is drawn between near and far metres, or between sizes on screen in px, converted for the shot's camera from its field of view and its target's height, with the part's size taken as its bounds' diagonal. Each edge cross-fades by Bevy's dither over `fade` of its distance; past the end nothing is drawn, in the view or the shadow passes; shadow: false keeps it out of the shadow maps. Checked on five spheres at minPx 30 (drawn to 133 m, culled at 302 and 617 m), a cube past its far, and four court pumps (far 3 at 5 m gone with its shadow, shadow false drawn without one). RAEA_LOD_DEBUG=1 prints each range and whether Bevy kept it in range of each camera. Mesh now finds its shape inside a fragment: shapeFromChildren and boundsFromChildren read only direct children, so <Mesh3d><><Sphere /><StandardMaterial /></></Mesh3d> was dropped from the scene without a word. Conformance: sdk/raea/conformance/detail.test.tsx. shinyobjectz committed 11 days ago
c5df492 Copy SHA LT2: realism.feature revised from the research (docs/realism-research.md, added). Gather in three stages, screen trace then TLAS then a world cache; the world cache a hash grid on surfaces (Unreal 5.9's World Cache, GI-1.0, Solari's, made raea's) in place of probe grids; no surface-cache cards: a hit reads its record's averaged material, a cache cell that learns colour from the G-buffer in every season, then the material's own code at the hit; a coarse, persistent ray scene with instance records (LT3); occlusion counted once from the screen trace's short rays (LT10); a reference with full materials at every bounce and a film tier with no history (LT5); speed designed from LT2, which now also times the TLAS, BLAS and raster passes and an owned Metal intersector (D18); dropped effects warn (D19). shinyobjectz committed 11 days ago
df67edc Copy SHA LT16: each photo recreated as a set of its own (D17): modelled by us from nothing, object for object, at the photo's season, day and hour, owned by the realism lane in gambit; Berlin's look takes a season (snow, autumn, summer, wet) and the world lanes keep their work ready for every season. LT16 the sets (eight first, one fitted and one held out a season), LT17 a photo matched against its set on blocks and by region, LT18 residuals reverse-engineered. shinyobjectz committed 11 days ago
d48a969 Copy SHA LT15: realism.feature gets its second bar, real photographs. D15: full-colour, high-definition modern photos under a commercial-permissive licence, each with the EXIF that rebuilds it (field of view, EV, time and place), Berlin first and every season equally (snow, autumn, summer, wet). D16: a photo teaches the renderer, never one shot; half the set held out by place and season. LT15 the set (bench/light/photos.json, fetched outside git), LT16 a photo matched (the camera posed on the true-coordinate city, the sun from time and place, exposure from EV, compared in linear light by region for places and on blocks for rebuilt sets), LT17 residuals traced to their pass and fixed there; LT14 reports photo numbers too. shinyobjectz committed 11 days ago
fc8e7d7 Copy SHA