Results 1 to 7 of 7

Thread: Affine/Linear Texture Mapping

  1. #1
    Guest

    Affine/Linear Texture Mapping

    Is there any way to specify what algorithm opengl uses to texture map a texture onto an object? I would like to use Affine Texture mapping, but it looks like opengl only supports some form of perspective texture mapping. Any ideas?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    Caracas/Venezuela
    Posts
    182

    Re: Affine/Linear Texture Mapping

    It does perspective-correct texture mapping and plain texture mapping.as far as I know. I guess that the exact way of doing it is implementation dependent, since the spec doesn't specify more.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Jun 2000
    Location
    B.C., Canada
    Posts
    367

    Re: Affine/Linear Texture Mapping

    You can give it a hint to do affine texture mapping.

    Code :
    glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST);
    On some implementations this will give you affine texture mapping, on others it won't. Use GL_NICEST to ask for perspective correct texture mapping.

    j

  4. #4
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    Caracas/Venezuela
    Posts
    182

    Re: Affine/Linear Texture Mapping

    What is exactly affine texture mapping?

  5. #5
    Senior Member Regular Contributor
    Join Date
    Apr 2000
    Location
    Redlands, CA, USA
    Posts
    233

    Re: Affine/Linear Texture Mapping

    Linear texture coords. interpolation, no perspective correction.

  6. #6
    Senior Member OpenGL Guru Humus's Avatar
    Join Date
    Mar 2000
    Location
    Stockholm, Sweden
    Posts
    2,342

    Re: Affine/Linear Texture Mapping

    Why would one want that? It's not gonna be faster ...

  7. #7
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    Caracas/Venezuela
    Posts
    182

    Re: Affine/Linear Texture Mapping

    "What is exactly affine texture mapping?"
    "Linear"
    I thought it was something new (english is not my native language).

    Hummus:
    Its faster only in software implementations. I'm 99% shure that no video card 2 years old or less will accelerate a bit by using linear texture mapping.

    [This message has been edited by coco (edited 01-26-2001).]

Similar Threads

  1. Linear Mapping issue
    By sajis997 in forum OpenGL: General
    Replies: 4
    Last Post: 11-28-2015, 03:39 PM
  2. Textures with alpha and linear mapping
    By surfdabbler in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 07-27-2015, 12:05 AM
  3. linear filtering not working for variance shadow mapping
    By Sobeit in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 06-27-2014, 08:00 PM
  4. Affine-looking texture mapping on intel card?
    By keelx in forum OpenGL: GLSL
    Replies: 0
    Last Post: 12-12-2011, 06:22 PM
  5. Non-linear texture transformations with texture shaders
    By Roman Grigoriev in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 03-26-2003, 09:11 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