Results 1 to 3 of 3

Thread: how can i put texture on several objects?...

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

    how can i put texture on several objects?...

    Why it is't work?

    glBegin(GL_QUADS);
    glTexCoord2d(0,0); glVertex3d(-10,1,-10);
    glTexCoord2d(0,1/2); glVertex3d(-10,1,0);
    glTexCoord2d(1/2,1/2); glVertex3d(0,1,0);
    glTexCoord2d(1/2,0); glVertex3d(0,1,-10);

    glTexCoord2d(0,1/2); glVertex3d(-10,1,0);
    glTexCoord2d(0,1); glVertex3d(-10,1,10);
    glTexCoord2d(1/2,1); glVertex3d(0,1,10);
    glTexCoord2d(1/2,1/2); glVertex3d(0,1,0);

    glTexCoord2d(1/2,1/2); glVertex3d(0,1,0);
    glTexCoord2d(1/2,1); glVertex3d(0,1,10);
    glTexCoord2d(1,1); glVertex3d(10,1,10);
    glTexCoord2d(1,1/2); glVertex3d(10,1,0);

    glTexCoord2d(0,1/2); glVertex3d(0,1,-10);
    glTexCoord2d(1/2,1/2); glVertex3d(0,1,0);
    glTexCoord2d(1/2,1); glVertex3d(10,1,0);
    glTexCoord2d(0,1); glVertex3d(10,1,-10);
    glEnd();

  2. #2
    Member Contributor
    Join Date
    Feb 2001
    Location
    Slovakia
    Posts
    53

    Re: how can i put texture on several objects?...

    Are u using glBindTex?

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

    Re: how can i put texture on several objects?...

    Originally posted by Fredy:
    Are u using glBindTex?
    Yes, i see full texture only on the last square,another three are empty. Why?...

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 mwanderson in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 05-29-2001, 01:33 AM
  5. Texture objects?
    By qonjure in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 03-23-2001, 09:22 PM

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