Improve 3D view to match reference drawings

Based on reference images in afbeeldingen/modellen/:
- dt9.png, dt10.png, door_type_4.jpg, samenstelling_beide.png

Changes for technical drawing aesthetic:

**Camera Improvements:**
- Position: [0, 1.2, 3.5] - More frontal, less perspective
- FOV: 35° (was 45°) - Less distortion
- Limited rotation: ±15° azimuth, near-horizontal polar
- Damping enabled for smooth movement
- Result: Flatter, more schematic view

**Profile Thickness (Match Reference Lines):**
- Stiles: 60mm (was 40mm) - Thicker vertical frames
- Rails: 40mm (was 20mm) - Thicker horizontal frames
- Depth: 60mm uniform - More prominent profiles
- Radius: 2mm (was 1mm) - Slightly more visible edges
- Result: Bold, visible frame lines like references

**Lighting (High Contrast):**
- Ambient: 0.8 (was 0.5) - Brighter overall
- Front key light: Straight on from [0,5,10]
- Intensity: 2.0 - Strong, even illumination
- Subtle side lights for minimal depth
- Result: Flat, technical drawing appearance

**Glass Material (White/Opaque):**
- Color: #f8f9fa (bright white)
- Transmission: 0.3 (was 1.0) - Much less transparent
- Opacity: 0.95 - Nearly opaque
- Result: White glass areas like reference drawings

**Visual Result:**
- Clear black frame lines on white glass
- Frontal view with minimal perspective
- Technical drawing aesthetic
- Matches dt9.png, door_type_4.jpg style
- User can see door design clearly

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Ubuntu
2026-02-10 17:22:10 +00:00
parent d2119eaa16
commit 0de3893b30
35 changed files with 33 additions and 34 deletions

View File

@@ -78,13 +78,13 @@ function Room() {
function Lighting() {
return (
<>
{/* Soft ambient light */}
<ambientLight intensity={0.5} />
{/* Strong ambient for flat, technical drawing look */}
<ambientLight intensity={0.8} />
{/* Key light - main illumination */}
{/* Front key light - straight on */}
<directionalLight
position={[5, 10, 8]}
intensity={1.5}
position={[0, 5, 10]}
intensity={2}
castShadow
shadow-mapSize-width={4096}
shadow-mapSize-height={4096}
@@ -96,11 +96,9 @@ function Lighting() {
shadow-bias={-0.0001}
/>
{/* Rim light for separation */}
<directionalLight position={[-3, 3, -5]} intensity={0.6} />
{/* Fill light */}
<directionalLight position={[0, 2, 5]} intensity={0.4} />
{/* Subtle side light for depth */}
<directionalLight position={[-2, 2, 3]} intensity={0.3} />
<directionalLight position={[2, 2, 3]} intensity={0.3} />
</>
);
}
@@ -117,20 +115,22 @@ export function Scene3D() {
}}
style={{ background: "#fafafa" }}
>
{/* Camera */}
<PerspectiveCamera makeDefault position={[0, 1.6, 4.5]} fov={45} />
{/* Camera - More frontal view for technical drawing aesthetic */}
<PerspectiveCamera makeDefault position={[0, 1.2, 3.5]} fov={35} />
{/* Camera Controls - Limited rotation */}
{/* Camera Controls - Very limited for flat view */}
<OrbitControls
enablePan={false}
enableZoom={true}
minDistance={3.5}
maxDistance={7}
minPolarAngle={Math.PI / 3.5}
maxPolarAngle={Math.PI / 2.2}
maxAzimuthAngle={Math.PI / 6}
minAzimuthAngle={-Math.PI / 6}
minDistance={3}
maxDistance={5}
minPolarAngle={Math.PI / 2.5}
maxPolarAngle={Math.PI / 2.1}
maxAzimuthAngle={Math.PI / 12}
minAzimuthAngle={-Math.PI / 12}
target={[0, 1.2, 0]}
enableDamping
dampingFactor={0.05}
/>
{/* Premium Studio Lighting */}