Mesh를 생성할 때 mesh의 형상을 정의하는 geometry와 색상이나 투명도 등을 지정할 수 있는 material이 필요하다.
3차원 오브젝트의 형상을 정의한다.
형상을 정의하기 위한 데이터는?
import { OrbitControls } from "examples/jsm/controls/OrbitControls";
this._setupControls();
_setupControls() {
//OrbitsControls 객체를 생성할 때는 카메라 객체와 마우스 이벤트를 받는 DOM 요소가 필요
new OrbitControls(this._camera, this._divContainer);
}
Uncaught TypeError: Failed to resolve module specifier "three". Relative references must start with either "/", "./", or "../".
해결완료
ThreeJs javaScript 모듈 import 확인하기