home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12728 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  3.9 KB

  1. Path: sparky!uunet!olivea!decwrl!mips!odin!fido!fangio.asd.sgi.com!rck
  2. From: rck@fangio.asd.sgi.com (Robert Keller)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: Hardware/Colormap differences?
  5. Message-ID: <orssks0@fido.asd.sgi.com>
  6. Date: 21 Aug 92 16:58:17 GMT
  7. References: <Bt8zts.EFz@news.cso.uiuc.edu>
  8. Sender: news@fido.asd.sgi.com (Usenet News Admin)
  9. Organization: Silicon Graphics, Inc., Mountain View, CA
  10. Lines: 77
  11.  
  12. In article <Bt8zts.EFz@news.cso.uiuc.edu> dweber@ncsa.uiuc.edu writes:
  13. >When I run this on the VGX, unless the mouse is in the window, the first N
  14. >(128?) polygons are weird colors.  Once the mouse is moved into the window,
  15. >the polygons are correctly colored, but now the rest of the screen's colors
  16. >are freaky.
  17. >
  18. >When I run this program on our Indigo, the colormap is loaded correctly and
  19. >the gl window gets filled with grayscale polygons, as it should *WITHOUT*
  20. >the rest of the screen changing!  
  21.  
  22. The VGX and Indigo have two completely different graphics architectures.
  23. One on the differences includes the way colourmaps were implemented.  
  24.  
  25. X allows applications to thinks of colourmaps as exclusive resources, ie
  26. everyone can have their own.  Once you get down to implementing this on 
  27. hardware, the hardware constrains dictate what happens.
  28.  
  29. The VGX has one hardware colourmap to share amoung all its windows 
  30. (and visuals).  Naturally, only one colourmap can be truly be installed 
  31. at a time.    
  32.  
  33. The Indigo (entry, XS, XS24, elan) has multiple hardware colourmaps.  This 
  34. means that two (or more) X colourmaps can be simultaneously installed in 
  35. the hardware.
  36.  
  37. Your observations lead me to believe that you are asking for more than
  38. one X colourmap to be installed at a time.  Since the "colourmap focus"
  39. follows the pointer (in 4Dwm), whichever window you move into gets its 
  40. colourmap installed on the VGX, thus causing "flashing".  The Indigo 
  41. has multiple hardware colourmaps, therefore your X colourmaps can live 
  42. in the hardware concurrently.
  43.  
  44. >I *want* to be able to change the gl colormap *without* the rest of the 
  45. >screen flaking out.
  46.  
  47. There is hope, you could try using X and GL colourmap entries that do 
  48. not conflict with each other.  There is an optimization in the colourmap
  49. installation code that causes unallocated X colourmap entries not to 
  50. be installed in the hardware.  This pretty "hit-and-miss".
  51.  
  52. An even better option would be to investigate the "-pseudomap" option to 
  53. the X server.  The relevant sections of the Xsgi(1) man page is included 
  54. below:
  55.  
  56.           -pseudomap string
  57.                   tells how to initialize default PseudoColor
  58.                   colormaps.  String must be one of gl, envm, pseudo,
  59.                   or 4sight.  The setting determines the number of
  60.                   cells preallocated by the server for sharing
  61.                   ReadOnly by clients.  All preallocated cells contain
  62.                   colors which match those in the default GL
  63.                   "colorindex" colormap.  If more cells are
  64.                   preallocated, the default map and maps used by the
  65.                   GL will match better, but fewer cells will be
  66.                   available for allocation by clients.  gl
  67.                   preallocates cells 0-15.  envm preallocates cells
  68.                   0-15 and 32-255.  pseudo preallocates only
  69.                   WhitePixel and BlackPixel.  4sight preallocates 0-15
  70.                   and 32-55.
  71.  
  72.  
  73. Or, you could investigate changing your X server's root visual on the VGX 
  74. to 24 bit TrueColor.  See the -depth, -class options in the aforementioned 
  75. Xsgi(1) man page. (-depth 24 -class TrueColor)
  76.  
  77.     (Aside: edit /usr/lib/X11/xdm/Xservers to add these options)
  78.  
  79. >How is it that the Indigo is capable of doing
  80. >this, yet the "better" VGX is not?  
  81.  
  82. The VGX was designed when SGI's windowing system was NeWS, not X.  The 
  83. Indigo was designed with X very much in mind.  
  84.  
  85. You can rest secure in the knowledge that the RealityEngine has so many 
  86. hardware colourmaps, it'll make your head swim.
  87.  
  88. ...robert
  89.