Up To 40% Bonus On Your First Rechargeclose

Create Non-Interactive Hair Mapping Using XGEN | Maya Tutorial

2023-03-103 min read

When creating animal hair with XGEN, if we want to use a mapping to make the color of the animal hair, it is very easy to achieve with interactive hair. But once we use non-interactive hairs it's a bit more of a toss-up. In this article, the leading cloud rendering service provider and render farm in the CG industry, Fox Renderfarm will share with you how to use a mapping to generate hair color under non-interactive conditions.

Process and Effect

Create a face slice and make sure it has UV.

1

Create a Groom spline.

2

Simply adjust some parameters and update the hairs.

3

Find the Primitive Color under Preview/Output, click the down arrow and appears Create Map, name the Map fur_color, and adjust the Map Resolution (slightly larger value).

4

Once created, click the Brush button to draw a few random strokes on it, then click the Save button.

5

This gives us a new lambert material sphere in Hypershade with the saved mapping we drew automatically attached to it.

6

Click on the folder icon to add a color map for the hair color. It is better to use Xgen with a project directory, many hair mapping textures need to be saved in it.

7

To demonstrate that the hairs are more visible, I use a map with a sharp color distinction.

8

Save again, pay special attention to remember to click save diligently. After updating the hair you can see that the hair has changed color (it does not matter if the color has not changed in the view at this time). But the rendering is definitely wrong at this point. Let's continue to the next step.

9

Move down to the Custom Shader Parameters column, replace the float in the Name property with color, and click the "+", then give the name shade_color (the name here depends on your personal needs). After that, a new column of color shade_color interface will be generated.

10

Then go back to the Primitive Color property bar and click the last button to open the expression editor and copy these two lines of expressions.

11

Go to the color shade_color property bar again to open the expression editor and paste these two lines of expressions. And click Apply and Accept.

12

Again, remember to click the Save button when you are done.

13

Next, create an aiStandardHair in the HyperShade interface and adjust Melanin to 0.

14

An important step is to create an aiUserDataColor node and copy and paste the name of shade_color into its Attribute column. After that, connect this node Out Color to the Base Color in ai StandardHair.

15

We can first create an aiSkyDomeLight to give an HDR rendering to test it.

16

You will find that the colors are not rendered.

17

Because we need to assign aiStandHair material to description9.

By default Xgen is using the hairPhysicalShader.

18

You can see that the colors are displayed properly. But there seems to be some incorrect colors. It is grayish.

19

Back in Preview/Output, add a line of gamma to the expressions of Primitive Color and color shade_color for correction.

Second line of the full expression: "$a->gamma(0.454)".

20

After calibrating the colors, I switched the lighting to aiPhysicalSky for accurate rendering ( I didn't find a particularly good HDR image). This way the Xgen non-interactive hairs use the color of the mapping.

21

Author: JI WEI

Start Rendering Now
Ready to Try Fox Renderfarm?
See why 400k+ CG studios and artists rely on Fox Renderfarm
Ready to Try Fox Renderfarm?
Share This Post on
Business Consulting

Global Agent Contact: Evan Zhang

Email: evan.zhang@foxrenderfarm.com

Marketing Contact: Evan Liu

Email: evanliu@foxrenderfarm.com

MESSAGE US
Newsletter
Keep up with our latest software updates, special offers and events!
Copyright © 2026 FoxRenderfarm.com. All Rights Reserved.