- Understanding RGBA Stencil Masks for Patterns

Resource by Murano added , read times

Installing DDS plug-ins
Working with The Sims 3 textures requires a DDS plug-in installed in your graphics program. See the following Wiki page which graphics programs support the DDS file format with plug-ins and how to install them: Sims 3 Wiki DDS page


Concept


A pattern in The Sims 3 has four channels to hold mask information. These are Red, Green, Blue and Alpha (RGBA) where every channel can save a greyscale image. The following pattern is going to illustrate the concept of stencil masks, not the making of the pattern itself.



Breaking up this pattern in its colour layers gives us the following:



Now we sort these layers in channels and make them greyscale, so they work like alpha masks for the colours. White is fully opaque, black is invisible and greys are transparent.



Create the RGBA Stencil Mask (Photoshop)


Open a new 256x256 pixel RGB/8 document.



Change to the Channels tab and add an Alpha, since there are four channels in this pattern. You don’t have to add the Alpha channel if you have only 3, 2 or 1 channel used for your pattern. Don’t delete any of the RGB channels. Photoshop won’t like that.



Each of those masks is copied into the correct channel.



With Alpha visible the image will look something like this.



It looks odd but this doesn’t matter as long the masks in channels are correct.

Go to Save as… and choose the D3D/DDS (*.DDS) file format with Alpha channel enabled. Hit Save and the DDS plug-in dialog pops up. Choose the DDS internal format 8.8.8.8 ARGB 32 bpp | unsigned from the drop down list and click Save.



The file is now ready to import into the TSR Worskhop 2.0 Pattern Tool. If you're unsure how to use it, see the TSR Workshop Pattern Tool Manual.

Note
Almost all kind of meshes in the Sims 3 do have a Stencil Mask. This time they don’t hold colours but are the mask for patterns to compose the final mesh texture.


Keywords:

mask | stencil | tool | pattern | dds | rgba
 
Please wait - loading...
Please wait - loading...