Results 1 to 2 of 2

Thread: How To Tile In A n-sided Polygon

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2008
    Posts
    1

    How To Tile In A n-sided Polygon

    Hi.
    I m new to opengl and was making an application in which i require to texture a polygon(n-sided) with an image...So how ca n i do it...
    i know that for a 4 sided polygon i can assign the tex coord as (0,0), (0,3), (3,3), (3,0) if i want to repeat it 9 times in the polygon....But how to do it if i want to do it for say any n sided polygon..

  2. #2
    Senior Member Regular Contributor trinitrotoluene's Avatar
    Join Date
    Sep 2008
    Location
    Montérégie,Québec
    Posts
    362

    Re: How To Tile In A n-sided Polygon

    If your n-sided polygon lie on the xy plane before transformation, use x and y coord of the vertex for it's texture coord.

Similar Threads

  1. texture mapping for n-sided concave polygon
    By ammuselvi in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 07-03-2004, 12:36 PM
  2. texture mapping for n-sided polygon
    By ammuselvi in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 07-02-2004, 10:12 PM
  3. Grid/Tile generation on n sided polygon surface.
    By Kumar K in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-06-2004, 08:58 AM
  4. circle using n-sided polygon
    By weedus in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-17-2002, 09:25 AM
  5. N sided Polygon, N+1 Vertices
    By ibm1130 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 01-10-2002, 08:12 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