|
|||||||||
![]() |
|
||||||||
|
www.sun.com/solaris/opengl
|
Information on OpenGL issues
|
|
www.sun.com/solaris/opengl/download/verify_install.html
|
Information on verifying an OpenGL installation
|
|
www.sun.com/solaris/opengl/download
|
Information on downloading OpenGL
|
The user must register at this site and download four software packages (make sure all four check boxes are selected; one for each package). The required packages are:
SUNWffbglAfter downloading the file, extract the subsets using the tar command, and then run the INSTALL script that comes with the packages.
SUNWglrt
SUNWglrtu
SUNWglwrt
Note: It is very important that the workstation be rebooted after the INSTALL script is completed, as this completes the installation procedure.
In addition, $OPENWINHOME/lib must be added to each user's LD_LIBRARY_PATH variable.
![]()
To get the most accurate information, the following is required:
ultra.diagTo run more comprehensive diagnostics, put in a word after the script file name:
ultra.diag fullAfter this script is run, the following OpenGL demo should be run:
/usr/openwin/demo/GL/ogl_install_check
OpenGL information and updates can be obtained at the following: http://sw.sun.com/solaris/opengl
![]()
After you have the xwd file, you can convert it to an RGB file, using the following command:evzplot -screenDump contour_map.xwd \
-maximize <filename>.plt
fromxwd contour_map.xwd contour_map.rgb
Then you can drape the RGB file, contour_map.rgb, on
the model using the commands on the 3D Viewer's Image menu.
![]()
Dynamic Graphics provides some "gift" utilities in $DGIHOME/ev5/dgi_gifts that can convert from (and to) various commonly used image file formats to the SGI-format image file (often just called "rgb" files since they normally end with the suffix .rgb).
Programs for converting to rgb file format are: fromgif, fromppm, fromsun, fromtiff, fromxwd
Programs for converting from rgb file format to another are: togif, topics, toppm, tops, tosun, totiff, toxwd
In addition, three other useful image utilities are:
- ipaste <file.rgb> - "paste" or display an image file.
- istat <file.rgb> - gives statistics, such as the height and width in pixels, for the image file.
- izoom <infile> <outfile> <xscale> <yscale> - scale an image file by user-specified X and Y scale factors, and output to a separate image file.
racerx 1316% evview -h
Usage: evview files -options
FILES (Used for sequencing, not for simultaneous display)
<Faces file> (.faces
suffix)
<2-D grid file> (.2grd
suffix)
<3-D grid file> (.3grd
suffix)
<Scattered data file> (.dat,
.pdat, .path suffixes)
(A single Vue file can follow one of the above data files):
<Faces Vue file> (.vue
suffix)
<2-D grid Vue file> (.2gvue
suffix)
<3-D grid Vue file> (.3gvue
suffix)
<Scat data Vue file> (.dvue
suffix)
(A single file containing a list of files to load):
<Display list file> (.dlist
suffix)
(simple list of files)
<Script file> (.script
suffix)
(uses
specific keywords)
OPTIONS
-c Use
large arrow cursor
-d Print
data fields used and exit
-dual Enable
dual screen
display
(if available)
-env Print
all environment
variables and exit
-feature <feature> Requested
license feature
-h Print
this message
-m Omit
menu panel display
-ml Display
menu panel on
left side of screen
-mr Display
menu panel on
right side of screen
-si <directory> Input
Vue files for
synchronized 3D Viewers
-so <directory> Output
Vue files for
synchronized 3D Viewers
-symbolFile <file> Specify
symbols file for annotation
-V Print
version and exit
-v '<param> <value>' Set
a single Vue file parameter
-vo <file> Output
named Vue file
after each redraw
The FILES section that describes which types of EarthVision data files can be viewed in the 3D Viewer, what the associated vue files are for each model, and how the models can be sequenced.
Following the FILES section is an OPTIONS section that describes individual settings for enabling a particular feature, e.g, a dual-headed display or toggling on the large arrow cursor.
The -env option lists all the environment variable settings that can affect the 3D Viewer. This command is described in more detail in the environment variable settings FAQ list item.
The -d option lists all the scattered data field names that the 3D Viewer reads in and recognizes as "special." EarthVision has a large number of data field names, but currently the 3D Viewer only reads in a subset of these (X, Y, Z, P, LINEID, etc.) These values in these fields can be directly edited, displayed in the 3D Viewer information box, or utilized in some manner in the display of the point, e.g., color or size.
![]()
1) setenv DGIDEBUG
The 3D Viewer prints out the arguments passed to it, as well as any arguments passed to other programs called from within the 3D Viewer (e.g., "evdwddisplay", "evtieline", "izoom", "ev_slice", "ev_wellpath", "ev_conv").
2) setenv DGIPRINTER <printer_name>
Setting this variable causes the 3D Viewer to bypass the pop-up menu of available printers and use the specified printer instead. For example, DGIPRINTER could be set to "tekpr" so that the 3D Viewer uses the printer command: lp -dtekpr test.rgb.
3) setenv DGI_DEFAULT_BOLD_WIDTH <num>
Changes the default bold width for annotation lines, in plot page units. For example, DGI_DEFAULT_BOLD_WIDTH could be set to 0.03 inches. The line widths are drawn as follows:4) setenv DGI_DEFAULT_LINE_WIDTH <num>line width pixel width
---------- -----------
<= 0.01 1
> 0.01 && <= 0.02 2
> 0.02 && <= 0.03 3
> 0.03 4
Changes the default line width for annotation lines, in plot page units. For example, DGI_DEFAULT_LINE_WIDTH could be set to 0.03 inches. The line widths are drawn as follows:line width pixel width
---------- -----------
<= 0.01 1
> 0.01 && <= 0.02 2
> 0.02 && <= 0.03 3
> 0.03 4
5) setenv EV_DISABLE_OVERLAY
If a machine has overlay capabilities, setting this environment variable disallows the 3D Viewer from making use of these. Occasionally, hardware bugs involve overlay planes, and this environment variable allows the 3D Viewer to forgo using them (primarily used for testing purposes).
6) setenv EV_DISABLE_SLICE
When loading an unsliced faces file, the ev_slice program is called for calculating the exterior slices of the model. If ev_slice returns an error due to bad polygons being generated (e.g., concave), normally, the 3D Viewer indicates that slicing failed and does not load the file. Setting this variable allows the 3D Viewer to continue anyway, at the expense of possibly rendering some polygons incorrectly.
7) setenv EV_ENABLE_EQFOCI
Setting this variable enables the Earthquake Foci menu and two associated toggle buttons. It also allows scattered data files with the following fields to be read and drawn as "beach balls", or bi-colored spheres, oriented in the direction as specified by these six fields:TPLUNGE, TAZIM, PPLUNGE, PAZIM, NPLUNGE, NAZIM
8) setenv EV_ENABLE_HI_RES_OUTPUT
This environment variable must be set in order to have the high-resolution output function. On Sun Ultra Creator3D systems, the high-resolution output function requires a large amount of swap space, and can be quite slow.
9) setenv EV_STEREOINWIN_FORMAT <format>
On SGI systems that allow for separate stereo buffers (also known as "Stereo-in-window"), this environment variable specifies the video format to use when entering stereo mode. The default format is 1024x768_96s, which indicates a change of screen resolution to 1024 x 768 and a frequency rate of 96 HZ.
10) setenv EV_STEREONONE_FORMAT <format>
On SGI systems that allow for separate stereo buffers (also known as "Stereo-in-window"), this environment variable specifies the video format to return to after leaving stereo mode. The default format is 72HZ.
11) setenv EV_ZBUF_PRIORITY
If the eye point is very close to the look point (i.e., the 3D Viewer is zoomed way in on a surface or point), setting this parameter will give the best Z-buffer resolution at the expense of possible clipping objects far in the distance.
12) setenv PRINT_SCRIPT <directory_path>
Setting this variable will cause the 3D Viewer to call the specified program when printing the screen image to a printer, instead of using the default directory $DGIHOME/bin/printer_script.
setenv DISPLAY :0.0
evview -dual -display :0.1
These commands temporarily set all EarthVision modules and the 3D Viewer menus to appear on one screen (screen 0) and the 3D Viewer model window to appear on the other screen (screen 1).
To make these changes "permanent," these commands can also be added to the $DGIHOME/ev5/etc/dgi.evrc.custom file (a copy of the $DGIHOME/ev5/etc/dgi.evrc file must be made and renamed as $DGIHOME/ev5/etc/dgi.evrc.custom if a dgi.evrc.custom file does not already exist). The following line can be either edited or copied and renamed (as shown below; the 3D Viewer option name is changed):
"3D Viewer" _V f.checkexec "evview"
"3D Viewer" _V f.checkexec \
"evview"
"3D Viewer Dual Display" _D f.checkexec \
"evview -dual -display :0.1"
When using the 3D Viewer Dual Display function, the DISPLAY would have to be set to :0.0.
These changes cause the 3D Viewer to come up on the second screen only when the 3D Viewer is started from the Visualization pull-down menu in the main EarthVision window. To have the 3D Viewer model window start up on screen 1 whenever any 3D View push button in EarthVision is selected, the $DGIHOME/ev5/app-defaults/EarthVisionCommon file must be edited and the following line must be changed from
*evviewr: evview
*evviewr: evview -dual -display :0.1
When one of the screens is 24 inches with 1600x1200 resolution, the screens have a letterbox opening making the EarthVision menus squished. Many possible solutions are available for solving this issue; one solution follows; however, contact Technical Support for more examples.
-hw board=0,right=1 -hw board=1,left=0
In other words, board 0 is at the right of board 1, and board 1 is at the left of board 0.
The /usr/var/X11/xdm/Xservers file must be edited and the line similar to the one below:
:0 secure /usr/bin/X11/X -nobitscale -c \
-pseudomap 4sight -solidroot sgilightblue \
-cursorFG red -cursorBG white
:0 secure /usr/bin/X11/X -nobitscale -c \
-pseudomap 4sight -solidroot sgilightblue \
-cursorFG red -cursorBG white -hw \
board=0,right=1 -hw board=1,left=0
(to have the Creator3D/Elite3D on screen 0 and the TGX board on screen 1)/usr/openwin/bin/openwin -dev /dev/fb0 \
-dev /dev/cgsix0
or
(to have the Creator3D/Elite3D on screen 1 and the TGX board on screen 0)/usr/openwin/bin/openwin -dev /dev/cgsix0 \
-dev /dev/fb0
By default (as discussed earlier), all EarthVision modules and the 3D Viewer come up on the screen to which the DISPLAY is set. In order to have all EarthVision modules appear on one screen (with the TGX board) and the 3D Viewer to appear on the other screen (with the Creator3D or Elite3D board), the following commands must be typed:
setenv DISPLAY :0.0 (where screen 0 has the TGX board)
evview -display :0.1 (where screen 1 has the Creator3D/Elite3D board)
If screen 0 has the Creator3D or Elite3D board, then the "0.0" and "0.1" in the above commands must be reversed.
These commands temporarily set all EarthVision modules and the 3D Viewer menus to appear on one screen (screen 0) and the 3D Viewer model window to appear on the other screen (screen 1).
To makes these changes "permanent," these commands can also
be added to
the $DGIHOME/ev5/etc/dgi.evrc.custom file (a copy of the
$DGIHOME/ev5/etc/dgi.evrc file must be made and renamed
as $DGIHOME/ev5/etc/dgi.evrc.custom if a dgi.evrc.custom
file does not already exist).
The following line can be either edited or copied and renamed (as shown below; the 3D Viewer option name is changed):
"3D Viewer" _V f.checkexec \
"evview"
"3D Viewer" _V f.checkexec \
"evview"
"3D Viewer Dual Display" _D f.checkexec \
"evview -display :0.1"
When using the 3D Viewer Dual Display function, the DISPLAY would have to be set to :0.0.
(Again, the above commands assume that the Creator3D or Elite3D board has been set to screen 1.)
*evviewr: evview
*evviewr: evview -display :0.1
[Home]
[Corporate]
[Events & News]
[EarthVision] [Support]
[Services] [Contact
Us]
© 1999-2007 Dynamic Graphics, Inc. All
Rights Reserved. Legal Notices.
See Legal Notices for appropriate copyright trademark legend.
Feedback: webmaster@dgi.com
Last updated: March 22, 2007