HTML5に搭載されたwebGLを扱うためのライブラリthree.jsを使って立体物を表示、マウスで視点を操作できるようにしたサンプルです。 マウス視点操作にはTrackballControls.jsがありますが、Z回転が邪魔だったりで今回はOrbitControls.jsを利用。 ・・・たぶん、パラメーターなどで制御できると思うのですが。 ヘッダータグに二つのjsを読み込む javascriptはこんな感じ var main = function () { var scene = new THREE.Scene(); var width = 800; var height = 600; var fov = 60; var aspect = width / height; var near = 1; var far = 10000; //カメラ var camera = new THREE