CAR ANIMATION USING SPLINE | Unreal Engine 5

Post Processed
25 Jul 202309:55

Summary

TLDRこのビデオでは、カメラレールリグを使用したカーアニメーションの全プロセスについて詳しく説明しています。コメントで多くの視聴者がリクエストした通り、カーをカメラレールリグにアタッチする方法と、スプラインに追従しながらカーをドリフトさせる方法を紹介します。まず、カーを準備し、スプラインを作成し、カーを滑らかに動かすためにスプラインの形状を調整します。次に、レベルシーケンスを作成し、カーをアニメーションさせるためにカメラレールリグにアタッチします。カーの動きをアニメーション化し、スティーリングと車輪の回転を調整してリアルなドリフト効果を実現します。最後に、アニメーション全体をチェックし、細かい調整を行いながら、カーの振動とドリフトの動作を改善します。

Takeaways

  • 🎥 このビデオでは、カメラレールリグを使用したカーアニメーションの全プロセスについて説明しています。
  • 🔗 以前のビデオで触れたトピックを深掘りし、カーをカメラレールリグにアタッチする方法について詳しく解説しています。
  • 🚗 カーアニメーションのチュートリアルを始める前に、既にカーを準備しておく必要があります。
  • 📐 まずはシンプルな車両マップテンプレートを追加し、シーン内で何が起こっているかを明確にします。
  • 🛤️ レールリグを使用してパスを作成し、ALTキーを押しながらスプラインのポイントをドラッグしてカスタムの形状を作成します。
  • 🔧 スプラインのポイントを個別に地面にスナップすることで、不平坦な地形でもカーが揺れないようにします。
  • 🗺️ スプラインの形状を調整してカーが滑らかに動くようにし、不規則な形状を修正します。
  • 🚗 ステータックメッシュとコントロールリグを準備して、レベルシーケンスを作成し、アニメーションを開始します。
  • 🔑 レールリグにアタッチするために、アクターのモビリティを「移動可能」に変更し、向きをレールに合わせます。
  • 🔄 アニメーションで使用するキーフレームを線形補間に変換して、カーが一定速度で動くようにします。
  • 🚗 スキネルメッシュにコントロールリグを追加し、ハンドルの回転や車輪の回転をアニメーション化します。
  • 🎨 アニメーションの最終チェックを行い、カーのドリフトやボディシェイクを調整してリアルな動作を表現します。

Q & A

  • ビデオではどのようなトピックについて話されていますか?

    -ビデオでは、カメラレールリグを使用したカーアニメーションのプロセスについて説明されています。

  • カーをカメラレールリグにアタッチする方法についてどのように説明されていますか?

    -ビデオでは、スプラインに沿ってカーを漂移させながらも追従させる方法を詳しく説明しています。

  • スプラインの形状を調整する方法は何ですか?

    -スプラインの形状を調整するために、ポイントの位置をドラッグしてALTキーを押すことで新しいスプラインポイントを作成し、形状をカスタマイズできます。

  • スプラインが不規則な形状になった場合はどうすればよいですか?

    -スプラインが不規則な形状になった場合は、ポイントのローテーションを編集してスプラインを滑らかにすることができます。

  • カメラレールリグを使用する際に、静的なメッシュに遭遇する一般的な問題とは何ですか?

    -静的なメッシュをレールにアタッチする際には、アクターのモビリティを移動可能に変更する必要があるという問題に遭遇することがあります。

  • レベルシーケンスを作成し、カーをアニメーションさせるために必要な最初のステップは何ですか?

    -最初のステップは、レールリグを選択し、シーケンサーで「プラストラック」ボタンをクリックし、アクターをシーケンサーに追加することです。

  • カーがスプラインに沿って滑らかに動くようにするにはどうすればよいですか?

    -カメラレールリグに「現在の位置オンレール」パラメーターを追加し、アニメーションを設定することでカーがスプラインに沿って滑らかに動くことができます。

  • カーのスティアリングとホイールの回転をアニメーション化するために必要なステップは何ですか?

    -スティアリングとホイールの回転をアニメーション化するためには、コントロールリグを選択し、シーケンサーに追加し、ポイントの変更にキーフレームを設定する必要があります。

  • カーが漂移する効果を作り出すために、どのようなアプローチを使用していますか?

    -カーが漂移する効果を作るために、スプラインのゼロポイントからのオフセットを使用してカーをスライドさせ、漂移させることができます。

  • アニメーションの最終チェックで何を確認するべきですか?

    -アニメーションの最終チェックでは、カーの動きがリアルであるか、スティアリングやホイールの回転が適切であるか、そして全体のアニメーションが滑らかで自然であるかを確認するべきです。

  • ビデオの最後に提供されるリンクやリソースはどのようなものですか?

    -ビデオの最後に、Unreal Engineアニメーションやプロダクションのヒントについてもっと学びたい視聴者がチャンネルを購読したり、このビデオを高評価にしたりするためのリンクやリソースが提供されています。

Outlines

00:00

🚗 車のアニメーションとカメラレールリグの使い方

この段落では、カメラレールリグを使用した車のアニメーションの全プロセスについて説明しています。チャンネルの以前のビデオで触れた内容を深掘りし、コメント欄からの要望に応じて、車のアニメーションとカメラレールリグへのアタッチ方法について詳細に解説します。車を滑らかに動かすだけでなく、スプラインに沿ってカードリフトを作りながらもそれに従う方法を学ぶことができます。まず、以前のビデオを確認し、車をこのチュートリアルに備えて準備しておく必要があります。プレイリストも用意されており、新しいビデオが投稿されるごとに更新されます。

05:01

🔧 車のアニメーションの詳細設定と調整

この段落では、車をアニメーションさせるための具体的な手順が紹介されています。スプラインの作成、車の位置と向きの調整、そしてアニメーションのキーフレームの設定方法が説明されています。スプラインの形状を調整し、地面に合わせてスナップしたり、滑らかさを保ちながらカーの動きをアニメーション化します。車をレールリグにアタッチし、向きを固定してスプラインに沿って滑らかに動かす方法も紹介されています。さらに、車が曲がる様子や車輪の回転をリアルタイムでアニメーション化する方法や、車がドリフトする動きを追加するテクニックも解説されています。

Mindmap

Keywords

💡カーアニメーション

これはビデオの中心テーマで、車が動く様子をアニメーション化するプロセスを指します。ビデオでは、カメラレールリグを使用して車をアニメーション化する方法が詳細に説明されています。例えば、車がスプラインに沿って漂移しながらも滑走路を追従する様子が示されています。

💡カメラレールリグ

これは3Dアニメーションにおいて、カメラを特定の軌道に沿って動かすためのツールです。ビデオでは、カメラレールリグを使用して車をアニメーション化し、スプラインに沿って動かす方法が紹介されています。

💡スプライン

スプラインは、3D空間内でポイントを結ぶ曲線を形成する数学的な表現です。ビデオでは、スプラインを使用して車が漂移する軌道を作成し、車がその形状に沿って滑走路を形成する様子が説明されています。

💡キーフレーム

キーフレームは、アニメーションの特定のポイントでオブジェクトの状態を記録する技法です。ビデオでは、車の動きや車輪の回転をアニメーション化する際にキーフレームを使用して、特定のポイントでの動きを記録しています。

💡ステンシルメッシュ

これは3Dモデルの表面を構成する三角形の集合体であり、ビデオでは車の外観を形成するのに使用されています。ステンシルメッシュとコントロールリグを使用して、車のアニメーションを作成しています。

💡コントロールリグ

これは3Dアニメーションで使用される仮想のフレームワークで、オブジェクトの動きを制御するために使用されます。ビデオでは、車のステンシルメッシュにコントロールリグを追加して、車輪の回転や車体の揺れをアニメーション化しています。

💡漂移

これは車がタイヤが滑る状態で曲がることを指し、ビデオでは車がスプラインを追従しながら漂移する様子をアニメーション化する方法が説明されています。漂移のアニメーションは、車が滑走路から少し離れた状態で開始され、その後元の軌道に戻る様子が示されています。

💡アニメーションモード

これは3Dソフトウェアでアニメーションを作成する際に使用されるモードで、オブジェクトの動きを細かく調整することができます。ビデオでは、アニメーションモードを使用して車のステンシルメッシュの動きをアニメーション化しています。

💡シーケンサー

シーケンサーは、アニメーションやビデオ編集で使用されるタイムラインベースのツールです。ビデオでは、シーケンサーを使用してカメラレールリグと車を結びつけ、アニメーションのパラメーターを調整しています。

💡リニア補間

これはアニメーションのキーフレーム間の変化を線形に滑らかにする技法です。ビデオでは、リニア補間を使用して車が一定の速度でスプラインに沿って動くようにアニメーション化しています。

Highlights

介绍了使用相机滑轨制作汽车动画的全过程。

提供了如何将汽车附加到相机滑轨的详细教程。

建议先观看有关汽车动画的先前视频。

创建了包含汽车动画的播放列表,并将随着新视频的发布进行更新。

使用车辆地图模板来清晰显示场景中的变化。

演示了如何创建滑轨路径并调整其形状以适应曲线。

如果地形不平坦,可以单独将每个点贴地。

展示了如何调整滑轨以创建满意的路径。

解释了如何将静态网格体的移动性改为可移动以附加到滑轨。

展示了如何锁定方向到滑轨以使物体始终面向路径方向。

创建了一个名为“drive test”的级别序列来控制汽车动画。

演示了如何在序列器中添加汽车并将其附加到滑轨。

展示了如何设置关键帧以控制汽车在滑轨上的移动。

介绍了如何将控制刚体添加到骨骼网格以进行动画控制。

展示了如何调整转向和车轮旋转以反映转弯。

演示了如何通过偏移滑轨的零点来制作汽车滑行或漂移效果。

讨论了如何通过添加转向变换来改善漂移行为的动画。

展示了如何为汽车动画添加车身摇晃效果。

强调了在商业工作中对细节的关注和制作更真实汽车行为的重要性。

鼓励观众花时间学习并创造出色的作品。

提醒观众订阅频道并为视频点赞以获取更多关于Unreal Engine动画和提高生产效率的技巧。

Transcripts

play00:00

hi there and glad to see you again on my

play00:02

channel and today we are going to talk

play00:03

about full process of car animation

play00:05

using camera rail rig a lot of you asked

play00:07

in the comments for more detailed

play00:09

tutorial on how to animate and how to

play00:10

attach car to camera rail rig as I touch

play00:13

this topic very briefly and I didn't go

play00:15

in depth of how that should be done in

play00:17

previous videos so today I will guide

play00:19

you through the whole process on how to

play00:21

use camera railrig as a car pass how to

play00:23

make a car drift and still follow the

play00:25

spline but before make sure that you

play00:27

watched my previous videos about the car

play00:29

animation first and have already the car

play00:31

prepared for this tutorial I've also

play00:33

made a playlist for you with a car wig

play00:35

in which will be updated as I post new

play00:37

videos for this topic now let's get into

play00:39

it here I have added vehicle map

play00:41

template as it is bright and very simple

play00:43

so you can better see what is happening

play00:45

in the scene first I will create our

play00:47

pass with camera rig rail click on plus

play00:50

button cinematic camera rig rail to snap

play00:53

rail to the ground hit and key on your

play00:55

keyboard it's very useful trick and I

play00:58

will use it later on now I will be 18

play01:00

path adding more points by dragging the

play01:02

last point of spline and holding ALT key

play01:04

on the keyboard it creates new spline

play01:06

points and allows you to create custom

play01:08

shapes of the spline changing spline

play01:10

points positioned just like shown right

play01:12

now continue creating spline to fit your

play01:14

curve by creating more points and

play01:16

adjusting shape if you see that the

play01:18

spline has weird shape you can fix it by

play01:20

editing Point rotation just simply

play01:23

select it and turn so the spline would

play01:25

be smooth

play01:29

always try to make this plan as smooth

play01:31

as possible so the car won't wobble on

play01:33

it if you have uneven terrain you can

play01:35

snap each point to the ground

play01:37

individually select the point which you

play01:39

would like to snap and hit and on your

play01:41

keyboard like mentioned before now I

play01:43

will speed up the process of displaying

play01:45

adjustment as we already learned the

play01:47

basics after that it just takes time to

play01:49

make the pass you like

play02:02

[Music]

play02:06

and now it looks good to me let's check

play02:08

on the basic shape how does it work I

play02:10

will add Cube by default you can't

play02:12

attach static mesh to the rails so we

play02:14

need to change actor Mobility to movable

play02:16

mostly you will run into this issue with

play02:18

static meshes as we attach the cube

play02:21

notice this duplication hasn't changed

play02:23

as the zero coordinates for it

play02:25

unallocated inside the rail rig we need

play02:27

to reset it so the cube will sit on the

play02:29

rail cut

play02:31

now select the rail and tick lock

play02:33

orientation to rail so the actor will be

play02:36

always facing the direction of the

play02:37

spline now if you try to change current

play02:39

position on rail parameter Cube will be

play02:41

smoothly following the spline

play02:49

brilliant that works well now let's try

play02:52

to do that with the car for animation we

play02:54

will create a level sequence I will call

play02:56

it drive test

play02:59

open the sequence now select rail rig

play03:01

and click on plus track button in

play03:04

sequencer go to actor to sequencer and

play03:07

add selected it will be on top

play03:11

now we will add the car be sure that you

play03:13

already have the skeletal mesh and the

play03:15

control rig prepared I have Mustang from

play03:17

previous videos so I grab skeletal mesh

play03:20

drag it to the scene and add it to the

play03:22

sequencer too

play03:26

in order the car follow this plan we

play03:28

need to attach it in sequencer on

play03:30

skeletal mesh click add track attach

play03:32

camera rail rig as you can see car

play03:35

position now is very far away as it kept

play03:37

the coordinates but it's zero point not

play03:40

the world location right now but rail

play03:41

rig Mount reset the location now

play03:44

everything is where it should be for

play03:46

camera rig rail add track current

play03:48

position on rail

play03:52

we will animate this parameter for car

play03:54

movement in the beginning set keyframe

play03:56

for 0 and 1 in the end you can set any

play03:59

value between 0 or 1 it just represents

play04:02

the start and end point of the spline

play04:08

cool car is moving but smooth keyframes

play04:10

are not good for my purpose as I want

play04:12

car move Drive steady at the same speed

play04:15

but smooth keyframes can be used for

play04:17

braking and acceleration for this case I

play04:20

will transform these keys to linear

play04:21

interpolation so car moves at the same

play04:24

speed all the time

play04:37

next step is adding control rig for our

play04:39

skeletal mesh click add track to

play04:41

skeletal mesh select control rig asset

play04:44

based control rig Unreal Engine

play04:45

automatically will switch to animation

play04:47

mode and will display the controls I

play04:49

have some basic setup with the body

play04:51

steering and wheel rotation first I will

play04:53

start with steering and change it

play04:54

accordingly to respond to the turn

play04:57

select the controller and move it so the

play04:59

wheels will turn

play05:00

and add a keyframe for that don't forget

play05:03

to add the keyframe for each change you

play05:05

do because if you don't that will revert

play05:07

to the original position and your

play05:09

animation may be ruined now I go back a

play05:11

few frames and set steering to its

play05:13

neutral position and also keyframe it

play05:15

adjust it to the point that it feels

play05:17

real to you

play05:20

[Music]

play05:28

thank you

play05:39

right after that I set wheel rotation

play05:42

also don't forget to make keyframe for

play05:44

that otherwise Wheels won't spin on your

play05:46

render check if the wheel spin is fine

play05:48

for the speedo cargoing

play05:54

I think it's too slow so I will increase

play05:56

the wheel spin ratio right now go back

play05:58

to zero frame and adjust it

play06:04

[Music]

play06:07

now it looks better the best thing

play06:09

working with the object which is

play06:11

attached to a spline that you can offset

play06:13

it from the zero point of the spline and

play06:16

make it slide or drift go to transform

play06:18

section of your skeletal mesh and set a

play06:20

keyframe into zero frame this is our

play06:22

spline card center point now when we

play06:25

move further on the spline find a place

play06:28

where car should start drifting at the

play06:30

keyframe so it maintains zero position

play06:33

but will be sliding from this point move

play06:36

a bit further and transfer the car

play06:37

position to your liking and don't forget

play06:40

to keyframe it

play06:46

Now find the position when you think the

play06:49

car should go back to regular driving

play06:50

from drifting

play06:54

[Music]

play06:59

keyframe it and in the end reset all

play07:02

values to zero returning the car

play07:04

straight on the line

play07:07

[Music]

play07:25

have a look at your whole animation

play07:31

for my taste drifting happens too fast

play07:34

so let's widen the distance between

play07:36

neutral position and beginning of

play07:37

drifting

play07:39

but now it looks better after initial

play07:41

animation is done I will be adding some

play07:43

steering transforms so it better

play07:45

reflects drifting Behavior

play07:51

[Music]

play08:12

thank you

play08:17

[Music]

play08:23

looks fine for this quick setup let's

play08:25

get to the body shake the process is

play08:27

pretty the same when a car drifts the

play08:30

Mast is transferred to the outer side

play08:31

using the body control I can transform

play08:33

the shake you can look for the

play08:35

references in the internet for how the

play08:37

street legal cars drifting basically

play08:39

just these videos to your animation and

play08:41

learn from it

play08:48

thank you

play08:59

actually turned out even better than I

play09:01

expected just for the tutorial purposes

play09:04

if you work commercially try pay

play09:05

attention to details and make car

play09:07

Behavior much more detailed and

play09:09

realistic this extra step will be

play09:11

appreciated by the client but don't

play09:13

forget to charge your hours for your

play09:15

work and this is the exact way I have

play09:17

created animation in City sample in my

play09:19

previous video I have attached the car

play09:21

to the spline keyframe steering and

play09:24

wheel rotation added body shake place

play09:26

the camera in the scene and made the

play09:28

render resulting in these short

play09:30

cinematic

play09:31

[Music]

play09:36

and there is nothing any one of you

play09:38

can't do just take your time learn and

play09:41

create something spectacular and if you

play09:42

would like to learn more about Unreal

play09:44

Engine animation and boost production

play09:46

tips don't forget to subscribe to my

play09:48

channel and hit a like for this video If

play09:49

you enjoyed it thanks for watching and

play09:52

see you in the next one

Rate This

5.0 / 5 (0 votes)

Related Tags
アニメーションカメラレールドリフトチュートリアルカーパススプラインキーフレームアンリアルエンジンモーション3Dモデリングプロダクション
Do you need a summary in English?