Proteopedia:Rotating vs still models: Difference between revisions

From Proteopedia
Jump to navigation Jump to search
Jaime Prilusky (talk | contribs)
New page: Starting January 26, 2014, Proteopedia uses a newer version of Jmol that operates either with HMTL5/Javascript, or alternatively with the traditional Java. Proteopedia defaults to the HMTL...
 
Jaime Prilusky (talk | contribs)
m Protected "Proteopedia:Rotating vs still models" [edit=sysop:move=sysop]
 
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
==Rotating vs. Still==
==Rotating vs. Still==
Rendering a rotating model implies the continuous calculation of the spatial location of elements. This operation becomes heavier with the number of atoms in the model and many times is overwhelming for HMTL5/Javascript when rendering some representations like surfaces.
Rendering a rotating model implies the continuous calculation of the spatial location of elements. This operation becomes heavier with the number of atoms in the model and many times is overwhelming for HMTL5/Javascript when rendering some representations like surfaces.
To enable a smooth rotation on underpowered platforms, Proteopedia defaults to a simplified rendering for rotating models when using HMTL5/Javascript.  
To enable a smooth rotation on underpowered platforms, Proteopedia defaults to '''platformSpeed=5''' achieving a simplified rendering for rotating models when using HMTL5/Javascript. This means, for example, that '''isosurfaces will look differently''' under HTML5/JavaScript when the model is rotating vs. still. When rendering under Java, Proteopedia defaults to platformSpeed=8, and there's not outstanding difference between rotating and still models.
 
<table border='1' width='300' style="white-space: nowrap">
<table border='1' width='300' style="white-space: nowrap">
<tr><th colspan='2'>platformSpeed values and the effect on rendering</th></tr>
<tr><th colspan='2'>platformSpeed values and the effect on rendering</th></tr>
Line 16: Line 17:
<tr><td>1</td><td>none of the above (same as "set wireframeRotation off")</td></tr>
<tr><td>1</td><td>none of the above (same as "set wireframeRotation off")</td></tr>
</table>
</table>
==Controlling the platformSpeed==
'''While creating scenes''' in Proteopedia's SAT (Scene Authoring Tool), you may control the rendering with a pulldown located under SAT's applet.
[[Image:SATrenderingOptions.png]]
<br>
'''When saving scenes''' in Proteopedia's SAT, you have the option to set the rendering mode under HTML5/JavaScript.
[[Image:SceneRenderingOptions.png]]
<br>
You may also '''set the rendering mode of any applet''' with the pspeed attribute. The attribute pspeed for &lt;applet , &lt;Structure and &lt;StructureSection allows us to set a permanent platformSpeed, overriding the default values. For example, if you wish for a given applet to render any representation always at full rendering, add the attribute '''pspeed=8''' to it, as in the following line:
&lt;StructureSection load='3rec' size='350' side='right' caption=' ' scene=' ' pspeed='8'>

Latest revision as of 11:07, 14 May 2015

Starting January 26, 2014, Proteopedia uses a newer version of Jmol that operates either with HMTL5/Javascript, or alternatively with the traditional Java. Proteopedia defaults to the HMTL5/Javascript mode, but you may still use Java for rendering structures. Even when Java remains the best for performance, HMTL5/Javascript enabled Tablet, smart phones and other non-java devices to render Proteopedia pages.

Rotating vs. StillRotating vs. Still

Rendering a rotating model implies the continuous calculation of the spatial location of elements. This operation becomes heavier with the number of atoms in the model and many times is overwhelming for HMTL5/Javascript when rendering some representations like surfaces. To enable a smooth rotation on underpowered platforms, Proteopedia defaults to platformSpeed=5 achieving a simplified rendering for rotating models when using HMTL5/Javascript. This means, for example, that isosurfaces will look differently under HTML5/JavaScript when the model is rotating vs. still. When rendering under Java, Proteopedia defaults to platformSpeed=8, and there's not outstanding difference between rotating and still models.

platformSpeed values and the effect on rendering
value >=enables
8antialiasDisplay (and thus, all features)
7translucency
6meshes (contact, draw, isosurface, MO, pmesh, lcaocartoon, CGO)
5cartoons, rockets, trace, ribbon
4geosurfaces
3ellipsoids
2wireframe and balls
1none of the above (same as "set wireframeRotation off")

Controlling the platformSpeedControlling the platformSpeed

While creating scenes in Proteopedia's SAT (Scene Authoring Tool), you may control the rendering with a pulldown located under SAT's applet.


When saving scenes in Proteopedia's SAT, you have the option to set the rendering mode under HTML5/JavaScript.


You may also set the rendering mode of any applet with the pspeed attribute. The attribute pspeed for <applet , <Structure and <StructureSection allows us to set a permanent platformSpeed, overriding the default values. For example, if you wish for a given applet to render any representation always at full rendering, add the attribute pspeed=8 to it, as in the following line:

<StructureSection load='3rec' size='350' side='right' caption=' ' scene=' ' pspeed='8'>

Proteopedia Page Contributors and Editors (what is this?)Proteopedia Page Contributors and Editors (what is this?)

Jaime Prilusky