Suggested example for binary loaders



I have to write a custom loader for an old binary game-map format (think Quake-style BSP) and while looking thru the current example loaders, I’ve noticed that they use various different approaches.
Is there a loader that’s demonstrating all the currently recommended best practices regarding parsing binary data, creating structures, etc.?


Loaders should have a common interface, that means at least a single public parse and load method. They should also use THREE.LoadingManager. A relatively simple but nice loader is the PLYLoader. Other loaders that i recommend as a reference are the more complex GLTFLoader, FBXLoader and the new ColladaLoader. Please use the dev versions if you check out the code.