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.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
RR1: the guides and the SDK's doc comments say the effects are each frame's own. raea guide bevy's rule 6, bevy/limits.md, bevy/post.md and bevy/lights.md: the sky, Bloom, Fog, Grade, ToneMapping, Shadows and the rest, and each light's colour, shadows and shafts, take each frame's values, so shots with different looks are one composition and one render (a cut that brings or takes a mode warms up about 0.3 s); the Grade's worked example is bench/rerender/film.tsx and shots.tsx (content/rome isn't in a checkout), and post.md's mistake is now a render a shot joined with ffmpeg. AmbientOcclusion, AntiAliasing and Shadows' doc comments, and the manual's SDK pages from them (3d, pbr, post_process, light), say each frame's is its own. The skill's copies are raea-skills #32.
shinyobjectz105d2856912f
diff --git a/docs/manual/reference/sdk/3d.md b/docs/manual/reference/sdk/3d.mdindex b2b82c09..b7dfc944 100644--- a/docs/manual/reference/sdk/3d.md+++ b/docs/manual/reference/sdk/3d.md@@ -47,7 +47,7 @@ import { about, AmbientOcclusion, AntiAliasing, Atmosphere } from "raea/3d"Screen-space ambient occlusion: creases, corners and the ground under things darken where the sky's and the room'slight can't reach. It darkens ambient and environment light (an <AmbientLight>, an <Environment>), not the directlight of a sun or a lamp. Turns multisampling off, so the edges are smoothed by SMAA instead (see <AntiAliasing>).-Put it inside the Canvas3D, once; the first frame's holds for the piece.+Put it inside the Canvas3D, once; each frame's is its own, so a shot can have it and the next not.Bevy: `bevy_pbr::ssao::ScreenSpaceAmbientOcclusion`.@@ -55,7 +55,7 @@ Takes [`AmbientOcclusionProps`](#ambientocclusionprops)'s props.### `AntiAliasing`-How the 3D's edges are smoothed. Put it inside the Canvas3D, once; the first frame's holds for the piece.+How the 3D's edges are smoothed. Put it inside the Canvas3D, once; each frame's is its own.Bevy: `bevy_anti_alias::smaa::Smaa`, `bevy_anti_alias::fxaa::Fxaa`.@@ -744,7 +744,7 @@ Takes [`ShaderMeshProps`](#shadermeshprops)'s props.### `Shadows`Shadow quality for every light in the Canvas3D: map size, the sun's cascades, biases, filtering. Put it inside the-Canvas3D, once; the first frame's holds for the piece. mapSize sets both shadow maps' size, filter the camera's+Canvas3D, once; each frame's is its own. mapSize sets both shadow maps' size, filter the camera'sfiltering, and the cascade props the sun's cascades (engine/render scene3d.rs):Bevy: `bevy_light::directional_light::DirectionalLightShadowMap`, `bevy_light::point_light::PointLightShadowMap`, `bevy_light::ShadowFilteringMethod`, `bevy_light::cascade::CascadeShadowConfig`.diff --git a/docs/manual/reference/sdk/light.md b/docs/manual/reference/sdk/light.mdindex 1f6005c7..a0effae0 100644--- a/docs/manual/reference/sdk/light.md+++ b/docs/manual/reference/sdk/light.md@@ -166,7 +166,7 @@ Used in: [3d/rect_light](https://github.com/shinyobjectz/raea/blob/main/sdk/raea### `Shadows`Shadow quality for every light in the Canvas3D: map size, the sun's cascades, biases, filtering. Put it inside the-Canvas3D, once; the first frame's holds for the piece. mapSize sets both shadow maps' size, filter the camera's+Canvas3D, once; each frame's is its own. mapSize sets both shadow maps' size, filter the camera'sfiltering, and the cascade props the sun's cascades (engine/render scene3d.rs):Bevy: `bevy_light::directional_light::DirectionalLightShadowMap`, `bevy_light::point_light::PointLightShadowMap`, `bevy_light::ShadowFilteringMethod`, `bevy_light::cascade::CascadeShadowConfig`.diff --git a/docs/manual/reference/sdk/pbr.md b/docs/manual/reference/sdk/pbr.mdindex a851bac1..6e6c0e60 100644--- a/docs/manual/reference/sdk/pbr.md+++ b/docs/manual/reference/sdk/pbr.md@@ -38,7 +38,7 @@ import { AmbientOcclusion, Decal, ExtendedMaterial, Fire } from "raea/pbr"Screen-space ambient occlusion: creases, corners and the ground under things darken where the sky's and the room'slight can't reach. It darkens ambient and environment light (an <AmbientLight>, an <Environment>), not the directlight of a sun or a lamp. Turns multisampling off, so the edges are smoothed by SMAA instead (see <AntiAliasing>).-Put it inside the Canvas3D, once; the first frame's holds for the piece.+Put it inside the Canvas3D, once; each frame's is its own, so a shot can have it and the next not.Bevy: `bevy_pbr::ssao::ScreenSpaceAmbientOcclusion`.diff --git a/docs/manual/reference/sdk/post_process.md b/docs/manual/reference/sdk/post_process.mdindex 0a16d536..1dcd92fd 100644--- a/docs/manual/reference/sdk/post_process.md+++ b/docs/manual/reference/sdk/post_process.md@@ -35,7 +35,7 @@ import { AntiAliasing, Bloom, Compute, DepthOfField } from "raea/post_process"### `AntiAliasing`-How the 3D's edges are smoothed. Put it inside the Canvas3D, once; the first frame's holds for the piece.+How the 3D's edges are smoothed. Put it inside the Canvas3D, once; each frame's is its own.Bevy: `bevy_anti_alias::smaa::Smaa`, `bevy_anti_alias::fxaa::Fxaa`.diff --git a/sdk/guides/craft/bevy.md b/sdk/guides/craft/bevy.mdindex 43e00efe..c481d79a 100644--- a/sdk/guides/craft/bevy.md+++ b/sdk/guides/craft/bevy.md@@ -62,8 +62,10 @@ the rest come from `raea`.A Mesh that appears, disappears or swaps places with one of the same shape needs a `name`.5. **A shape is fixed for the life of a part.** Animate position, rotation, scale, colour, opacity, glow,roughness and metalness; don't change `args` or `shape` frame to frame (that's a new part each frame).-6. **One camera, one set of effects.** The first camera in the tree is used. Bloom, Fog and ToneMapping take their- first frame's values; the lens (Fisheye, LensDistortion) and MotionBlur animate per frame.+6. **One camera; each frame's own effects.** The first camera in the tree is used. The effects (the sky, Bloom, Fog,+ Grade, ToneMapping, Shadows and the rest) and each light's colour, shadows and shafts take each frame's values, so+ shots with different looks are one composition and one render, not one render a shot joined after; the lens+ (Fisheye, LensDistortion) and MotionBlur animate per frame too.7. **Import what you use.** Every component in the scene comes from its module in the import line (`Camera3d`from `raea/camera`, `Mesh3d` and `Cuboid` from `raea/mesh`, `StandardMaterial` from `raea/pbr`, the lights from`raea/light`, `Transform` from `raea/transform`, `Canvas3D`, `Bloom` and the rest from `raea/3d`); a missing onediff --git a/sdk/guides/craft/bevy/lights.md b/sdk/guides/craft/bevy/lights.mdindex 829fb6c6..2b01b3cf 100644--- a/sdk/guides/craft/bevy/lights.md+++ b/sdk/guides/craft/bevy/lights.md@@ -33,8 +33,8 @@ with `.lookingAt(point)`.put one `<Shadows>` beside the camera: `distance` (metres the sun's shadows reach; shorter is sharper),`firstCascade` (about the distance of the nearest subject), `mapSize` (1024-8192), `cascades`, `overlap`, and`bias` / `normalBias` if a lit surface shows stripes of its own shadow (acne) or shadows float off what casts them.- `filter="hardware"` gives crisper, cheaper 2x2 edges instead of the smooth Gaussian ones. Its first frame's values- hold for the whole piece.+ `filter="hardware"` gives crisper, cheaper 2x2 edges instead of the smooth Gaussian ones. Each frame's are its own+ (a room's 20 m between two street shots' 150 m).```tsx<Shadows distance={60} firstCascade={5} mapSize={4096} bias={0.03} normalBias={2} />diff --git a/sdk/guides/craft/bevy/limits.md b/sdk/guides/craft/bevy/limits.mdindex 49c4627e..c435f387 100644--- a/sdk/guides/craft/bevy/limits.md+++ b/sdk/guides/craft/bevy/limits.md@@ -33,7 +33,10 @@The router's eight, plus:- Parts are matched across frames by `name`, else kind and shape in tree order: name what comes and goes.-- The first camera, and the first frame's Bloom, Fog, ToneMapping and Shadows, are the piece's.+- The first camera is the piece's. The effects and each light's colour, shadows and shafts are each frame's own. A+ frame that brings or takes a sky, ambient occlusion, anti-aliasing, a tonemapper, shadows or volumetric fog (a cut+ to a shot with a different look) warms up as a load does, about 0.3 s at that frame; a value that moves (a grade+ ramping) doesn't.- Overlapping FogVolumes are composited in the order of their rows (the engine pins it), so a render of any frameequals its play; give each a `name` so its row, and so the order, stays put when others come and go.- A partly transparent page element over the 3D blends slightly differently in a render than in play; keep pagediff --git a/sdk/guides/craft/bevy/post.md b/sdk/guides/craft/bevy/post.mdindex bc31385d..9e7453c1 100644--- a/sdk/guides/craft/bevy/post.md+++ b/sdk/guides/craft/bevy/post.md@@ -90,8 +90,9 @@ Put these beside the camera, once each:scene, so a film of many shots looks of a piece. `shadows`/`midtones`/`highlights` each take `{saturation, contrast,gamma, gain, lift}` (1, 1, 1, 1, 0 keep it); `temperature` warms (+) or cools (-) by about 0.03 a step; `vignette` is0..1 or `{intensity, radius, smoothness, color}`; `aberration` 0.002–0.005 is a lens's fringe. Like every effect,- the first frame's grade holds for the whole piece. `content/rome/film.tsx` (in a raea checkout) is the- worked example.+ it's each frame's own: keep one across a film so it looks of a piece, give a shot its own, or ramp it from the+ frame. `bench/rerender/film.tsx` and its `shots.tsx` (in a raea checkout) are the worked example: six shots, each+ with its own sky, fog, bloom, grade or depth of field, in one composition.## Composition passes: leaving part of the frame out of an effect@@ -166,7 +167,8 @@ the camera HDR so bright parts can exceed white before they bloom.- Bloom with nothing bright in the scene: nothing glows. Add emissive parts or raise `exposure`.- `threshold={0}` with a light background: the whole frame goes milky.- Fog `far` shorter than the distance to the subject: the subject disappears.-- Animating them: their first frame's values hold for the whole piece (the camera's `focus` and the fog volumes are the exceptions: a volume's place, size, density and colour change every frame). Animate the materials and lights instead.+- A render a shot, to give each shot its own look, joined after with ffmpeg: every effect here is each frame's own,+ so put each shot in a `<Sequence>` with its effects and render the film once.- Fog volumes that show as boxes, or stair-stepped shafts: that's `mode="march"` (its `ambient` lights each boxwhole; too few `steps` step). Drop the mode: the grid has neither.- A third shaft with a hard edge: only two spots and two directional lights are hero lights; the rest are lit in thediff --git a/sdk/render/src/3d/effects.tsx b/sdk/render/src/3d/effects.tsxindex 9376eb5f..9152efd4 100644--- a/sdk/render/src/3d/effects.tsx+++ b/sdk/render/src/3d/effects.tsx@@ -334,7 +334,7 @@ export interface AmbientOcclusionProps {/** Screen-space ambient occlusion: creases, corners and the ground under things darken where the sky's and the room's* light can't reach. It darkens ambient and environment light (an <AmbientLight>, an <Environment>), not the direct* light of a sun or a lamp. Turns multisampling off, so the edges are smoothed by SMAA instead (see <AntiAliasing>).- * Put it inside the Canvas3D, once; the first frame's holds for the piece.+ * Put it inside the Canvas3D, once; each frame's is its own, so a shot can have it and the next not.* @bevy bevy_pbr::ssao::ScreenSpaceAmbientOcclusion */export function AmbientOcclusion(props: AmbientOcclusionProps) {if (props.quality !== undefined && !["low", "medium", "high", "ultra"].includes(props.quality)) throw new RangeError(`AmbientOcclusion: quality must be "low", "medium", "high" or "ultra", got ${JSON.stringify(props.quality)}`);@@ -349,7 +349,7 @@ export interface AntiAliasingProps {mode: "msaa" | "smaa" | "fxaa" | "none";}-/** How the 3D's edges are smoothed. Put it inside the Canvas3D, once; the first frame's holds for the piece.+/** How the 3D's edges are smoothed. Put it inside the Canvas3D, once; each frame's is its own.* @bevy bevy_anti_alias::smaa::Smaa* @bevy bevy_anti_alias::fxaa::Fxaa */export function AntiAliasing(props: AntiAliasingProps) {@@ -379,7 +379,7 @@ export interface ShadowsProps {}/** Shadow quality for every light in the Canvas3D: map size, the sun's cascades, biases, filtering. Put it inside the- * Canvas3D, once; the first frame's holds for the piece. mapSize sets both shadow maps' size, filter the camera's+ * Canvas3D, once; each frame's is its own. mapSize sets both shadow maps' size, filter the camera's* filtering, and the cascade props the sun's cascades (engine/render scene3d.rs):* @bevy bevy_light::directional_light::DirectionalLightShadowMap* @bevy bevy_light::point_light::PointLightShadowMap