Who it is forA product designer or 3D artist who has a GLB or glTF model and wants a short rendered clip without opening a 3D application.
The problemSetting up a camera, lights, and a model for a short 3D render usually means opening a full 3D suite and exporting frames separately.
The outcomeAn MP4 showing the model under studio lighting with a camera that points at it, rendered from code.
What you need first
- Node.js 22 or newer
- pnpm, to run `pnpm add framefields`
- A GPU with WebGPU support (macOS Metal, Linux Vulkan, or Windows D3D12)
- A coding agent such as Claude Code, Cursor, or Codex, if you want the agent to write the composition
Steps
- Run
pnpm add framefields - Place your .glb or .gltf model file in your project's assets folder.
- Add the model to a 3D scene with a LookAt camera and studio lighting, following the Unified 3D Scenes section at Framefields.dev/docs. (inferred, check the README)
- Add the scene to a Composition with width, height, fps, and durationFrames set, then call renderVideo with an output path.
- Open the rendered MP4 and check the model's materials, shadows, and camera framing.
Prompt for your agent
In the framefields repo, create a composition that loads <model file>.glb into a 3D scene with a LookAt camera and studio lighting, and render it to output/<name>.mp4. Expected output: an MP4 of the model. Verify the file exists and that the model is visible in the first and last frames.
Caveat. The README lists 3D scene features but does not show the 3D API, so confirm the model loading and camera calls in the documentation before relying on this workflow.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for gatewai-dev/framefields and "Render a glTF model in a lit 3D scene"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer