AuthorTopic: Braid script request (Read 4432 times)

I have no idea on how to write a script and would be very grateful if anyone capable could write (if at all possible, of course) a script to build a braid or plait.

This would be very useful for all kind of purposes and not just hair braids.

I'm building this native American head because I very much like the noble stance of the man in the original photo.I still have to figure out how to best build the overall hair mesh but I have already tried several ways of building a braid but nothing really works.A script like the chainmaker from NickE, is the closest to resembling a braid but it needs a twist of 3 strands and chainmaker only simulates 2 strands.

The attached scanline renders are of the head mesh (not subdivided) to give you an idea.

2. Delete all unnecessary vertices, leaving a structure like what is shown in "Type2_Step2". Fill in all the gaps that are left by deleting vertices.

3. Take the rows of vertices shown in yellow and merge them together. Move the merged vertices to line up straight in the X direction like shown in green.

4. Now shape the braids by selecting the edges that surround the braids and pulling them back along the Y direction. Go to Edit>Edge Properties, and make the edges creased. Double click the object in "Object" mode, make the crease angle 91*. This should make it nice and smooth with creases where the hair is folded under another braid of hair. Give it a material and show us what you come up with!

You can delete the edges on top and bottom, copy the object and move it along Y direction and join it to the original, then merge vertices. This mesh is seamlesly tilable, so you can make your braid as long as you wish.

hey Lynn, nice to see such a good model. Have you tried transmapping? That's what most people do I think. Less vertexes for rendering. But there is the shadow thing I guess. Anim8or shadows the whole object ratther then the transmapping from memory.

I know about Knots, played around with it even before asking but with no good result for braids, though a good program in its own right.ADSohr's modeling solution is the best. The mesh can be resized and shaped using Modifier as needed so the braids will look real

Anim8or does indeed create shadows of the invisible parts of a transmap but even rendering in other software which ignores the transparent bits is not so good because there is no "volume". I have finally settled for modeled strands for the front part and a good hair texture and bumpmap for the flat parts leading to the braids. I think this will do the trick.