August 2018
Intermediate to advanced
528 pages
10h 58m
English
The MD2 format was created to model characters from Quake, a great game from 1996. Even though the newer engines use a different format, you can still find a lot of interesting models in the MD2 format. Using an MD2 file works the same as any of the others we've seen so far. When you load an MD2 model, you get a geometry, so you have to make sure that you create a material first and assign a skin:
var textureLoader = new THREE.TextureLoader();var loader = new THREE.MD2Loader();loader.load('../../assets/models/ogre/ogro.md2', function (result) { var mat = new THREE.MeshStandardMaterial( { morphTargets: true, color: 0xffffff, metalness: 0, map: textureLoader.load('../../assets/models/ogre/skins/skin.jpg') ...Read now
Unlock full access