home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sgi / graphics / 194 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.5 KB

  1. Path: sparky!uunet!olivea!sgigate!odin!sgihub!zola!jellotrees!joel
  2. From: joel@jellotrees.esd.sgi.com (Joel Tesler)
  3. Newsgroups: comp.sys.sgi.graphics
  4. Subject: Re: using Overlay planes with the GlxMDraw Widget
  5. Message-ID: <vathtok@zola.esd.sgi.com>
  6. Date: 25 Jan 93 17:40:11 GMT
  7. References: <C1By8u.JFv@news2.cis.umn.edu>
  8. Sender: news@zola.esd.sgi.com (Net News)
  9. Organization: Silicon Graphics, Inc.  Mountain View, CA
  10. Lines: 26
  11.  
  12.  
  13. In article <C1By8u.JFv@news2.cis.umn.edu>, moses@i5.arc.umn.edu writes:
  14. > I am using the GL Widget in combination with motif.  I want to use the 
  15. > overlay plane for rubber-banding.  
  16.  
  17. A couple of things:
  18.  
  19. First, are you installing the colormaps?  You need to use
  20. XSetWMColormapWindows to install the colormaps of both the normal and
  21. overlay GL colormaps.  If they aren't installed, you won't get the
  22. correct colors.
  23.  
  24. Second, and this is probably the problem, you are trying to use RGB
  25. for the overlay planes.  Some of our very high end hardware may
  26. support this (I don't know for sure), but most of the hardware
  27. doesn't; and none of it does with overlays with a depth of 2.  With a
  28. depth of 2 you have exactly 3 colors + transparent; and the best way
  29. to allocate those three colors is to use X color allocation
  30. mechanisms (It is often a good idea to get a new X colormap for the
  31. overlay planes so you don't need to share the 3 colors between
  32. multiple applications).  Then use color (not c3i) to allocate the colors.
  33.  
  34.  
  35. Joel Tesler
  36. joel@sgi.com
  37. 415-390-3048
  38.