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: Making a simple dress Making a simple dress Start with an empty scene and add a character. Since dresses are mainly worn by women, we select the character type Average Female. A dress is typically attached to the tights and skirt helpers, so we need to load a Human With Helpers. A human mesh appears in the viewport. Home Download Gallery Blog Docs FAQ Forum Bug Tracker The crew Join us

MakeClothes_ Making a Simple Dress _ Makehuman

Embed Size (px)

Citation preview

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

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

    Recom endar esto en Google

    Search

    MakeClothes:Makingasimpledress

    Makingasimpledress

    Startwithanemptysceneandaddacharacter.Sincedressesaremainlywornbywomen,weselectthecharactertypeAverageFemale.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.Thisisimportant,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.Againwemustchooseanameforthematerial.Thenamewillappearinthemhmatfilethatdescribestheclothing'smaterialproperties.

    NotethattherenderenginemustbesettoBlenderInternaltocreatethematerial.MakeClothesdoesnotworkwiththeCyclesrenderer.

  • 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,createseamsatsuitableedges.

    UVunwrapthemesh.Atthispointwecouldpaintatextureforthedress,butforoursimplemonochromaticmaterialthisisnotnecessary.

  • 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.Foreverytenthvertex,thefollowinginformationisprintedintheterminal:

    ClothingvertexnumberClosesthumanvertexinsamevertexgroup.Distancebetweenclothesvertexandhumanmeshface.

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

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

    VertexgroupClothesvertexgroupindexHumanvertexgroupindex

    Theoutputfilesarealsolistedintheterminalwindow.

    MakeClothescreatesanewfoldernamedliketheclothingname(inthiscasedress),withthreefilesinit:

    dress.mhclo:Describestheassociatebetweenclothingandhumanvertices.dress.obj:Describestheclothesmesh.Thisisastandard.objfilewhichcanbeimportedintomostpackages.dress.mhmat:Describesthematerialproperties.

    Bydefault,thedressfolderiscreatedinthefollowingdirectory:

    OnWindows:Documents\makehuman\data\clothesOnLinux:~\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.OpenMakeHumanandgototheGeometries>Clothestab.Anewbuttonnameddressshouldappearintherighthandpanel.Pressit,andthecharacteriswearingthedressyoujustcreated.

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

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

    Thesizeandshapeofthedressadjustsitselfautomaticallywhenthecharacterslidersaremoved.

    ModellingclothesstartingfromhelpergeometryItissometimesconvenienttousethehelpergeometryasastartingpointformodellinginfact,thisishowthedressinthistutorialwasmodelled.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.PressShiftDtoduplicatetheselection,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.Thewaistnowconsistsofpairsofverticesatidenticallocations.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.UnlinkthehumanmaterialsandcreatethebluishDressmaterial,aswedidinthefirstpartabove.

    WenowproceedtopresstheMakeClothesbutton,butthereisasurprise.MakeClothesraisesanerror,sayingthatsomevertexbelongstothreegroups.Thishappensbecauseautomaticvertexgroupassignmentworksdifferentlyforhumansandclothes.Inaclothing,eachvertexmustbelongtoexactlyongroup,butinahumanthereisnosuchrestriction.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.

    AddingatextureInthissectionwereplacethesimplemonochromaticmaterialwithatexture.

  • 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.NotethatMakeClothesexpectsthattheoldBlenderInternalrendererisused,notCycles.

    MakeClothesautomaticallyrecognizesthatthematerialhasatexture,andtheimageiscopiedtothedressfolderinthedata/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.Itisnotcleartomewhythisisso,andhopefullythisglitchwillgoawayinthefuture.

    Othertypesoftextures,suchasnormalandspecularmaps,arecreatedinananalogousfashion.AddthemtotheBlendermaterial,andthecorrespondingtexturesareusedinMakeHuman,totheextentthatafeaturehasbeenimplemented.

    HidingfacesClothesadapttothecharacter,butsometimesblotchesofskincanbevisiblethroughclothes.Theproblemisparticularlyseverefortightandlowpolyclothes,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,andassignthemtotheDeletevertexgroupsthatwasautomaticallycreated.Notethatwhenavertexisremoved,soareallfacesthatitbelongsto.WemustthereforebecarefulnottoassigntomanyverticesclosetoclothesboundarytotheDeletegroup.

  • 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,theblotchofskinpokingthroughtheskirtisgone.

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

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

    TheoptionHidefacesunderclothescontrolsthevisibilityofhiddenfaces.Weseethatitgreatlyimprovestheviewfrombehind,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.Therearestillsomeproblemsatthebottomofthedress,bothwithskinpokingthroughtheskirt,andwithvisiblefacesbeingdeleted.Insituationslikethis,itisprobablynecessarytoeditthemesh,movingthebottomoftheskirtawayfromthebody.

  • 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.Wecanthenseehowhiddensurfaceremovalworks.

    CreatinganthumbnailSofarthedresshasappearedwiththedefaultthumbnailintheclothesfilebrowser,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.WhenIwrotethisdocument,Blenderautomaticallychangedthefilenametodress.thumb.pnginthefileselector,buttheextra.pngsuffixwasnotactuallyincludedinthefilename.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.npzfilesaftersaving.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)MakeHumanteam20012014