今回はThree.jsのRaycaster機能を使用して、glTF形式の3Dモデルへのクリック操作を認識、取得できるか試してみました。 以下のサイト、コードを参考にさせていただきました。 まず「その1」では、自分でMagicaVoxelというソフトで作成した3Dモデルと、あまり複雑 ...
Hey! so I was following episode 4 of making a 3D game in scratch, and if you get too close to the walls, the bottom glitches out and gets chopped. Do you know how to fix this? https://scratch.mit.e ...
オブジェクトをクリックして色を変えたり、マウスをホバーさせてアニメーションを加えたり…。Three.jsでインタラクティブな表現をするには**「Raycaster」**を使う、と以前目にしました。 そこで今回は、そのRaycasterの勉強をしてみました。(主に「Three.js ...