My code is at view-source:http://creativiii.com/3Dproject/推荐答案每个几何体都有一个 boundingSphere 属性,您可以使用它来确定对象的大小.https://threejs.org/docs/api/core/Geometry.html如果属性没有值,您可以使用 geometry.computeBoundingSphere();Each geometry has a boundingSphere attribute that you can use to figure out the size of your object. https://threejs.org/docs/api/core/Geometry.html If the attribute does not have a value you can compute it using geometry.computeBoundingSphere();至于每种灯光类型的灯光,都有一个与之相关的辅助函数,可以显示灯光的位置:As for the lights for each of the light types there is a helper function associated with it that will show you where the light is:https://threejs.org/docs/index.html?q=Helper#Reference/Extras.Helpers/HemisphereLightHelperhttps://threejs.org/docs/index.html?q=Helper#Reference/Extras.Helpers/DirectionalLightHelperhttps://threejs.org/docs/index.html?q=Helper#Reference/Extras.Helpers/PointLightHelperhttps://threejs.org/docs/index.html?q=Helper#Reference/Extras.Helpers/SpotLightHelper 这篇关于ThreeJS理解灯在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-23 06:40