Here are three proof of concept tests for using jmol. Eventually these should be considered for inclusion within the SAGE math environment, since SAGE uses jmol for 3D plotting.
Simple test
This shows basic javascript interactivity with a mesh loaded into jmol,
and the ability to load new meshes.
Please press the buttons in order (turn green to redshift),
but not load drug or show drug, as these show only basic jmol capabilities by loading up pdb files.
ana/kata turns on/off the transparent ana and kata surfaces loaded in.
ana/kata show different z levels for the plotted function
f(x) = x^2 + y^2 * sin(z)
Animation test
Press load meshes to load the meshes for different z-levels of the function
f(x) = x^2 + y^2 * sin(z)
and press 'Animate!' to animate.
Note that loading can take some time and the animation flickers badly.
Coordinate Hover Test
This is a simple test on how to do coordinates in jmol.
The way it is done is drawing a bunch of squares in the xy plane,
translucent green here. Hovering over the vertices in the squares (not the squares itself) will popup some text telling you the x,y coordinates.
(These are jmol coordinates, not the function coordinates.)
There are a few problems, and I'll look for another way to implement this.
That only the vertices support hovering and not the plane itself requires plotting many such planes, which makes jmol behave slowly.
Note that this is a first step to getting interactivity working,
and for getting gridlines working in 3D for SAGE.