0
ThreeJSを使用して平面の地形を描画しようとしていますが、動作しません。ThreeJSのプレーンテレイン
var plane = new THREE.Mesh(new THREE.PlaneGeometry(300, 300), new THREE.MeshBasicMaterial({
color: 0x0000ff
}));
plane.overdraw = true;
this.scene.add(plane);
かなりストレートフォワード:
は、ここに私の飛行機を作成するコードです。実際に私はちょうどそれをいくつかのサイトからコピーしました。
これは私がシーンとカメラを初期化する方法である:
this.camera =
new THREE.PerspectiveCamera(
45, // view angle
width/height, // aspect
0.1, // near
10000); // far
this.scene = new THREE.Scene();
// add the camera to the scene
this.scene.add(this.camera);
// the camera starts at 0,0,0
// so pull it back
this.camera.position.z = 800;
this.camera.position.y = -100;
私も中央で半径20の球を持っています。それはうまく表示されます。
私には何が欠けていますか?
ありがとうございます。有益なもの;) – Pijusn