This is a fork of Online3DViewer for use in terminal/headless environments.
npm i
npm run build_dist_bldrs
ls dist/
o3dv.cjs web-ifc-node.wasm
- Remove web-ifc-node.wasm to from lib/loaders
- Change package.json#main to dist/o3dv.cjs
- Add npm script create_dist_bldrs
- Clean some lint
- Forked from https://github.com/kovacsv/Online3DViewer @ 0.9.0
- Builds a bundle at ./build/engine/o3dv.cjs with tools/esbuild.js, targeting Node and CJS
- Tested with headless-three
- Supports: ifc, obj, stl, fbx, 3ds, ply, bim
- web-ifc 0.0.39 -> 0.0.42
- Some experimenting with rollup CJS build
- Disable hasHighpDriverIssue/mobile testing (requires a canvas)
- Avoid FileReader with node fs-based reading
- Not clear how OV is doing camera setup, but camera coordinates seem to work
- Tests: 206 passing, 23 failing
- Add format support, by priority: glb, gltf, 3dm, 3mf, fcstd, amf, dae, mtl, off, wrl
- Better rendering:
- Antialiasing
- A few nice environment maps?