Native SketchUp (.skp) loader — no server round-trip, no proprietary SDK #436
iamahsanmehmood
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Three.js/three-stdlib has loaders for most common formats, but nothing for SketchUp
.skp— right now the only way to get a SketchUp model into a Three.js scene is exporting to glTF/OBJ from SketchUp first, which needs SketchUp installed, or piping through a server-side conversion service.OpenSKP is an MIT-licensed, from-scratch
.skpreader (no Trimble SDK, no native binary, pure TypeScript —openskpon npm) that already runs in both Node and the browser. It parses geometry, materials, layers, and instancing, and can bake a full triangulated scene (buildScene()) ready to hand to a renderer.A
SKPLoaderextending three-stdlib'sLoaderwould be a fairly small wrapper: read the file into anArrayBuffer, callSkpFile.fromBuffer(buffer).buildScene(), and walk the result intoTHREE.Group/BufferGeometry/MeshStandardMaterialthe same wayOBJLoader/GLTFLoaderdo today. There's already a working reference implementation doing exactly this in OpenSKP's own example viewer (examples/web-viewer), so this wouldn't be starting from zero.Would a
SKPLoaderbe something this repo wants? Happy to put together a PR if there's interest — wanted to check first rather than show up with an unsolicited loader nobody asked for.All reactions