Three.js 正交摄像机定位
我已经创建了一个使用光年单位的巨大球形恒星场的场景,我想要一个正交摄影机,这样它就可以看到原点,并且只能看到15光年的交叉点。 我目前正在使用以下代码来构建摄影机,但场景看起来非常小且遥远,我可以看到整个恒星场:Three.js 正交摄像机定位,three.js,Three.js,我已经创建了一个使用光年单位的巨大球形恒星场的场景,我想要一个正交摄影机,这样它就可以看到原点,并且只能看到15光年的交叉点。 我目前正在使用以下代码来构建摄影机,但场景看起来非常小且遥远,我可以看到整个恒星场: new THREE.OrthographicCamera( window.innerWidth / - 2, window.innerWidth / 2, window.innerHeight / 2, window.innerHeight / - 2, -500, 1000 );
new THREE.OrthographicCamera( window.innerWidth / - 2, window.innerWidth / 2, window.innerHeight / 2, window.innerHeight / - 2, -500, 1000 );
如何构造此摄影机以仅显示场景的特写部分?(我以后会担心不会在这个视图之外渲染星星)谢谢,我看到了这个问题,但这是我第一次尝试3D,我无法将它与我的特定问题联系起来。我希望如果我说得更具体一些,有人可以建议一些构造函数值来让我启动并运行。