Polish three-floor-townhouse example: single-floor plan with color controls#63
Merged
Merged
Conversation
…ls, drafting overlays Rewrite the example as one detailed 18 x 14 m home (foyer, living, dining, garage, kitchen, mudroom, master suite, two more bedrooms, bath, laundry) to better showcase OpenPlans as a floorplan tool. - True profile/model toggle: per-element profileView/modelView flags plus CameraMode plus background plus body class plus slab visibility. - Drafting overlays in plan mode: room labels projected from world space each frame, live scale bar (computed from camera projection), north arrow. - Color controls panel: 6 native pickers (ext wall, int wall, door panel, door frame, glass, window frame) plus 4 preset palettes (Warm Paper, Blueprint, Mono, Dusk). Openings update live; walls commit on release via setOPGeometry rebuild (works around the empty SingleWall setOPMaterial stub). - Realistic light wall tones in every preset; the dark drafted look in plan mode comes from wall.outline strokes rather than dark fills.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
examples/src/three-floor-townhouse.htmlas one detailed 18 × 14 m single-floor home (foyer, living, dining, garage, kitchen, mudroom, master suite + ensuite + walk-in, two more bedrooms, shared bath, laundry) — better suited to showcasing OpenPlans as a floorplan tool than the cramped multi-floor original.profileView/modelViewflags flip on every wall + door + window, alongsideCameraMode, scene background, body class, and slab visibility — so the two modes look genuinely distinct, not just differently projected.<input type="color">pickers (Ext Wall, Int Wall, Door Panel, Door Frame, Glass, Win Frame) plus 4 preset palettes (Warm Paper, Blueprint, Mono, Dusk). Door / window pickers update live oninput; wall pickers commit onchangeand triggerwall.setOPGeometry()to rebuild — works around the emptySingleWall.setOPMaterialstub without touching the library.wall.outlinestrokes rather than dark fills.Notes for reviewers
examples/src/three-floor-townhouse.htmlis changed.SingleWall.setOPMaterialstub is a known library limitation — turning it into a real implementation would let wall pickers update live like doors / windows do. Out of scope here.src/packages/openplans-three/src/three.ts(logarithmicDepthBuffer: true → false) was present before this branch and is not included.Test plan
npm run dev, open/three-floor-townhouse.html.🤖 Generated with Claude Code