Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Three.js 正交摄像机定位_Three.js - Fatal编程技术网

Three.js 正交摄像机定位

Three.js 正交摄像机定位,three.js,Three.js,我已经创建了一个使用光年单位的巨大球形恒星场的场景,我想要一个正交摄影机,这样它就可以看到原点,并且只能看到15光年的交叉点。 我目前正在使用以下代码来构建摄影机,但场景看起来非常小且遥远,我可以看到整个恒星场: new THREE.OrthographicCamera( window.innerWidth / - 2, window.innerWidth / 2, window.innerHeight / 2, window.innerHeight / - 2, -500, 1000 );

我已经创建了一个使用光年单位的巨大球形恒星场的场景,我想要一个正交摄影机,这样它就可以看到原点,并且只能看到15光年的交叉点。 我目前正在使用以下代码来构建摄影机,但场景看起来非常小且遥远,我可以看到整个恒星场:

new THREE.OrthographicCamera( window.innerWidth / - 2, window.innerWidth / 2, window.innerHeight / 2, window.innerHeight / - 2, -500, 1000 );

如何构造此摄影机以仅显示场景的特写部分?(我以后会担心不会在这个视图之外渲染星星)

谢谢,我看到了这个问题,但这是我第一次尝试3D,我无法将它与我的特定问题联系起来。我希望如果我说得更具体一些,有人可以建议一些构造函数值来让我启动并运行。