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 9 of 11 Topic 4875 of 5041
Post > Topic >>

Re: Object always white.

by Flark <flarkino@[EMAIL PROTECTED] > Aug 20, 2008 at 04:46 AM

On Aug 20, 7:39=A0am, Flark <flark...@[EMAIL PROTECTED]
> wrote:
> On Aug 19, 6:07=A0pm, 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?

I tried this, and the object is still white:

float mc[4] =3D { 1.0, 0.0, 0.0, 1.0 };
glMaterialfv (GL_FRONT, GL_AMBIENT_AND_DIFFUSE, mc);
 




 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 Tue Dec 2 0:04:59 CST 2008.