[英文]用BlendShape变形工具制作褶皱衣服



  Maya Cloth is great for getting many cool, dynamic effects, but it adds complexity to your scene. You must  end time tweaking a bunch of variables and previewing your scene until you get things to look the way you want, and in some situatio  you may never get what you are looking for. If you are creating clothes for a character, you are additionally limited by the type of clothing you can create. For detailed and co istant results, cloth simulatio  may not be the best way to go.




  An alternative to using cloth simulators is to actually model the clothes you want your character to have, and create the wrinkles with a BlendShape deformer. This technique gives you predictable control over your model and works well in most situatio . In fact, it was used in the movie "The One" to get a controlled, slow-motion look to the clothing on the CG police officers in the fight scenes with Jet Li's "Yulaw" character. The workflow for this technique goes like this:
  Model clothes for your character using whatever geomtry you like Convert the geometry to polygo  (it is much easier to create irregular wrinkles using polygo )IF you will be using a low-poly base shape co ected to a smoothed high-resolution shape for animation purposes you may need to create some extra geometry for wrinkles Smooth-Bind the character and the clothing to your skeleton Paint skin weights to get the clothes and your character to deform correctly at the joints Create a BlendShape node and a Morph Target for your clothing Pick a joint and create wrinkles in the Morph Target Drive the BlendShape slider with the rotation of the joint Repeat 6 - 8 for all nece ary joints .In this tutorial, we will be starting at step 5. However, we will not be going in depth on how to accomplish this step, because there is an excellent tutorial on Smooth Binding in the 'I tant Maya: Character Setup' section of the user guide (pre  'F1' i ide of Maya). We are only going to discu  the desired results here.
Before we start, I must explain the optional Step 3. A common workflow in animation is to have a low-resolution base shape that you use to animate. This drives a hidden high-resolution model that only gets unhidden at render time. This is usually accomplished with a wrap deformer, or with the Co ect Poly Shape plugin for Maya 3.x and 4.0, or with the new Smooth Proxy feature in Maya 4.5.
If you are using this technique, you may not have enough geometry to create distinct wrinkles in your model. Take a look at the image to the left. You can imagine how hard it would be to create believable wrinkles with such a small amount of geometry to work with. I used the ' lit Polygon' tool to create some extra edges where I thought my fabric would need to wrinkle. Compare the image here with this image. You'll see what I'm talking about.



Step 5. Now it is time to bind your character and his or her clothes. Before you do so, create a copy of your clothing and tra late it to the side of your model. Place it on its own layer so you can turn the visibility on and off. Creating a copy of your clothing now before you bind it is not nece ary, but it will save you from headaches in Step 6.



Use the Paint Skin Weights tool to get your bends looking correct, as in the image to the right. Try to imagine what you want your finished product to look like and start to really shape the way the fabric bends from there.

Step 6. Now you need to create a Morph Target for the BlendShape node. When the skeleton deforms your geometry as much as it does here, it is very important that the geometry is in the exact same position it was before you bound it when you go to create your morph targets. However, we got around this by creating a duplicate of our clothes before we bound our skin. The only other way to accomplish this is to return the skeleton to the bind pose by turning off the evaluation of co traints, expre io , IK handles and anything else that controls your skeleton first, then duplicating the clothing, unlocking all the attributes on the duplicated geometry and finally tra lating it to the side. Now aren't you glad you didn't have to go through all that?
Now you need to make a duplicate of your duplicate to edit. The original duplicate (hmm... an oxymoron) will serve as our reference from here on out to create new morph targets, so move it somewhere where you won't accidentaly edit it.
Now it's time to link this new shape to the original clothing as a morph target by creating a new BlendShape node. However, Maya has a bug in it that will not allow you to do this from the Deform pulldown menu in the Animate panel. I tead, we have to go ( Window > Animation Editors > Blend Shape ... ) This should bring up the BlendShape Panel which should have nothing in it at this point.
Select the duplicated shape, then shift-select the original clothing. Then, from the BlendShape panel go ( Edit > Create BlendShape ). This creates a new BlendShape node and adds the duplicated geometry as the first morph target. To add additional targets later, you must first select the target, then the original geometry and go ( Deform > Edit BlendShape > Add ).
In some cases this doe 't work correctly, and you will have to go to the Add optio  and manually type in the name of the BlendShape node as in the image to the left.




Step 7. Now it's time to decide what joint you're going to work on first. Once you've decided, go ahead and bend the joint to it's tightest angle. I'm starting with the knee. Imagine that. Next, go ahead and push the slider all the way up to 1 in the BlendShape panel as per the image on the right. This will allow you to immediatly see the changes you make in the target shape reflected in the base shape (the original clothing).



Now comes the fun part... start pushing and pulling faces, edges and vertices on the target shape until you like the look of the base shape. I also moved some of the vertices forward below the knee to give the a earance that the fabric is tightening and pulling agai t the calf.
Step 8. When you are ha y with your work, it's time for the final step. We're going to set a driven key on the rotation of the joint that will drive the envelope of the BlendShape node. A driven key interpolates the values of the driven attribute through the  ecified range on the driver attribute, and is independant of time.




Your joint should still be bent to the extreme angle, so go ( Animate > Set Driven Key > Set > ). This should bring up the Set Driven Key panel. Select the joint and click Load Driver. Then, in the BlendShape panel, click the Select button under the slider. Back in the Set Driven Key panel, click Load Driven.
Now, highlight the rotation value of the proper joint axis in the Driver section of the Set Driven Key panel. This should be the Z-Axis, but may be the Y-Axis depending on how you built your skeleton. Then select the name of the BlendShape target under 'envelope' in the Driven section of the Set Driven Key panel. Remember to always select the Driver attributes first, modify them if nece ary, and then select the Driven attributes and modify them. Once you have both attributes selected, click Key.




Next, move the skeleton back to the fully extended position. Then in the BlendShape panel, move the slider down to 0. Back in the Set Driven Key panel, click Key. You should now see that if you move the joint the wrinkles will slowly form as it a roaches the extreme angle. You can now hide or delete the target shape (if you don't want to make any more modificatio  to it).
That's it! Now you just have to repeat ste  6 - 8 for all joints that will cause wrinkles in the clothing. Finally, the finished effect (Quicktime, double-click to play):




  You can see how driven keys and BlendShape nodes can really enhance your character setup. You could also use this technique to create other effects like bulging muscles. The po ibilities are endle !


我也来说两句 查看全部回复

最新回复

  • hiuoyter (2008-5-04 22:39:40)

    看了,感觉不错,谢谢您提供

    ---------------
    Where you may get the best price for world of warcraft gold, and the fastest delivery of gold on world of warcraft with no minimal purchase necessary! We rock the World of warcraft gold EU market by continue to lower our lowest price !  world of warcraft gold EU and world of warcraft gold US at our webgage! Welcome to our website for you World of Warcraft Gold,WoW Gold,Cheap World of Warcraft Gold,buy cheap WoW Gold,real WoW Gold !
  • 美女视频 (2008-6-24 05:34:49)

    复合破,复合破碎机,复合式碎石机,立式复合破 立式破碎机

    美女图,美女视频
    美女精品图,看美女表演
    复合式破碎机又称为复合破,复合破碎机,复合式碎石机,立式复合破 立式破碎机,主要是用来破碎石块。
      复合式破碎机介绍:
      复合式破碎机是在吸取国内外先进细碎设备的基础上,优化设计而成的一种无筛条、可调式细碎设备,可广泛适用于水泥厂的生料、熟料细碎作业,同时也可用于白云石、焦宝石、铅锌矿、蛇纹石、高炉渣、煤矸石、磷矿石等中等硬度物料的细碎作业,特别适用于硬质石灰岩、白云岩、花岗岩、玄武岩等人工造砂或高速公路路面石料的加工破碎。
  • lmno682 (2008-6-26 02:00:52)

    今天无意中发现的小游戏,不错哟!分享给大家,轻松一下,Funny games桌面级的好东东,可以互相连机的哟!


    网址    http://www.veryfreegames.com


    直连网址    http://www.veryfreegames.com/new-download-games.html






    Ad:

    free games                    www.veryfreegames.com

    funny games                 www.veryfreegames.com
  • bcde527 (2008-7-11 10:57:58)

    The opening video aired  wow gold followed by the pyro and Jim Ross welcomed us to Smackdown. Ross plugged the main event, a Fatal Four Way Fourth of July match for the US Championship with Matt Hardy defending against Mr. Kennedy, Chavo Guerrero, and Shelton Benjamin…

    MVP’s music played and he wow gold was already in the ring for the VIP Lounge. He introduced The Game, Triple H as his guest. Triple H Buy Cheap WOW Gold.If you are looking for WOW Gold, Sro Gold,Silkroad Gold,buy wow gold please review our web:SroGold.com.came to the ring while Ross and Mick Foley talked about his win over John Cena at NOC.  xcgseo10
  • szfxzs (2008-7-15 04:24:35)

    深圳莲花北写字楼装修公司,83804265[深圳莲花北装修公司富祥居装饰深圳莲花北装饰公司,深圳莲花北装修公司,深圳莲花北写字楼装修公司,深圳莲花北办公室装修公司,深圳莲花北办公楼装修公司,深圳莲花北厂房装修公司,深圳莲花北店铺装修公司,深圳莲花北别墅装修公司,深圳莲花北居家装修公司,深圳富祥居装饰公司]
      深圳富祥居装饰公司主营:居家装修.写字楼装修.办公室装修.办公楼装修.工业厂房装修.专卖店装修.店铺装修.别墅装修.发廊装修.展厅装修.酒楼装修.餐厅装修,食堂装修等设计及施工,大小均做.
    深圳装饰公司电话:0755-82305325  82305627
    深圳装修网址:http:www.szfxzs.com
    深圳装饰网址:http://www.fxjzs.com
    深圳装饰专线:0755-82305285  83804265
  • klmn738 (2008-7-16 05:24:20)

    高空作业车轮是一个重要零件。过去,国外采用压力铸造生产该铸件,铸件质量差,且成品率低,劳动强度大。针对该铸件的结构特点和性能要求,如何提高其产品质量、降低原材料消耗、节约能源、提高劳动生产率及降低铸件成本,是当前生产中的关键。从研制的情况可知,采用挤压铸造代替压力铸造是今后制造铝合金车轮行之有效的工艺。
      1 高空作业车车轮材料、要求及铸件设计
      图1所示为铝合金车轮零件图。车轮不仅有较高的性能要求,而且形状十分复杂。
    图1 车轮零件图
      车轮材料的化学成分(质量分数)为:1.5%~3.5%的Cu,10.5%~12.0%的Si,<0.3%的Mg,<1.0%的Zn,<0.5%的Mn,<1.3%的Fe,<0.5%的Ni,<0.5%的Sn,其余为Al。力学性能要求:σb>276 MPa,σs>115 MPa,σ>4.4%,HB>92。
      该高空作业车车轮内外形的尺寸精度较高,都应加放加工余量及余块。按挤压铸造工艺的要求,把形状复杂的车轮零件图设计如图2所示的铸件图。
      由该图可见,为便于从铸件内孔脱出及简化模具加工,把原来的阶梯轴孔设计成圆柱形中心孔,其直径为φ30 mm,内壁斜度为3°[1]。
    图2 车轮铸件图
      2 模具结构及设计参数[1]
    2.1 挤压铸造模具结构
      高空作业车车轮挤压铸造的模具结构如图3所示。它主要有凸模、右凹模、顶杆镶块和左凹模组成所要求的型腔。左凹模和右凹模分别固定在左凹模定模板和右凹模动模板上,左凹模定模板用螺钉紧固在下模板上,右凹模动模板经过侧缸在导柱上实施开启及闭合。
    图3 车轮挤压铸造模具
      1.上模板 2.凸模固定板 3.凸 模 4.导 柱 5.右凹模 6.右凹模动模板
      7.垫 板 8.下模板 9.顶杆镶块 10.左凹模 11.左凹模定模板
      采用2000 kN油压机改装进行挤压铸造,高空作业车工作过程是:将定量的合金熔液浇入型槽后,固定在活动横梁上的凸模以一定速度向下挤入型腔,压力达一定数值后保压;铝合金凝固后卸压,凸模通过工作缸的回程向上移动,顶杆镶块通过下顶缸从铸件内向下退出,直到全部脱离铸件之后,再用侧缸开启右凹模,取出铸件。
      2.2 高空作业车模具设计的主要参数
      (1) 间隙 凸模与左、右凹模之间的间隙要适当。高空作业车过小则因凸模与凹模的装配误差而相碰或咬住;过大则合金熔液通过间隙喷出,造成事故;或者在间隙中产生纵向毛剌,减小加压效果,阻碍卸料。合理的间隙与加压开始时间、加压速度、压力大小、工件尺寸及金属材料有关。根据实际生产经验,单边间隙取0.1 mm。
      (2) 脱模斜度 合金熔液在凸模压力下凝固成铸件,冷却后紧包在凸模及顶杆镶块上。为了便于凸模及顶杆镶块脱出,故在凸模及顶杆镶块上设有3°的脱模斜度。由于铸件外形呈圆状,且分在左、右两片凹模,只要右凹模向右移动一定距离,铸件就易从左凹模取出,故不必设置脱模斜度。
      (3) 排气 在左、右两片凹模完全闭合后,合金熔液因缓慢地浇入型腔,高空作业车型腔中气体可基本排出。挤压铸造时,留在凸模导向部分的少量气体,通过凸模与凹模之间的间隙排出。
      (4) 模具材料 挤压铸造是在一定的压力和一定的温度下进行的,高空作业车不存在像压铸模那样受到金属液的冲刷。工作压力比压铸时高,只要求模具在高温下有一定的抗压强度即可。另外,为了防止与合金熔液接触的模具表面产生热疲劳裂纹,左右凹模、凸模及顶杆镶块均采用3Cr2W8V合金模具钢制造,热处理后硬度为HRC48~52,型腔表面进行软氮化处理。
      3 挤压铸造的工艺参数
      高空作业车挤压铸造是铸锻结合的工艺,其生产工艺过程是:合金的熔化、模具的准备(清理、预热、喷涂润滑剂)、金属的浇注、液态金属的加压、压力的保持、压力的去除及铸件的取出等。
  • 美女视频 (2008-7-21 05:13:44)

  • klmn738 (2008-7-22 22:47:57)

    路桥环卫部门的吸粪车直接向污水管网倾倒粪便水和各种企业废水的日子成为历史,城区所有的粪便水将被直接送至垃圾填埋场处理。
      路桥污水处理工程协助环卫部门处置吸粪车收集粪便水的历史已有5年多。该工程自2001年底运行以来,就一直承担着路桥环卫部门从各地收集的粪便和部分工业废水的处理。但是随着路桥污水管网的不断延伸和完善,收集的污水成分趋于复杂化,污水厂进水中污染物浓度不断增高,已影响到现在吸粪车污水处理系统的正常运行。
      为了维护污水厂处理系统的正常运转,提高污水厂的进水水质,根据《城市吸粪车排水许可管理办法》规定,路桥区采取了禁止粪便直排污水管网的措施。
      据悉,等到明年路桥污水处理工程6号污水泵站建好后,环卫部门将就近安装粪便处理器,所有粪便会先进行固液分离预处理后再排入污水管网。
  • pqrs395 (2008-7-24 16:07:03)

    沈阳宏海机械厂www.086hh.com批发零售双锅爆米花机,豪华机身面板,金属齿轮电机,交直流两用,可移动作业,燃气加热电搅拌系列!特殊供应商场专用全电动双锅爆米花机!同时供应具有同等性能的单锅爆米花机!另外还有特制双层锅底的不锈钢手摇爆米花锅、电瓶爆米花锅,以满足用户的不同需求!常年提供爆米花专用美国小玉米99%爆花率,省级检测的爆米花专用果味奶油,可生产出10余种不同口味的爆米花,味道特别香浓!每锅成本不超过1元钱,根据当地情况可卖4-5元钱!是您致富的好帮手!电话:024-82116562 QQ:491783951