He's was proposing to use texture->getImage() which would be a roundtrip as well, would it not?
Isn't there some OGL extension for alpha testing/sorting? Not sure. --- RSC BDC > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:osg-users- > [EMAIL PROTECTED] On Behalf Of Robert Osfield > Sent: Thursday, July 06, 2006 9:27 AM > To: osg users > Subject: Re: [osg-users] read pixels from compressed texture > > On 7/6/06, Brad Colbert <[EMAIL PROTECTED]> wrote: > > You could render the texture with a polygon using an osg::Camera with an > > image target. This would allow you to access the contents of the image > > uncompressed. > > > > Just a thought ;) > > It'd would require a round trip to the graphics card so would be > appropriate for real-time usage. > > It occured to me that perhaps you could just detect whether a clump of > four pixels repreates an alpah value of zero or not, this way you > wouldn't need to decode all the pixels to their full RGBA. > > Robert. > _______________________________________________ > 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/
