IT/Three.js
[Three.js] THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values. 문제 해결 방법
Three.js에서 도형 객체를 크기에 맞게 설정하고, 실질적으로 3D 화면에서 도형을 어느 위치에 둬야 할 것인지 position 좌표를 설정 후에 렌더링을 하면 도형이 해당 위치에 그려지게 된다. 근데, 렌더링 과정 중에 position의 좌표가 NaN일 경우에는 아래의 에러가 발생한다. THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values. 이 문제의 원인은 해당 도형의 Position의 x, y, z 값이나 벡터 값이 NaN일 때 발생한다. three.core.js 파일에서 boundingSphere.radius가 NaN일 경우에 ..
2025. 4. 10.
최근댓글