I'll create a 3D house model with Three.js featuring Sims-like wall transparency and detailed interiors. Let me start by exploring the project structure.
Let me examine the project configuration files to understand the setup.
I now understand the project. Let me install Three.js and the React Three Fiber ecosystem, and update the page title in parallel.
Packages installed. Now let me create the wall geometry builder that handles window/door openings cleanly.
Now let me create procedural textures for floors and surfaces to add realism without external assets.
Now the core feature — the Sims-style cutaway wall shader material that fades walls based on the camera angle.
I need to restructure the wall material as a shared hook so one material instance can serve all the boxes in a wall. Let me rewrite it.
Now the furniture module — this is where the interior detail comes from. I'll build detailed, reusable pieces from primitives.
I have a few typos to fix. Let me correct the COLORES/COLORS mistakes and the type error in the kitchen island.
Let me check the end of the file to see the syntax issue.
The last edit left a duplicate tail. Let me fix the end of the file.
The fuzzy edits created inconsistencies. Let me rewrite the furniture file cleanly from scratch with all fixes applied.
The furniture is clean now. Next, the house assembly — walls with the cutaway material, roof, windows, doors, floors, and all furniture placement. This is the central file.
Two quick unused-variable cleanups.
Let me check the end of the file for the syntax error.
There's a stray closing brace at the end. Let me remove it.
Let me look at the Openings function to resolve the remaining unused variable.
The earlier edit didn't take. Let me fix both lines precisely now.
Line 342 still has the o. Let me fix it directly.
No errors now. Let me create the outdoor scene — sky, sun lighting with shadows, grassy ground, trees, and a front path.
Let me remove the unused variable in Scene.tsx.
Let me remove the now-unused THREE import.
Now the main App with the Canvas, camera controls, room labels, and a polished UI overlay.
Let me ensure the page fills the viewport with proper base styles.
Let me remove the potentially problematic <color> inside Environment (the Sky already provides the background), then build.
Now let me build the project to verify everything compiles.
The build succeeds. Now let me fix a subtle but important issue I spotted: several furniture pieces have wrong facing directions due to Y-rotation conventions. Let me correct them so furniture faces the right way (sofa toward TV, chairs toward table, etc.).
The edits applied (lint processes were killed by concurrency but edits succeeded). Let me verify the placement section is correct.
I can see most edits didn't actually persist (only the bookshelf one took). Let me replace the entire furniture placement block in one atomic edit to fix all facing directions reliably.
I forgot the path parameter. Let me apply all the facing-direction fixes properly with the path included.
Let me verify all fixes applied by reading the placement section.
I see — concurrent edits to the same file are racing and only some persist. Let me apply the remaining fixes one at a time. Starting with the sofa.
All facing directions are corrected. Let me rebuild to confirm everything compiles cleanly.
The build is solid. Let me make a small aesthetic tweak — slightly raise the faded-wall opacity so the transparent walls read as subtle glass planes rather than fully invisible, which better matches the Sims look.
Let me run the final build to confirm everything is good.
The build is clean and the app is complete. Here's a summary of what I built.
🏡 Dollhouse — a Sims-style 3D home explorer
A fully interactive 3D house built with Three.js (via React Three Fiber + Drei), featuring the headline request: camera-aware wall transparency that reveals the interior.
The Sims-style wall transparency (core feature)
I wrote a custom GLSL cutaway shader (WallMaterial.tsx). Each wall knows its outward normal, and the fragment shader compares that normal to the view direction every frame:
- Exterior walls fade out only on the side facing the camera — so near walls become glass while far walls stay solid as a backdrop (exactly like The Sims).
- Interior partitions fade from both sides when viewed head-on, but stay solid when seen edge-on.
- Faded walls get a cool bluish tint and animate smoothly (lerped) between modes.
- The roof auto-lowers out of view whenever you go inside.
Three view modes (in the control bar)
- Exterior — solid house with gabled roof, chimney & windows
- Interior — Sims cutaway, roof hidden
- X-Ray — every wall turns uniformly translucent
Plus toggles for Roof, auto-rotate, and floating room labels.
Detailed interior (5 fully-furnished rooms)
Walls are built from primitives with real cut-outs for doors and windows (a rectangle-subtraction algorithm in geometry.ts). Each room is furnished with hand-modeled pieces:
- Living room — sofa with cushions, armchair, glass coffee table, TV console + glowing TV, floor lamp, bookshelf with 26 colored books, plants, patterned rug
- Bedroom — bed with blanket/pillows/headboard, nightstands with lamps, wardrobe, dresser with mirror
- Kitchen — counter run with glowing stove & stainless sink, upper cabinets, fridge, marble island with bar stools & fruit bowl
- Dining — table with place settings, vase, four chairs
- Bathroom — bathtub, toilet, vanity with basin & mirror
Extra polish
- Procedural canvas textures (wood planks, tiles, grass, stone path, rug)
- Sun sky, shadows, procedural environment for metallic reflections, contact shadows
- Furnished garden with trees, bushes, a stepping-stone path and patio
Everything is created procedurally (no external assets), so it bundles into the single inlined dist/index.html. Drag to orbit, scroll to zoom, and switch modes to peek inside!
Files built: index.html, src/house/geometry.ts, src/house/textures.ts, src/house/WallMaterial.tsx, src/house/furniture.tsx, src/house/House.tsx, src/house/Scene.tsx, src/App.tsx, src/index.css