The Viewing Tool
The Viewing Tool has five sections shown as index cards,
Camera, Effects,
Rotation,
Side View, and
Lighting.
Only one card is shown at a time, and clicking the tab for another
brings it to the front.
For just the section being shown:
Reset replaces the current settings with the original "factory" defaults,
Restore replaces the current settings with those previously saved in the
preferences file,
and Save saves the current settings to the
preferences file.
Close dismisses the Viewing Tool, and Help opens
this manual page in a browser window.
The Camera section of the Viewing Tool
controls several aspects of the view, including stereo parameters.
There are several ways to start
Camera, a tool in the Viewing Controls category.
Default settings are indicated in bold.
See also: stereo,
set projection
- camera mode
(mono/stereo left eye/stereo right eye/cross-eye stereo/wall-eye
stereo/red-cyan stereo/sequential stereo/row interleaved stereo/DTI
side-by-side stereo)
- the camera mode refers to
any of several stereo and mono viewing options. Sequential stereo is
not always available.
- reverse sequential stereo (true/false)
- whether to reverse the eye views when in the
sequential stereo camera mode
(to compensate for the reversal introduced by certain devices);
can also be specified with the startup option
--reverse-stereo.
This option does not switch the camera mode.
- projection
(perspective/orthographic)
- perspective makes farther-away objects smaller, and is
indicated in the Side View by red lines
diverging from the eye position. An orthographic
projection has no scaling-with-distance effect, and is indicated
in the Side View by horizontal red lines.
- scale factor (1 when a structure is first opened) -
a factor reflecting the cumulative effects of scaling with
the mouse, the Side View, and/or the command
scale
- near plane - Z-coordinate of the front
global clipping plane
- far plane - Z-coordinate of the back
global clipping plane
- horizontal field of view
(allowed range 1.0-179.0°)
- how much perspective is used;
does not affect the orthographic projection.
The vertical field of view will change along with the horizontal field
of view, but their exact relationship depends on the aspect ratio
of the graphics window.
- Stereo parameters
- units (millimeters/centimeters/inches)
- units for the following stereo parameters
- eye separation (2.0 inches)
- effective distance between the left and right eyes
- distance to screen - effective distance from the viewer to the
screen (or focal plane,
even though items out of this plane do not appear "out of focus").
When viewed in stereo, items in front of the focal plane will
appear to project from the screen, and items behind the plane will
appear to recede behind the screen.
- screen width - physical width of the entire screen (not just
the graphics window). The value is initially what is
reported by the windowing system, but it can be edited.
Changing the value does not resize the graphics window.
The eye separation and distance to screen
govern the parallax between the left- and right-eye views.
The horizontal field of view, distance to screen, and
screen width are interdependent. The graphics window width
is determined from the screen width and the known pixel dimensions
of the screen and graphics window. The horizontal field of view
is computed from the graphics window width and the
distance to screen. For a given graphics window width, the
horizontal field of view and distance to screen are inversely
related; changing one changes only the other, in the opposite direction.
Changing the screen width or resizing the graphics window
changes only the horizontal field of view, in the same direction.
The horizontal field of view, eye separation, and
position of the focal plane relative to the items in view can be
changed interactively using the Top View.
The Effects section of the
Viewing Tool
controls visual effects such as depth cueing.
There are several ways to start
Effects, a tool in the Viewing Controls category.
Default settings are indicated in bold.
See also: set
- depth cueing (on by default)
refers to front-to-back shading with the
depth-cueing color.
The shading increases linearly from start to end.
- start (0.5) - where depth-cueing starts,
relative to the front (0.0) and back (1.0)
global clipping planes;
values outside the 0-1 range are allowed
- end (1.0) - where depth-cueing attains full strength,
relative to the front (0.0) and back (1.0)
global clipping planes;
values outside the 0-1 range are allowed
- color
(a color well,
No Color by default)
- the color used for front-to-back shading (depth cueing).
When set to No Color, the shading color will be the same as the
background color.
- silhouettes (off by default)
highlights borders and discontinuities with a thin outline in the
silhouette color
- color
(a color well,
No Color by default)
- when set to No Color, the silhouette color will be gray if
the background is black, otherwise black.
- width (1.0) - silhouette linewidth
- subdivision quality (1.0, maximum 20.0)
- the stick, ball-and-stick, sphere, and ribbon
representations
consist of curved surfaces approximated by collections of planes;
increasing the subdivision quality increases the number of planes
and the apparent smoothness.
This setting does not affect
molecular surfaces.
If less than 5.0, the subdivision quality will be set
to 5.0 automatically and temporarily when an image is saved
with the Save Image dialog
or the copy command.
- local viewer (true/false) - whether for lighting purposes
the actual (local) position of the viewer is used. The alternative of
treating the viewer as infinitely far away simplifies the lighting
calculations and is more computationally expedient. The difference
in appearance is generally quite subtle.
- transparent background (true/false)
- whether to make the background transparent and allow its opacity to be
adjusted (opacity = 1 – transparency). Not all systems have the
hardware required to support this option.
PNG and TIFF images saved
from the session will include opacity information,
making them easier to composite with different backgrounds
in image-editing applications. (Note: TIFF images with
background transparency may not be interpreted correctly by Adobe
Photoshop®.)
With this option, the opacity is initially set to zero;
if the background color is subsequently changed, however,
the background will no longer be transparent unless the color
definition includes transparency.
Background transparency can also be enabled with the
startup option --bgopacity.
For background transparency in raytraced images,
see the POV-Ray Options
preferences.
- show shadows (true/false)
- display interactive shadows to enhance 3D perception during interactive use
and/or to preview shadow locations before saving a
raytraced image.
The appearance of these interactive shadows is fairly rough, so for saving
images, raytracing is recommended instead.
** On Mac OS 10.4 (PPC, Intel) and 10.5 (PPC):
do not turn on interactive shadows in the X11 version of Chimera,
as this has been observed to freeze the display. **
- multisampling (true/false)
- whether to use multiple samples per pixel so that edges are antialiased
(the default setting depends on the graphics card).
Most modern graphics cards support multisampling, although certain
graphics driver bugs may necessitate turning it off.
Multisampling can also be enabled with the
startup option --multisample.
The Rotation section of the
Viewing Tool controls rotation behavior.
There are several ways to start
Rotation, a tool in the Movement category.
See also: cofr,
set independent
- center of rotation method:
- fixed - at a fixed point relative to the model(s),
see rotation center
- center of models
- at the center of the bounding sphere of the displayed parts of
active models
- independent - a separate center for each model
rather than a single collective center
- center of view - continually adjusted
to the current center of view (in the middle of the window,
halfway between the front and back
global clipping planes)
- front center (default) - when the view is zoomed out,
behaves like center of models;
when the view is zoomed in on parts of items,
behaves like center of view, except the center of rotation
depth (Z-coordinate) is set to that of the frontmost displayed
unclipped atom whose VDW sphere intercepts a line perpendicular to the
screen in the window center.
The center is not updated when only rotations are performed.
- rotation center (X, Y, and Z coordinates
in the laboratory frame of reference)
- editable only when the center of rotation method is fixed,
meaningless when models are set to rotate independently
|
The Side View section of the
Viewing Tool provides a convenient and intuitive way to scale
the view and to control clipping.
There are several ways to start
the Side View, a tool in the Viewing Controls category.
- The yellow square on the left represents the viewer's eye position.
Dragging it horizontally with the left mouse button adjusts the
scale factor.
This does not change the stereo parameter
distance to screen.
Double-clicking the eye position brings up a menu for changing the
camera mode.
- The vertical yellow lines represent the front and back
(hither and yon)
global clipping planes.
Each can be dragged with the left mouse button.
Dragging the hither plane with the middle mouse button
moves both clipping planes in the same direction, while dragging
the yon plane with the middle mouse button
moves the clipping planes in opposite directions.
- The red lines emanating from the eye position show the field of vision.
The lines diverge when perspective is used,
but are parallel in the orthographic projection.
Simultaneously holding down the Shift key reduces the speed
(mouse sensitivity) of dragging operations by a factor of 10.
Clicking
View All turns off global clipping
and adjusts the scale to include everything that is displayed.
Model rotations and translations are not adjusted.
The Clip checkbox indicates global
clipping status (on or off). Cap clipped surfaces... brings up the
Surface
Capping dialog for controlling the appearance of planar
caps where surfaces are sliced away.
The default View is right: it shows the relationship
between the viewer and the Chimera scene from the viewer's right side.
Setting View to top switches to a
top view in which
stereo parameters and perspective can be adjusted interactively.
By default, the miniature display of the Chimera scene
is shown at high resolution, with colors and
representations the same
as in the main display. Using low resolution
simplifies the miniature to molecule chain traces and
surface/object bounding box outlines. Low resolution is
recommended if performance seems slow with larger systems.
The Lighting section of the
Viewing Tool
allows lighting parameters to be changed and saved.
There are several ways to start
Lighting, a tool in the Viewing Controls category.
The interface can be switched among:
The key light is generally the brighter source of light;
the fill light is secondary and serves to reveal areas that would
otherwise be dark (details...).
The lights can be moved interactively by dragging the
solid arrows (red for key, green for fill) on the sphere.
If a light is turned off, its arrow
is not shown. Outlines on the sphere represent directions
that typically give favorable results.
Only the advanced interface
allows turning off a light
or placing it behind the sphere.
The Lights (basic) interface includes:
- brightness (default 1.0;
slider values range from 0.1 to 5.0) - total illumination of the scene
- key-to-fill ratio (default 2.0;
slider values range from 1.0 to 20.0) - what proportion of the total
illumination is contributed by each light
- quality (normal/glossy)
- the glossy setting uses an OpenGL shader to provide per-pixel
lighting, which gives a glossy appearance, and angle-dependent transparency.
This option is grayed out
if not supported by the graphics driver. Mac users should be aware
that on a given machine, the option may be available in the Aqua
version of Chimera but not the X11 version.
With normal lighting,
specular highlights are only calculated at triangle vertices and
linearly interpolated across triangles, and transparent triangles do
not appear more opaque when viewed edge-on as compared to face-on.
Separate but related settings
can be found in the Shininess section.
The Lights (advanced)
interface contains additional parameters of the
current light
(either the key light or the fill light,
depending on which box is checked).
Default settings are indicated in bold.
- active (true/false) -
whether the light is "on."
When the key and fill lights are both inactive, the lighting reverts
to a single white light aimed along the line of sight.
- diffuse color (a color well,
white by default)
- diffuse scale (defaults are
approximately 0.653 for the key light and
0.500 for the fill light) - multiplicative scale factor for the diffuse
light. Possible values range from -5.0 to 5.0, where
negative values result in subtraction of the diffuse light
(see the combination rules).
- specular color (a color well,
white by default)
- specular scale (defaults are 1.0 for the key light and
0.0 for the fill light) - multiplicative scale factor for the specular
light. Possible values range from -5.0 to 5.0, where
negative values result in subtraction of the specular light
(see the combination rules).
A light with a specular scale of 0 will be treated as shadowless
during raytracing.
- direction (X, Y, and Z coordinates; by default, approximately
-0.383,0.707,0.707 for the key light and 0.259,0.259,0.966
for the fill light) - the apparent source location on a unit sphere
with positive X, Y, and Z pointing right, up, and out from the screen.
When the advanced interface
is shown, only the solid arrow representing the
current light can be moved with the mouse,
but it can be moved behind the sphere (not possible when the
basic interface is shown).
Settings in the Lighting tool
collectively define a scheme that can be
named, saved, and later retrieved from the pulldown list
indicated by the solid black triangle next to the Lighting field.
Choosing a scheme from the list automatically applies it to the
view in Chimera. When the name Chimera default is shown, it is only
possible to save to a different name, using Save As....
When another name is shown, it is possible to
- Save the current scheme to the name shown
- use Save As... to save the current scheme
with a new name
- Delete the scheme whose name is shown
Named schemes are saved in the Chimera
preferences
file, and are only updated with any changes
when Save, Save As..., or Delete is used.
The settings in effect when a session is
saved
(whether or not the scheme has a name) are included in the
session file.
The Shininess interface controls the specular parameters of
viewed items (rather than light sources):
shininess, brightness, and the color used for shiny highlights.
Although part of the Lighting tool,
Shininess is also handled
as a separate tool in the Viewing Controls category.
- shininess (30 by default; ranges from 1 to 128) refers to
the "spread" of highlights; lower values yield larger, more diffuse highlights,
while higher values yield more pointlike highlights. Technically,
shininess is the OpenGL specular exponent. The effective highlight
intensity varies as the cosine of the angle between the view direction
and the direction of the reflected light, raised to the power of this exponent.
- specular color
(a color well, a light gray by default)
is the color used for shiny highlights.
It is added to the color that would be shown in the absence of highlights.
If the color is already bright white, highlights will not be discernable;
if the color is nominally green and the specular color is red,
the highlights will appear to be yellow.
This explanation assumes that all light sources are white or gray; however,
lights have their own diffuse and specular colors,
which must be combined with
that of the material.
- brightness (1.0 by default; ranges from 0.1 to 10)
scales the intensity of the specular color components, and
the resulting values may exceed 1.
The Shininess interface
adjusts the material properties of the Chimera default material.
Stick, ball-and-stick, sphere, and ribbon
representations
and MSMS molecular surfaces
use the default material. It is not possible to independently
control the shininess of different models that use the default material.
Except for surfaces generated by
Volume Viewer and
Multiscale Models (for which special code was written),
the properties of models that do not use the default material
(VRML models, for example) are not adjusted.
UCSF Computer Graphics Laboratory / May 2009