A three.js loader used for loading SMD files (Valve Studiomdl Data). SMD files are ASCII and are used by Valve's Source Engine. You can go to Valve's article about SMD files if you want to learn more about them.
- meshes
- skinning/skeleton
- textures (VTF is propietary, and therefore any textures will need to converted to either PNG, TGA, DDS, etc.)
- animation
- Download the latest version of SMDLoader.js
- In your HTML, add
<script src="path/to/SMDLoader.js"></script>
var loader = new THREE.SMDLoader();
loader.load("model.smd", function(object) {
// object is either a THREE.Mesh or a THREE.SkinnedMesh (depends on whether there is a skeleton present in the SMD file)
scene.add(object);
});
Click here to see SMDLoader in action.
- initial version
- meshes are the only thing supported right now