Blender骨骼快速入门

本文为摘录笔记,原文

An armature in a 3D program works much like a skeleton(骨骼). Just as your muscles(肌肉) move with your skeleton(骨骼), the mushroom’s mesh will move with its armature. In Blender, the armature is simply another type of object; you’ve already worked with mesh objects. The armature object comes with one bone in it by default.

Adding Rigging, Bones and Skinning

First, you’ll need to cover a few bits of terminology. The process of building the skeleton is called rigging. You’ll first create an armature with one bone, then you’ll add an additional bone; this will be your rig.

Rigs can get very complicated, such as when you’re constructing a 3D human character. There are constraints and modifiers that can be added to your rig to simplify the animator’s job when working with complex rigs. Your mushroom’s rig will be simple, but will serve your needs just fine.

Skinning is simply the process of associating the vertices of your mesh with the bones in your armature.

Once you’ve created a model, you animate it with the following steps:

  • Add an armature to your scene
  • Add some bones to your armature
  • Skin the mesh to the bones
  • Animate the armature by posing the bones

Adding an Armature

Move your mouse over the 3D View and press Shift-A. Select Armature -> Single Bone. from the Add menu, as illustrated below:

The Object Data Context

In the Properties window, click on the Object Data context button that looks like a stick figure, and ensure Names and X-Ray in the Display panel are checked.

image

根据选中对象的类型,Properties window会显示不同的Context
image

Entering Edit Mode

press Tab to switch to Edit Mode for your armature.
Take a look at your armature: every bone in your armature is made up of three parts: the root, body, and tip, as shown below:


image

Right-click on the tip of your bone, press G to grab it, then type Z to restrict its movement to the Z axis. Move the tip of the bone to the top of the mushroom’s stalk, as shown below:


image

Left-click to confirm your action.

Extruding Your Armature

Just as you did to extrudes faces on a mesh in the previous tutorial, choose Extrude from the menu to the left of the 3D view (under Armature Tools), or alternatively press E to extrude from the tip of this bone. Next, press Z to constrain movement to the Z axis, and drag the new bone to the top of the mushroom’s cap, as such:


image

All bones must be uniquely named

Working in the Bones Context

image

Parenting the Mushroom to the Armature

Switch to ObjectMode, selects both the mushroom and the armature, and sets the armature as the active object.

Note: In Blender you can have any number of selected objects, but only one of those can be the active object. The most recently selected object is the active one; it’s highlighted in bright orange to indicate this fact. Switching your view to wireframe makes it easier to see which object is active.

Skinning Your Bones

Press Control-P to show the Set Parent To menu. Select With Automatic Weights under Armature Deform, as shown below:


image

This step parents the the mesh to the armature and sets the weight attribute — or the amount of influence that a bone has over a vertex — to “automatic”. This means that Blender will take a guess on the influence based on the proximity of the bones; it usually does a pretty good job.

Working in Pose Mode

Right-click the armature, enter Pose mode;


image

Right-click the cap bone, press R and move your mouse to rotate the bone.

Working with Vertex Groups

We can manually do it, be more fine-grained control.
right-click your mushroom and press Tab to enter Edit mode. Left-click the Object Data context button; you’ll note that it looks like a mesh triangle in your new context.

Look at the Vertex Groups panel; you may need to expand this section if it’s not visible. Your panel should look like the screenshot below:


image

You’ll see two vertex groups that have the same names as the bones in the armature. That’s because bones are mapped to vertex groups by their names.

Note: You can create named groups of vertices in Blender. A vertex can also belong to more than one group: the loyalty of that vertex to the group is based on its Weight value (from 0.0 to 1.0).

选中VertexGroup就可以进行编辑了,这里的编辑方式有点绕。Assign是将目前选中的节点设置给对应的VertexGroup。
Select和Deselect可以查看当前组拥有的节点。操作下就知道了。

Creating the Hop

到这里,我们就准备好了架子,接下来我们就可以添加动作了。这里我们打算让蘑菇跳跃起来:在地上蜷缩,然后在空中伸展,落地后继续。
In Blender, you perform animations by creating a series of keyframes. In each keyframe, you put the object in a different pose, and Blender will smoothly interpolate the movement between keyframes.

Note that when you create a keyframe, you need to specify the type of the keyframe – i.e. are you modifying the location, rotation, or scale of the object. Let’s take a look at how this works in practice now.

Working in Pose Mode

Right-click on the armature; Enter the PoseMode.
Select All Bones.
Right-click the stalk bone, and press I to view the Insert Keyframe Menu. Select Scaling.
!()[https://koenig-media.raywenderlich.com/uploads/2013/10/key_scaling.png]

The Timeline Window

The Timeline window appears at the bottom of your screen; it looks like the following image:


image

After you insert a keyframe, you’ll see a vertical yellow line appear in the green line. The green line indicates which frame you’re on.

Keyframing the Hop

按下I,进行记录当前帧数据。
在第一帧,按I,选择Scale,将初始Scale进行记录
左键点击timeline,选中第四帧(View左下角,坐标轴旁可以看到当前选中的是第几帧。)

Leave the stalk bone selected, press S to scale and then press Z to restrict scaling to the Z axis. Move the mouse to squish that shroom, and left-click to accept the scaling.

Type I and select Scaling from the Insert Keyframe Menu.

Advance to frame 8 using the right-arrow key(原文错误?我使用的是鼠标左键) and type Option-S to clear the scaling. Next, type I and select LocScale to set a keyframe for both location and scaling.

Go to frame 14, move the mushroom up in the air by typing G, then Z, and left-click to confirm when you like the height. Type I to insert a keyframe and select Location.

Advance another two frames and insert another keyframe for Location on frame 16, so your mushroom hangs like Michael Jordan at the top of its jump.(前进两帧,在第16帧再插入一个位置帧,这样你的蘑菇就可以像迈克尔乔丹那样滞空了/smile)

Finally, go to frame 20, type Option-G to clear the location, type I and set another Location keyframe.

Previewing the Animation

Move your mouse to the Timeline window and left-click on the last keyframe. Press E to set the end of the frame range; the lighter section of the timeline should change from extending to the right of the timeline window to being constrained between your keyframes, as you can see in the screenshot below.


image

Press Option-A to play it.

Working With the Animation Screen

image

Blender comes with many handy screen layouts to make your life a little easier.

Dope Sheet Window

In the Dope Sheet window you are initially looking at the Dope Sheet mode: if you had multiple objects animating, they’d all be listed here. Where you could only see the keyframes of the selected object on the Timeline, here you can see it all.

Note: The term “dope sheet” comes from traditional animation where it is also known as an exposure sheet. Similar to traditional animation, Blender’s dope sheet gives the animator an overview of all the actions occurring in the timeline.

In the Dope Sheet window, change the mode to the Action Editor, like so:


image

Now you’ll see just the Action that you’ve created for the mushroom and its keyframes. It has the default name of ArmatureAction, so rename the action to HopAction in the name field, indicated below:


image

Creating a Fake User
Elements in a Blender file that are no longer referenced will have zero users. When you quit Blender and come back to it, those elements are not longer there. By creating a fake user, you keep Blender from trashing an unreferenced element that you might want to use later.

To the right of the name field is a button with an F on it; left-click it to create a fake user for this action.


image

Disconnecting the Hop Action

Next you need to disconnect the hop action so that you can create a second animation. If you didn’t do this, you’d be building on top of the hop animation (making it nod while it hopped), and that’s not what you want in this case.

Left-click the X the right of the F and +. This disconnects this action from the armature. The armature is no longer being used by the mushroom, but fortunately it now has a fake user to keep it from being discarded upon exit.

That takes care of the bounce — now you need to create another action to handle the nod.
(通过Dope Sheet Window下方的New左边的按钮,可以找回之前的HopAction,创建FakeUser的作用也是留住Disconnected的HopAction)

Creating the Nod

First, you need to ensure you’re at frame 1 of the animation Move the mouse over the Timeline or the 3D View windows and press Shift-Control-Down Arrow to move to the first frame.

Select View > Right in the 3D View header, then select View > Persp/Ortho to see your mushroom in the orthagonal view, like so:


image

Right-click to select the cap bone, then press I and select Rotation.

image

Move to frame 5. Press R to rotate the mushroom to the left, then press I to keyframe the rotation.

Advance to frame 10, press Option-R to clear the rotation, then press I to key the rotation change.

image

Scrub through the Timeline or Action window, and you’ll see your mushroom nod.

Click on the last frame in the Timeline and type E to set the end of the animation. Ready to see your work? Press Option-A to see a preview of your active mushroom.

In the Action editor of the Dope Sheet window, name this action NodAction, then click the F to make a fake user, as shown below:


image

导出

导出时记得选中Armature(shift多选。。。)
两个动画都会导出的。不论是不是Disconnect的。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 194,088评论 5 459
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 81,715评论 2 371
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 141,361评论 0 319
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 52,099评论 1 263
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 60,987评论 4 355
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 46,063评论 1 272
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 36,486评论 3 381
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 35,175评论 0 253
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 39,440评论 1 290
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 34,518评论 2 309
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 36,305评论 1 326
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 32,190评论 3 312
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 37,550评论 3 298
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 28,880评论 0 17
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,152评论 1 250
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 41,451评论 2 341
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 40,637评论 2 335

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,251评论 0 10
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,229评论 0 23
  • 比如,我改变一种习惯 从前我不吃胡萝卜,现在我开始吃了。这样,每次我吃的时候,都想到你。 比如,从现在开始,一年之...
    思过崖的一颗小石子阅读 403评论 0 0
  • 假如美国再发生一次严重的次贷危机,如何能有效地、甚至根本性地避免全球性的金融危机?当我们第一次听说“证明我...
    独孤无尘阅读 217评论 0 0
  • 晚上散步回家有点晚,差不多21:20的样子,在小区 东北角好又多小超市和同发鱼羊馆交界处的石球上坐着一个小...
    霞光倾城阅读 165评论 1 1