I have a python web server (cherrypy), and I want the user to be able to compute certain surfaces of this precise type. This is what I am able to generate from user input. He gives me some parameters, I compute my things, generate it as PNG on the server (matplotlib/numpy) and send it back through a JQuery load.

Problem is, this is pretty lame, and the surfaces can have various aspects. I’d like to be able to have an actual widget or so that would enable the user to rotate his surface…
My major constraints is that it has to work on IE 7 (8 would be cool as well), and allow the input of the data I compute somehow. I’ve seen many things on the web that only permit to input parametric functions. What I need is to be able to push in raw data triplets.
I’ve been looking at several things, Javascript would be the best but I failed to see something in JQuery or equivalents. I did look quite long around WebGL and started implementing stuff…from scratch… but way too long and random behavior in IE sometimes.
Maybe I’m missing out completely on something, on some technology or format that is compatible with my python, but I’ve spent days before adopting the temporary solution of plotting into PNGs.
Looking forward to reading you guys,
Thanks in advance 😉
As far as I know, if you need IE7 compatibility, most of the available libraries in JS won’t work for you – they require either
canvasor SVG support. You’re left with static images, Flash, or Java applets.I would look into processing, which has good 3D support and can create Java applets for web use. See the 3D tutorials for good examples of interactive 3D surfaces.
If you wanted to get fancy, you could potentially also offer processing.js for browsers that support the
canvaselement. This would avoid loading a Java applet for those browsers, making for a slightly smoother UI and removing the Java dependency. You’d need to check for browser compatibility and then load either the applet code or the processing.js code. The upside of this is that you should be able to use exactly the same processing code in both cases.