PDA

View Full Version : Texture values



bramley1
05-11-2002, 09:56 AM
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

zed
05-11-2002, 12:02 PM
glGetTexImage(..)
btw mightnt be that quick

Pops
05-13-2002, 04:27 AM
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.