Questions tagged [dxt]

block compression algorithm giving a compression ratio of 4:1 used predominantly with textures and images

block compression algorithm giving a compression ratio of 4:1 used predominantly with textures and images

11 questions
5
votes
1 answer

Frostbite PBR: different compression on separate texture channels of the same texture

Is it possible, and if yes how would it be possible, to create and read a RGBA Texture with different compression algorithms on separate channels in OpenGL4.x: Example A without real meaning: RG channels stores a normal map encoded in 3Dc B channel…
James Takarashy
  • 299
  • 2
  • 14
3
votes
3 answers

DXT texture compression?

I'm working with multiple images that need to be compressed using the DXT/S3TC format (specifically DXT5). Does anyone know of a DXT compression implementation (preferably in C#, or using the .Net framework) that provides real-time compression? My…
Noah Roth
  • 9,060
  • 5
  • 19
  • 25
2
votes
1 answer

How to compress PNG image with S3TC/DXT algorithm in python?

I try to find way for compressing images(PNG as an example) with any S3TC/DXT algorithm using python libraries. As I can see in Pillow(PIL) library DDS format in Read-only formats section. Therefore Pillow can't be used for this purpose. Searching…
Yuriy Leonov
  • 536
  • 1
  • 9
  • 33
2
votes
2 answers

DXT Compression for Python

I am currently working with Images and some are DXT compressed, I need a easy way of decompressing and compressing of these files with Python. Unfortunatly I was unable to find any library which does that for me. Does anyone know a good…
dav1d
  • 5,917
  • 1
  • 33
  • 52
1
vote
2 answers

Efficiently implementing DXT1 texture decompression in hardware

DXT1 compression is designed to be fast to decompress in hardware where its used in texture samplers. The Wikipedia article says that under certain circumstances you can work out the co-efficients of the interpolated colours as: c2 =…
Mike Vine
  • 9,468
  • 25
  • 44
0
votes
0 answers

Create a CompressedTexture in Three.js from short or byte array

I am working with TypeScript and three.js, and trying to load a compressed texture manually. The texture data is in DXT1 format, and so I have it stored in a Uint16Array. So far I am struggling to create a CompressedTexture from a Uint16Array, so it…
dusty
  • 1
  • 1
0
votes
1 answer

Why are these red and green squares showing up on my PNG?

I have a VTF file that looks like this inside VTFEdit: I tried to convert it to a PNG in Python using the code below: import texture2ddecoder, numpy, cv2 from PIL import Image img_width = 64 img_height = 64 encoded_binary =…
noG23
  • 93
  • 2
  • 7
0
votes
1 answer

Normal map DXT5 compression in Vulkan

In DX10, it is common practice to compress normal maps by placing the Y value in the green channel, and the X value in the alpha, and apply DXT5 compression (the Z component is then reconstructed in the shader). What is the corresponding format in…
Kalle Halvarsson
  • 1,240
  • 1
  • 7
  • 15
0
votes
1 answer

Convert byte array to png image with alpha

I've gone through a lot of questions on here and across the Internet in general and haven't had any success yet. I have a byte array that represents the raw data that should be turned into a PNG image. It has alpha, so my colors are RGBA. As far as…
User51610
  • 453
  • 5
  • 18
0
votes
1 answer

DXT3 (BC2) compression format alpha data

I'm trying to read image info from a dds file. I managed to get the DXT1 and DXT5 formats working fine, however I have a question concerning the alpha data of the DXT3 format (Also know as BC2). When looking at the layout of a compressed BC2 block,…
xEric_xD
  • 506
  • 1
  • 5
  • 12
0
votes
1 answer

Error runtime update of DXT compressed textures with Directx11

Context: I'm developing a native C++ Unity 5 plugin that reads in DXT compressed texture data and uploads it to the GPU for further use in Unity. The aim is to create an fast image-sequence player, updating image data on-the-fly. The textures are…