Results 1 to 2 of 2

Thread: Is there a way to read only a few texels from a texture ?

  1. #1
    Member Newbie
    Join Date
    Oct 2003
    Posts
    30

    Is there a way to read only a few texels from a texture ?

    Hello. I need to read only a few texels from a texture. Something like glGetTexImage, but only for a small portion of the texture.

    Thanks

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jun 2002
    Posts
    365

    Re: Is there a way to read only a few texels from a texture ?

    Originally posted by fuxifuxi:

    Hello. I need to read only a few texels from a texture. Something like glGetTexImage, but only for a small portion of the texture.

    Thanks
    There is no glGetTexSubImage. Render selected part of your texture with orthographic projection and read it back with glReadPixels.

Similar Threads

  1. translating texels in a texture
    By fiche in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-30-2010, 10:39 AM
  2. Replies: 5
    Last Post: 12-09-2006, 10:08 AM
  3. Mapping texels to pixels
    By skynet in forum OpenGL: Advanced Coding
    Replies: 12
    Last Post: 11-26-2004, 09:59 AM
  4. finding used texels...
    By tobiaso in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 05-03-2002, 03:15 PM
  5. Luminous texels
    By Punchey in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 03-05-2001, 12:04 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