Forum: Poser - OFFICIAL


Subject: Strand Hair Shader convert to Superfly from Firefly

rokket opened this issue on Oct 07, 2022 ยท 10 posts


rokket posted Fri, 07 October 2022 at 8:21 AM

Can someone show me how to convert this to Superfly? Plugging the hair nodes into the math functions isn't allowed in Superfly. And I want to be able to use this idea:


If I had a nickle for ever time a woman told me to get lost, I could buy Manhattan.


hborre posted Fri, 07 October 2022 at 9:52 AM

In trying to understand what the nodes are doing, I expanded the preview windows on all the nodes to get an idea of what Poser is interpreting.  The two 'illegal' hair nodes plugged into the Divide math function are creating a gradient as illustrated below:

                                                                                       


So, this is the arrangement I created based on what would be legal for Superfly:

   

Your control over how the gradient will behave is based on Value 2 of the Bias Color_Math node; changing the grayscale will shift the gradient up or down. 


rokket posted Fri, 07 October 2022 at 10:27 AM

Cool, I will give that a shot. I am only doing it on the bangs of Sydney's hair. The rest will stay blonde. My little Supergirl is a rebel in her "bad" form.

Edit: I only want two colors, so I am assuming that I would just change the color ramp to that...

If I had a nickle for ever time a woman told me to get lost, I could buy Manhattan.


bagginsbill posted Fri, 07 October 2022 at 10:42 AM

I wrote this shader in answer to a question long ago - how do I get a number indicating position along the length of a hair. You might say it's the W coordinate of the UVW (3D) coordinates associated with strand-based hair.

This is a hack - I took advantage of the hair node's root vs. tip color gradation. The color coming out of this node combines that gradient with a lighting equation. By dividing that by "white" hair, the lighting is canceled out and you get simply the position along the gradient.

It is illegal to use lighting nodes as "data" for math in SuperFly, so this isn't a tactic one can use with SuperFly.

However, SuperFly has many other nodes that reveal internal coordinates that FireFly never had. Perhaps there is literally a W coordinate you can get from the strand hair.

Using the "V" coordinate won't cut it - that will color each hair uniformly, not changing from root to tip. It will just change from top to bottom on the UV map.


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)


hborre posted Fri, 07 October 2022 at 10:49 AM

Modulate the colors in the ColorRamp through the Input value depending on what colors you want to use.  This is an example with the colors above:

                                                                                                        

Change the colors in ColorRamp to your liking and play with the Input.


bagginsbill posted Fri, 07 October 2022 at 10:51 AM

Note the color ramp was how to use that W number to make a rainbow. It has nothing to do with evaluating the W coordinate. If you only have two colors you would just directly use the root and tip color as-is.


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)


hborre posted Fri, 07 October 2022 at 11:16 AM

I didn't notice your post, Bagginsbill, glad you chimed in.  And unfortunately, the actual HairBsdf nodes are very limited in options and a PrincipledhairBsdf node only exists in P12.


rokket posted Fri, 07 October 2022 at 11:28 AM

I got it to work with a little tweaking. I will post an image when I get one.

If I had a nickle for ever time a woman told me to get lost, I could buy Manhattan.


rokket posted Fri, 07 October 2022 at 11:33 AM

I actually tweaked the value2 of the color math node, making it darker until I got the mix I wanted in the hair. It's still not perfect, but it's closer to what I was after.

If I had a nickle for ever time a woman told me to get lost, I could buy Manhattan.


rokket posted Fri, 07 October 2022 at 12:14 PM

Not too bad. But not perfect either. I will play with it more later.


If I had a nickle for ever time a woman told me to get lost, I could buy Manhattan.