Click here to Skip to main content
15,909,747 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: Drawing a Sphere in 3D Pin
weightloss3-Jun-09 6:00
weightloss3-Jun-09 6:00 
GeneralRe: Drawing a Sphere in 3D Pin
Avion854-Jun-09 10:04
Avion854-Jun-09 10:04 
GeneralRe: Drawing a Sphere in 3D Pin
yoghurt14-Jun-09 22:27
yoghurt14-Jun-09 22:27 
GeneralRe: Drawing a Sphere in 3D Pin
Avion855-Jun-09 2:52
Avion855-Jun-09 2:52 
Questionhelp in building a color lookup table Pin
mesho17-May-09 23:41
mesho17-May-09 23:41 
AnswerRe: help in building a color lookup table Pin
Tim Craig18-May-09 18:27
Tim Craig18-May-09 18:27 
GeneralRe: help in building a color lookup table Pin
mesho19-May-09 12:23
mesho19-May-09 12:23 
GeneralRe: help in building a color lookup table Pin
Tim Craig19-May-09 12:51
Tim Craig19-May-09 12:51 
I never used Glut when I was playing with OpenGL but it appears like if you're in color index mode that should setup the table. There might even be a default table already there. I'm not sure why you're maintaining the array of colors, when you can access Glut's color table once you've set it.

You're trying to setup up the table with green a constant zero. Red varying linearly from zero to one and blue being one minus red. However, the reason I asked you to think about what i/255 evaluates to means that's not what you're going to get. Your color table will be considerably more boring.

"Republicans are the party that says government doesn't work and then they get elected and prove it." -- P.J. O'Rourke

I'm a proud denizen of the Real Soapbox[^]
ACCEPT NO SUBSTITUTES!!!



GeneralRe: help in building a color lookup table Pin
mesho20-May-09 14:00
mesho20-May-09 14:00 
GeneralRe: help in building a color lookup table Pin
Tim Craig20-May-09 14:44
Tim Craig20-May-09 14:44 
GeneralRe: help in building a color lookup table Pin
mesho21-May-09 2:12
mesho21-May-09 2:12 
GeneralRe: help in building a color lookup table Pin
Tim Craig21-May-09 7:45
Tim Craig21-May-09 7:45 
GeneralRe: help in building a color lookup table Pin
mesho21-May-09 22:48
mesho21-May-09 22:48 
GeneralRe: help in building a color lookup table Pin
Tim Craig22-May-09 13:31
Tim Craig22-May-09 13:31 
GeneralRe: help in building a color lookup table Pin
mesho28-May-09 2:51
mesho28-May-09 2:51 
GeneralRe: help in building a color lookup table Pin
Tim Craig29-May-09 9:00
Tim Craig29-May-09 9:00 
GeneralRe: help in building a color lookup table Pin
Luc Pattyn29-May-09 9:21
sitebuilderLuc Pattyn29-May-09 9:21 
Questionviewport to window mapping Pin
suvigna13-May-09 17:54
suvigna13-May-09 17:54 
QuestionLibrary or Tools for GUI development on Linux Pin
sheeri manik10-May-09 18:33
sheeri manik10-May-09 18:33 
JokeRe: Library or Tools for GUI development on Linux Pin
Soundman32.213-May-09 3:52
Soundman32.213-May-09 3:52 
GeneralRe: Library or Tools for GUI development on Linux Pin
sheeri manik13-May-09 12:52
sheeri manik13-May-09 12:52 
GeneralRe: Library or Tools for GUI development on Linux Pin
Soundman32.213-May-09 21:37
Soundman32.213-May-09 21:37 
QuestionEnable / Disable ClearType font rendering via system call? Pin
Tony Teveris6-May-09 1:56
Tony Teveris6-May-09 1:56 
AnswerRe: Enable / Disable ClearType font rendering via system call? Pin
Henry Minute6-May-09 2:43
Henry Minute6-May-09 2:43 
QuestionDifference in rendering in OpegGL Pin
Gastello5-May-09 3:23
Gastello5-May-09 3:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.