https://github.com/theawesomecoder61/smdloader
A three.js loader used for loading SMD files (Valve Studiomdl Data)
https://github.com/theawesomecoder61/smdloader
loader smd source threejs valve
Last synced: 6 days ago
JSON representation
A three.js loader used for loading SMD files (Valve Studiomdl Data)
- Host: GitHub
- URL: https://github.com/theawesomecoder61/smdloader
- Owner: theawesomecoder61
- Created: 2017-10-20T17:13:12.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-20T17:27:33.000Z (almost 9 years ago)
- Last Synced: 2025-10-05T04:05:03.695Z (10 months ago)
- Topics: loader, smd, source, threejs, valve
- Size: 1.95 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SMDLoader
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](https://developer.valvesoftware.com/wiki/SMD) if you want to learn more about them.
# Features
### Supported
- meshes
### Upcoming
- skinning/skeleton
- textures (VTF is propietary, and therefore any textures will need to converted to either PNG, TGA, DDS, etc.)
- animation
# How to use
1. Download the latest version of SMDLoader.js
2. In your HTML, add
```html
```
# Examples
### Basic
```js
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);
});
```
### Scene
[Click here to see SMDLoader in action.](http://metasciencetechnologies.com/smdloader)
# Changelog
### Version 1.0 - ??/??/2017
- initial version
- meshes are the only thing supported right now