mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
apps/lightbake (raea-app-lightbake): `raea bake light --compare DIR [--sets FILE] [--set NAME] [--samples N] [--fresh]` runs each set in apps/lightbake/sets.json through Cycles (blender/look.py's still, blender/lightbake.py's bake, both at --samples, 1024 by default, kept in DIR/NAME until the set's .tsx files, flags or samples change) and through raea (the set unbaked, the set with Cycles' maps), and writes DIR/report.json and a table: each frame's RMSE and stops against the Cycles still, lightbake.py's time and peak memory (wait4's rusage on unix), the bar's verdict on the table set. map_stops compares two lightmaps on the same UVs in stops, for BK5's per-mesh numbers. `raea bake light EDIT.tsx` says the bake itself is BK1-BK5. bench/bake: the table set (bevy/realism's example), a Cornell box lit only by an emissive panel, a room lit through one window; each has a raea composition and a -cycles one that draws lightbake.py's maps (media/baked/, ignored). The atelier is listed, reference false with why: its Manifold solids stop `raea blender open`.
15 lines
499 B
TypeScript
15 lines
499 B
TypeScript
// The cornell set drawn by raea with nothing baked: the "before" frame (docs/bake.feature BK0, apps/lightbake/sets.json).
|
|
import { AbsoluteFill, Composition, registerRoot } from "raea";
|
|
import { Look, Parts } from "./parts/cornell";
|
|
|
|
function Shot() {
|
|
return (
|
|
<AbsoluteFill style={{ background: "#000000" }}>
|
|
<Look />
|
|
<Parts />
|
|
</AbsoluteFill>
|
|
);
|
|
}
|
|
|
|
registerRoot(() => <Composition id="cornell" component={Shot} width={1280} height={720} fps={30} durationInFrames={1} />);
|