Results 1 to 3 of 3

Thread: scale textures without anti aliasing

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2009
    Posts
    2

    scale textures without anti aliasing

    hello
    i would like to scale a texture (generated using glCopyTexSubImage2D()) while avoiding anti-aliasing. Currently i am drawing a simple line on screen- copying that region as a texture and at last scaling the copied texture (using glscale()) just before drawing it. Scaling the texture this way introduces anti-aliasing. any hints/tips on how to avoid this would be of great help.

    thanks!

  2. #2
    Senior Member OpenGL Pro Ilian Dinev's Avatar
    Join Date
    Jan 2008
    Location
    Watford, UK
    Posts
    1,294

    Re: scale textures without anti aliasing

    set texture-filtering to nearest.

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2009
    Posts
    2

    Re: scale textures without anti aliasing

    thank you! that worked.

Similar Threads

  1. Anti-aliasing with fragment shaders and textures
    By jas511 in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 07-25-2012, 02:21 PM
  2. Replies: 0
    Last Post: 02-09-2012, 05:58 PM
  3. Anti aliasing
    By Cucus in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 08-06-2011, 06:43 AM
  4. Anti Aliasing
    By kosta_m in forum OpenGL: General
    Replies: 4
    Last Post: 10-24-2004, 10:36 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