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 > Render problems...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 9 Topic 4826 of 5041
Post > Topic >>

Render problems on intel x3100 Linux only

by Spacen Jasset <jmspashett@[EMAIL PROTECTED] > Jul 8, 2008 at 02:02 AM

I am seeing a nasty render problem on the intel x3100 card, under
linux only. The same card works correctly on windows XP. Nvidia and
ATI cards also work correctly under linux. Has anyone noticed this
sort of problem before? Might there be something wrong with my code,
it seems unlikely at the moment though.

Here are some screen shots that show the lighting way out on linux:
http://jason.spashett.com/pics/gltest/

I setup lighting once:

// Setup lighting
	glEnable(GL_DEPTH_TEST);
	glEnable(GL_TEXTURE_2D);
	glEnable(GL_LIGHTING);
	glDisable(GL_COLOR_MATERIAL);
	GLfloat Ambient[4] = [0.5f, 0.5f, 0.5f, 1.0f];
        GLfloat whiteDiffuse[4] = [1f, 1f, 0.8f, 1.0f];
	GLfloat light_position[4] = [5, 10, 10, 0];
	glLightfv(GL_LIGHT0, GL_POSITION, &light_position[0]);
	glLightfv(GL_LIGHT0, GL_AMBIENT, &Ambient[0]);
	glLightfv(GL_LIGHT0, GL_DIFFUSE, &whiteDiffuse[0]);
	glEnable(GL_LIGHT0);
	glShadeModel(GL_SMOOTH);
	glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL,
GL_SEPARATE_SPECULAR_COLOR);


Then when drawing the model:


Before geometry output:

m.texture.bind();
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);

And then In a gemetry render loop I use the same material:

// Material properties
GLfloat mat_diffuse[4] = [0.9, 0.9, 0.9, 0];
GLfloat mat_specular[4] = [0.9, 0.9, 0.9, 0];
glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, &mat_diffuse[0]);
glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, &mat_specular[0]);
glMaterialf(GL_FRONT_AND_BACK, GL_****NINESS, 100);
glVertex3f(x, y, z);

NB - Language is Digital Mars D
 




 9 Posts in Topic:
Render problems on intel x3100 Linux only
Spacen Jasset <jmspash  2008-07-08 02:02:48 
Re: Render problems on intel x3100 Linux only
Philipp Klaus Krause <  2008-07-08 20:15:37 
Re: Render problems on intel x3100 Linux only
fungus <openglMYSOCKS@  2008-07-08 23:33:00 
Re: Render problems on intel x3100 Linux only
"Gernot Frisch"  2008-07-10 16:39:57 
Re: Render problems on intel x3100 Linux only
"jbwest" <jb  2008-07-10 18:25:31 
Re: Render problems on intel x3100 Linux only
Spacen Jasset <jmspash  2008-07-10 11:39:50 
Re: Render problems on intel x3100 Linux only
Philipp Klaus Krause <  2008-07-11 00:13:11 
Re: Render problems on intel x3100 Linux only
Spacen Jasset <jmspash  2008-07-11 02:35:46 
Re: Render problems on intel x3100 Linux only
Wolfgang Draxinger <wd  2008-07-11 12:25:33 

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:03:02 CST 2008.