Unofficial Three.js loader for parsing Valve's Source Engine models built by referencing the data structures in the ValveSoftware/source-sdk-2013 project and the source engine wiki. Demo models from the Source Filmmaker installation.
Get models from SFMLab or Source Filmmaker.
Demo here!
Models shown in this repo are not covered by the code license, copyright their respective owners, and are for demo purposes only.
import { SourceModelLoader } from 'source-engine-model-loader';
new SourceModelLoader()
.load( './folder/model', ( { group } ) => {
scene.add( group );
} );
constructor( manager : LoadingManager )
load(
url : string,
onComplete : ( { group : Group } ) => void
) : void
Loads the set of Source Engine model files at the given path. It is expected that a model with the extensions .mdl
, .vvd
, and .vtx
exist.
See issue #4 for full list of unimplemented features.