by d1pl01d · 15y ago · 0 comments
CloudSCAD gets away with it AFAIK because generally OpenSCAD is not generating overly complicated models. However once you convert those polygons into stacks of infill and perimeter lines (a la gcode) you really begin to see the limits of three.js's canvas rendering setup.
Heres an example of rendering 2d gcode (simple enough that it doesn't crash most PCs in Chrome or FF4): http://www.d1plo1d.com/cad_canvas/examples/gcode_canvas.html (same controls as emc2 axis)
src: https://github.com/D1plo1d/CadCanvas
TL;DR: canvas support can be horrifically laggy but otherwise three.js is good things.
Specifically the background cache and fast blitting: https://github.com/evanw/rapt/blob/master/game/src/game/back...