Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: DDS file format  (Read 2273 times)

0 Members and 1 Guest are viewing this topic.

Smallpox

  • Newbie
  • *
  • Posts: 2
    • View Profile
DDS file format
« on: May 12, 2012, 02:54:53 pm »
The features page says DDS is supported, but whenever I try to load them into sf::Texture I get a blank texture.

I used gimp to create the DDS file with BC2/DXT3 compression. Works with PNG that has the same file name and location.

Could this be a graphics card/OS problem? I use Intel on Linux.

What am I doing wrong?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: DDS file format
« Reply #1 on: May 12, 2012, 03:46:24 pm »
The features pages is still about SFML 1.6. For an updated list of supported formats, please have a look at the API documentation of the sf::Texture::loadFromFile function.
Laurent Gomila - SFML developer

Smallpox

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: DDS file format
« Reply #2 on: May 12, 2012, 10:17:27 pm »
Thanks. I found the relevant information in sf::Image::loadFromFile, though.

Why did you decide to remove support for DDS?

Is there another way to do texture compression in SFML?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: DDS file format
« Reply #3 on: May 13, 2012, 09:55:45 am »
Quote
Why did you decide to remove support for DDS?
The library that I use internally doesn't support it anymore. And I think it was pretty useless anyway (see below).

Quote
Is there another way to do texture compression in SFML?
There's no way and there's never been, textures are stored as 32-bits RGBA regardless their source format.
Laurent Gomila - SFML developer

 

anything