Create a simple 3D room with orbit controls, furniture placement, and day/night…
- User
Create a simple 3D room with orbit controls, furniture placement, and day/night lighting. Uses basic geometry.
Assistant
Built a simple interactive 3D room using React, Vite, Tailwind CSS, and React Three Fiber.
What was done:
- Installed
three,@react-three/fiber,@react-three/drei, and@types/three. - Replaced
src/App.tsxwith a full-screen 3D scene:- Room with a floor and three walls built from basic geometry.
- OrbitControls so you can rotate/zoom around the room.
- Furniture placement: select a furniture type from the toolbar, then click the floor to place chairs, tables, beds, lamps, or rugs. Items are built from simple boxes and cast/receive shadows.
- Day/Night lighting: toggle switches the background color, ambient light, and directional sun/moon light. Night mode also adds a warm ceiling point light.
- Clear button to remove all placed furniture.
- Updated
index.htmltitle to “3D Room Designer”. - Ran
npm run buildsuccessfully.
Files built:
index.html,src/App.tsx- Installed
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.