Three.js 今回はThree.jsを触ってみます。 three.js - Javascript 3D library ブラウザで3DのCGを動かすといえばWebGLですが、OpenGLやDirectXのような細かい処理を書くのは結構大変です。それを手軽扱いやすくしたJavaScriptのライブラリのひとつがThree.jsです。 最低限、ブラウザとテキストエディタだけあれば3Dのプログラムが書けてしまいます。 (もちろんbracketsなどのhtmlエディタを使った方が書きやすいです。) 3Dプログラムがどのように動いているか、基礎部分の勉強にもなると思います。 Three.jsの読み込み まず、HTML5のhtmlファイルを用意し、Three.jsを読み込ませます。 ダウンロードしてくるのも有りですが、CDNから読み込むと楽です。 headに <script src="https: