three.js icon indicating copy to clipboard operation
three.js copied to clipboard

Examples: OrthographicCamera instantiation

Open WestLangley opened this issue 1 year ago • 0 comments
trafficstars

Description

Below are two example files that instantiate an OrthographicCamera by passing pixel units into the constructor. The units should be scene units.

FBXLoader.js

https://github.com/mrdoob/three.js/blob/ddd1bc654db5fdc3f58a5cbc689065b26864add0/examples/jsm/loaders/FBXLoader.js#L1097

After reading the FBX spec, it is not clear to me how to fix this...

misc_exporter_gltf.html

https://github.com/mrdoob/three.js/blob/ddd1bc654db5fdc3f58a5cbc689065b26864add0/examples/misc_exporter_gltf.html#L371

In addition to the pixel issue, the far plane is too limiting, and the camera position likely needs to be changed.

Related: the glTF spec says the near plane distance must be non-negative.

Reproduction steps

n/a

Code

see above

Live example

n/a

Screenshots

No response

Version

r167

Device

No response

Browser

No response

OS

No response

WestLangley avatar Jul 30 '24 22:07 WestLangley