[211] Rendering mit Blender/Cycles: Export-Paket, Skript, Dialog, CLI
Paket model.glb + scene.json + textures (renderer-neutral, doc/RENDER-SZENE.md): Kamera der 3D-Ansicht, Sonne aus dem Sonnenstand, PBR-Materialtabelle mit Glas und ambientCG-Karten (Box-Projektion ohne UVs). scripts/blender/render_dossier.py (Cycles, Himmel mit Sonne, Denoiser, GPU/Metal wenn vorhanden). Dialog "Rendering mit Blender" (Befehl rendering, Menue Ansicht, Pfad in den Einstellungen), Fortschritt, Abbrechen, Speichern; Tauri blender.rs + Capabilities, Electron electron-blender.cjs, Browser: ZIP. CLI: render --out bild.png [--view --when --samples --size --cpu --blender]. Nicht in der Tauri-App/auf dem Mac geprueft.
This commit is contained in:
30 files changed
+2595
-8
No files matched your search
@@ -0,0 +1,28 @@
|
||||
// [211] Rendering mit Blender — öffnet den Dialog (in App montiert) und endet sofort; Muster `presentation`.
|
||||
|
||||
import { openRenderDialog } from "../../state/renderDialogHook";
|
||||
import type { Command, CommandResult, CommandState } from "../types";
|
||||
|
||||
const IDLE: CommandState = { phase: "idle", lastPoint: null };
|
||||
|
||||
function open(): [CommandState, CommandResult] {
|
||||
openRenderDialog();
|
||||
return [{ ...IDLE }, { draft: null, done: true }];
|
||||
}
|
||||
|
||||
export const renderingCommand: Command = {
|
||||
name: "rendering",
|
||||
labelKey: "cmd.rendering.label",
|
||||
prompt: () => "cmd.rendering.prompt",
|
||||
accepts: () => [],
|
||||
options: () => [],
|
||||
init: () => ({ ...IDLE }),
|
||||
autoRun: (): CommandResult => {
|
||||
openRenderDialog();
|
||||
return { draft: null, done: true };
|
||||
},
|
||||
onInput: () => open(),
|
||||
onMove: (state): [CommandState, CommandResult] => [state, { draft: null }],
|
||||
onConfirm: () => open(),
|
||||
onCancel: (): [CommandState, CommandResult] => [{ ...IDLE }, { draft: null, done: true }],
|
||||
};
|
||||
@@ -75,6 +75,7 @@ import { georefCommand } from "./cmds/georef";
|
||||
import { blockCommand } from "./cmds/block";
|
||||
import { defblockCommand } from "./cmds/defblock";
|
||||
import { presentationCommand } from "./cmds/presentation";
|
||||
import { renderingCommand } from "./cmds/rendering";
|
||||
|
||||
/** Alle bekannten Befehle, Schlüssel = Befehlsname (lowercase). */
|
||||
export const COMMANDS: Record<string, Command> = {
|
||||
@@ -148,6 +149,7 @@ export const COMMANDS: Record<string, Command> = {
|
||||
multiline: multilineCommand,
|
||||
import: importCommand,
|
||||
praesentation: presentationCommand,
|
||||
rendering: renderingCommand,
|
||||
terrain: terrainCommand,
|
||||
excavation: excavationCommand,
|
||||
meshcrop: meshCropCommand,
|
||||
@@ -198,6 +200,9 @@ export const ALIASES: Record<string, string> = {
|
||||
praesentationsplan: "praesentation",
|
||||
präsentation: "praesentation",
|
||||
presentation: "praesentation",
|
||||
render: "rendering",
|
||||
blender: "rendering",
|
||||
rendern: "rendering",
|
||||
lukarne: "dormer",
|
||||
dachhof: "roofhole",
|
||||
lichthof: "roofhole",
|
||||
|
||||
Reference in new issue
Block a user