gkjohnson / ldraw-parts-library

Upload of the LDraw parts library intended to be used for static file loading in github examples.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ldraw-parts-library

Upload of the LDraw parts library intended to be used for static file loading in github examples.

Parts library downloaded from here and unofficial parts from here on January 30th, 2023.

color definitions downloaded from here on May 15th, 2023.

Use with three.js LDrawLoader

const loader = new LDrawLoader();
loader.setPartsLibraryPath( 'https://raw.githubusercontent.com/gkjohnson/ldraw-parts-library/master/complete/ldraw/' );
await loader.preloadMaterials( 'https://raw.githubusercontent.com/gkjohnson/ldraw-parts-library/master/colors/ldcfgalt.ldr' );

loader.load( 'https://raw.githubusercontent.com/gkjohnson/ldraw-parts-library/master/complete/ldraw/10030-1%20-%20Imperial%20Star%20Destroyer%20-%20UCS.mpd' );

About

Upload of the LDraw parts library intended to be used for static file loading in github examples.