Dark lines on textures on interiors

Post topics regarding Level Building/Design and Entity Usage with Reality Factory
Post Reply
User avatar
Larryboy
Posts: 59
Joined: Wed Sep 06, 2006 2:31 pm
Location: UK

Dark lines on textures on interiors

Post 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.
Image.
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?
Image
Cheers
User avatar
AndyCR
Posts: 1449
Joined: Wed Jul 06, 2005 5:08 pm
Location: Colorado, USA
Contact:

Post by AndyCR »

Are you using the opengl driver? The opengl driver tends to do that.
User avatar
Larryboy
Posts: 59
Joined: Wed Sep 06, 2006 2:31 pm
Location: UK

Post by Larryboy »

Yes I am using OpenGL... Am I stuck with it? (using an inno3d6220a card)
User avatar
Larryboy
Posts: 59
Joined: Wed Sep 06, 2006 2:31 pm
Location: UK

Post by Larryboy »

Wow it worked... Changed to the fast D3D and no dark lines

many thanks
User avatar
paradoxnj
RF2 Dev Team
Posts: 1328
Joined: Wed Mar 01, 2006 7:37 pm
Location: Brick, NJ
Contact:

Post 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?
User avatar
Larryboy
Posts: 59
Joined: Wed Sep 06, 2006 2:31 pm
Location: UK

Post by Larryboy »

In the first screen shot the texture is 128x128

In the second its a mighty 512x512

Thanks
User avatar
paradoxnj
RF2 Dev Team
Posts: 1328
Joined: Wed Mar 01, 2006 7:37 pm
Location: Brick, NJ
Contact:

Post 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...
User avatar
Larryboy
Posts: 59
Joined: Wed Sep 06, 2006 2:31 pm
Location: UK

Post by Larryboy »

will do
thanks for your help
Post Reply