Cerius2 Modeling Environment |
This section explains
This section contains information on:
The basics of starting Cerius2 and using its interface are demonstrated in Introducing Cerius2 and described in The Cerius2 Interface.
You need to know how to build (Basic building) and/or load (Loading model structure files) models. You should know how to select atoms in model(s) (Selecting atoms and groups of atoms) and how to position models on the screen (Moving models on the screen).
If your session contains several models, you should know how to specify the current model (Specifying the current model) or select atoms in more than one model simultaneously (Selecting atoms in several models).
Cerius2 provides several methods of changing the colors of atoms according to their element type and other properties.
Model display colors
This section includes information on:
Related information
Displaying labels and other information about atoms in a model is presented under Labels.
Saving nondefault settings for later use is described under Working with Cerius2 sessions.
Default element colors
To help in understanding models, atoms are colored according to their element, For example, carbon is dark grey, hydrogen is white, and oxygen is red. You may want to change these colors, for instance if you change the background color of the model display window (Background color in model window).
Select the Build/Element Defaults... menu item from the main Visualizer control panel to access the Edit Elements control panel. If desired, access the Periodic Table window by clicking the periodic table tool in the upper right of this control panel.
Enter the desired element in the Current Element entry box, either by typing it in or by choosing it from the Periodic Table window.
A tutorial example of using the Edit Elements control panel to change default element colors is found under Changing atom colors.
Please see the on-screen help for details on the functioning of each control in the Edit Elements control panel.
Coloring selected objects
You can specifically color selected atoms and other objects (such as annotations, see Custom annotations) by one of several coloring methods.
To color selected atom(s) or other object(s) with a predefined color, you can:
To mix your own colors for selected atom(s) or other object(s), select the View/Colors... menu item to access the Color Selected Objects control panel.
To choose colors for selected atom(s) or other object(s) from a range of colors, select the View/Colors... menu item to access the Color Selected Objects control panel. Click the Color Ranges... pushbutton to access the Color by Range control panel.
To set selected atom(s) or object(s) back to their default colors, select the View/Colors... menu item to access the Color Selected Objects control panel.
You can also access the Color Selected Objects control panel by selecting the Build/Annotations... menu item to access the Annotation control panel, then clicking the More Colors... pushbutton. |
Please see the on-screen help for details on the functioning of each control in the Color Selected Objects control panel.
Coloring atoms by properties
Cerius2 enables you to color atoms according to properties such as charge, whether atoms are fixed or moveable, mass, radius, etc., as another aid to abstracting information from your model.
Select the View/Colors... menu item on the main Visualizer control panel to access the Color Selected Objects control panel. This control panel can also be accessed by selecting the Build/Annotation... menu item and then clicking the More Colors... pushbutton in the Annotation control panel.
To color atoms according to a property, simply select them and choose the desired property from the Color by a Property list in the Color Selected Objects control panel.
Coloring a model according to multiple maps
To color selected atoms according to a cascading series of property color maps, click the Multiple Mappings... pushbutton in the Color Selected Objects control panel to access the Multiple Color Mappings control panel.
Returning to default atom coloring scheme
To return selected atoms to their default element colors, click the Reset selected object colors to default action button in the Color Selected Objects control panel. You also can set the Pen popup to DEFAULT (or click this popup if it is already set to DEFAULT).
A tutorial example of using the Color Selected Objects control panel to color atoms according to a property is found in Coloring atoms according to a property.
Please see the on-screen help for details on the functioning of each control in the Color Selected Objects control panel.
Background color in model window
You may want to change the background color in the model window to enhance the appearance of the model or because you may require a light background.
To change the color of the model window background from the default black to something else, select the Utilities/Customize/Pen Colors... menu item to access the Pen Colors control panel.
To change the background to white, black, or one of two shades of grey, choose the desired color from the Background popup.
To improve the appearance of your model after you change the background color or to, for example, enable hydrogens to be seen against a white background, you can use the lighting controls (Lighting control) and/or change selected object colors (Coloring selected objects) or default element colors (Default element colors). |
Please see the on-screen help for details on the functioning of each control in the Pen Colors control panel.
Cerius2 provides several ways of customizing the use of colors in the model window.
Customizing display colors
This section includes information on:
Select the Utilities/Customize/Pen Colors... menu item on the main Visualizer control panel to access the Pen Colors control panel.
To display a window showing all currently defined standard colors, click the Show Current Pens action button. A Cerius2 Graphs window appears, showing all 16 pen colors.
The appropriate color changes when you redefine a color (next paragraph).
To change one of the predefined colors, choose its name from the Pen popup in the Pen Colors control panel and use the red, green, and blue sliders (or the entry boxes below them) to set the proportions of red, green, and blue in the final color. (You cannot, however, change the name used for that color.)
To return a single pen color to its default value, choose its name from the Pen popup and click the Reset Pen to Default action button.
You can also define a new set of pen colors in the same way as color ranges are created (Color ranges). |
Please see the on-screen help for details on the functioning of each control in the Pen Colors control panel.
Color ranges
A color range is a set of colors that you apply or that Cerius2 automatically applies to various properties and data values. You can create and edit color ranges.
Customized color ranges are useful for tasks such as:
This section includes information on:
Concepts
Viewing color ranges
You can display a color range in the model window by selecting the Utilities/Customize/Color Ranges... menu item from the main Visualizer control panel to access the Edit Color Ranges control panel. Then choose a color range from the Color Range popup and check the Show Color Range check box.
The numbers of the critical entries are displayed alongside the critical entries in the displayed range, facilitating their identification.
To apply a color from a range to an object in the model window, see Choosing colors from a color range. (You can select a color from a color range by specifying the number of the entry (whether critical or noncritical) that corresponds to the position of the color in the range.)
Creating and editing a new color range
Accessing the tools
Select the Utilities/Customize/Color Ranges... menu item from the main Visualizer control panel to access the Edit Color Ranges control panel. Alternatively, if you have the Color Selected Objects control panel open (Accessing the tools), you can click its Color Ranges... pushbutton to access the Color by Range control panel and then click the Edit Ranges... pushbutton to access the Edit Color Ranges control panel.
Type a name in the New entry box. Enter it by pressing <Enter> on the keyboard or clicking elsewhere in the control panel. Default values appear for the number of colors in the range and the numbers of the critical entries.
Choose the number of color entries from the Number of colors in range pulldown. More numbers give you smoother color gradations, but you shouldn't set the number so high that it's beyond of your computer's graphics capability.
You can display your new color range at any time (see Viewing color ranges), to help in defining it. The display is updated as you change the definition of the color range. |
Add an additional critical color, if desired, by entering its position in the entry box for Add a new critical color and then defining the color by using the sliders. If you subsequently decide to increase the number of entries in the range, critical colors in the interior of the range maintain their approximate relative positions (for example, a critical entry at position 7 in a 16-color range becomes position 14 if you increase the number of entries to 32).
You can save a custom color range by saving the current Cerius2 session (see Saving the current session).
Please see the on-screen help for details on the functioning of each control in the Edit Color Ranges control panel.
Editing a color range
Select the Utilities/Customize/Color Ranges... menu item from the main Visualizer control panel to access the Edit Color Ranges control panel. Alternatively, if you have the Color Selected Objects control panel open (Accessing the tools), you can click its Color Ranges... pushbutton to access the Color by Range control panel and then click the Edit Ranges... pushbutton to access the Edit Color Ranges control panel.
Choose the name of the range you want to edit from the Color Range popup. The current values for the number of colors in the range and the numbers of the critical entries appear. The color definitions appear in the sliders when you choose a critical entry from the Edit Critical Color Entries list.
Edit the color entries by the same procedure as used in creating a color range (Creating and editing a new color range).
You can also use the Edit Color Ranges control panel to delete or rename an entire color range or to remove a selected critical color. (You should not delete either of the end colors.)
Please see the on-screen help for details on the functioning of each control in the Edit Color Ranges control panel.
Property-color mapping
A color map is a definition of how a quantitative (continuous, numerical) property maps to a specified color range or how a qualitative (binary, on/off) property maps to a set of two colors.
Customized color maps are useful for tasks such as:
This section includes information on:
Related information
Labeling atoms according to various properties is discussed under Labels.
Color mapping makes use of color ranges, so you should have some familiarity with them (Color ranges). In addition, you may want to define custom color ranges to use in your maps (Creating and editing a new color range).
Creating and editing a binary property color map
Accessing the tools
Select the Utilities/Customize/Color Mappings... menu item from the main Visualizer control panel to access the Edit Color Mappings control panel. Alternatively, if you have the Color Selected Objects control panel open (Accessing the tools), you can click its Edit Mappings... pushbutton to access the Edit Color Mappings control panel.
Type a name in the New Map entry box. Enter it by pressing <Enter> on the keyboard or clicking elsewhere in the control panel.
Identify what type of property is to be mapped, by choosing an item from the Attribute popup in the Edit Color Mappings control panel.
Set the color popups to the desired colors for the "on" and "off" values. You can also choose to color only the "on" or "off" value by setting the other to Use As-is.
If the map is already applied to your model, any changes you make to the on and off colors appears immediately in the displayed model.
If you want some color that's not available in the popups, click the More On Colors... or More Off Colors... pushbutton to access the On Color Selection or Off Color Selection control panels, respectively.
You can save a custom color map by saving the current Cerius2 session (see Saving the current session).
Please see the on-screen help for details on the functioning of each control in the control panels mentioned in this section.
Creating and editing a continuous property color map
Accessing the tools
Select the Utilities/Customize/Color Mappings... menu item from the main Visualizer control panel to access the Edit Color Mappings control panel. Alternatively, if you have the Color Selected Objects control panel open (Accessing the tools), you can click its Edit Mappings... pushbutton to access the Edit Color Mappings control panel.
Type a name in the New Map entry box. Enter it by pressing <Enter> on the keyboard or clicking elsewhere in the control panel.
Identify what type of property is to be mapped, by choosing an item from the Attribute popup in the Edit Color Mappings control panel.
Set the Minimum and Maximum Attribute Values between which the color map's range is to extend.
Coloring the values within the range
Decide what part of what color range to apply to the range of mapped property values by choosing the range's name from the Use Range popup and entering the Minimum and Maximum range-color entry numbers (in the Color Scheme section of the control panel). If you want to use the color range in reverse order, make the "maximum" smaller than the "minimum".
Use the Outlier... buttons to access Outlier Handling control panels that govern how values beyond the minimum and maximum values are displayed.
You can save a custom color map by saving the current Cerius2 session (see Saving the current session).
A tutorial example of using the Edit Color Mappings control panel to create a color map of atomic mass is found in Coloring atoms according to a property.
Please see the on-screen help for details on the functioning of each control in the control panels mentioned in this section.
Editing a property color map
Accessing the tools
Select the Utilities/Customize/Color Mappings... menu item from the main Visualizer control panel to access the Edit Color Mappings control panel. Alternatively, if you have the Color Selected Objects control panel open (Accessing the tools), you can click its Edit Mappings... pushbutton to access the Edit Color Mappings control panel.
Choose the name of the map you want to edit from the Mapping popup. Its current defining parameters appear in the control panel.
Edit the map definitions by the same procedure as used in creating a color map (Property-color mapping).
You can also use the Edit Color Mappings control panel to delete or rename a color map.
Please see the on-screen help for details on the functioning of each control in the Edit Color Mappings control panel.
Various Cerius2 application modules (for example, Receptor, CASTEP UI, Gaussian UI, and MOPAC UI) enable you to generate surfaces and then adjust their transparency.
Surfaces--style and transparency
How to create surfaces is found in the documentation for the relevant application modules.
To set the style with which surfaces are made transparent, select the View/Display Attributes... menu item to access the Display Attributes control panel.
Cerius2 provides two methods for applying transparency to surfaces.
Please see the on-screen help for details on the functioning of each control in the Display Attributes control panel.
Cerius2 has enhanced lighting capability that also can aid in understanding your model's 3D structure and in spotlighting certain features.
Lighting control
If you prefer to learn by doing, you can skip the following discussion of concepts and proceed to Accessing the tools.
This section includes information on:
Related information
Setting the graphical quality and screen resolution is discussed under Resolution and graphical quality. The screen coordinate axes are shown in Figure 3.
An understanding of the following concepts can help you use the lighting controls effectively:
The book by Neider et al. (1993) contains a good discussion of lighting that can help in understanding and using the Cerius2 lighting controls.
Select the View/Graphics/Lighting... menu item to access the Lighting control panel. Unless you also have a solid surface displayed, make sure your model is displayed in some style other than stick or trace (Atom and bond display styles), since lighting has no effect on lines or points.
A tutorial example of using the lighting controls to illuminate a model is found under Lighting your model.
Please see the on-screen help for details on the functioning of each control in the control panels mentioned in this section.
Adjusting global light settings
Two-sided lighting
To light both the inside and outside of models displayed in cylinder style (Bonds as cylinders) or both sides of solid surfaces (e.g., such as those produced with one of the quantum chemistry modules), check the Two Sided Lighting check box. (This control has no effect with ball or ball-and-stick display styles.)
To change your virtual viewing position, check or uncheck the Local Viewer check box. Depending on the type of model, display style, and light position(s), the model may or may not look better with local viewing. However, graphics speed can be noticeably slower with Local Viewer enabled.
To change the brightness of the ambient light, adjust the Gray control. This affects only the global ambient light, which does not have any discrete light source.
Defining discrete light sources
You can illuminate your model with one or more discrete light sources, to spotlight various features and to dramatize its appearance.
First, choose which light source to define or redefine from the Light popup on the Lighting control panel (see Accessing the tools) and check the Enabled check box to turn it on. Turn off other lights if you want to see the effects of only the light you are defining.
This section includes information on:
Click the Color... pushbutton on the Lighting control panel to access the Lightsource Colors control panel.
To change the brightness of the Ambient, Diffuse, and Specular components of your light source, adjust the appropriate Gray control in the Lightsource Colors control panel.
In general, the ambient component affects the contrast (how flat or 3D the model appears), and the relative amounts of the specular (highlighting) and diffuse components affect how shiny or matte the object appears (see Concepts for more details).
Directional lights
Directional lights give overall illumination of a scene from a particular direction (Concepts).
To set up a directional light (located at infinity), click the Position... pushbutton in the Lighting control panel to access the Lightsource Position control panel.
You can change the direction from which the light illuminates the model by using any combination of the X, Y, Z, Latitude, and Longitude controls (the Radius control is ignored, since the a directional light is, by definition, located at infinity).
To set up a positional light (located within the scene), click the Position... pushbutton in the Lighting control panel to access the Lightsource Position control panel.
You can change the light's location by using any combination of the X, Y, Z, Latitude, Longitude and Radius controls.
To help in assessing the size of your viewing area, you can select the View/Options... menu item to show a scale bar in the model window. |
Spotlights
Positional lights can be made into spotlights, which can highlight various features by illuminating only a small part of your model with a cone of light. (Directional lights cannot become spotlights, since they are located at infinity and their rays are therefore parallel--Concepts.)
To convert a positional light (Positional lights) into a spotlight and adjust the spotlight, click the Spotlight... pushbutton in the Lighting control panel to access the Spotlight Settings control panel.
To control the width of the spotlight, adjust the Cutoff control. A value of 180° means the positional light is not a spotlight, and only cutoff values between 0° and 90° have any meaning (see Figure 5).
It can be helpful to use a very wide beam at first (Cutoff set to 90°), adjust the spotlight direction (Aiming the spotlight), and then narrow the beam. Otherwise, you can narrow the beam so much that none of its light hits the model. |
To illuminate the model, a spotlight not only has to be located at the desired position (as defined and displayed in the Lightsource Position control panel, Positional lights) but also needs to be pointed in the correct direction.
To adjust the direction in which the spotlight shines, use the Spotlight Direction controls in the Spotlight Settings control panel. You would generally want the direction to proceed from the position of the spotlight towards the model.
Then you can narrow the cutoff, and iterate using the Cutoff and Spotlight Direction controls (in the Spotlight Settings control panel), as well as the position controls (in the Lightsource Position control panel), until the light shines exactly where you want it.
If the edges of the illuminated area appear too jagged, you can increase the display resolution (see Object resolution).
Light attenuation
Positional lights (Positional lights) (whether or not they are also spotlights, Spotlights) can be attenuated to make objects that are closer to the light source appear brighter than those farther away (Concepts).
Click the Attenuation... pushbutton in the Lighting control panel to access the Lightsource Attenuation control panel.
To make the relative brightness a linear function of the distance of an object from the light source, enter a nonzero value for the Linear factor.
Cerius2 provides a rendering facilities that enable you to produce high-quality 3D images of specified models and atoms. Two rendering facilities are provided: RayTrace and PSYCHO (PostScript utilitY for Color Hardcopy Output).
Rendering and ray-tracing
Regardless of the display style that you have selected, RayTrace uses the ball display style (Atoms as balls) and the currently defined default element colors to render atoms as van der Waals spheres. The lighting controls (Lighting control) do not affect ray tracing at this time.
The rendered image appears in a separate Cerius2 window called the Cerius2 Ray Tracing window. The bitmapped image displayed in this window cannot be manipulated or printed. However, you can use a third-party screen-capture utility or print utility to capture or print the rendered image. You can also save the intermediate files that are used in producing the ray-traced image.
PSYCHO produces an encapsulated PostScript file and enables more flexibility than RayTrace in defining the output. PSYCHO reads atom and bond information and can generate color or gray-scale images of spheres, cylinders, and polyhedra and can label atoms with any text strings. PSYCHO also plots any isosurfaces that are present on the model (such as orbitals), although this creates significantly larger output files.
The Cerius2 PSYCHO control panels also give you access to the PSYCHO input file and options so that you can experiment with more complex PSYCHO renderings.
Select the View/Rendering... menu item to access the Render Models control panel. Click the Preferences... pushbuttons on that control panel to access the Psycho Preferences and Raytrace Preferences control panels.
Use the Render Models control panel to specify the model(s) and atoms that you want to be rendered, as well as the rendering method.
Please see the on-screen help for details on the functioning of each control in the Render Models, Raytrace Preferences, Psycho Preferences, and More Psycho Options control panels.
In stereoscopic viewing mode, an impression of three-dimensionality can be achieved by using an appropriate stereo viewer or (if you can manage it) by crossing your eyes.
Stereo viewing
Select the View/Graphics/Stereo... menu item to access the Stereo control panel.
Two stereo viewing methods are available, each producing dual images of the current model (or models, if in overlay mode, see Controlling model visibility and the display mode) in a slightly different orientation:
Keyboard shortcuts
To toggle between mono and stereo display, press <F4>.
Use of the left mouse button for selection is disabled during full-screen stereo viewing. |
You may find that the stereo option works better for you if you view the model in perspective projection (Projection).
Please see the on-screen help for details on the functioning of each control in the Stereo control panel. Mouse functions and keyboard shortcuts are summarized in Mouse and Keyboard Actions.