digitalmor.blogg.se

Optimizer textures (ordenador)
Optimizer textures (ordenador)







optimizer textures (ordenador) optimizer textures (ordenador)

I commonly find images created by others that include an unnecessary, fully-transparent alpha channel. An alpha channel will double the file size of your DDS file and significantly add to game or simulation video processing workload.

  • Don’t include an alpha channel if you don’t absolutely need one.
  • Exporting to DXT5 tends to be much faster and less problematic.
  • I’ve sometimes worked with images that simply refuse to export to DXT1.
  • Learning to use these plugins is beyond the scope of this article, but I have a few observations. NVIDIA offers a free tool for importing/exporting DDS files into Photoshop: To export your image as a DDS file, you’ll need a plugin. They can be created in GIMP or Photoshop or whatever you have. The alpha values are represented by 8 bits each, and the range indices by 3 bits each, allowing for gradients of up to 8 shades.ĭDS images are just regular images with or without an alpha channel. Two alpha values are selected and used as the extremes for a range of transparency values.

    optimizer textures (ordenador)

    DXT5 stores alpha information in a way that is almost the same as color information. In DXT5, the alpha channel is encoded using a second set of 64 bits for each texel. What if the image has an alpha channel? How DXT handles this depends on the codec used. So for any set of images having the same dimensions, compressed size will always be the same. So each texel requires 2×16 bits for the colors, plus 16×2 bits for the indices, giving a total of 64 bits for each texel, which equates to 4 bits per pixel. The two representative colors are stored as 16-bit RGB values (5:6:5). The sixteen pixels of the texel are then assigned a 2-bit index (0-3) that maps them to the color range. For every texel, DXT selects two colors from the texel, each determining one end of a color range of 4 colors. DXT sees images as collections of 4×4 blocks of pixels called “texels”.









    Optimizer textures (ordenador)