返回列表 回复 发帖

Simulating Cutting and Cracking Effects"--模拟切割和破坏效果

"Simulating Cutting and Cracking Effects"


by Akash karmakar

翻译:绝对新手123


原文链接:http://www.3dtotal.com/team/Tutorials/cutting/cutting1.asp

转载链接:http://archive.hxsd.com.cn/showthread.php?t=5976668



ABOUT ME: lW  
hi i'm a 3d artist/animator from India. i'm 18 yrs old. i've been into 3d for 2 yrs. and i work on 3dsmax.

NAME: Akash karmakar

AGE: 18

OCCUPATION: 3d artist (games development)


SOFTWARES KNOWN: 3dsmax, photoshop, painter, premier, after effects x:0n
ABOUT THIS TUTORIAL:


this tutorial demonstrates simulating cutting and cracking effects in 3d environment.


this tutorial is in text format and i've included images in numbers correspondingly where they apply.

i've also included animation video files (.avi format) correspondingly , which r coded in DIVX.

TUTORIAL:

cracking and breaking effects in 3d:

INTRO: have u even thought of having a sword in your hand. where u can zig-zag the sword and cut and chop off things around u. but if u r an animator u might be more interested in cutting and chopping objects in your 3d software.

well this is a tricky thing, which envolves realtime change in mesh count. also mapping them can be tricky. 
suppose i cut off some thing i can even see the inside part.

so here r some trick i've developed working on my own...and i've suceeded a bit...

here i've used 3dsmax..but same effect can be achieved on other packages too.

as per material nature objects can be brittle, hard and soft...which show different cutting behaviour.


so here i've five main sections:


1) cutting a hard object( like wood) !
2) cutting a semi-hard object ( like wax)

3) cutting a soft object(like bread or cake)

4) cracking of brittle objects( like earth or ice crust)

5) textuing of cutting objects.


so here we start:


cutting a hard object... lets cut a cylinder..

1) create a cylinder in front or left viewport so its created horizontally. u may increase the sides segment for some smooth results though its necessary.name it as "wood"

2) now create some axeblade like object, using spline and extruding it. name it as "axe" here make copy of it and name it "axecut" for this time u can hide the 'axe'. see the image for arrangement.


3) now we'll cut the cylinder using the axe...for this we'll use BOOLEAN. select the cylinder and go to compound objects>boolean. pick the "axe" as OPERAND and go to modify panel. there go to boolean sub-object and select 'axe'.


4) then turn on ANIMATE(hotkey..n) move to frame 30 and drag it down so it slices down the cylinder into 2 parts. be sure it completly passes via the cylinder. now u'll see the cylinder is interactively cut into 2 parts(2 elements)

  
here after ...now move the '0' key frame to 1 or 2..why?..see it the later part.

at this part unhide the 'axecut' object and animate it following the cut( same way as u animated the 'axe' in the boolean sub-object) turn off animate.

5) but still u can see they r not apart..ie the cut part should fall down. so for that apply an edit mesh modifier on top( dont collapse the cylinder or the animation will vanish) now go to element mode and scroll the time slider to 30 or above. then u'll be able to select the cut separated element alone.



select the cut element and apply X form modifier. this way u'll be able to animate the separate the element like an independent object.



but before animating...i might have told u move the key frame at zero to 1 or 2(the keyframe for the axe) , this way u'll be preventing key frames from coinciding(key frame for the cut animation & the X form). turn on animate and go to frame 60,select the xform sub object. now u can use move and rotate gizmos for freeform animating the element(like its falling on the ground).but for that be sure...make the animation start after frame 30...so move the initial key frame that is created at frame '0', to 31 or 32.or u'll see abnormal mesh deformation...SO, this way u can get the required result.


see the video file for visual demonstration.
PART 2

cutting a semi hard object.....like wax curving out while cutting( or carving)

1) here we'll follow the same steps....but add a fews steps in between..

2) ok..after u've animated the cut using BOOLEAN, here dont apply edit mesh modifier..instead u apply a volume select modifier...here u'll have the benefit that u dont have to rely on mesh count u can just select a volume of mesh..here use face selection type and use box type selection and scale it accordingly as explained in the picture. place it just at the edge of the cutting.


3) there after u can apply a bend modifier on top and use its parameters and sub-gizmos to animate it curving out while cutting.but for that u've play a bit with the parameters to get the desired effect.



PART 3

cutting soft objects..( like cake)

we'll again go back to the past and add some thing to it..well this time u can modell some thing like cake to cut off cutting, instead of a woddy cylinder. after u animated the axe or "knife" in the BOOLEAN sub-object then select the cake object from its sub-object. go down the modify stack to the editable mesh. there go to vertex mode and select the vertexes which might be affected while cutting the cake( ie at the cutting edge). turn on "soft selection" increase it desirably and set the pitch to" .5"now turn on animate and move to frame 30 and pull the vertices down..so as to simulate soft pressing effect. for separating the piece here u might slide the x-from gizmo instead of making it fall as a cake doesn't fall..while u cut it. rest steps r the same..and its your creativity in how well u can cut a cake.. 4&r+K`C0  
see the video file for visual demonstration. in the video i've textured the cake. see the texturing part to learn that.

PART 4

cracking of brittle objects.. like an earth crust

for this part we wont use the previous steps. follow this..

1) first create a box on top viewport. give it length 200 width 200and height 5. just like a plane with some thickness.name it "ice"..see the image..



2) now create another box with width 7,height300 and length 20. increase the hieght segs. to 50.name it crack.now rotate it 90 degrees, and fit it horizontal....now apply taper modifier to make the front part narrow. in 'taper axis' use primary Z, and effect X. see the image.



3) next, create a spline on top view. create it in a zig-zag style..as u'wd like the crack follow..as we'll use same spline to create the crack path. be sure not to use corner type vertices as they will create sharp edges, only use bezier type. see the image.



4) now select the "crack"and add pathdeform modifier to it. pick the path u've created. now animate it following the path..u can use either "percent or stretch" parameter to animate the cracking effect. at this stage adjust its position over the 'ice' object. try to cover out its height(thickness) see the pictures

  



now select the "ice" box and go to boolean & pick the "crack" now u'll see the ice getting cracked..
  

next we can repeat the same steps...using the X-form to separate the crack. see the image

  
PART 5


texturing of cutting objects:

this section covers texturing of objects which r bieng cut..which include texturing of the outer surface as well as the inside visible surface..(say when a wood is cut u will be able to see even the inside concentric woody surface)

for this u may need to start form the beginning...lets say the previous chapters are for practice..


so lets texture a cutting wood:

1) when u've created the cylinder"wood" before doing anything apply a wood bitmap texture to it. see the image.
  

follow the same steps to cut the 'wood'. now when u have animated the boolean, then u will notice that the inner part of the wood has wood texture with face map (that is one whole map per face, which looks highly tiled) see the image.

  

2) to fix that apply edit mesh on top and go to poly-mode, here u'll see the intersecting polys are already selected..



now go to frame 30( where the cutting elements are separated) and apply to that sub-object, a bitmap with some texture like the inside part in wood....(search for such an image or create your own)


3) then apply a UVW map modifier on top with the' poly sub-object mode' active (or it will alter the previous wood mapping co-ordinates) let the mapping type be "plannar"...NOW your mapping tension is solved.. see the image


  
返回列表