Skyboxes - Bright lines at some edges

Started by
32 comments, last by BauerGL 22 years, 1 month ago
Hi, I''ve recently started working with skyboxes and I''ve ran into something bad =). The thing is that I get some weird bright lines at the edges of the textures. How would I go about to fix this? I''m using the GameTutorials'' textures. Thanks, BauerGL. CUselessStuff::NiftyQuote();

@mikaelbauer

Super Sportmatchen - A retro multiplayer competitive sports game project!

Advertisement
set the texture wrap parameter for texture coordinate to GL_CLAMP or GL_CLAMP_TO_EDGE (if the extension GL_EXT_texture_edge_clamp is supported) instead of GL_REPEAT.

well i think that''s it.. if i understood your prob anyway. gotta go. cya!
Hmm, well that's just what I've done!
Something else?

Thanks anyway for your time, BauerGL.

EDIT: If this is what you mean:
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);

CUselessStuff::NiftyQuote();

Edited by - BauerGL on March 9, 2002 8:37:06 PM

@mikaelbauer

Super Sportmatchen - A retro multiplayer competitive sports game project!

Yeah, if you''re using textures that don''t fit together, you''ll get seams like that.

Later,
ZE.


//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

[if you have a link proposal, email me.]

[twitter]warrenm[/twitter]

Well I guess that GameTutorials textures should work? Anything else that might be wrong?

@mikaelbauer

Super Sportmatchen - A retro multiplayer competitive sports game project!

Screenshot and/or code dump would be a big help



-------- E y e .Scream Software --------
----------------------------------------
                                  /-\
    http://www.eyescream.cjb.net | * |
                                  \-/
----------------------------------------
Screenshot especially.



//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

[if you have a link proposal, email me.]

[twitter]warrenm[/twitter]

Okey here they are:
Skybox pic''s

Yes I am a very 1337 html h4xx0r so don''t complain about the site

@mikaelbauer

Super Sportmatchen - A retro multiplayer competitive sports game project!

Freaky. Please post a link to download one of your textures, preferably the one most prevalent in the second screenie.

Later,
ZE.

//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

[if you have a link proposal, email me.]

[twitter]warrenm[/twitter]

It is a clamping problem - but you can often also solve it by using NEAREST rather than LINEAR filtering. This assumes the textures do in fact line up properly, which I suspect they do.

This topic is closed to new replies.

Advertisement