When i run my opengl program in Color Index Mode i get the following error:"Glut:Fatal Error:visualities with necessary capabilities not found".What should i do?

Thanks

[This message has been edited by shobha (edited 03-31-2003).]

Relic

03-31-2003, 05:05 AM

Means GLUT hasn't found a pixelformat which supports the necessary capabilities your app requested.
Check if other display modes support color indexed mode and the other requirements you have in the pixelformat flags.
(On Windows) Microsoft's GDI generic implementation supports color indexed renderering, most hardware doesn't (anymore).
Consider color indexed to be outdated.

shobha

04-01-2003, 01:52 AM

If want to get color index of any color in RGBA mode, what should i do?

Relic

04-01-2003, 02:17 AM

Sorry, your question desn't make sense.
There is no color index in an RGBA mode.
A color index is an index into a palette containing RGBA values. The index is normally 8 bits, means you can distinguish 256 colors.
RGBA (true color) normally uses 8 bits PER COLOR CHANNEL (4*8 bits) or up to 32 bits per channel (128 bits) in the newest float buffer extensions.