tl@censun1.UUCP (SSUID Tin Li) (06/12/91)
With the X11R4 server from Silicon Graphics, we are able to allocate only sixteen colors using the default Colormap. Does anyone have similar problem? Is it a known problem? Is there a easy work around? Thanks in advance. Tin Li Century Computing, Inc email: tl@bat.gsfc.nasa.gov or tl@cen.com
mikey@eukanuba.wpd.sgi.com (Mike Yang) (06/13/91)
In article <598@censun1.UUCP>, tl@censun1.UUCP (SSUID Tin Li) writes: |> With the X11R4 server from Silicon Graphics, we are able to allocate |> only sixteen colors using the default Colormap. Does anyone have |> similar problem? Is it a known problem? Is there a easy work |> around? This is not a problem, but a "feature." Since GL and X programs must share the same hardware colormap, and GL programs tend to expect that the colormap is populated by certain colors, the default behavior of the X server is to preallocate all of the colormap cells except for sixteen of them. Therefore, GL programs tend to display in the correct colors while X programs have only sixteen to play with. If you run predominately X programs and/or you want your X programs to display in their true colors at the expense of GL programs, you can start your X server with the -gl switch which will cause it to only preallocate sixteen colors. To make this the default, create a ".xSGINeWS.cmd" file in your home directory and put this in it: /usr/bin/X11/Xsgi -bs -gl -su ----------------------------------------------------------------------- Mike Yang Silicon Graphics, Inc. mikey@sgi.com 415/335-1786
fouts@teehee.dallas.sgi.com (Christopher L. Fouts) (06/13/91)
In article <598@censun1.UUCP>, tl@censun1.UUCP (SSUID Tin Li) writes: |> With the X11R4 server from Silicon Graphics, we are able to allocate |> only sixteen colors using the default Colormap. Does anyone have |> similar problem? Is it a known problem? Is there a easy work |> around? You can specify the colormap behavior when you start up Xsgi. Check out the man page for Xsgi and notice the descriptions for the -pseudo, -static, -gl, and -envm. If you start Xsgi automatically in you user.ps file with startXsgi, you can specify the argument to Xsgi in $HOME/.xSGINeWS. See the man page for xstart. You won't see this problem under 4.0. -- Chris Fouts email: fouts@dallas.sgi.com Systems Engineer vmail: 8714 SGI - Dallas phone: 214-788-4122 "To me, boxing is like a ballet except that there is no dancing, no choreography, and the dancers hit each other." - Saturday Night Live