mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
102.81k stars 35.38k forks source link

When an OrthographicCamera is used, increasing the far value (> 3000000) will cause the perspective effect of the model. #29267

Closed Jenychen1996 closed 2 months ago

Jenychen1996 commented 2 months ago

Description

When an OrthographicCamera is used, increasing the far value (> 3000000) will cause the perspective effect of the model.

Reproduction steps

1.Create an OrthographicCamera 2.modify the far value: >3000000 3.load model

Code

let SCREEN_WIDTH = window.innerWidth;
let SCREEN_HEIGHT = window.innerHeight;
let aspect = SCREEN_WIDTH / SCREEN_HEIGHT;
const frustumSize = 600;
camera = new THREE.OrthographicCamera(0.5 * frustumSize * aspect / - 2, 0.5 * frustumSize * aspect / 2, frustumSize / 2, frustumSize / - 2, -100000, 1000000000);

Live example

Screenshots

No response

Version

r162

Device

No response

Browser

No response

OS

No response

Mugen87 commented 2 months ago

Let's continue in #29264.