Textures
The Textures list inside the General tab holds the texture variants of the drawable, lettered a, b, c and so on. A drawable can have up to 26.
Adding and arranging
- Add textures accepts
.ytd,.dds,.pngand.jpg. Image files are converted to a texture dictionary at build time. - Files can be dropped onto the list from Explorer.
- Drag rows to change the letter order.
- Preview opens the texture in a popup, double-click opens the drawable in the 3D preview with that texture.
Warnings
A warning icon on a texture means one of these, and the hover text says which:
- The width or height is above the limit set for its type in Settings (diffuse, normal or specular, 1024 by default).
- The width or height is not a power of two.
- The mipmap chain is missing.
The drawable carries the same warning in the list until the texture is fixed or the warning is ignored.
Optimize a single texture
Right-click a texture and pick Optimize texture. The window shows the current and the resulting texture and offers:
- Downscale texture size to a half or a quarter.
- Change texture compression to DXT1 (no alpha) or DXT5 (gradient alpha).
Nothing is written until the resource is built. The row shows an icon while an optimization is pending and Undo optimize clears it. Several textures of the same size can be optimized in one go.
To change many textures at once, repack UVs or clean tinted blacks, use Optimize textures and UVs instead.
Embedded textures
The Embedded tab lists the normal and specular maps stored inside the .ydd. They can be renamed, replaced by an image file, optimized the same way as external textures, or exported as DDS or PNG.
Export
The row menu exports a texture as .ytd, .dds or .png. The drawable menu exports all textures at once, see Drawables.