cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              (function(){
var scene = new THREE.Scene();
//シーンの追加
var camera = new THREE.PerspectiveCamera(45, 16/9, 1, 1000);
//(視野, アスペクト比,どこまで近くを描画するか ,どこまで遠くを描画するか )
  camera.position.set(100,100,500);//カメラの位置
  camera.lookAt(0,0,0);//カメラの向き

var Geometory =  new THREE.BoxGeometry(100,100,100);//図形の作成
var Material = new THREE.MeshPhongMaterial({//マテリアルの種類
			color:0xeeeeee,//色等の追加
		});
var box = new THREE.Mesh(Geometory, Material);//図形とマテリアルを使って物体を作成
box.position.set(0,50,0);//描画する座標
scene.add(box);//シーンに物体を追加
var renderer = new THREE.WebGLRenderer();
//レンダラ―の種類(WebGLRenderer推奨)
  renderer.setSize(window.innerWidth, window.innerHeight);//描画サイズ(ブラウザ幅最大)
  renderer.setClearColor(0x888888, 1);//背景色
  renderer.shadowMap.enabled=true;//シャドウマップ追加
  document.getElementById('scene').appendChild(renderer.domElement);//HTMLにアペンド
renderer.render(scene,camera);//レンダリング処理
	})();
            
          
!
999px
Loading ..................

Console