You are on page 1of 24

15/7/2014 MakeClothes: Making a simple dress | Makehuman

http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 1/24

Recomendar esto en Google
Search
MakeClothes:Makingasimpledress
Makingasimpledress
Startwithanemptysceneandaddacharacter.Sincedressesaremainlywornbywomen,weselectthecharactertype
AverageFemale.Adressistypicallyattachedtothetightsandskirthelpers,soweneedtoloadaHumanWithHelpers.
Ahumanmeshappearsintheviewport.
Home Download Gallery Blog Docs FAQ Forum BugTracker Thecrew Joinus
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 2/24
Nowmodelthedress,usingthehumanmeshasareference.GivethedressmeshtheobjectnameDress.Thisis
important,becausetheobjectnamewilldeterminethefilepathsaswellastheclothing'snameinMakeHuman.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 3/24
Assignamaterialtothedress.Wewillgoforasimple,monochromaticmaterialwithouttextures.Againwemustchoose
anameforthematerial.Thenamewillappearinthemhmatfilethatdescribestheclothing'smaterialproperties.
NotethattherenderenginemustbesettoBlenderInternaltocreatethematerial.MakeClothesdoesnotworkwiththe
Cyclesrenderer.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 4/24
Beforewecanassociatethedressmeshwiththehumanmesh,itmustfirstbeUVunwrapped.Tothisend,createseams
atsuitableedges.
UVunwrapthemesh.Atthispointwecouldpaintatextureforthedress,butforoursimplemonochromaticmaterialthis
isnotnecessary.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 5/24
Finally,wearereadytocreatetheclothes.PresstheMakeClothesbutton.
Sincetheprogramcantakequiteawhiletocomplete,wecanmonitorprogressintheterminal/doswindow.Forevery
tenthvertex,thefollowinginformationisprintedintheterminal:
Clothingvertexnumber
Closesthumanvertexinsamevertexgroup.
Distancebetweenclothesvertexandhumanmeshface.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 6/24
Vertexgroup
Clothesvertexgroupindex
Humanvertexgroupindex
Theoutputfilesarealsolistedintheterminalwindow.
MakeClothescreatesanewfoldernamedliketheclothingname(inthiscasedress),withthreefilesinit:
dress.mhclo:Describestheassociatebetweenclothingandhumanvertices.
dress.obj:Describestheclothesmesh.Thisisastandard.objfilewhichcanbeimportedintomostpackages.
dress.mhmat:Describesthematerialproperties.
Bydefault,thedressfolderiscreatedinthefollowingdirectory:
OnWindows:Documents\makehuman\data\clothes
OnLinux:~\makehuman\data\clothes
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 7/24
Ifthenewclothingissaveinthedefaultdirectory,MakeHumanshouldfinditautomatically.OpenMakeHumanandgoto
theGeometries>Clothestab.Anewbuttonnameddressshouldappearintherighthandpanel.Pressit,andthe
characteriswearingthedressyoujustcreated.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 8/24
Thesizeandshapeofthedressadjustsitselfautomaticallywhenthecharacterslidersaremoved.
Modellingclothesstartingfromhelpergeometry
Itissometimesconvenienttousethehelpergeometryasastartingpointformodellinginfact,thisishowthedressinthis
tutorialwasmodelled.However,therearesomepitfalls.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 9/24
Entereditmodeandselectthetightsandskirthelpers.Thisismosteasilydoneinthematerialstab.PressShiftDto
duplicatetheselection,andPtoseparatetheduplicatedgeometryintoaseparateobject.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 10/24
RenamethenewmeshtoDressandmoveittoaseparatelayer.ThemeshtypeisstillHuman,sochangethattoClothing.
Deletethetightsverticesbelowthewaist,andsnapthetightswaisttotheskirtwaist.Thewaistnowconsistsofpairsof
verticesatidenticallocations.Removedoublestojointheupperandlowerparts.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 11/24
Thedressnowconsistsofacontiguousmesh,butthematerialsarestillthoseofthehuman.Unlinkthehumanmaterials
andcreatethebluishDressmaterial,aswedidinthefirstpartabove.
WenowproceedtopresstheMakeClothesbutton,butthereisasurprise.MakeClothesraisesanerror,sayingthat
somevertexbelongstothreegroups.Thishappensbecauseautomaticvertexgroupassignmentworksdifferentlyfor
humansandclothes.Inaclothing,eachvertexmustbelongtoexactlyongroup,butinahumanthereisnosuch
restriction.Inparticular,theverticesalongthesymmetryplanex=0areassignedtoallthreegroups,Mid,Left,Right.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 12/24
Tofixthis,ShowAutomaticVertexGroups,andpressAutoVertexGroups.SincethemeshtypeisnowsettoClothing,
vertexgroupsareassignedinthecorrectfashion,andinparticulareachvertexbelongstoexactlyonegroup.
Addingatexture
Inthissectionwereplacethesimplemonochromaticmaterialwithatexture.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 13/24
Firstcreatetheimage,e.g.usingBlender'stexturepaintmode.Savetheimageinthesamefolderastheblendfile.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 14/24
AssignthetextureasanimagetextureinBlender'stexturetab.NotethatMakeClothesexpectsthattheoldBlender
Internalrendererisused,notCycles.
MakeClothesautomaticallyrecognizesthatthematerialhasatexture,andtheimageiscopiedtothedressfolderinthe
data/clothesdirectory.Nexttimeyouenablethedress,ithasanontrivialtexture.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 15/24
SometimesitisnecessarytorestartMakeHumanafterclotheshavebeeneditedtomakethechangesstick.Itisnotclear
tomewhythisisso,andhopefullythisglitchwillgoawayinthefuture.
Othertypesoftextures,suchasnormalandspecularmaps,arecreatedinananalogousfashion.AddthemtotheBlender
material,andthecorrespondingtexturesareusedinMakeHuman,totheextentthatafeaturehasbeenimplemented.
Hidingfaces
Clothesadapttothecharacter,butsometimesblotchesofskincanbevisiblethroughclothes.Theproblemisparticularly
severefortightandlowpolyclothes,andisfurtheraggravatedbyposing.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 16/24
Hereweseethatthedressdoesnotquitecoverafatwomansbellyonthesides.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 17/24
Oursolutiontothisproblemistohidefacesinthehumanmeshthatarehiddenbyclothes.Thisisnotaperfactsolution,
forseveralreasons:
Itdoesnotworkformultipleclothesstackeduponeachother.
Hiddenfacesmayinfactbevisiblefromothercameraangles.
Itmakesitimpossibletoundressanexportedcharacterinanotherapplication,sincetheunderlyingbodyisnotthere.
Imperfactasitis,removinghiddenfacesdoesfixsomeofthemostblatantproblems.
InBlender,selectthehumanverticesthatarecoveredbythedress,andassignthemtotheDeletevertexgroupsthatwas
automaticallycreated.Notethatwhenavertexisremoved,soareallfacesthatitbelongsto.Wemustthereforebe
carefulnottoassigntomanyverticesclosetoclothesboundarytotheDeletegroup.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 18/24
WithhiddenverticesassignedtotheDeletegroup,pressMakeClothes.InMakeHuman,theblotchofskinpoking
throughtheskirtisgone.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 19/24
TheoptionHidefacesunderclothescontrolsthevisibilityofhiddenfaces.Weseethatitgreatlyimprovestheviewfrom
behind,buttherearestillsomeproblemsatthetopofthethighs.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 20/24
ThesituationcanbeimprovedbytweakingtheDeletevertexgroup.ThepictureaboveshowsthebestIcoulddo.There
arestillsomeproblemsatthebottomofthedress,bothwithskinpokingthroughtheskirt,andwithvisiblefacesbeing
deleted.Insituationslikethis,itisprobablynecessarytoeditthemesh,movingthebottomoftheskirtawayfromthe
body.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 21/24
Theclothesdonotupdatewhileasliderisbeingdragged,butonlywhenitisreleased.Wecanthenseehowhidden
surfaceremovalworks.
Creatinganthumbnail
Sofarthedresshasappearedwiththedefaultthumbnailintheclothesfilebrowser,i.e.asafacewithaquestionmark.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 22/24
Movethehumantoahiddenlayerandarrangethecameraandlights.Settherenderresolutionto128x128and100%.
Changethecameratoorthographicandadjustthescalesothedressfillsthecameraview.
Renderandsavetheimageasapngfilewiththenamedress.thumbinthesamefolderastheotherfiles.WhenIwrotethis
document,Blenderautomaticallychangedthefilenametodress.thumb.pnginthefileselector,buttheextra.pngsuffix
wasnotactuallyincludedinthefilename.Notethatthethumbnailsuffixis.thumbthefileDress.pngisthediffusetexture.
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 23/24
Hereisthecontentofthedressfolder.dress.npzisacompiled.objfile.MakeClothesautomaticallydeletes.npzfilesafter
saving.objfiles,topreventupdateproblems.

Advertisement
15/7/2014 MakeClothes: Making a simple dress | Makehuman
http://www.makehuman.org/doc/node/makeclothes_making_a_simple_dress.html 24/24
ThesitecontentislicensedundertheAttributionShareAlikeCCBYSA(c)MakeHumanteam
20012014

You might also like