sidebar features
sidebar content

Go Back   Blender Artists Forums > Support > Tutorials

Reply
 
Thread Tools
tolobán tolobán is offline
Member
 
Join Date: Aug 2004
Posts: 587
After a lot of testing and frustratoin, I think I solved all the problems I had with softbodies for clothes. The only missing part is to tweak them to look more like made of fabrics.

I was trying to make a decent animation but I just can't, so I will use a few still images. Nothing spectacular, but as you can see, at least there is no skin showing through the clothes, and there is none in the animation which leads to these poses. The strange poses show how this works well even with the added complication of muscle simulation of the shoulders using driven shape keys.
Click image for larger version

Name:	pose286.jpg
Views:	685
Size:	29.2 KB
ID:	36010
Click image for larger version

Name:	pose524.jpg
Views:	709
Size:	60.8 KB
ID:	36011
Here are two variations of the last image, using different weights:


In the first parts I will try to cover the basics of modeling of clothes, with good topology in mind before getting into the rigging and setting up of softbodies.

Part 1, modeling

Time: about an hour.
Skills: Modeling, good vertex pushing skills.

I will start with a simple dress model, but the principles apply to many kinds of garments. You'll even find this silly if you are a good modeler.


In a previous tutorial I wrote once, I suggested to make garments out the body mesh, but I don't anymore. Creating them from scratch is faster and the topology gets well done from the start.

I think good topolgy is important for softbodies and the results are better than using triangulated meshes as it is done in other programs. As you can see, the purple faces make clean rings around the arms and the neck, this seems to distribute the stress better.
Name:  loops02.jpg
Views: 15743
Size:  9.1 KB
Name:  loops03.jpg
Views: 15752
Size:  8.6 KB

On a model without these rings, the sides of the dress hang to the sides like this when a softbody is applied:


So, to have something to begin with, snap the cursor to the center of the body and create a cylinder with open ends and an even number of faces from the top view. In this case it has 24 sides. You might have to rotate it so two edges are aligned with the symmetry axis.
Name:  vestido001.jpg
Views: 15768
Size:  5.2 KB

Add all these parallel rings by multiple loopcutting (ctrl R and mouse wheel).
Name:  vestido003.jpg
Views: 15779
Size:  6.9 KB

Scale those rings one by one to roughly conform to the body, sometimes scaling around the cursor and constraining on X and Y as needed.



Here is a rough form.


Now we need to start using the mirror modifier. Depending on which side you prefer to work on, delete the vertices from one side, leaving the ones at the seam. Then add a mirror modifier.


Now do some vertex pushing to refine the shape. This is obviously still a low poly version, so you can't really make this dress fit very well.


Notice how the vertices under the armpit are slightly curved.


Select two edges, one on the front side and one on the back where the straps will be extruded.



Extrude a few times, adjusting the polygons to form the straps and weld the two faces at both ends.



Alt right click on an edge on the arm opening to select the inner edge loop. Press E and, without moving the mouse, press enter.


Press S and scale the selected inside vertices.


Model the arm opening. Now you have a clean face ring from which you can easily extrude a sleeve if you want to.


Now apply the mirror modifier, but don't enable X-axis mirror just yet. Select the edge of the neck opening.

Extrude and scale, just as you did for the shoulders.


Now do enable X-mirror, model the collar and fix the strap.


You can of course make any variation that doesn't have the arm and neck openings aligned, by extruding a row of edges instead of single edges.

An additional step which I always do even if it might be useless (but doesn't harm), is to apply the XSort button to all objects involved. In my early experiments the "clothes" would go through the body even if deflection was activated for both objects and they were in the same layer. After a lot of frustratring tries, deflection started working for no reason, I realized I had done a lot of operations which changed the vertex order of the body mesh, so I tried XSort to somehow order all the vertices and since then deflection seems to work all the time.

This is obviously a low poly first step, which will not create interesting or realistic folds, and covers only the basics for the upper body, but you can make it as polygon heavy as you want depending on the desired effect.

Well this is part 1, still a lot to cover...

Last edited by tolobán; 12-Mar-08 at 06:23.
#1   Old 02-Jun-07, 07:25   
Reply With Quote


aws357 aws357 is offline
Member
 
Join Date: Sep 2005
Posts: 467
Hey ! Nice of you to share your experiments about clothes (and very nice charcaters as always)

What you say about the ring make sense AFTER you exposed it. Clothes react the way they do because of how the material they are made of (silk, cotton, felt) but also because of the way they are sewn... mmmh got to think about this... (I am building a cape for my characters, so of course, I am also thinking about clothes physic)

From my own experience, if you want your clothe to fold randomly, you have to add some randomness to the mesh by yourself first... clothes mesh isn't uniform in real life. Small imperfections and irregularities change the whole system itself.

When I've tried to do a cape, at first, I thought the seams and crease where far too symetric to be real. Then I pushed some vertex... to avoid having a perfect plane... and more realistic crease appeared...

Clothes and softbodies are truly fascinating eh?
............................................
My latest WIP is :
http://blenderartists.org/forum/show...hlight=templar

My WIP blog :
http://digitaldraw.wordpress.com/

Last edited by aws357; 02-Jun-07 at 13:57.
#2   Old 02-Jun-07, 13:53   
Reply With Quote
TaskMaster TaskMaster is offline
Member
 
Join Date: Sep 2005
Location: Pomeroy, Iowa, USA
Posts: 28
Being a good modeller, I appreciate your tutorial but can't effectively use it. In addition, please realize that a dress is very simple from a softbody point of view, rather than say, a pair of pants. . . with buttons and whatnot, and easy to animate without softbodies. Sharing soft settings would be nice, too.
I'm not trying to bash, sorry. It's just that people who are seriously attempting to find a good technique for softbody clothing (like myself) have already gone through steps like this.
............................................
~also known as Falcon McCooper~
#3   Old 02-Jun-07, 14:56   
Reply With Quote
Koba Koba is offline
Member
 
Join Date: Jan 2004
Posts: 1,096
Great tutorial!

I've got a clothes modelling technique (using sculpt) that makes a messy mesh but is much faster. That said, my technique doesn't work well with softbodies.

Looking forward to part 2!

Koba
............................................
[Sanity is not statistical]
#4   Old 02-Jun-07, 15:25   
Reply With Quote
bgstratt's Avatar
bgstratt bgstratt is offline
Member
 
Join Date: Mar 2007
Location: Colorado Springs
Posts: 339
Very Cool, I'd love to see the animation, however incomplete. I look forward to the rest of this tut as well. The rings explanation is excellent. You always have such great work.

About pants, wouldn't this still apply and then using goals, rigging, etc. for non-softbody type parts.
............................................
-Brad
#5   Old 02-Jun-07, 17:24   
Reply With Quote
rolandixor's Avatar
rolandixor rolandixor is offline
Member
 
Join Date: Oct 2004
Location: Barbados
Posts: 426
Great. You should write a tutorial for this...
............................................
Suzy? What happened to your hair?
Politically wrong by right.
http://blendimation.ning.com
http://blenderos.ning.com
http://godlygames.ning.com
http://gamefabric.ning.com
http://kingdomcode.ning.com
#6   Old 02-Jun-07, 18:08   
Reply With Quote
tolobán tolobán is offline
Member
 
Join Date: Aug 2004
Posts: 587
Sorry guys... Don't be impatient, I know that was simple. But using Koba's words, a messy mesh is not a good starting point and a few people might need some modeling reference.

I promise to go straight to softbodies in my next update and leave some other advice for later. Not that I am an expert, I still have to learn to tweak all the settings. What is important for now is to make it work.

Quote:
Originally Posted by aws357
From my own experience, if you want your clothe to fold randomly, you have to add some randomness to the mesh by yourself first... clothes mesh isn't uniform in real life. Small imperfections and irregularities change the whole system itself.
Oh yes, since the mesh needs to be polygon heavy anyway if you want nice results, it is fun to sculpt it to give it shape and erase the symmetry.

Crooking a few loops can also help to fold the way you like, although not with much control.
#7   Old 03-Jun-07, 01:21   
Reply With Quote
ecgilboy's Avatar
ecgilboy ecgilboy is offline
Member
 
Join Date: Sep 2006
Location: Saipan, CNMI USA
Posts: 618
Great tutorial...I learned again something today..thanks..
............................................
#8   Old 03-Jun-07, 04:39   
Reply With Quote
tolobán tolobán is offline
Member
 
Join Date: Aug 2004
Posts: 587
Thanks ecgilboy and everybody.

I have not made extensive tests with softbody settings, so I am not an expert. I am only trying to make it work as much as possible. I have used Blender's defaults and the values from Bjornmose's models and examples:
http://mosebjorn.altervista.org/newsb/

For more information about the settings refer to:
http://wiki.blender.org/index.php/Manual/Soft_Bodies

All the buttons I will refer to here are in the "Physics Buttons" panel which you can make appear in your buttons window, either by pressing F7 twice or by clicking this little icon on the header when the panel is in object mode.

If you have tried softbodies for clothes, you have most likely experienced one or more of these problems:
  • Deflection does not work.
  • Deflection works but the clothes don't move in coordination with the body.
  • Deflection works and the clothes stay in place but the body underneath is showing through the clothes
None of those problems can be solved by adjusting softbody settings only. Although some tweaking of these values can reduce the chance of bad results, there is no magic value that will work if you don't take a few other previous steps.
  • Rig the clothes. You will have to rig the clothes even if you plan to use softbodies. Using pure deflection works for making a cloth fall on a ball, but the clothing object has to move and rotate as the body does.

    You can manually weight paint your model, but there is a script included in Blender which can do this job for you. It is the "Bone Weight Copy" script. It will project the weight assignments in your body mesh to the clothes and the result is usually very good, so good that you might not have to do any hand adjustments at all.

    Select your clothes, shift select the body and run the script. Depending on the polygon count of both models and the quality setting that you choose, it can take several minutes to finish. Sometimes some influences appear where they shouldn't, but normally deleting groups which have nothing to do with the model fixes that. You can also run the "Clean meshes" script afterwards to remove groups which have no influences, like fingers or feet on a dress.

    Then of course, add an armature modifier to the clothes using the body's armature.

    You might have to do some adjustments to tweak how the bones affect the way the softbody behaves.
  • You have to assign a deflection property for both the clothes and the body. Set the "inner" distance value for the clothes according to the size of your model. If this value is too high, the clothes will appear to be too separated from the body, if it is too low, it
    will intersect it more easily. A value between 0.1 and 0.2 works well for me, the scale of my model is about 10 cm per Blender unit.

    You need to make sure that both objects are in a common layer. Maybe this is the most common oversight which prevents deflection to work. They must exist in the same layer although they can also exist in different layers if you want to edit them separatedly.
  • Assign a softbody property to the clothes by clicking on the "Soft Body" button. The defaults should work and bake fast, although they are not optimal for clothes, the softbody is too bouncy. A mass of 1.0 is maybe also too high.
  • Assign goal influences. "Goal" defines how much the softbody simulation will affect certain areas. Vertices in a vertex group designed as goal will be less influenced by the softbody simulation the higher their assigned weight.

    For some simple garments, you might not need it at all, but starts to be needed as it gets more complicated.

    Create a vertex group, named "goal" for example and select it as goal in the goal menu.

    This serves two pourposes:
    • It helps the softbody stay in place. As you can see in this image, the softbody has a hard time with the long sleeves when there is no goal assigned.


      Adding goal influences near the elbows and at the end of the sleeves makes a difference.

    • It keeps the form of modeled details which the softbody simulation would otherwise distort. Softbodies don't keep those details and the baking time increases if the mesh is too complex, so assign a goal to parts such as collars.

      This jacket for example has total goal influence at the collar to always keep its original shape.


      This model is supposed to have a belt around the waist, so goal is used to keep the vertices around it more fixed than the rest.


    If your model has details which can be faked by using normal or bump maps, fake them. In my examples the belt and the pockets use a normal map.

    Loose parts which undergo no deformation, like buckles and buttons, don't even need to be part of the softbody object. They can be independent objects parented to vertices in the clothing or body mesh.
  • After deflection problems, the most common problem is keeping the sking from showing through the clothes. This can be solved by doing some changes to the body mesh or making proxy objects.

    Proxy objects are simple shapes that resemble the forms of the body and are rigged using the body's armature. They should be thicker than the body as the softbodies tend to stick too much and cause intersections with the deflecting object underneath.

    I personally have not used proxy objects because using the body mesh works with acceptable results. To prevent intersections I add a shape key to my mesh, select all the vertices and use alt+S to thicken its shape. I then set this shape key to be active when baking and to 0 when rendering.

    If there are still some parts showing through, you still can reduce those parts until they don't cross with the clothes.
  • If you use the body, depending on the average size of the polygon of the clothes, you can disable the displaying of subsurf to reduce the baking time. I ususally keep the subsurf level for rendering only. If the clothes have a high polygon count, they will start to conform to the blocky contours of the unsubdivided body, in this case turning subdivision on will cause a long long baking.
  • Activate "Self Collision" in the softbody collision tab. I have not played with these values enough.
    More information here:
    http://www.blender.org/development/r...-enhancements/
  • Bake!

    One note before hitting the "Bake" button, the default value for "Interval" is 10, but to make both models move in coordination, I have had to lower this value to 1.

See also AnyMation's threads for other nice results:
http://blenderartists.org/forum/showthread.php?t=96625
http://blenderartists.org/forum/showthread.php?t=96773

Last edited by tolobán; 12-Mar-08 at 06:28.
#9   Old 04-Jun-07, 01:12   
Reply With Quote
FuzzMaster's Avatar
FuzzMaster FuzzMaster is offline
Member
 
Join Date: Jun 2005
Posts: 1,137
Thanks very much for this, you're a real master at this sort of thing. Planning to do any sort of animations?
............................................
Smoke weed, drink booze, we haven't time to lose
#10   Old 04-Jun-07, 01:28   
Reply With Quote
bjornmose's Avatar
bjornmose bjornmose is offline
Member
 
Join Date: Nov 2003
Posts: 605
***** <- 5 stars
excellent work!
---sigh--- !
finally some experianced users got the point that it's all the art of fakin.
--
may be i'am still alive when computers can do all thoose calculations needed to do really nice cloth ( or other stuff i can think of ) in reasonable CPU times. Humm i was 18 when my hands touched the first 'puter .. it was a Z80 machine 16 kByte RAM .. history..

Anyway 'em weather guys nowadays use a 2000 or more high performance CPU cluster to simulate the very thin gas skin of a slighly deformed dirt ball 2/3 coverd with a very funny substance called 'water' by some of the self titleing 'inteligent' events on its surface.
What for ? .. get a 3 days approximate weather forecast ...
---sigh--- !!!!

So, this is what we can do now .. deal with it .. or wait for .. hum ... for what ..?
BM
............................................
humm .. gone back coding

Last edited by bjornmose; 05-Jun-07 at 07:59.
#11   Old 04-Jun-07, 23:43   
Reply With Quote
tolobán tolobán is offline
Member
 
Join Date: Aug 2004
Posts: 587
You heard the man, learn to fake!

So here is yet another little trick for faking. The softbody end result is not at all convincing if you look at it from a close distance. It looks like a paper thin object floating in the air.


So, to fake thickness in a way that will not compromise the simulation. I extrude the inner edgeloop of the ends of sleeves or any other opening, move to the inside and reduce the loop to make a concave shape which will make the intersection with the body not so obvious.


The new vertices are of course given a 100% goal influence so they will not be expensive in simulation time.


Oh, and I always forget to mention:
The armature modifier must always precede the softbody modifier.

Now, I hope to finish some cool image or animation to make my 500th post.

Last edited by tolobán; 12-Mar-08 at 06:30.
#12   Old 05-Jun-07, 08:19   
Reply With Quote
ristesekuloski's Avatar
ristesekuloski ristesekuloski is offline
Member
 
Join Date: Dec 2006
Location: Macedonia
Posts: 528
Jorge, thank you for this amazing tutorial! (also, thanks for those on your site - I have re-read them severl times, even the parts that I don't understand ;o)) ... too bad you removed that lovely female model from your site - it was great reference!
............................................
Einsteindwarf - Free Rig and Model
my Focused critique threads: NinjaGirl - SumoKnight - The Goon - EinsteinDwarf - Hellboy
my art blog: www.ristesekuloski.blogspot.com
#13   Old 05-Jun-07, 08:38   
Reply With Quote
rolandixor's Avatar
rolandixor rolandixor is offline
Member
 
Join Date: Oct 2004
Location: Barbados
Posts: 426
Good job. I'll try it when I have the time. Thanks Toloban!
............................................
Suzy? What happened to your hair?
Politically wrong by right.
http://blendimation.ning.com
http://blenderos.ning.com
http://godlygames.ning.com
http://gamefabric.ning.com
http://kingdomcode.ning.com
#14   Old 05-Jun-07, 19:12   
Reply With Quote
kkrawal's Avatar
kkrawal kkrawal is offline
Member
 
Join Date: Apr 2006
Posts: 1,557
tolobán
Many Many Thanks. Excellent
I got a new idea for my Froggies to put cloth.
#15   Old 07-Jun-07, 05:55   
Reply With Quote
kmaro kmaro is offline
Member
 
Join Date: Sep 2005
Location: mauritius
Posts: 111
Hi Toloban,
Your tutorial is very good. However I found that all dress you modelling and apply softbody are over the knee and not long dress. Because I have try to create long skirt and make my character sitting on her feet, the dress does not move realisticaly and it's very difficult to animate. Hope you got a solution
#16   Old 09-Jun-07, 04:34   
Reply With Quote
(@rwy^'s Avatar
(@rwy^ (@rwy^ is offline
Member
 
Join Date: Apr 2007
Location: Bedford, UK
Posts: 132
Wow..exactly the tut ive been looking for

Great stuff, I knew it would come down to faking it, i just wasn't sure exactly how.

Im gonna try this out soon i hope

(@rwy^
............................................
Blackadder: "A war hasn't been fought this badly since Olaf the Hairy, High Chief of all the Vikings, accidentally ordered 80,000 battle helmets with the horns on the inside."
#17   Old 09-Jun-07, 13:34   
Reply With Quote
davsoft davsoft is offline
Member
 
Join Date: Sep 2006
Posts: 2
I think a better way to be able to do this sorta thing would be a python module that lets you create the pattern of the clothing item as flat polygons, specify stiches, i.e. selecting the two sections of cloth that go together, set fabric to have particular stretchiness(for instance elastic waist bands) and then the module could turn it into a 3d object that can then be scaled and placed on the model.

This would allow more realistic complicated clothing to be created quickly and easily. Thanks,

David
#18   Old 10-Jun-07, 06:33   
Reply With Quote
coodle coodle is offline
Member
 
Join Date: May 2007
Posts: 149
This is me, neablo.
Very impressive what you have achieved again, really nice work.
I had no time to read the whole thread yet, I am still busy with my school exams
but what I have read and seen so far, you have mastered to clothe your models perfectly!
As you said, there's still texture and material work to do but I think that's no problem for you :-)

Looking forward to your first pixar-quality shortfilm! ;-)
#19   Old 10-Jun-07, 12:22   
Reply With Quote
Saypen's Avatar
Saypen Saypen is offline
Member
 
Join Date: Apr 2007
Location: Australia
Posts: 129
Awsome stuff! How long did u spend mucking around with softbodies trying to find the perfect result? Great job.
............................................
Microsoft: "You've got questions, we've got dancing paperclips"
#20   Old 10-Jun-07, 12:43   
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 19:32.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists