rl-loadout-lib
Load Rocket League assets into three.js. This library is closely tied with Rocket Loadout as the code was originally part of it. It uses GLTF models and TGA textures created and stored for the website.
Quick start
The library currently works with Three.js r110. You should use that since there are usually a lot of breaking changes between Three.js releases. Models are DRACO compressed, you must provide the decoder.
NPM
npm install rl-loadout-lib
;;;; // You must provide the GLTFLoader to avoid issues with multiple instances of three.js and webgl context;;dracoLoader.setDecoderPath'/draco/';gltfLoader.setDRACOLoaderdracoLoader;; ; ;
Pure JS
Download Three.js r110 and the javascript bundle from the releases.
You can use the RL
global.
const gltfLoader = ;const dracoLoader = ;dracoLoader;gltfLoader;const config = gltfLoader; const manager = config; ...