Results 1 to 6 of 6

Thread: [OpenGL] What is wrong with my texture coordinates?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Like i mentioned, you can just flip the texture coordinates:
    Code:
      glBegin(GL_QUADS);
        glTexCoord2f(0,1);  glVertex3f(0, 0, 0);
        glTexCoord2f(1,1);  glVertex3f(1, 0, 0);
        glTexCoord2f(1,0);  glVertex3f(1, 1, 0);
        glTexCoord2f(0,0);  glVertex3f(0, 1, 0);
      glEnd;
    And also, the whole thing is only good to know when doing graphics manually. Much of 3D graphics are actual models and the texture coordinates of that system work exactly as is. Textures on 3D models look exactly the same as in modelling program.

  2. #2
    Quote Originally Posted by User137 View Post
    And also, the whole thing is only good to know when doing graphics manually. Much of 3D graphics are actual models and the texture coordinates of that system work exactly as is. Textures on 3D models look exactly the same as in modelling program.
    I am sure you have right, but for terrain it matters. Anyway, I don't want to move into to the 3D models without knowing the basics

Bookmarks

Posting Permissions

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