Here is a repository of previously answered questions.
Question. How do I get high quality output from Cmiss.
Answer. There are a number of things you can do to improve image quality from the gfx print command. Most of them make rendering slower, but hey, this is *final* output!
If you want to print larger than this you will need a larger display.
To do this you can run Xvfb in memory, emulating a display of arbitrary size.
Xvfb is available with most linux distributions and I have managed to compile aversion for IRIX. This also means that you can run cmgui as a batch process on machines without normal graphics.
Run Xvfb to create a display as large as you want,
Xvfb :4 -screen 0 4096x4096x24 &
where :4 specifies the number of the display which must be unique amongst all the users of the computer and the -screen parameters specify that screen 0 is 4096 pixels wide by 4096 pixels high by 24 depth planes. These depth planes apply just to X and so 24 is 8bits for red, green and blue. The depth buffer and alpha channel are extra to this. You will need to leave this running in the background while you use it as your display but remember to destroy it later, these displays can use a lot of resident memory even when not being used.
Set display to your newly running display, everything you do with X windows from now on will be displayed on this invisible display, in csh and tcsh, and assuming you just made display 4,
setenv DISPLAY :4.0.
Now you can run cmgui and print a window as nearly as big as your screen. You will want to have your comfile all set up as you can't use any of the graphical tools, these will all just appear on your invisible display. When you run cmgui you may want to add the -batch command line parameter, this means that the output that would have gone to the invisible command window actually comes to the still visible shell, it also quits as soon as the command line comfile is completed. If you are creating a very large image, greater than about 4096x4096, a 32bit cmgui may be insufficient, on the sgi you can get a 64bit version cmgui64.
Finally, you may need to override your OpenGL implementation. If you are using an executable that normally expects GLX to be part of the X Display then it will fail when you try to run. (with errors such as "Missing GLX server extension"). To fix this you can use the MesaGL libraries instead, to override the OpenGL you use at run time in IRIX set your LD_LIBRARY_PATH environment variable to point to a directory where you have Mesa3D libraries. Additionally Mesa3D has a hardcoded maximum viewport/image size (Version 3.4 had 2048x1024), if you compile one yourself you will have to ensure that this is changed to be as large as you require. These are the lines from config.h in version 3.4
/* Maximum viewport/image size: */
#define MAX_WIDTH 2048
#define MAX_HEIGHT 1024
setenv LD_LIBRARY_PATH /usr/local/Mesa-3.4/lib32/
I compiled these libraries with a maximum width and height of 10240
It could take a minute or more depending on the image you are rendering... work out how long it takes to render the window at a certain size with antialiasing on, and scale it by the size you give in step 6.
You should be pleased with the result!
You may wish to use imgworks or gimp to save in another format from SGI-only RGB, eg. compressed TIF (not lossy), GIF (lossy but good for line/cartoon images with limited numbers of colours) or JPEG (lossy but good for photos and images with smooth colour changes) depending on the file size you want to keep. Note jpg files can be saved at various quality levels.
Question. Is there a quick key from getting from node or data select mode to transform mode?
Answer. Yes. The control key toggles you quickly into transform mode.
Last modified: Thu May 25 10:10:17 NZT 2000