Convert PFM to DDS
Turn PFM images into DDS. Values from 0 to 1 are shown as black to white without a brightness curve, and values outside that range are clipped, so depth or disparity maps need scaling first.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop PFM files on the dialor turn it to pick what to do
A game texture from a PFM image.You get one DDS file at the same size as the PFM, block-compressed as games use it.
What you get
A DirectDraw Surface texture at the same width and height as the PFM image. It is block-compressed, the way games use textures.
The conversion produces one file.
How values are shown
Values from 0 to 1 are shown as black to white, without a brightness curve. Values outside that range are clipped.
Depth and disparity maps often hold values outside 0 to 1. Scale them into that range first, or the clipped areas come out as flat black or white.
Going back
To turn a texture into a PFM image again, use DDS to PFM.
PFM and DDS.What each format is.
The formats
Portable FloatMap
Floating-point pixels in the PNM family, used for HDR and depth maps.
- Extensions
- .pfm
- MIME type
- image
/x -portable -floatmap - Kind
- Images
DirectDraw Surface
DirectDraw Surface textures for games.
- Extensions
- .dds
- MIME type
- image
/vnd -ms .dds - Kind
- Images
In your code.The same PFM to DDS conversion through the API, for your app or your agent.
$ cv convert photo.pfm photo.dds$ cv convert photo.pfm photo.ddsQuestions.What people ask about PFM to DDS.
Yes. The texture has the same width and height as the PFM image.
They are clipped. Anything outside the range from 0 to 1 is cut off at the limit.
Yes, but scale it first. Depth and disparity maps need their values brought into the range from 0 to 1, or the clipped parts lose their detail.
Yes. It is block-compressed, as games use textures.