Installed Three.js + R3F. Now let me build the house geometry system, starting with shared constants and the Sims-style fading wall component.
Now the core: walls with openings and Sims-style camera-aware transparency.
Now the interior furniture kit — a library of detailed props built from primitives.
Now procedural canvas textures for floors and grass, then the house assembly.
Now the scene: environment, lighting, camera rig, and orbit controls.
Let me fix a few placement overlaps (furniture clipping into walls/windows).
The build succeeds. Here's what I created:
🏠 Maple Lane 12 — 3D Dollhouse
Architecture of the code
src/house/Wall.tsx — the heart of the "Sims" effect. Every wall is generated procedurally from a start/end point with an outward normal. Each frame it computes dot(normal, camera→wall); walls whose faces point at the camera smoothly fade to ~8% opacity (smoothstep + frame-rate independent lerp), while the far walls stay solid so rooms keep a backdrop. Walls also support openings (doors, arches, windows) — panels, sills, lintels, frames and transmissive glass are built around each hole automatically, and baseboards/crown trim fade in sync.
src/house/textures.ts — procedural canvas textures: wood planks with grain and staggered seams, ceramic tiles with grout and per-tile shade variance, and grass.
src/house/furniture.tsx — ~30 hand-modeled props from primitives + rounded boxes: sofa with cushions & throw pillows, coffee table with books/vase, TV wall unit with an emissive screen, layered rugs, bookshelf with colored books, potted plants, fireplace with glowing embers, kitchen cabinet runs (sink, faucet, cooktop, handles), fridge, island with stools and pendant lights, dining set with 4 chairs and tableware, bed with duvet/3 pillows, nightstands with lamps, wardrobe, dresser, bathtub, toilet, vanity with mirror, glass shower, desk with monitor, office chair, shelving, trees and hedges.
src/house/House.tsx — the 5-room floor plan (living, kitchen/dining, bedroom, tiled bath, home office) with per-room floor materials, interior/exterior wall layout with windows aligned above counters and beds, a gabled roof that lifts off and fades on toggle, a covered porch with columns and steps, and 3D room labels.
src/house/Scene.tsx — sky/stars, sun + hemisphere lighting with 2K shadow maps, garden with patio set, driveway, mailbox, and an eased camera rig that flies between preset viewpoints.
Interactions: wall modes (Auto fade / all Down / all Up), roof on-off, room labels, night mode (interior lamps, TV, fireplace and pendants actually light the rooms), and 7 camera presets including a top-down floor plan.
Files built: src/house/constants.ts, src/house/Wall.tsx, src/house/furniture.tsx, src/house/textures.ts, src/house/House.tsx, src/house/Scene.tsx, src/App.tsx, index.html