Results 1 to 2 of 2

Thread: Question about NeHe tutorial ( #35 I think)

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2002
    Location
    Chicago, IL
    Posts
    5

    Question about NeHe tutorial ( #35 I think)

    I have a question on the AVI texture OpenGL tutorial on Nehe's site. It's great, but does anyone know why when the avi becomes a texture it's seems more pixelated than when it was just an avi file? Is there any way to preserve the resolution when the AVI becomes a texture?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Apr 2001
    Posts
    340

    Re: Question about NeHe tutorial ( #35 I think)

    Hi,

    if you want better quality, you should move from point sampling to bilinear interpolation :
    glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTE R,GL_NEAREST);// Set Texture Max Filter
    glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTE R,GL_NEAREST);// Set Texture Min Filter
    becomes
    glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTE R,GL_LINEAR);// Set Texture Max Filter
    glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTE R,GL_LINEAR);// Set Texture Min Filter

    (Tip : read NeHe's comments in the tutorial, it's all explained)

Similar Threads

  1. NeHe tutorial on Bitmap Fonts (tutorial 13) error
    By Mariusz in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-03-2012, 09:16 AM
  2. Nehe Tutorial Projects (Newbie Question)
    By toneburst in forum OpenGL: macOS
    Replies: 7
    Last Post: 12-05-2007, 04:02 AM
  3. Nehe Bump mapping tutorial question.
    By dabeav in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 08-01-2002, 12:26 PM
  4. NeHe Tutorial Question
    By jeremyp in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-25-2001, 07:06 PM
  5. Who has tried Nehe's Tutorial #10? . . . .
    By Schlogenburg in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-29-2000, 07:10 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