Results 1 to 5 of 5

Thread: GLUI rotate and texture problem

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2002
    Location
    Leartherhead Surrey England
    Posts
    29

    GLUI rotate and texture problem

    Hi!

    I have the following problem: every time I click on the GLUI trackball to rotate the scene if I have textured my surface it becomes like a checked-board like the texture on the tracball itself, any ideas why?

    Thanks for your help!

  2. #2
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,450

    Re: GLUI rotate and texture problem

    Sounds like you don't bind your own texture before drawing your object and the one from the GLUI manipulator is still effective.

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2002
    Location
    Leartherhead Surrey England
    Posts
    29

    Re: GLUI rotate and texture problem

    Yes I do because the texture appears fine I can translate the scene etc it's just when I click on the trackball, it's like it's taking its texture instead. Very strange!

    Any ideas how to cure this?

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: GLUI rotate and texture problem

    Are you applying the texture before you draw the object?


    Originally posted by fcoutel:
    Yes I do because the texture appears fine I can translate the scene etc it's just when I click on the trackball, it's like it's taking its texture instead. Very strange!

    Any ideas how to cure this?

  5. #5
    Junior Member Newbie
    Join Date
    Aug 2002
    Location
    Leartherhead Surrey England
    Posts
    29

    Re: GLUI rotate and texture problem

    Yes I did. If I had not then the texture would not appear at all right?

    glNewList(terrainDL,GL_COMPILE);
    glEnable(GL_TEXTURE_2D);

    // Bind the terrain texture to our terrain
    glBindTexture(GL_TEXTURE_2D,teximage->texID );


    drawterrain();

    glDisable(GL_TEXTURE_2D);

    glEndList();

Similar Threads

  1. problem for glui, can someone help me
    By aiminy in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 02-19-2005, 07:59 PM
  2. a small glui problem
    By dvm in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-12-2004, 07:49 AM
  3. GLUI Problem
    By Ashish_Programmer in forum OpenGL: General
    Replies: 0
    Last Post: 03-26-2004, 04:23 AM
  4. GLUI Problem
    By Ashish_Programmer in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 03-26-2004, 04:21 AM
  5. Problem with GLUI
    By Sliker in forum OpenGL: General
    Replies: 1
    Last Post: 10-02-2002, 04:45 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