Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/webgl_effects_stereo.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@

camera = new THREE.PerspectiveCamera( 60, window.innerWidth / window.innerHeight, 1, 100000 );
camera.position.z = 3200;
camera.focus = 3200;
Copy link
Collaborator

@Mugen87 Mugen87 Nov 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about do it the other way around and scale the scene down to real-world units?

Instead of having spheres with 100m radius let's decrease it by factor 1000 so the radius is 0.1 and then adjust the camera accordingly.

const geometry = new THREE.SphereGeometry( 0.1, 32, 16 );


scene = new THREE.Scene();
scene.background = new THREE.CubeTextureLoader()
Expand Down Expand Up @@ -83,6 +84,7 @@
container.appendChild( renderer.domElement );

effect = new StereoEffect( renderer );
effect.setEyeSeparation( 100 );
effect.setSize( window.innerWidth, window.innerHeight );

//
Expand Down
Loading