Light Fog, Fluids, and Another Look at Materials ◾ 261
MAKING A SEAMLESS TEXTURE WITH MAYA PAINT
We will look at one interesting alternative to doctoring a texture to make it tile seamlessly:
using the painting canvas in Maya to create a texture from scratch.
Painting a Seamless Tiled Texture
By going to Windows (on the Main Menu) and then choosing Paint Eects, you will reveal
the Maya painting canvas. On the Canvas window, you can select Canvas and then choose
New Image. A window will pop up that will allow you to give your image a name, choose
a background color, and select an image size.
In the middle of the top menu on the canvas window, Figure9.14, are two icons that
need to be selected so that the texture we are making will wrap in both dimensions. ey
are white icons with blue paint strokes on them. ere are red arrows on the top of the
x-wrap icon and on the le side of the y-wrap icon.
Next you paint your texture image, while making sure you use both the top/bottom
wrapping and the le/right wrapping. You will have to play around with it. You should
paint strokes that go o the canvas in both dimensions.
When you save your image, it will end up in:
Documents → Maya → projects → sourceimages
Creating and Tiling a File Texture
Go to the Hypershade and create a le texture; make sure it is a Normal (not Projection)
texture. Use the painting you just made and saved in sourceimages as the le for this tex-
ture. Go to the attributes of the le texture and select the place2dTexture1 tab. (is should
be the default name for the rst texture you create in your scene.) Set the two Repeat UV
numbers to 3 and 3. (Or whatever nonzero numbers you want.)
Notice that because the paint tool will continue a line that goes o the Canvas by
drawing it on the other side of the image, the creator of the image in Figure9.15 did not
have to manually line up the four lines that go o the Canvas in both directions. Our
wrapable texture looks like Figure9.16 on a polygon plane.
FIGURE 9.14 Maya’s canvas.
FIGURE 9.15 A seamless texture.