Results 1 to 7 of 7

Thread: [OpenGL] Help me with texture mapping please.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Red texture:
    up vertex 0.5 0.0 0
    down vertex 0.5 1.0
    down right vertex 1.5 1.0

    Thing is, you can't stop texture drawing midway of a triangle. Red part texture will show under that green one, and green will be drawn on top of whole of red. What prevents this is alpha channel of texture. (Only green texture in this case needs alpha if it is drawn after the red one)

    Green texture coordinates:
    up -0.5 0.0
    down -0.5 1.0
    down right 0.5 1.0
    Last edited by User137; 15-02-2011 at 03:50 PM.

Tags for this Thread

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
  •