I'm at the planning stage of developing a small web application that does some interactive visualization of data in three-dimensional space.
For the broadest browser compatibility, three.js looks like the best choice, since I can display the same scene using WebGL, canvas or SVG.
Ideally, I want to use backbone.js to provide a good level of MVC and avoid some of the tediousness of writing ajax, but before I get to it, I was wondering if anyone had any experience / advice / words of advice in trying to do this work.
Assuming canvas or WebGL, it looks like backbone.view can be fairly easily abstracted to support the three.js model. The rendering function is for overriding. I could attach a simple listener on the canvas, and then we use the three.js trick to pull out a specific model for triggering events (which seems like it will be the most difficult task). Trunk models and collections will work with my API (I think). The controllers will probably be a little more complicated, but can even be used if you keep the camera position or something like that.
With SVG rendering, this obviously simplifies with all the elements in the DOM, but I doubt that SVG would even be a good option if there are more than 1000 objects in the scene. Does anyone have experience with large scene graphics in SVG?
Are there any other libraries designed to render or resemble a backbone network that would be better used? I am open to suggestions on this.
addisonj
source share