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.

677 B
Raw Blame
// The frames bench/at-3d/check.sh draws from scene.tsx with --at, as a 4-frame composition: each frame k is the scene
// frozen at F[k], so its 3D rows come from stepping frames 0..4, the whole composition, not the sparse path
import { AbsoluteFill, Composition, Freeze, registerRoot, useCurrentFrame } from "raea";
import { Scene } from "./scene3d";
const F = [30, 150, 270, 330];
function Frozen() {
  const k = useCurrentFrame();
  return (
    <AbsoluteFill>
      <Freeze frame={F[k]}>
        <Scene />
      </Freeze>
    </AbsoluteFill>
  );
}
registerRoot(() => <Composition id="frozen" component={Frozen} width={1280} height={720} fps={60} durationInFrames={4} />);