【问题标题】:Why PointsMaterial in three.js is not working on my geometry?为什么 Three.js 中的 PointsMaterial 不适用于我的几何图形?
【发布时间】:2022-07-22 07:28:12
【问题描述】:

我已经使用 PointsMaterial 在控制台中的 three.js 中创建粒子它工作正常,但屏幕上没有出现任何内容,我的屏幕是黑色的,我的相机的位置是

// 基础摄像头

const camera = new THREE.PerspectiveCamera(75, sizes.width / sizes.height, 0.1, 100)

camera.position.z = 3

scene.add(相机)

我没有忘记将它添加到场景中

this is the picture of my code

【问题讨论】:

    标签: three.js


    【解决方案1】:

    您的点大小是 0.02,但要将粒子显示为一个像素,您应该使用默认大小 1.0。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-04-17
      • 2018-08-19
      • 2019-11-16
      • 2014-08-02
      • 1970-01-01
      • 1970-01-01
      • 2014-09-30
      • 1970-01-01
      相关资源
      最近更新 更多