Open GL texture compression

I am new to Open GL.

Is there a need for texture compression at runtime?

Sure, the way it works is a large texture file, compressed at build time. At run time, you expand parts of the compressed texture file, if necessary, to apply to the surface.

Are there any (trustworthy) circumstances when you expanded the texture data and you need to compress it at runtime?

Thank!

+3
source share
1 answer

(, JPEG zip , ) (, DXT1 ..)? (, DXT), , " ", .

, , - DXT (), ( , ..) . , , , , (, - ) , .

EDIT:

, DXT , glTexImage2D, (GL_RGBA ..) "format" " ", GL_COMPRESSED_RGBA_S3TC_DXT1_EXT DXT1, gl_ext_texture_compression_s3tc.

, glCompressedTexImage2D.

+5

Source: https://habr.com/ru/post/1783309/


All Articles