Jump to content
  • Advertisement
Sign in to follow this  
verepani

OpenGL different image formats for texturing

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

hi all, I am new to this group. I have created a 3D model using Image modeller and exported to wavafront .obj file format. The image modeler has created the texture images in .jpeg format. I was trying to open the file in OpenGl smooth code by nate robins. But it was not supporting Jpeg file formats. So i changed all the files to .bmp extension and also scaled them. It worked fine, I want to know whether anyone tried texturing with Jpeg file formats, if so what are the problems. Any code for smooth program to support Jpeg will be appreciated bye verepani

Share this post


Link to post
Share on other sites
Advertisement
JPEG turns out to be a moderately crappy format for textures, at reasonable compression rates. It's really not targeted for scaling, and when transcoded to S3TC looks even worse. For compressed textures, native S3TC is best; compression ratios are good, and you'll probably end up compressing it with S3TC anyway. DDS works fine as a wrapper, and there are plenty of tools available to work with it.

Share this post


Link to post
Share on other sites
DevIL is a good image library that supports BMP, JPG, and DDS among other things. It's pretty easy to use with OpenGL.

PNG is another possibility to consider. You get some compression on disk (hey, it's a lot better than BMP) without losing any quality, and it supports transparency.

DDS is about the most flexible. If you download the DirectX SDK you'll get a nice tool for editting these images.

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!