Results 1 to 10 of 10

Thread: OpenGL Texture Mapping [Equirectangular 2 Azimuthal Equidistant]

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6

    Default

    Hey Redrobes. I'm very new to OpenGL (this is my first program) so I'm not 100% sure what method I am using. As in the first code sample I posted, I populate an array of structures with the x-y and u-v coordinates. I then loop through them in a display function:

    glBegin (GL_QUAD_STRIP);

    LOOP THROUGH POINTS
    {
    glTexCoord2f (p_d[index].u, p_d[index].v);
    glVertex3f (p_d[index].x, p_d[index].y, p_d[index].z);
    }
    glEnd();
    I have nearly fixed the problem by searching for jumps (above some threshold) in the texture coordinates. I have made this short video to illustrate the method I have used: https://www.dropbox.com/s/si9e0pc7dy...ingWrapFix.mp4

    The only problem is that the problem still appears but after you move the centre point around (using the arrow keys) the problem appears to vanish. Here is the new version of my program: http://dl.dropbox.com/u/49415695/Desktop6%5BEvenCloser%5D.7z

    The problem is no longer cartography related however... perhaps i should not continue posting here.
    Last edited by felixrulz; 07-31-2012 at 11:05 PM. Reason: updated broken link

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •