Jump to content
  • Advertisement
Sign in to follow this  
Wikiquaker

OpenGL Texture ram usage ad opengl

This topic is 4859 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

What format does opengl uses to compress textures? I'm making a map for www.planetquake.com/qbism but I got a question. It supports both JPG and TGA textures, what is the difference between them? For regular textures with no materials, is there much loss by using 8bits TGA? How can I know how much ram textures are needing?

Share this post


Link to post
Share on other sites
Advertisement
OpenGL uses whatever the card supports, in the case of most computer thats going to be the DXT compression the same as DX uses.

JPG are lossy compressed, TGA arent and have an alpha channel.
Try the 8bit TGAs and see, however chances are you'll want to keep as much colour infomation as you can, a 32bit DXT compressed texture is going to look better than a 16bit texture and probably take less room.

You can estimate at how much space you'll require by adding the size of the textures together, however if you upload them and ask for them to be compressed by the card this wont be very accuate, so its often best not to worry about it.

Share this post


Link to post
Share on other sites
There an article out there comparing 3dfx proprietary texture compression with DXT and it says that 8bits textures should look as good as 24bits 99% of the time. I think it's true, for concrete, grass, glass, bricks, blocks and many other textures with no alpha channel, both 8bits and 24bits versions looks nearly, if not exactly, the same for me.

Share this post


Link to post
Share on other sites
beware! paletted textures are history, ati cards don't support them anymore for quite a while.

dxt (S3TC) is the future.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Then I got a problem, rhe engine still has no support for dxt.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!