Hello again, Thomas
I have done a little test with the first 5 frames of your model and it works.
The idea is
- save each isosurface (for each frame) into a jvxl file
- have all isosurfaces loaded after the model
- do not ever delete the isosurfaces, just change the current frame or play the
animation
This is what I did:
I manually saved the five isosurfaces into surfN.jvxl files, where N is
increasing number:
frame 1
isosurface resolution 6 SOLVENT map MEP;color isosurface translucent
write isosurface surf1.jvxl
frame 2
isosurface resolution 6 SOLVENT map MEP;color isosurface translucent
write isosurface surf2.jvxl
...and so on
(you may be able to script that in a loop so it is done in one go)
And this is my page's code; you can adapt it to yours:
<script type="text/javascript">
var sc = ""
for (var i=1; i<=5; i++)
{ sc += 'frame ' + i + ';isosurface s' + i + ' "surf' + i + '.jvxl";'
}
sc += 'frame rewind;'
jmolInitialize(".")
jmolApplet(450, 'load 5steps_ethen.mol2; ' + sc )
</script>
<br>
<input type="button" value="|<" onClick="jmolScript('frame rewind')">
<input type="button" value="<<" onClick="jmolScript('frame previous')">
<input type="button" value=">" onClick="jmolScript('anim on')">
<input type="button" value=">>" onClick="jmolScript('frame next')">
<input type="button" value=">|" onClick="jmolScript('frame last')">
The animation runs nicely without any fps reduction.
I am not aware whether you can save all the isosurfaces in a single jvxl file.
Hope you can make use of this. Good luck
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users