This is post is part of the ‘one threex a day’ challenge. This challenge is to publish every day one game extension for three.js! One per day, every day and that for 2month! In this post, we gonna talk about threex.suzanne. Suzanne is a classic. She is the blender famous model familiar to all blender users. It is also a three.js games extension extension which provides you with a monkey model. Blender wanted to create a less common test model, so Suzanne was born. She is more precisely a 3D model of a chimpanzee head. It is pretty basic but you can easily add it as a funky animal character and install it in your platform games!
To see the other posts about one threex a day and forget our moto! “A THREEx extension a day, gets your game on its way!”
Show Don’t Tell
How To Install It
You can install it via script tag
Or you can install with bower, as you wish.
How To Use It
How to load the geometry ?
1 2 3 4 5
How to create a mesh with it ?
1 2 3 4 5 6 7
Sometime it is not desirable to wait for the loading to complete before adding the object to the scene. To avoid this, we create a container which will contains the model once loading is completed. Thanks to the scene graph inheritance, any position/quaternion/scale changes made on container, will be reported to the children meshes.
1 2 3 4 5 6 7 8 9 10 11 12