Page 1 of 1
Dark lines on textures on interiors
Posted: Thu Sep 21, 2006 10:09 pm
by Larryboy
I'm sure this has been asked before but I couldn't find it mentioned.
When I create a simple box to house my level and texture it, there are dark lines running along the seems. This seems to vary depending on what you do.
.
I am making a level out of graphpaper and want it to look very clean, but I have dark banding at the eye level of the player - is there anyway I can get rid of this?
Cheers
Posted: Thu Sep 21, 2006 10:21 pm
by AndyCR
Are you using the opengl driver? The opengl driver tends to do that.
Posted: Thu Sep 21, 2006 10:34 pm
by Larryboy
Yes I am using OpenGL... Am I stuck with it? (using an inno3d6220a card)
Posted: Thu Sep 21, 2006 10:39 pm
by Larryboy
Wow it worked... Changed to the fast D3D and no dark lines
many thanks
Posted: Thu Sep 21, 2006 11:10 pm
by paradoxnj
Someone may want to add the following code to the poly rendering functions:
Code: Select all
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
That should fix the seams.
In addition, what size texture are you using?
Posted: Fri Sep 22, 2006 12:48 pm
by Larryboy
In the first screen shot the texture is 128x128
In the second its a mighty 512x512
Thanks
Posted: Fri Sep 22, 2006 2:29 pm
by paradoxnj
You might want to try scaling down your texture size on the second one for performance reasons. OpenGL and DX will "cut up" any texture that is over 256x256 hurting performance.
The GL_CLAMP should get rid of the seams. Just someone's got to implement it.
Hint....Hint...
Posted: Fri Sep 22, 2006 10:24 pm
by Larryboy
will do
thanks for your help