Hi Daniel, Reading pixels from a compressed texture is going to problematic. First off the pixels are compressed together with neighbouring pixels into small block of pixels, so one byte in the imager will represent a number of pixels.
Second problem is that the documention of the format of compressions techniques isn't widely available. It'd be very useful to know that later, the last time I did a google search into documentation I didn't come up with anything. Perhaps you'll be more lucky. Personally I feel that creating polygons that better match the outline of the objects you want to interesect might be the easist route, rather than having to try to use imagery. Robert. On 7/6/06, Kallfass, Daniel, SDGE1 <[EMAIL PROTECTED]> wrote:
Hi, I'm having problem to read a pixel at a specific position from a compressed texture. I need to read the alpha value of a pixel for an extension of the intersect visitor to be able to handle transparent objects. I can't call texture->getImage() on compressed textures. Whats the problem or is this a known issue? Thanks, Daniel Kallfass _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
