LWJGL Forum

Programming => OpenGL => Topic started by: h3xStream on April 30, 2011, 18:51:23

Title: [SOLVED] glColor3f() and textures
Post by: h3xStream on April 30, 2011, 18:51:23
I'm using GLModel (http://potatoland.org/code/gl/) to load models with textures.

If i try to draw lines with plain color (glColor3f), they appears black.

(http://img849.imageshack.us/img849/3088/probe.png)

(Without the model being loaded)

(http://img836.imageshack.us/img836/8711/expect.png)
Title: Re: glColor3f() and textures
Post by: kappa on April 30, 2011, 19:01:18
without looking at any code, its likely you need to disable textures (or lighting) before drawing the lines.

e.g. by calling

GL11.glDisable(GL11.GL_TEXTURE_2D);
Title: Re: glColor3f() and textures
Post by: h3xStream on April 30, 2011, 21:11:06
That's what I was looking for. Thanks  ;D