How dinatih/room-3d works
room-3d is a React Three Fiber application for interactively visualizing an apartment in 3D. Its main workflow is to enter the rendered room, inspect and arrange furniture and other objects, and use camera and scene controls to explore configurations; the inventory provides a related way to browse belongings. The graph also preserves documented building, lighting, minimap, and character/animation capabilities, plus the sampled autonomous-agent subsystem. Edges use README statements or source-index references; unsampled feature wiring is not asserted.
Main entry points: Studio.tsx 3D studio · useAgentController.ts Agent controller · CameraController.tsx Camera controller · duoSessionManager.ts Duo sessions
Components 23
3D experience
- Application entry
src/main.tsx - 3D studio
src/features/scene/Studio.tsx
Apartment scene
- Room composition
src/features/scene/Building.tsx - Furniture placement
src/features/scene/Placements.tsx - Furniture models
src/features/scene/items - Floor plan
src/features/scene/FloorPlan.tsx - Lighting
src/features/scene/SunLight.tsx
Camera and controls
- Camera controller
src/features/scene/CameraController.tsx - Camera state
src/features/scene/cameraState.ts - Scene state
src/features/scene/store/useSceneStore.ts - Minimap
src/features/scene/Minimap.tsx
Characters and agents
- Agent controller
src/features/scene/ai/useAgentController.ts - Smart objects
src/features/scene/ai/smartObjectRegistry.ts - Slot occupancy
src/features/scene/ai/occupancyManager.ts - Duo sessions
src/features/scene/ai/duoSessionManager.ts - Navigation graph
src/features/scene/ai/navigationGraph.ts - Animation resolution
src/features/scene/animations/animationResolver.ts - Animation registry
src/features/scene/animations/animationRegistry.ts - Duo animations
src/features/scene/animations/duoAnimations.ts
Inventory
- Inventory browser
src/features/inventory/Inventory.tsx - Inventory data
src/features/inventory/inventoryData.ts - Item preview
src/features/inventory/InventoryPreview.tsx
Other components
- Room planner
Connections 23
- Room planner → Application entry: opens app
- Application entry → 3D studio: mounts
- 3D studio → Room composition: renders room
- 3D studio → Furniture placement: shows placements
- Furniture placement → Furniture models: places models
- 3D studio → Floor plan: shows plan
- 3D studio → Lighting: shows lighting
- 3D studio → Camera controller: enables navigation
- Camera controller → Scene state: reads state
src/features/scene/CameraController.tsx - Camera controller → Camera state: updates camera
src/features/scene/CameraController.tsx - Camera controller → Minimap: shares position
- 3D studio → Inventory browser: offers inventory
- Inventory browser → Inventory data: browses items
- Inventory browser → Item preview: previews items
- Agent controller → Animation resolution: resolves clips
src/features/scene/ai/useAgentController.ts - Agent controller → Smart objects: uses affordances
src/features/scene/ai/useAgentController.ts - Agent controller → Slot occupancy: claims slots
src/features/scene/ai/useAgentController.ts - Agent controller → Duo sessions: coordinates duos
src/features/scene/ai/useAgentController.ts - Agent controller → Navigation graph: uses paths
src/features/scene/ai/useAgentController.ts - Animation resolution → Animation registry: resolves definitions
src/features/scene/animations/animationResolver.ts - Animation resolution → Duo animations: resolves duo clips
src/features/scene/animations/animationResolver.ts - Duo sessions → Slot occupancy: checks reservations
src/features/scene/ai/duoSessionManager.ts - Duo sessions → Smart objects: looks up objects
src/features/scene/ai/duoSessionManager.ts