Results 1 to 5 of 5

Thread: Objects names

  1. #1
    Member Contributor
    Join Date
    Nov 2002
    Location
    Oirsbeek,Holland
    Posts
    69

    Objects names

    I have a problem with objects names, i write following:
    glInitNames();
    glPushName(0);
    glBindTexture(...,...);
    glLoadName(1);
    glBegin(...);
    .
    .
    .
    glEnd();

    glBindTexture(...,...);
    glLoadName(2);
    glBegin(...);
    .
    .
    .
    glEnd();

    but there is no texture on the second object.
    Can somebody help me ?

  2. #2
    Member Contributor
    Join Date
    Apr 2002
    Posts
    94

    Re: Objects names

    Does it work when you bind the same texture from the first one to the second one? That is what I would try next.
    P4 2Ghz, GEFORCE4, 512 Meg RAM, WIN2000, VStudio 6.0

  3. #3
    Member Contributor
    Join Date
    Nov 2002
    Location
    Oirsbeek,Holland
    Posts
    69

    Re: Objects names

    it works when i bind just the first texture => both object have the same texture, but that's not what i want

  4. #4
    Member Contributor
    Join Date
    Apr 2002
    Posts
    94

    Re: Objects names

    Ya, I know that's not what you want. I am just trying to remote debug with you by trying a few things.

    Are you using glGenTextures to create both textures?

    I wonder what would happen if you tried to display your second texture onto the first object? That would tell you if you at least set the second texture up correctly.
    P4 2Ghz, GEFORCE4, 512 Meg RAM, WIN2000, VStudio 6.0

  5. #5
    Member Contributor
    Join Date
    Nov 2002
    Location
    Oirsbeek,Holland
    Posts
    69

    Re: Objects names

    The mystake was that the texture didn't have the same height and width. Now it works

Similar Threads

  1. shader source names
    By hlewin in forum OpenGL: General
    Replies: 20
    Last Post: 02-20-2013, 01:59 AM
  2. Uniform names
    By lambage in forum OpenGL: GLSL
    Replies: 8
    Last Post: 08-30-2012, 09:01 AM
  3. Assigning selection names to many objects
    By mountainoflight in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-03-2008, 06:17 AM
  4. Names for 3D engines
    By LordOfTheUniverse in forum OpenGL: Advanced Coding
    Replies: 12
    Last Post: 01-10-2003, 02:22 AM
  5. Problem with names
    By jirkamelich in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 01-02-2003, 09:17 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