Making A PSD Network In Maya
I'm sure you all know how to use the automated create PSD network in Maya. In this tutorial I'll show you how to make it by hand in the hypershade.
This tutorial assumes you have a basic knowledge of nodes and connections.
Getting The UV Snapshots
You'll need these to represent the UVs on the texture map.
Step three - Leave the file in its default location; set the resolution to the size that you want your final texture map to be in pixels. The image format must remain a non-compressed format. Example: a JPeg format won't work. Click okay and you're done.
Creating The Adobe Photoshop File
First open Adobe Photoshop.
Depending on your requirments, you need to create a new layer for each attribute you want to texture map. Example: one for color, one for bump map, one for diffuser.
PSD File Structure
When you load the file into Maya, Maya can't select each individual layer. What it can select is a group of layers from a file (this is done through a PSD file node). So in Adobe you must define a group for each texture map. You can have multiple layers inside the group.
Step one - Select a layer and go to layer>group layers. Change the name from group to the names of the texture map. Example, color, diffuser, transparency, etc. This is required. Maya will reference this group by its name.
Step two - Repeat step one until you've put all your maps in a group.
Step three - Save your file in your source images folder (documents/Maya/projects/current project (default)/source images/). Make sure you save it as a PSD file.
Importing The UV Snapshot
The UV snapshot tells you where the UVs are placed while texturing.
Step three - Close the new document and go back to the PSD file.
Step five - The UV snapshot has a black background to it that will not work because we can't see under it. To fix that, we'll use the background eraser tool.
If you can't see the tool, click on the eraser icon, hold, and wait for the menu to come out, then select "background eraser tool".
Step six - Set the background eraser to the settings in the image below.
Set the foreground color to white and the background color to black.
Save the file.
Back to Maya.
Now that we've created our PSD file, time to load it into Maya. First we're going to need to open the hypershade. Go to window>rendering editors>hypershade.
Step two - Under the create Maya node section, roll down to until you find the PSD file. Don't confuse this with the standard file node - there's a big difference. We'll explain that later.
Step six - Back in the hypershade middle mouse button drag and drop the PSD file node onto the shader.
Step seven - Select the appropriate connection to be made, example: if the PSD file node is linking to the color texture, it should connect to the color attribute of the shader.
Step nine - Select your model, right click on the shader in the hypershade, hold and select assign material to selection.