The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Image to 3D: an Idol 3D quick mesh opens facing you, and its Front chip turns to the subject's front
Claudee587733dbe47
diff --git a/src/lib/av/model3d.ts b/src/lib/av/model3d.tsindex 63dfe9ed..6017f0b6 100644--- a/src/lib/av/model3d.ts+++ b/src/lib/av/model3d.ts@@ -644,9 +644,10 @@ export const TURN_VIEWS: { id: TurnView; label: string; theta: number; phi: numb/*** The yaw (degrees) that turns a model's own front to model-viewer's front, by model: a GLB made from a splat faces- * the way the model put the subject, which the GPU test measures. Models not listed face +Z already.+ * the way the model put the subject, which the GPU test measures. Models not listed face +Z already. Idol 3D quick+ * mesh (oss-idol-mesh) meshes the same Idol splat with the same SplatToMesh node as Photo to 3D's, so it faces the same way.*/-export const FRONT_YAW: Record<string, number> = { "oss-idol-3d": 90 };+export const FRONT_YAW: Record<string, number> = { "oss-idol-3d": 90, "oss-idol-mesh": 90 };/** model-viewer's camera-orbit for a chip: its angle plus the model's front, at the distance the viewer frames it. */export function turnOrbit(view: TurnView, frontYaw = 0): string {diff --git a/tests/idol-mesh.test.ts b/tests/idol-mesh.test.tsindex 306fb7ba..07471a9f 100644--- a/tests/idol-mesh.test.ts+++ b/tests/idol-mesh.test.ts@@ -185,6 +185,8 @@ describe("Idol 3D quick mesh: what a finished job gives", () => {// The graph's video is the splat's orbit, smoother than the mesh: not the card's turntable until the server renders the mesh's.expect(view.turntable).toBeUndefined();expect(view.photo).toBe(photo);+ // Its GLB is Idol's splat through SplatToMesh, as Photo to 3D's: the card and the viewer open on, and turn from, the same front.+ expect(m3d.FRONT_YAW["oss-idol-mesh"]).toBe(m3d.FRONT_YAW["oss-idol-3d"]);const skipped = m3d.model3dView({ ...g, outputs: [{ ...outs[0], meta: { finish: { turntable: "skipped: no Chromium" } } }, outs[1]] } as never);expect(skipped.turntable).toBeUndefined();const mine = { url: "/api/files/turntable.mp4", kind: "video", contentType: "video/mp4", meta: { role: "turntable", fps: 24, frames: 96 } };