joostn / OpenJsCad

3D solid CAD using only Javascript
315 stars 128 forks source link

migrate renderer from lightgl to three.js #51

Closed bebbi closed 9 years ago

bebbi commented 9 years ago

add decent transparency allow any css units for viewerwidth/viewerheight, and ratio for height calculate initial zoom value based on object size enable non-WebGL rendering (force with option noWebGL) deprecate showLines, lineOverlay options, setLineDisplay function new runtime options drawFaces, drawLines, and functions toggleDrawOptions, setDrawOptions UI toggles for drawOptions renderer fallback to canvas rendering on WebGL context lost

bebbi commented 9 years ago

Based on contributions by sahilshekhawat. This is a bigger change. Including three.js for a few good improvements and many future options. Would be cool if you could give it a spin and give feedback whether everything works as expected. It's live at http://bebbi.github.io/OpenJsCad/

joostn commented 9 years ago

Nice! It seems to work well, I've tried several browsers on win and mac.