# Hair rnd by strand

**URL:** <https://forums.chaos.com/t/hair-rnd-by-strand/44857>\
**Category:** General\
**Created:** [April 12, 2013, 8:31am UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857 "2013-04-12T08:31:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulDryzen](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@paulDryzen](https://forums.chaos.com/u/paulDryzen)\
**Post date:** [April 12, 2013, 8:31am UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/1 "2013-04-12T08:31:17Z")

</div>

Heya,

I am somehow too stupid to use the rnd by strand feature.

Anyone who can help me out?

Thanks Paul

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [April 12, 2013, 9:47am UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/2 "2013-04-12T09:47:55Z")

</div>

In the latest nightly builds, the VRayHairSampler texture has a “random by strand index” output that you can use to drive a ramp, for example.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![paulDryzen](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@paulDryzen](https://forums.chaos.com/u/paulDryzen)\
**Post date:** [April 12, 2013, 11:04am UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/3 "2013-04-12T11:04:52Z")

</div>

Heya,

I have the nightly from yesterday. Do I need to upgrade?  
And into which connection of the ramp should I connect the output? uCoord?

Paul

---

<div class="post-metadata">

**Author:** ![yolov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/yolov/32/11920_2.png) [@yolov](https://forums.chaos.com/u/yolov)\
**Post date:** [April 12, 2013, 11:06am UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/4 "2013-04-12T11:06:53Z")

</div>

Hi,

The nightly from yesterday is good for the random by strand output. If you’re using a Uramp connect to uCoord, for vRamp - vCoord. Hope that helps.

---

<div class="post-metadata">

**Author:** ![paulDryzen](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@paulDryzen](https://forums.chaos.com/u/paulDryzen)\
**Post date:** [April 12, 2013, 11:13am UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/5 "2013-04-12T11:13:32Z")

</div>

Hm, not working. I try to use it with VRay fur, maybe this is the problem?

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [April 12, 2013, 12:04pm UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/6 "2013-04-12T12:04:49Z")

</div>

Ah, that’s probably it. It works for Yeti and Maya hair, but not for VRayFur yet. For VRayFur, you can try using a fine noise map to color the strands.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![paulDryzen](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@paulDryzen](https://forums.chaos.com/u/paulDryzen)\
**Post date:** [April 12, 2013, 12:50pm UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/7 "2013-04-12T12:50:18Z")

</div>

Okay, sure noise works too 🙂 Thanks for the info.

---

<div class="post-metadata">

**Author:** ![jpwestmas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jpwestmas](https://forums.chaos.com/u/jpwestmas)\
**Post date:** [September 16, 2013, 1:47am UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/8 "2013-09-16T01:47:17Z")

</div>

I can’t get random by strand to work with Shave Display through a ramp shader. Is this a known issue? When I hook up the random by strand feature (in the hair filter) to a vramp I just get a single color even though there are 2 or more colors in the ramp. This is even visible in the hypershade preview icons.

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [September 16, 2013, 7:58am UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/9 "2013-09-16T07:58:53Z")

</div>

I’m not sure it works for S&H either; I will have to check.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![jpwestmas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jpwestmas](https://forums.chaos.com/u/jpwestmas)\
**Post date:** [September 16, 2013, 4:17pm UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/10 "2013-09-16T16:17:21Z")

</div>

Thanks Vlado, what’s interesting to me is that a B&W Vramp works fine with defining distance along strand and then plugging that into transparency. So I guess there is some kind of limitation centered around random colors for some reason. I’m essentially attempting to get more of a salt-pepper variation in the hair colors to express age, dirt or color highlights.

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [September 16, 2013, 4:28pm UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/11 "2013-09-16T16:28:45Z")

</div>

> [@Mihail.Djurev](#):
>
> Thanks Vlado, what’s interesting to me is that a B&W Vramp works fine with defining distance along strand and then plugging that into transparency. So I guess there is some kind of limitation centered around random colors for some reason. I’m essentially attempting to get more of a salt-pepper variation in the hair colors to express age, dirt or color highlights.

Why don’t you use the Shave & Haircut controls for that (mutant color or something), and then just set VRayHairInfoTex to use the Hair&Fur color?

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![jpwestmas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jpwestmas](https://forums.chaos.com/u/jpwestmas)\
**Post date:** [September 16, 2013, 4:32pm UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/12 "2013-09-16T16:32:17Z")

</div>

> [@Fluid boundig box](https://forums.chaos.com/t/fluid-boundig-box/42234/6):
>
> Why don’t you use the Shave & Haircut controls for that (mutant color or something), and then just set VRayHairInfoTex to use the Hair&Fur color?
> 
> Best regards,  
> Vlado

Because I didn’t know about it or how it could be used with Shave. 🙂 I’ll give that a try.

---

<div class="post-metadata">

**Author:** ![jpwestmas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jpwestmas](https://forums.chaos.com/u/jpwestmas)\
**Post date:** [September 16, 2013, 5:02pm UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/13 "2013-09-16T17:02:23Z")

</div>

> [@Fluid boundig box](https://forums.chaos.com/t/fluid-boundig-box/42234/6):
>
> Why don’t you use the Shave & Haircut controls for that (mutant color or something), and then just set VRayHairInfoTex to use the Hair&Fur color?
> 
> Best regards,  
> Vlado

I can’t find any info on its whereabouts. Is this VrayHairInfoTex a node by itself or is it a connection part of another node?

---

<div class="post-metadata">

**Author:** ![yolov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/yolov/32/11920_2.png) [@yolov](https://forums.chaos.com/u/yolov)\
**Post date:** [September 16, 2013, 5:31pm UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/14 "2013-09-16T17:31:58Z")

</div>

> [@3ds Max 2013 Product Update 4](https://forums.chaos.com/t/3ds-max-2013-product-update-4/42265/14):
>
> I can’t find any info on its whereabouts. Is this VrayHairInfoTex a node by itself or is it a connection part of another node?

It’s basically the hairSampler node in the utilities section of the hypershade.

---

<div class="post-metadata">

**Author:** ![jpwestmas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jpwestmas](https://forums.chaos.com/u/jpwestmas)\
**Post date:** [September 16, 2013, 5:49pm UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/15 "2013-09-16T17:49:39Z")

</div>

> [@autodesk has taken their moneygrabbing to a whole new level!](https://forums.chaos.com/t/autodesk-has-taken-their-moneygrabbing-to-a-whole-new-level/42274/19):
>
> It’s basically the hairSampler node in the utilities section of the hypershade.

So what everybody is saying is: just Connect the “out color” or “hair color” output (of the hairSampler) to the overall color of the Vray Hair material? Which in turn uses the color settings from shave.

yes, that does work, but like I mentioned somewhere else, it does render 30% slower then. I guess that’s to be expected.

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [September 16, 2013, 5:57pm UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/16 "2013-09-16T17:57:11Z")

</div>

It’s odd that it renders slower. Does it do that even if the colors are still the same?

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![jpwestmas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jpwestmas](https://forums.chaos.com/u/jpwestmas)\
**Post date:** [September 16, 2013, 6:36pm UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/17 "2013-09-16T18:36:04Z")

</div>

> [@Vray "material select render element" output material ID or flat color?](https://forums.chaos.com/t/vray-material-select-render-element-output-material-id-or-flat-color/40467/13):
>
> It’s odd that it renders slower. Does it do that even if the colors are still the same?
> 
> Best regards,  
> Vlado

Interesting: At a resolution of 500px

-) shaveHairShape (hairColor connected to overallColor) Colors/ Same color value in all shave slots: 6m 38sec

-) shaveHairShape (hairColor connected to overallColor) Colors/ Multiple color values between shave slots: 5m 51sec

-) remapColor/gammaCorrect node (connected to overallColor) single color node: 4m 59sec

---

<div class="post-metadata">

**Author:** ![svetlozar.draganov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/svetlozar.draganov/32/53004_2.png) [@svetlozar.draganov](https://forums.chaos.com/u/svetlozar.draganov)\
**Post date:** [September 19, 2013, 8:00am UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/18 "2013-09-19T08:00:22Z")

</div>

> [@Delete unused nodes deletes light selects](https://forums.chaos.com/t/delete-unused-nodes-deletes-light-selects/41103/5):
>
> Interesting: At a resolution of 500px
> 
> -) shaveHairShape (hairColor connected to overallColor) Colors/ Same color value in all shave slots: 6m 38sec
> 
> -) shaveHairShape (hairColor connected to overallColor) Colors/ Multiple color values between shave slots: 5m 51sec
> 
> -) remapColor/gammaCorrect node (connected to overallColor) single color node: 4m 59sec

Can you provide example scenes about these tests ?

---

<div class="post-metadata">

**Author:** ![jpwestmas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jpwestmas](https://forums.chaos.com/u/jpwestmas)\
**Post date:** [September 19, 2013, 8:18pm UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/19 "2013-09-19T20:18:01Z")

</div>

Hi thanks for your attention. I sent a scene to support with a link to this thread.

---

<div class="post-metadata">

**Author:** ![jpwestmas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jpwestmas](https://forums.chaos.com/u/jpwestmas)\
**Post date:** [September 24, 2013, 2:41pm UTC](https://forums.chaos.com/t/hair-rnd-by-strand/44857/20 "2013-09-24T14:41:33Z")

</div>

Were you guys able to see longer render times with the shave colors being plugged into the overall color of VRHairMtl? Just want to know if I made a mistake somewhere and if there is a different way to get color streaking in the hair using Shave.

[Next page](https://forums.chaos.com/t/hair-rnd-by-strand/44857.md?page=2)
