makepad/libs/flow/recipes/templates/prompt-to-splat.splash
Arena Agent d8d5ea8b6a Repair integration manifests and port nigig exports onto upstream widget families
Restore missing required asset/flow packages from the pinned nigig revision; retain upstream script isolation, X11 hover, and widget-core fixes. Validated makepad-widgets data feature with Rust 1.97.1.
2026-10-26 11:23:26 +00:00

19 lines
666 B
Text

use mod.flow.*
/** The isolated object to paint and reconstruct as Gaussians. */
let prompt = Input{ type: @text default: "a small hand-painted ceramic fox" }
let image = Image{ prompt: prompt.text() width: 512 height: 512 }
let splat = Splat{
prompt: prompt.text()
image: image.image()
gaussians: 262144
model: "triposplat"
}
/** Publish the object splat into the flow asset library. */
let published = Publish{ value: splat.mesh() namespace: "flows" tags: ["flow", "splat"] }
Flow{
label: "Prompt to object splat"
brief: "Paints one isolated object and reconstructs it as a detailed Gaussian splat."
prompt, image, splat, published
}