Images

Image files are used for bringing image assets to Kanzi Studio. In Kanzi Studio images are mostly used as textures, but you can also use them by application code in custom applications. Kanzi supports the most common image formats including:

Image Compression

While most image formats contain pixel data in compressed form, the data is usually taken into GPU uncompressed. However, when images are stored in compression formats that are natively supported by GPUs, images are transferred and stored on the GPU in a compressed form. This reduces the time needed for uploading the image data to the GPU and can boost the performance.

Kanzi supports these compression formats natively supported by GPUs:

See Compressing textures.

Mipmaps

Mipmaps are pre-calculated collections of images that increase the rendering speed and reduce rendering artifacts.

The compression of images and the generation of mipmaps take some time. Which is why preprocessing of images cannot take place immediately when the property values are changed. Images that require preprocessing are prompted to be preprocessed before a .kzb file is exported from project. Since the lack of the preprocessed data is not fatal, the preview is run without the data in case it is not available. Preprocessing of images can also be explicitly launched in image or image folder context menus in project explorer.

See also

Importing images

Importing Adobe Photoshop files with layers

Compressing textures

Images and textures best practices

Textures