On Wed, 10 Jan 2007, Robert Osfield wrote:
HI Greg,
On 1/10/07, Goldstein, Gregory A. <[EMAIL PROTECTED]> wrote:
OK, so I'm guessing there's no way to decompress other compression
types, such as ARB compression, using OSG calls?
The OSG just uses OpenGL to do the ARB and DXT compression, and reads
back the compressed data to store on disk. I don't know if it is
possible to give OpenGL a compressed texture and for it to expand it,
while technically possible I very much doubt this is exposed in any
drivers.
I don't know if this will work, but it might: create an osg::Image, and
use the readPixels() method to read the pixels back from OpenGL.
As an aside, the ARB compression types are only placeholders for requesting
compressed textures; the actual implementation (at least on my nVidia
cards) is one of the DXT types.
--
____ __ Eric Sokolowsky (GST) NASA Goddard Space Flight Center
/ __/__/_/__ Visualization Programmer Scientific Visualization Studio
/ __/ _/ / _/ 301.286.3751 Mailstop 610.3 Bldg 28 Rm E102
/___/_//_/__/ [EMAIL PROTECTED] Greenbelt, MD 20771
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/