fix: Finalize 3D Zoom to 60x to match SCAN=0.1 scaling
This commit is contained in:
parent
4d04d2f8c7
commit
d4bbc33c64
1 changed files with 8 additions and 6 deletions
|
|
@ -65,22 +65,22 @@ export function Room3DViewer({ room, visMode = 'STANDARD', onPlantClick }: Room3
|
|||
<Canvas
|
||||
shadows
|
||||
orthographic
|
||||
camera={{ position: [200, 200, 200], zoom: 10, near: -500, far: 2000 }}
|
||||
camera={{ position: [100, 100, 100], zoom: 60, near: -500, far: 2000 }}
|
||||
className="w-full h-full"
|
||||
>
|
||||
<ambientLight intensity={0.7} />
|
||||
<directionalLight position={[10, 50, 20]} intensity={1.5} castShadow />
|
||||
|
||||
{/* Grid Floor for context */}
|
||||
{/* Grid Floor for context - Scaled to match RoomObject (0.1 scale) */}
|
||||
<Grid
|
||||
infiniteGrid
|
||||
fadeDistance={250}
|
||||
fadeDistance={50}
|
||||
sectionColor="#10b981"
|
||||
cellColor="#059669"
|
||||
sectionThickness={1}
|
||||
cellThickness={0.5}
|
||||
position={[0, -0.1, 0]}
|
||||
args={[10.5, 10.5]}
|
||||
position={[0, -0.01, 0]}
|
||||
args={[20, 20]}
|
||||
/>
|
||||
|
||||
<Center top>
|
||||
|
|
@ -104,11 +104,13 @@ export function Room3DViewer({ room, visMode = 'STANDARD', onPlantClick }: Room3
|
|||
enableRotate={false}
|
||||
enableZoom={true}
|
||||
enablePan={true}
|
||||
minZoom={10}
|
||||
maxZoom={200}
|
||||
/>
|
||||
</Canvas>
|
||||
|
||||
<div className="absolute bottom-4 right-4 bg-slate-900/90 backdrop-blur-md px-3 py-1.5 rounded-md border border-emerald-500/20 text-xs font-mono text-emerald-400 pointer-events-none shadow-xl">
|
||||
VIEW: ISOMETRIC // FIXED
|
||||
VIEW: ISOMETRIC // FIXED // 60x
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue