patrickfuller / imolecule

An embeddable webGL molecule viewer and file format converter.
http://patrickfuller.github.io/imolecule/
MIT License
86 stars 18 forks source link

WebGL fallbacks #10

Closed patrickfuller closed 9 years ago

patrickfuller commented 9 years ago

For users that don't have webGL, we should have a functional fallback (even if its slower). three.js supports a couple of backends, so falling back to CSS3 or SVG should be simple enough.

I tried this a while back in the svg branch - may be worth looking in to.

bjonnh commented 9 years ago

You can have a look at my feature/canvas-fallback branch. It support fallback to the simple CanvasRenderer. I don't know anything about the SVGRenderer, looks like it is an external renderer.

patrickfuller commented 9 years ago

Very useful! I'll merge in your edits, although I'm going to avoid adding another option to the python method.