From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 21169 invoked from network); 14 Oct 1999 13:46:19 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 14 Oct 1999 13:46:19 -0000 Received: from mailext12.compaq.com (mailext12.compaq.com [207.18.199.188]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id JAA15689 for ; Thu, 14 Oct 1999 09:46:18 -0400 Received: from mailint02.im.hou.compaq.com (mailint02.compaq.com [207.18.199.35]) by mailext12.compaq.com (Postfix) with ESMTP id B290257A4B for ; Thu, 14 Oct 1999 08:44:57 -0500 (CDT) Received: by mailint02.im.hou.compaq.com (Postfix, from userid 12345) id 4E306BC4C7; Thu, 14 Oct 1999 08:46:00 -0500 (CDT) Received: from exctay-gh02.tay.cpqcorp.net (exctay-gh02.tay.cpqcorp.net [16.103.129.52]) by mailint02.im.hou.compaq.com (Postfix) with ESMTP id DF146B2A44 for ; Thu, 14 Oct 1999 08:45:59 -0500 (CDT) Received: by exctay-gh02.tay.cpqcorp.net with Internet Mail Service (5.5.2559.0) id <4Z2S88G3>; Thu, 14 Oct 1999 09:46:17 -0400 Message-ID: <11EB515FBDB3D111BF270000F84A9ED60436C8A9@shrexc1.shr.dec.com> From: "Champigny, Michael" To: "'axp-list@redhat.com'" Subject: RE: Any tips for using GLUT Date: Thu, 14 Oct 1999 09:46:13 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2559.0) Content-Type: text/plain; charset="iso-8859-1" Blake, Unfortunately, most X servers don't support INDEX mode in bit depths over 8. When you think about it, you'd need a color LUT of 2^16 entries for a 16-bit indexed visual. You wouldn't have the memory to contain that many cells! For that reason, larger bit depths use a different visual. For a 16-bit visual, usually the first 5 bits is the red component, 6 bits for green, and the last 5 for blue. You get this in GLUT via GLUT_RBG. This is an X server limitation. Some X servers allow overlays so that you can overlay an 8-bit window over a 16-bit display. I'm afraid you'll have to port your INDEX mode app to RGB mode. This is why the OpenGL handbook recommends never using INDEX mode in the first place. I hope that helps, Michael -----Original Message----- From: Blake L. Carlson [mailto:blake-carlson@uiowa.edu] Sent: Wednesday, October 13, 1999 6:27 PM To: Champigny, Michael Subject: Re: Any tips for using GLUT Michael - I've tracked down the bug to this GLUT init command: glutInitDisplayMode( GLUT_INDEX | GLUT_DOUBLE ); It seems that indexed mode is not working on my system. I know that this initialization command does work: glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE ); (See /usr/lib/Mesa-3.0/demos/drawpix.c if you have the Mesa demos installed) We really need the GLUT_INDEX mode, otherwise I'm going to have to do a major overhaul in some of our SGI libraries to port to alpha. Does this stir up any memories??? - Blake Michael.Champigny@compaq.com wrote: > > I've seen this "bug" appear on Tru64 UNIX so it's not Linux > specific. It usually happens when the colormap is being maxed > out. I don't remember how I fixed it...sorry I can't be more > specific, but at least you know your not alone. :-) By the > way, it also happens on NT but the colormap there seems to > go further. > > /Michael > > -----Original Message----- > From: Blake Carlson [mailto:blake-carlson@uiowa.edu] > Sent: Wednesday, October 13, 1999 3:30 PM > To: axp-list@redhat.com > Subject: Any tips for using GLUT > > Hello again - > > While I have your attention, I'll ask if anyone has had any trouble > getting GLUT to work. I have a program that uses GLUT and works great > on the SGI's. Everything compiles okay on the alphalinux machine, but > when I execute the program GLUT complains that the visual class is not > sufficient (or some error similar). Do I need to tweak X in some way to > get this to work?? > > (I don't know if this question is alphalinux or just plain linux > specific???) > > Thanks - > > Blake > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com