Hair Color Texture

Plugins Hair Color Texture

Stopper

Invaluable member
Featured Contributor
Messages
359
Reactions
4,541
Points
123
Stopper submitted a new resource:

Hair Color Texture - Set hair color from a texture

Changes the color of hair based on a texture.

Usage
  1. Add to a Person Atom
  2. Select hair from dropdown
  3. Select texture
    1. The bottom of the texture is the hair root, the top is the tip
      1. Each hair will show a full gradient
    2. Left to right are individual hairs
      1. Hairs are not ordered in any particular way, so getting a specific left<-> right gradient will take trial and...

Read more about this resource...
 
In the demonstration video the red/ dark blue gradient displayed on the hair as light blue green yellow orange.
Is there a specific reason that additional colors got into the gradient?

The blue/green looks somewhat correct.

Just want some further info if something else is happening there to take into account when planning these gradients.

Amazing as always!
 
In the demonstration video the red/ dark blue gradient displayed on the hair as light blue green yellow orange.
Is there a specific reason that additional colors got into the gradient?

The blue/green looks somewhat correct.

Just want some further info if something else is happening there to take into account when planning these gradients.

Amazing as always!
Just a stale thumbnail.
hmm, is there a way to also do a gradient for the specular?
I don't think so. Color is handled specially.
 
Any way of adding an alpha adjust/render queue? Not necessarily an alpha texture but the ability to affect transparency. Want to make a ghost character but the hair is opaque.
 
Any way of adding an alpha adjust/render queue? Not necessarily an alpha texture but the ability to affect transparency. Want to make a ghost character but the hair is opaque.
I poked around and I don't think so. The shader doesn't support it.
 
prestigitis 2024-03-06 15-41-46.jpg


My prayer was answered - Thank you Stopper!
 
View attachment 342292

My prayer was answered - Thank you Stopper!
<3

After I get some of the clothing plugin stuff figured out, I'm likely going to move on to hair plugins.

I'm reasonably confident that it should be possible to 'wrap' hair to a sim proxy similar to what I'm doing with clothing. The idea there is that you would have multiple strands of clothing moving together based on a single strip of clothing, for braids and whatnot.
 
is there a way to add specular reflection to "inside" part of hairs? also add another specular to end of hairs, now with longer hairs, hair ends are so dull and no spec on it. in DAZ there is speculara along all of hair. in vam only on top.
 
If this is possible, with this epic plugin, anyone find a way to add darker roots to the hair close scalp for like a bleach blond chick with her roots showing due to needing another dye job?

Just tried MS copilot for 1st time to generate this example Image and man I'm impressed it can finally not make only monsters:

 
Some hair pieces consist of multiple elements, have you thought of upgrading the plugin so you can select multiple hairs and gradients? Right now I am handling this by using multiple plugins.
 
Hey @HaiiiHarrr since this plugin cant do the gradient we want natively can you please share how you're able to manage this for yourself by using multiple plugins?
 
Hey @HaiiiHarrr since this plugin cant do the gradient we want natively can you please share how you're able to manage this for yourself by using multiple plugins?
let's take this hair: https://hub.virtamate.com/resources/short-hair-8.18230/

it consists of 2 pieces, so I basically I load 2 instances of this plugin, select an individual piece of the hair with each plugin and then create 2 different fade images to match hair length and load it.

It's try and error, but fairly simple if you have e.g. gimp and just want to do a simple "fade" from e.g. black to green. If your graphic program can do more, then multiple color shades should also be doable, but I am happy with simple fades so far.

I have asked the question myself once, so you can just look at my thread. There's also a nice "dummy pic" that helps to get a rough guess.
 
Thank you @HaiiiHarrr I can confirm your method with Mutiple instances of the plugin, one per hair (I use 5 separate hairs just on the head alone), works brilliantly!

Maybe we can get @Stopper to mod the plugin for multiple (infinite) instances?

It took 5 instances of this epic plugin to add roots to this hair style :)
1725985978091.png
 
Last edited:
Hi @Stopper

I've been using this plugin, and while it does work (Both on the person, and on the hair item as a hair plugin) I can't seem to get the texture to persist when importing the PERSON to other scenes using the AppearenceLoader plugin. The plugin loads, but I think the chosen path for the texture file is lost.

Thoughts?
 
Hi @Stopper

I've been using this plugin, and while it does work (Both on the person, and on the hair item as a hair plugin) I can't seem to get the texture to persist when importing the PERSON to other scenes using the AppearenceLoader plugin. The plugin loads, but I think the chosen path for the texture file is lost.

Thoughts?
Hello, @Stopper
I got the information from @VamMoose so I tried an experiment. I packaged the scene that doesn't use AppearanceLoader into a var. When loading the scene from local, the hair color changed, but when loading the scene from var, the hair color did not change.
When the scene file is local, the var version of TargetHair is stored in the scene file as a number, but when the scene is packaged in a var, the version number is converted to "latest".
I'm sorry if I'm wrong, but isn't this plugin not converting "latest" back into a number? Although unconfirmed, it may be necessary to process "SELF" in the hairTexture URL.

local:
{
"id" : "plugin#1_Stopper.HairColorTexture",
"TargetHair" : "vs1.vs1_011_Miyu_Long.2:/Custom/Hair/Female/vs1/vs1 011 Miyu Long/vs1 011 Miyu Long Back.vam",
"hairTexture" : "Custom/Textures/black.png"
}

Package:
{
"id" : "plugin#1_Stopper.HairColorTexture",
"TargetHair" : "vs1.vs1_011_Miyu_Long.latest:/Custom/Hair/Female/vs1/vs1 011 Miyu Long/vs1 011 Miyu Long Back.vam",
"hairTexture" : "SELF:/Custom/Textures/black.png"
}
 
Hi @Stopper

I've been using this plugin, and while it does work (Both on the person, and on the hair item as a hair plugin) I can't seem to get the texture to persist when importing the PERSON to other scenes using the AppearenceLoader plugin. The plugin loads, but I think the chosen path for the texture file is lost.

Thoughts?
I performed one additional experiment.
Changed the Standard reference version option from "Latest (Recommended)" to "Exact" when packaging a scene. This will prevent the var version from being converted to "latest", so loading the scene from var will now work correctly. However, I don't know how this plugin behaves when the hair var is updated, so I don't know if changing it to "Exact" is correct.
 
Back
Top Bottom