Seam issue when mapping a texture to a sphere in OpenGL

前端 未结 6 1943
清歌不尽
清歌不尽 2020-12-25 08:51

I\'m trying to create geometry to represent the Earth in OpenGL. I have what\'s more or less a sphere (closer to the elliptical geoid that Earth is though). I map a texture

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-25 09:35

    Your link really helped me out, furqan, thanks.
    Why couldn't you figure it out? A point where I stumbled was, that I didn't know you can exceed the [0,1] interval when calculating the texture coordinates. That makes it a lot easier to jump from one side of the texture to the other with OpenGL doing all the interpolation and without having to calculate the exact position where the texture actually ends.

提交回复
热议问题