[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Any tips for using GLUT



Wes -

That's the problem. I switched into 8-bit depth and got the GLUT_INDEX
stuff to work no sweat.  Same fix also works for NT (switch to 255
colors). Now, we need a work-around so INDEX mode will still work in
16/24/32 bit modes. 

It seems that this problem must plague all flavors of Linux and Win
people.  Hmmmm...  I'll hunt for a fix.

Thanks everyone for your help!  Sorry if this thread was off topic for
the list.

- Blake



wsb@paralleldata.com wrote:
> 
> "Blake L. Carlson" wrote:
> >
> > I've been playing with the Mesa demos and they seem to be working okay.
> > I tried going to 32 bit display depth and that didn't change anything.
> > 24-bit crashed my graphics adapter.
> >
> 
> I looked at the GLUT spec and it also supports indexed color,
> which would be your normal 8 bit display. Possibly your
> using 16/32 which uses the TrueColor visual in X and you told
> it you want indexed color, which is 8 bit. At one point I
> messed with this because I looked at porting my own 8 bit indexed
> colormap X code to true color and didn't find a simple way to
> get it working. Each screen has a list of visuals it supports
> and you can retrieve that list using an X call. I did see that
> in 16/24/32 bit modes, there was no 8 bit visual available to
> use that I could find. That was the trick I had planned on trying
> with my code. If anyone knows how to do this, please let me know.
> 
> > Here's the error -
> > GLUT: Fatal Error in (unamed): visual with necessary capabilities not
> > found.
> >
> > What if my program is trying to use double-buffered display for images?
> > I think I may be requesting a quality of service from Mesa/graphics
> > system (??) which isn't supported.  I'll try removing the double
> > buffering.  If that's not it, it's gotta be the colormap.
> >
> 
> Since Mesa is in SW, it probably isn't using HW mode double
> buffering (a guess).
> 
> Wes
> 
> --
> 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []