Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.07 KB

File metadata and controls

25 lines (19 loc) · 1.07 KB

3D2PNG_GLB_Support

Update with three.js 162. The last Version of three.js with support of for WebGL 1. The software 3d2png depends on headless-gl, which only supports WebGL 1.

Test: node --inspect 3d2png.js samples/DavidStatue.stl 640x480 test.png

GLB files for testing:

Only very basis support yet. Many things don't work out of the box with headless gl.

The images of the textures were extracted here and later used as DataTexture. There are probably better ways.

There are a lot of logs in the code, which must removed later.

TODOs: