Difference between revisions of "JSmol"

From Jmol
Jump to navigation Jump to search
Line 2: Line 2:
  
  
JSmol is a modality of Jmol that works within a web browser without using [http://proteopedia.org/w/Java Java]. This enables JSmol to display interactive 3D molecular structures on devices that do not have Java installed, or for which Java is not available (such as smart phones and some tablet computers, e.g. iPad). Not installing Java avoids possible [http://proteopedia.org/w/Java#Java_is_a_security_threat security risks].
+
JSmol is a JavaScript framework that allows Jmol to work within a web browser using either [http://proteopedia.org/w/Java Java] or HTML5. This enables Jmol to display interactive 3D molecular structures on devices that do not have Java installed, or for which Java is not available (such as smart phones and some tablet computers, e.g. iPad). Not installing Java avoids possible [http://proteopedia.org/w/Java#Java_is_a_security_threat security risks].
  
However, the Java modality of Jmol gives faster performance and smoother rotation than JSmol. Also JSmol works very slowly in Internet Explorer, and rotation is slow and jerky in Opera, but works very well in Chrome, Safari, and well in Firefox. In contrast, Jmol (Java modality) works equally well in all of those browsers. JSmol works slowly with very large or multiple-model structures (>20,000 atoms), while the Java form of Jmol does much better.
+
JSmol/HTML5 is virtually identical to JSmol/Java in terms of rendering. The Java mode gives faster performance and smoother rotation than the HTML5 mode by a factor of 6 to 10. In many cases this is not noticeable. Where it is noticed is with rending structures involving 20,000+ atoms or with surface creation. Rendering in the HTML5 mode can be sped up substantially with judicial use of [http://chemapps.stolaf.edu/jmol/docs/#set_platformspeed set platformSpeed]. In addition, the HTML5 mode has been reported to work very slowly in some versions of Internet Explorer, rotation is slow and jerky in Opera when not using '''set platformSpeed'''. Safari, Firefox, and Chrome appear to have much better JavaScript engines, and performance is much better using these browsers. In contrast, JSmol/Java works equally well in all of those browsers.  
  
 
More information about JSmol:
 
More information about JSmol:

Revision as of 13:01, 1 August 2014

This page is under construction


JSmol is a JavaScript framework that allows Jmol to work within a web browser using either Java or HTML5. This enables Jmol to display interactive 3D molecular structures on devices that do not have Java installed, or for which Java is not available (such as smart phones and some tablet computers, e.g. iPad). Not installing Java avoids possible security risks.

JSmol/HTML5 is virtually identical to JSmol/Java in terms of rendering. The Java mode gives faster performance and smoother rotation than the HTML5 mode by a factor of 6 to 10. In many cases this is not noticeable. Where it is noticed is with rending structures involving 20,000+ atoms or with surface creation. Rendering in the HTML5 mode can be sped up substantially with judicial use of set platformSpeed. In addition, the HTML5 mode has been reported to work very slowly in some versions of Internet Explorer, rotation is slow and jerky in Opera when not using set platformSpeed. Safari, Firefox, and Chrome appear to have much better JavaScript engines, and performance is much better using these browsers. In contrast, JSmol/Java works equally well in all of those browsers.

More information about JSmol:

  • JSmol pros and cons describes the problems JSmol has with large models and certain web browsers.
  • Jmol JavaScript Object: Technical information about the libraries used to implement both the JSmol and Jmol objects in a web page -- and to interact with them via scripts and UI controls such as buttons etc.