Results 1 to 3 of 3

Thread: Texture values

  1. #1

    Texture values

    Hi
    Does anyone know how to read the colours of the pixels in a texture, without having to display it on a polygon and then use a function such as Glut Read Pixels.

    Many
    thanks

    D

  2. #2
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: Texture values

    glGetTexImage(..)
    btw mightnt be that quick

  3. #3
    Member Contributor
    Join Date
    Apr 2002
    Location
    UK
    Posts
    50

    Re: Texture values

    You could loop through the image data between loading it and turning it into a texture. I use this for colour keying in my app and doesent take too long.

Similar Threads

  1. Passing values f32 values [-1 to 1] to my FS via texture obj
    By koustavroy in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 08-23-2015, 07:45 AM
  2. Replace texture alpha with colour values from another texture
    By grasshop in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 09-07-2012, 09:10 AM
  3. Replace texture alpha with colour values from another texture
    By grasshop in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 09-06-2012, 01:16 PM
  4. Min/max texture values
    By thinks in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-24-2010, 08:12 AM
  5. Writing values to a texture
    By ropel in forum OpenGL: GLSL
    Replies: 12
    Last Post: 03-19-2007, 08:19 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