Results 1 to 4 of 4

Thread: Help with texture on several objects

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2000
    Location
    Moscow,Russia
    Posts
    11

    Help with texture on several objects

    Explain me why it work right (show full texture)for example when N=10, and show only piece of texture when N=5...
    Can you tell me about technology to put texture on several objrcts..

    for(y=0;y<(N-1);y++)
    for(x=0;x<(N-1);x++)
    {
    glBegin(GL_POLYGON);
    glTexCoord2d(x/N, y/N);
    glVertex3d(x,y,1);
    glTexCoord2d(x/N, (y+1)/N);
    glVertex3d(x,y+1,1);
    glTexCoord2d((x+1)/N, (y+1)/N);
    glVertex3d(x+1,y+1,1);
    glTexCoord2d((x+1)/N, y/N);
    glVertex3d(x+1,y,1);
    glEnd();
    }

  2. #2
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Dunblane, Scotland
    Posts
    333

    Re: Help with texture on several objects

    Yor code appears ok, could you post more information on what you are doing and seeing, a bit more code would be helpful.

    Tim
    Reality is for idiots only the best over come it!

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2000
    Location
    Moscow,Russia
    Posts
    11

    Re: Help with texture on several objects

    2Tim: see mail
    Thank you!

  4. #4
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Dunblane, Scotland
    Posts
    333

    Re: Help with texture on several objects

    I have sent you an email that should solve it.
    Reality is for idiots only the best over come it!

Similar Threads

  1. Texture manager (always ready texture objects)
    By endrelidal in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 08-15-2005, 02:26 AM
  2. Sharing texture objects and buffer objects
    By Paul Martz in forum OpenGL: Windows
    Replies: 7
    Last Post: 06-11-2005, 07:37 PM
  3. Texture Objects and texture management
    By alh in forum OpenGL ES
    Replies: 4
    Last Post: 02-13-2005, 02:19 PM
  4. Texture objects?
    By qonjure in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 03-23-2001, 09:22 PM
  5. how can i put texture on several objects?...
    By Kondrat in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-15-2001, 12:27 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