Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 7 of 7

Thread: I use texture , but see just white rectungle . what is the problem ? Thank's

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2002
    Posts
    6

    I use texture , but see just white rectungle . what is the problem ? Thank's

    I use texture , but see just white rectungle . what is the problem ? Thank's

  2. #2
    Junior Member Regular Contributor
    Join Date
    Dec 2001
    Location
    London, England
    Posts
    163

    Re: I use texture , but see just white rectungle . what is the problem ? Thank's

    Hm...

    Is the texture a power of 2 in size?
    Are you loading the data correctly?
    Is the texture bound?
    ...

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2002
    Posts
    6

    Re: I use texture , but see just white rectungle . what is the problem ? Thank's

    Originally posted by bakery2k:
    Hm...

    Is the texture a power of 2 in size?
    Are you loading the data correctly?
    Is the texture bound?
    ...

    i send you this small project , can you help me ?

  4. #4
    Intern Contributor
    Join Date
    Jan 2001
    Posts
    61

    Re: I use texture , but see just white rectungle . what is the problem ? Thank's

    There's one thing I know to be true for some video cards, that will produce this very behaviour - have you applied texture filters? You need to specify both min and mag filters - about two row of code. Try this.

  5. #5
    Junior Member Regular Contributor
    Join Date
    Dec 2001
    Location
    London, England
    Posts
    163

    Re: I use texture , but see just white rectungle . what is the problem ? Thank's

    I looked at your code, but I couldn't get it to compile (I don't use glaux), and after installing the header, it crashed. I have a suggestion though:
    Try calling glEnable(GL_TEXTURE_2D) after glutCreateWindow

    Please do not send me 200kb of texture along with 7kb of code: Post the relavent code here instead, so everyone can read it.

  6. #6
    Junior Member Newbie
    Join Date
    Apr 2002
    Posts
    6

    Re: I use texture , but see just white rectungle . what is the problem ? Thank's

    Originally posted by bakery2k:
    I looked at your code, but I couldn't get it to compile (I don't use glaux), and after installing the header, it crashed. I have a suggestion though:
    Try calling glEnable(GL_TEXTURE_2D) after glutCreateWindow

    Please do not send me 200kb of texture along with 7kb of code: Post the relavent code here instead, so everyone can read it.
    Thank's a lot !!! it works .

  7. #7
    Intern Newbie
    Join Date
    May 2001
    Location
    Austria
    Posts
    30

    Re: I use texture , but see just white rectungle . what is the problem ? Thank's

    Oh yeah! Definitive an ADVANCED topic!!


    what about the nice beginners-tutorials out there??

    but i understand, its 1000 times easier to post a message and wait for others solution than trying for yourself...

    kind regards, a sad board reader..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •