Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > OpenGL 3D API > Re: Object alwa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 11 Topic 4875 of 5017
Post > Topic >>

Re: Object always white.

by "jbwest" <jbwest@[EMAIL PROTECTED] > Aug 20, 2008 at 08:04 AM

"Flark" <flarkino@[EMAIL PROTECTED]
> wrote in message 
news:67920840-dbb2-49a4-95f9-112425a2f8cd@[EMAIL PROTECTED]
 Aug 19, 6:07 pm, fungus <openglMYSO...@[EMAIL PROTECTED]
> wrote:

> Not enough info there. What values are you passing?

I take the 32 bit RGB value, chop it into 3 bytes for R, G, & B,
and pass those. Not good?

No. It wants a full signed int for each or r,g,b. For 32bit RGBA use 
unsigned byte format.
use glclolor to set the material color  after calling glMaterialColor().

JBW
 




 11 Posts in Topic:
Object always white.
Flark <flarkino@[EMAIL  2008-08-19 10:26:53 
Re: Object always white.
"jbwest" <jb  2008-08-19 11:23:37 
Re: Object always white.
Flark <flarkino@[EMAIL  2008-08-19 11:50:44 
Re: Object always white.
mi76 <mi333@[EMAIL PRO  2008-08-19 23:48:29 
Re: Object always white.
"jbwest" <jb  2008-08-19 17:06:12 
Re: Object always white.
fungus <openglMYSOCKS@  2008-08-19 15:07:10 
Re: Object always white.
Flark <flarkino@[EMAIL  2008-08-20 04:39:57 
Re: Object always white.
"jbwest" <jb  2008-08-20 08:04:03 
Re: Object always white.
Flark <flarkino@[EMAIL  2008-08-20 04:46:38 
Re: Object always white.
crjjrc <crjjrc@[EMAIL   2008-08-20 07:25:59 
Re: Object always white.
Flark <flarkino@[EMAIL  2008-08-20 08:21:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 6:26:32 CST 2008.