fix: STRICT Fixed Isometric View (200,200,200) and disabled rotation
This commit is contained in:
parent
15ab32a75a
commit
68b6ea9a02
1 changed files with 9 additions and 9 deletions
|
|
@ -65,11 +65,11 @@ export function Room3DViewer({ room, visMode = 'STANDARD', onPlantClick }: Room3
|
|||
<Canvas
|
||||
shadows
|
||||
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"
|
||||
>
|
||||
<ambientLight intensity={0.6} />
|
||||
<directionalLight position={[10, 40, 20]} intensity={1.2} castShadow />
|
||||
<ambientLight intensity={0.7} />
|
||||
<directionalLight position={[10, 50, 20]} intensity={1.5} castShadow />
|
||||
|
||||
<group position={[0, -5, 0]}>
|
||||
<RoomObject
|
||||
|
|
@ -86,18 +86,18 @@ export function Room3DViewer({ room, visMode = 'STANDARD', onPlantClick }: Room3
|
|||
/>
|
||||
</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" />
|
||||
<OrbitControls
|
||||
makeDefault
|
||||
enableRotate={true}
|
||||
maxPolarAngle={Math.PI / 2.5} // Limit vertical rotation to keep "looking down" feel
|
||||
minPolarAngle={Math.PI / 6}
|
||||
enableRotate={false}
|
||||
enableZoom={true}
|
||||
enablePan={true}
|
||||
/>
|
||||
</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">
|
||||
Interactive 3D View
|
||||
<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">
|
||||
VIEW: ISOMETRIC // FIXED
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue