You can save a texture or image file to a Ptex map, and then use the map to assign the texture or image to a Description. When you preview the Description, the primitives use the color values from the texture based on their location on the geometry's surface.
To see the texture color values in your rendered Description, you must connect an xgen_ptex_lookup node to a color channel of your XGen hair shader. See Assign Ptex-based textures to Descriptions.
- In the XGen Editor, click the Preview/Output tab.
- In the Preview Settings section, click the icon beside Primitive Color.
- In the menu that appears, select Create Map.
- Set the options in the Create Map window.
- Type a Map Name.
- Set Map Resolution to a value of 30 or greater.
- Set Start Color to White or Based on attribute.
- Click Create.
This creates a new file node in the XGen shading network.
- In the Hypershade, select the file node.
- In the File node Attribute Editor, browse to the image or texture file you want to save to the Ptex map.
- Before exiting the 3D Paint Tool, click the icon beside Primitive Color to save the Ptex map with the image or texture.
- Preview the Description.
The previewed primitives display with the textures's colors.