CabMasterPro User Guide
In This Topic
    Creating Textures Tutorial
    In This Topic

    This tutorial is aimed at those who wish to create their own custom textures for CabMasterPro, although it also contains some useful general knowledge on images. It assumes you have a graphics editing package installed, such as Paint Shop Pro.

    Terminology

    To get the best quality textures, its necessary to know a little about how computers deal with images.

    Finding a Source

    The first step in creating a texture is to decide where the initial image is going to come from. Several options are available:

    Colour Depth

    Also known as "bit depth", this simply means the maximum number of colours that can be used in an image. Because the image is stored as a bitmap, the number of available colours is related to the number of bits used per pixel. Typical colour depths are:

    Bits Colours Description
    1 2 Monochrome: the two colours are black and white. Only really useful for simple line drawings.
    4 16 These use a palette (lookup table for colours), so any 16 colours can be used. Good for flat colour textures.
    8 256 A lot of textures can be reduced to 8-bit colour without degrading the image quality.
    16 65,536 This is not actually used with images, but your desktop may be set to this depth. It uses less memory than 24/32-bit yet the difference visually is usually not too noticeable.
    24 or 32 16.8 million Also known as "true colour". The best bit depth to store photographs and other high colour images in. With 32-bit colour the extra 8 bits are used as an alpha channel (transparency) so has the same number of colours as 24-bit.


    For the mathematically inclined: The number of colours equals two to the power of the number of bits, i.e. c = 2n, e.g. 28 = 256.

    When dealing with colour depth, the best rule is usually to reduce it as much as possible while leaving the image quality as good as it needs to be. For example, a wood grain texture will look great in true colour, but will probably look exactly the same in 256 colours (which takes up one-third of the room). However, reducing it to 16 colours is not usually worth it and the result probably won't look too good.

    Paint Shop Pro has a handy feature called "Count Colors Used". It is available from the Colors menu, and reports on how many different colours are actually being used in an image. This can be a handy guide for reducing the colour depth - if 14 unique colours are found, you can safely reduce the depth to 4-bit (16 colours) with no loss of quality.

    Most textures will usually use several hundred colours, if not a few thousand. In these cases however, it is still worthwhile to try a reduction to 256 colours, as most good graphics packages (Paint Shop Pro included) will have a good palette selection algorithm. What this means is that although the image may use over a thousand colours, many will be very similar and can be converted to the same colour. After reducing a true colour image to 256 colours, there is a good chance you will not notice any difference at all. Although this will not work on all textures, you can always leave the exceptions in 24-bit true colour.

    Image Dimensions

    The size of images determines how detailed the textures will be in a 3D view. Larger sizes will usually result in clearer line-work and features of a texture, but this also increases the file size and the time it takes for CabMasterPro to load it. Obviously this doesn't mean you can enlarge a texture to create more detail - there can't be more than in the original copy. This is why you should scan images at high resolution and then shrink them.

    Selecting the Best Dimensions

    Here are a few guidelines for deciding how big to make your texture:

    Resizing Images

    When resizing a texture, you should always convert it to true colour first. This is because during the resize process, extra colours are created by a technique called anti-aliasing. What this does is reduce the jagged lines that appear as a result of resizing by softening the edges with intermediate colours. Here is an example of an image that has been reduced to 30% of its original size; the one on the left was converted to 24-bit colour first, and the one on the right wasn't:

    Resized Correctly         Resized Incorrectly

    The difference is quite obvious; the image on the right has large gaps in its lines because the graphics program (Paint Shop Pro in this case) did not have enough available colours. In fact, a lot of extra colours were created for the image on the left - the original large image contained five colours, yet the reduced anti-aliased one used over 1000. Once you have resized an image in true colour, you should be able to convert it back to a lower colour depth without any loss of detail. The one thousand colours in the image above were reduced to an 8-bit palette with no visible difference.

    Summary

    In summary, to reduce or enlarge an image containing any number of colours - even two - you should follow these steps

    1. If it isn't already, increase depth to 16 million colours (true colour). [Shift+Ctrl+Zero]
    2. Resize to desired dimensions (suggest you select "Maintain Aspect" and "Smart Size"). [Shift+S]
    3. Count colours used [Alt+C then U]
    4. If it is less than a few thousand colours, try reducing to 256 colours (with "Optimised Octree": "Nearest Colour" or "Error Diffusion", try both). [Shift+Ctrl+3]
    5. If it is less than 100 or so colours, try reducing to 16 colours (usually best with "Optimised Octree" / "Error Diffusion"). [Shift+Ctrl+2]
    6. If reducing the colours caused an unacceptable loss of quality, use Undo to return it to true colour. [Ctrl+Z]
    7. Save the resized image under a new name. [F12]
    Keyboard shortcuts are from Paint Shop Pro 6

    Image Formats

    CabMasterPro supports many different image file formats, because each format has slightly different characteristics such as image quality, compression and colour depth. Listed here are the available formats as well as some of the advantages of each.

    See Also