VRayHairInfoTex Setup

This page provides a tutorial for using the Hair Information Map with V-Ray Hair Next Material and hair geometry out of the Ornatrix Plugin.

Overview

This tutorial will cover the standard setup for using the VRayHairInfoTex texture node to add variation to a hair system out of Ornatrix. For more information on the node itself, please see the VRayHairInfoTex page.

The VRayHairInfoTex is set up by connecting it to the diffuse color of a VRayHairNextMtl, with the VRayHairInfoTex set up to use an output of Distance Along Strand or Random By Strand.

This tutorial also works with the free demo version of the Ornatrix Plugin.

images/download/attachments/60099393/Max2020_VRay5_VRayHairInfoTex_PositionAlongStrand_Bias0.5.png

Tutorial Assets

To download the files used in this tutorial, please click on the button below. The Ornatrix Plugin will need to be installed in order to work with the geometry.

images/download/thumbnails/60099393/download.png


Tutorial Steps

In this tutorial, we will create color variations over the hair using the VRayHairNextMtl and VRayHairInfoTex.

Apply VRayHairNextMtl to hair system

  1. Start by adding a VRayHairNextMtl to the hair object and set the preset to use the Sandy Blond preset as a basis.

    images/download/attachments/60099393/Max2020_VRay5_VRayHairInfoTex_createNode.png

    images/download/attachments/60099393/Max2020_VRay5_VRayHairInfoTex_SandyBlond_params.png

  2. Do a test rendering to see the result.

images/download/attachments/60099393/Max2020_VRay5_SandyBlond_preset.png

Resulting Render

Set up Nodes

  1. Create a VRayHairInfoTex node.

    images/download/thumbnails/60099393/Max2020_VRay5_VRayHairInfoTex_node.png

  2. Connect the output of the VRayHairInfoTex node to the diffuse_color_texture multiplier of the VRayHairNextMtl.


    images/download/attachments/60099393/Max2020_VRay5_VRayHairInfoTex_linkingNodes.png

  3. In the VRayHairInfoTex parameters, either the Position along strand or Random by strand index parameter can be selected for the node's output.


    images/download/attachments/60099393/Max2020_VRay5_VRayHairInfoTex_NOcolors.png


Color the Hair

  1. Open the VRayHairInfoTex and set color A and color B to turquoise and pink respectively, as shown below. The Random by strand index option allows different strands to receive different colors, as opposed to changing the color along the strand of each hair when using Position along strand.

    images/download/attachments/60099393/Max2020_VRay5_VRayHairInfoTex_colors.png

  2. Experiment with different colors and bias values in the VRayHairInfoTex to achieve the desired look.

Examples

Random by strand index


images/download/attachments/60099393/Max2020_VRay5_VRayHairInfoTex_RandomByStrandIndex_Bias0.1.png

Bias: 0.1

images/download/attachments/60099393/Max2020_VRay5_VRayHairInfoTex_RandomByStrandIndex_Bias0.5.png

Bias: 0.5

images/download/attachments/60099393/Max2020_VRay5_VRayHairInfoTex_RandomByStrandIndex_Bias0.8.png

Bias: 0.8

Position along strand


images/download/attachments/60099393/Max2020_VRay5_VRayHairInfoTex_PositionAlongStrand_Bias0.1.png

Bias: 0.1

images/download/attachments/60099393/Max2020_VRay5_VRayHairInfoTex_PositionAlongStrand_Bias0.50.png

Bias: 0.5

images/download/attachments/60099393/Max2020_VRay5_VRayHairInfoTex_PositionAlongStrand_Bias0.8.png

Bias: 0.8

Real-world hair or fur does not have a diffuse component. Although the diffuse parameter allows for some artistic control, for realistic results it is best to disable it by leaving the diffuse amount at 0.

In the examples above, we have linked the VRayHairInfoTex node to the diffuse_color_texture slot of the VRayHairNextMtl only for a representative purpose as it makes the effect of the texture more prominent.