[213] Kameras als Modell-Elemente und Begehen (WASD) im 3D

Project.cameras (Rust Camera: Standpunkt + Augenhöhe über Geschoss, Ziel, Bildwinkel, Perspektive/
Axonometrie/Parallel, Sonnenstand) auf der neuen Klasse "Kameras" (92). Grundriss-Symbol im Kern
(plan/cameras.rs: Gehäuse, Sichtkegel, Ziel, Name, schmale Pick-Bänder), Griffe im Kern (camera.rs,
grips.rs: Standpunkt, Ziel, Bildwinkel/Sichtbreite), Auswahl/Entf, Objekt-Info CameraSection, Liste im
Panel Ausschnitte, "Kamera aus aktueller Ansicht anlegen", "Kamera öffnen" (auch per Doppelklick auf das
Symbol), cameraToView() für das Rendering [211]. Begehen im 3D: Umschalt+F, W/A/S/D/Pfeile, Q/E,
Umschalt/Alt, Umschauen um den Augpunkt (viewport/walk.ts). Beispiel: Kamera im Musterhaus komplex.
This commit is contained in:
Claude committed 2026-11-12 18:31:37 +00:00
1 parent b02b9232bd
commit ed475fe64b
64 files changed
+2031 -50

No files matched your search

+4
View File
@@ -31,6 +31,7 @@ import { ContextObjectProps } from "./ContextObjectProps";
import { SunStudySection } from "./SunStudySection";
import { SiteRulesSection } from "./SiteRulesSection";
import { TreeSection } from "./objectInfo/TreeSection";
import { CameraSection } from "./objectInfo/CameraSection";
import { ViewShadowsInfo, MeasurementSection } from "./objectInfo/InfoBlocks";
import { DimensionField, RotateField } from "./objectInfo/fields";
import { InfoGroups, hasInfoGroups } from "./objectInfo/InfoGroups";
@@ -73,6 +74,7 @@ export function ObjectInfoPanel() {
// [137] Lage-Darstellung angeklickt (Schattenfläche / Baurechtslinie): Einstellungen der Quelle.
const site = useStore((s) => s.selection.site);
const treeSel = useStore((s) => s.selection.trees);
const cameraSel = useStore((s) => s.selection.cameras);
const ctxObj = sel?.kind === "contextObject" ? (storeProject.context ?? []).find((o) => o.id === sel.id) : undefined;
const quantities = useMemo(
() => (ctxObj?.type === "excavation" ? excavationQuantities(storeProject) : []),
@@ -82,6 +84,8 @@ export function ObjectInfoPanel() {
// ── Leerzustand ───────────────────────────────────────────────────────────
// [149] Baum gewählt: eigene Felder (Lage, Masse, Form, Bestand).
if (sel === null && treeSel.length > 0) return <TreeSection ids={treeSel} />;
// [213] Kamera gewählt: Standpunkt, Ziel, Bildwinkel, Projektion, Sonne und „Kamera öffnen".
if (sel === null && cameraSel.length > 0) return <CameraSection ids={cameraSel} />;
if (sel === null && site[0] === "viewShadows") return <ViewShadowsInfo />;
if (sel === null && site.length > 0) {
const sun = site[0] === "sunStudy";