Jump to content
  • Advertisement
Sign in to follow this  
jsg007

glCompressedTexImage3D not working!

This topic is 3695 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Has anyone succeeded uploading and rendering compressed 3d textures with glCompressedTexImage3D? glTexImage3D works fine, so it's not the problem of setting up the rendering. If I use a compressed internal format for glTexImage3D the 3d texture gets compressed, so that means that the hardware supports internally 3d compressed textures. On two ATI machines tested glCompressedTexImage3D is not working at all. Even if I enter rubbish values (like GL_QUADS instead of GL_TEXTURE_3D) it does not return any error! On an NVIDIA machine glCompressedTexImage3D passes, but the result texture looks like corrupted. So to me it seems that the drivers have bad support for this feature. I cannot find any demo or source code using glCompressedTexImage3D to use as a reference, it is like no one is using this function, but I would really need it since I use 3d textures and they're pretty big, so I want to compress them offline for quality and speed.

Share this post


Link to post
Share on other sites
Advertisement
My guess is that there are no 3D texture compression algorithms, as AFAIK, S3TC, 3Dc and such only support 2D texture.

If there's no 3D TC formats, why bother implementing those functions?

Share this post


Link to post
Share on other sites
The specification has support for 3d textures aswell... and 3d texture is nothing else but a set of 2d textures, so compressing is basically the same.

And remember I want to use an offline compressor, and upload the ready compressed data. If I use regular glTexImage3D with internal compressed format, the driver compresses it, so it's not an issue of hardware supporting it.

I would be curious if someone tried to use this function, and what results he had.

[Edited by - jsg007 on November 4, 2008 3:50:29 AM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!