[osg-users] 3D Texture Compression

Robert Osfield robert.osfield at gmail.com
Fri Jan 18 02:04:46 PST 2008


On Jan 18, 2008 8:56 AM, hesicong2006 <hesicong2006 at 163.com> wrote:
> Hi everyone,
> I have a volume data which is 256*256*256 cube, and I found it very slow
> when ray-casting. And I notice the video memory usage is 74M. I want to
> compress it to an hardware-support compressed format (S3TC_DXT1 or
> S3TC_DXT3 or S3TC_DXT5), but I found no example demonstrate how to use
> it. I tried to use
> osg::Texture3D::setInternalFormatMode(osg::Texture::InternalFormatMode::USE_S3TC_DXT1_COMPRESSION),
> but the video memory usage appears same as before.
> My computer has a Nvidia Geforce 8800 with latest driver, 3D compress
> texture is support by this hardware.
> Could anyone tell me if another steps needed to use 3D texture compress?

I've just 3D texture compression before and found an improvement.  The
osgvolume example has support for using texture compression.   Just
run osgvolume --help for details.






Robert.


More information about the osg-users mailing list