I am working on an anime style online RPG game, and for months I've been beating my head trying to figure out how to get my character’s eyebrows, eyelashes, and eyes to show through the hair as if the hair has some transparency effect to show only those but not the character’s head and other parts of the body, just like in the screenshot here
#Eyebrows, eyes, and eyelashes visible through hair
1 messages · Page 1 of 1 (latest)
Seems to me your example just has transparency painted on the texture at the right spots.
I wonder if you have the draw order face (-2), hair (or only bangs) (-1), eyes (0) if that would work
But wouldn't the head and background be visible through the hair when viewing the same spots at a different angle?
Tried something similar but it only show the objects on top of each other instead of seeing them through the hair
I think they only show eyebrows/eyelashes outlines through the hair. Could be rendered separately where the outlines rendered closer to camera
How many angles are you going to view the tip of the bangs from?
Front and the sides, and with players able to go up close with the camera
I would agree if that was just the eyebrows, but for some characters in that game, even the eyes and eyelashes are rendered through the hair too. Not just the outlines
I still think that a simple transparency mask is what you are after. We have made anime style characters before and this is how we did it. Literally only the parts of hair cards that over the eyes,lashes are semi transparent
The concept should be the same. Anything (eyebrows, eyelashes, eye pupils, etc) need to be rendered infront of the hair cards are rendered closer to the camera using vertex shader z offset
I've also seen this done with the stencil buffer. Eyebrows or eyes write to the stencil. And then two different materials are used for bangs, for faded and normal hair. And stencil test for each material is set up so it only uses the faded material over the desired areas.