fix: STRICT Fixed Isometric View (200,200,200) and disabled rotation
Some checks are pending
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run

This commit is contained in:
fullsizemalt 2025-12-27 18:34:50 -08:00
parent 15ab32a75a
commit 68b6ea9a02

View file

@ -65,11 +65,11 @@ export function Room3DViewer({ room, visMode = 'STANDARD', onPlantClick }: Room3
<Canvas <Canvas
shadows shadows
orthographic orthographic
camera={{ position: [50, 40, 50], zoom: 8, near: -100, far: 200 }} camera={{ position: [200, 200, 200], zoom: 30, near: -500, far: 1500 }}
className="w-full h-full" className="w-full h-full"
> >
<ambientLight intensity={0.6} /> <ambientLight intensity={0.7} />
<directionalLight position={[10, 40, 20]} intensity={1.2} castShadow /> <directionalLight position={[10, 50, 20]} intensity={1.5} castShadow />
<group position={[0, -5, 0]}> <group position={[0, -5, 0]}>
<RoomObject <RoomObject
@ -86,18 +86,18 @@ export function Room3DViewer({ room, visMode = 'STANDARD', onPlantClick }: Room3
/> />
</group> </group>
<ContactShadows position={[0, -5.01, 0]} opacity={0.3} scale={60} blur={2.5} far={20} /> <ContactShadows position={[0, -5.01, 0]} opacity={0.3} scale={60} blur={2} far={20} />
<Environment preset="city" /> <Environment preset="city" />
<OrbitControls <OrbitControls
makeDefault makeDefault
enableRotate={true} enableRotate={false}
maxPolarAngle={Math.PI / 2.5} // Limit vertical rotation to keep "looking down" feel enableZoom={true}
minPolarAngle={Math.PI / 6} enablePan={true}
/> />
</Canvas> </Canvas>
<div className="absolute bottom-4 right-4 bg-black/60 backdrop-blur-md px-3 py-1.5 rounded-full border border-white/10 text-xs font-medium text-white/80 pointer-events-none"> <div className="absolute bottom-4 right-4 bg-slate-900/90 backdrop-blur-md px-3 py-1.5 rounded-md border border-white/20 text-xs font-mono text-emerald-400 pointer-events-none shadow-xl">
Interactive 3D View VIEW: ISOMETRIC // FIXED
</div> </div>
</div> </div>
); );