Textures

Textures are used in Kanzi applications for image layers and textured materials for meshes. You can import textures to a Kanzi Studio project from common image file formats, including .jpeg, .png, .tiff, and .psd.

In a Kanzi Studio project, you can access the image files in Library > Resource Files > Images. These image files correspond to the files on your hard drive. When you modify a file on the hard drive, Kanzi automatically applies the modifications to the textures generated from that file. If you remove the file from the hard drive, you cannot use the file in your Kanzi project.

When you export your project to a .kzb file, Kanzi extracts the data from the file and converts it into the target format. You can define the target format for each image in Kanzi Studio. It is important which target format you select because this influences the size of the generated .kzb binary and the loading time when your Kanzi application needs the resource.

Loading time of images depends on their size and compression:

Texture types

By assigning textures to materials you can render images on meshes. In Kanzi the following types of textures are available:

See also

Using single textures

Using cubemap textures

Using cubemap render target textures

Using render target textures

Compressing textures

Images and textures best practices

Resource management

Images

Material types and materials

Meshes