Results 1 to 4 of 4

Thread: Artifacts at skybox cube corners

  1. #1
    Senior Member Regular Contributor
    Join Date
    Dec 2000
    Location
    Florence, Italy
    Posts
    209

    Artifacts at skybox cube corners

    I have a cubic skybox: all the six textures are perfect, but i get artifacts at corners, you can see that quads seems separated even if they are perfectly matching one to each other.
    Here is a screenshot: http://www.web-discovery.net/artifacts.jpg

    Do i have to switch to a sphere skybox or there is a solution to this ?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Dec 2002
    Location
    Silicon Valley
    Posts
    234

    Re: Artifacts at skybox cube corners

    GL_CLAMP_TO_EDGE

  3. #3
    Senior Member Regular Contributor
    Join Date
    Dec 2000
    Location
    Florence, Italy
    Posts
    209

    Re: Artifacts at skybox cube corners

    i do use it as it follows:

    glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);

  4. #4
    Junior Member Newbie
    Join Date
    Jan 2004
    Location
    Czech Republic
    Posts
    10

    Re: Artifacts at skybox cube corners

    (just quickfix idea, so discard if you want perfect solution)

    it probably originates in low precision of
    some depth data or things like that,
    so when you adjust the sizes of sides of the cube that they will overlap each other just a little, you may get the desired result

Similar Threads

  1. Manipulate a cube by dragging it's corners
    By daniel2k in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 04-27-2015, 05:24 PM
  2. Rendered cube when rotating corners 'cut'
    By WelshWonder in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-26-2011, 07:17 AM
  3. [SOLVED] Skybox using cube map
    By IneQuation.pl in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 10-22-2008, 04:00 PM
  4. Cube mapping artifacts
    By dletozeun in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 03-02-2008, 02:53 PM
  5. "Skybox"-style cube map?
    By halo in forum OpenGL: Basic Coding
    Replies: 20
    Last Post: 02-28-2005, 10:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean