- 編集済み
Fitting Hair into a Smaller Hat
Goal: What is the best way I can hide part of someone’s hair so it fits in a smaller hat?
Hey all,
I am creating a project similar to Spine’s mix-and-match example project.
I want to put a “skin” of a hat in front of a character’s hair.
Hats’ size < Hair size
What is the best way I can hide part of someone’s hair so it fits in a smaller hat?
My Ideas so Far:
—Split the head/hair skin into 2 pieces: “Side Burns and Bottom Part of Hair”/“Overlap with Hat” part of hair, and hide the “Overlap with Hat” when he/she is wearing the hat -> It is really hard to position together 2 halves of what should be the same object so the edges are not misaligned or show a small gap between each other. Even if they look aligned in one program (Ex: Photoshop), they might not be aligned in another program (Ex: Spine or Unity).
—Checked Spine’s blending modes -> Blending modes are about mixing colors and not about applying transparency.
—Use Spine’s Mesh deformations to squeeze the hair to fit in the hat -> So far, this is the best option. I am looking for a better option.
Thanks for your help!
Hi,
If I were you, I would add some bones to adjust the width and bind them to the hair mesh, and then use skin constraints to make the hair narrower only when the hat skin is active. It was difficult to explain in words, so I uploaded a short video demonstrating the way.
A simpler approach would be to add a hair skin for when the hat is worn.
I hope this will help you.
Chiming in because hats!
First of all, that was a very smart approach Misaki!
I'd be curious to see the specific art of hat vs hair, but if the hat is smaller, that should be ok! minihats exist and they're super cute. the trick to get hats universally right is to make their curvature like the one in the video so they can stand alone wherever they're put and never following too precisely the border of the head, or the hair peeking out will indeed cause problems. As long as they make a c shape up to a straight border, you should be fine if a minihat look is acceptable.
Otherwise, I'd definitely go with Misaki's smart approach
I'm glad to hear you found it helpful. Thank you for getting back to us!