CAR ANIMATION USING SPLINE | Unreal Engine 5
Summary
TLDRこのビデオでは、カメラレールリグを使用したカーアニメーションの全プロセスについて詳しく説明しています。コメントで多くの視聴者がリクエストした通り、カーをカメラレールリグにアタッチする方法と、スプラインに追従しながらカーをドリフトさせる方法を紹介します。まず、カーを準備し、スプラインを作成し、カーを滑らかに動かすためにスプラインの形状を調整します。次に、レベルシーケンスを作成し、カーをアニメーションさせるためにカメラレールリグにアタッチします。カーの動きをアニメーション化し、スティーリングと車輪の回転を調整してリアルなドリフト効果を実現します。最後に、アニメーション全体をチェックし、細かい調整を行いながら、カーの振動とドリフトの動作を改善します。
Takeaways
- 🎥 このビデオでは、カメラレールリグを使用したカーアニメーションの全プロセスについて説明しています。
- 🔗 以前のビデオで触れたトピックを深掘りし、カーをカメラレールリグにアタッチする方法について詳しく解説しています。
- 🚗 カーアニメーションのチュートリアルを始める前に、既にカーを準備しておく必要があります。
- 📐 まずはシンプルな車両マップテンプレートを追加し、シーン内で何が起こっているかを明確にします。
- 🛤️ レールリグを使用してパスを作成し、ALTキーを押しながらスプラインのポイントをドラッグしてカスタムの形状を作成します。
- 🔧 スプラインのポイントを個別に地面にスナップすることで、不平坦な地形でもカーが揺れないようにします。
- 🗺️ スプラインの形状を調整してカーが滑らかに動くようにし、不規則な形状を修正します。
- 🚗 ステータックメッシュとコントロールリグを準備して、レベルシーケンスを作成し、アニメーションを開始します。
- 🔑 レールリグにアタッチするために、アクターのモビリティを「移動可能」に変更し、向きをレールに合わせます。
- 🔄 アニメーションで使用するキーフレームを線形補間に変換して、カーが一定速度で動くようにします。
- 🚗 スキネルメッシュにコントロールリグを追加し、ハンドルの回転や車輪の回転をアニメーション化します。
- 🎨 アニメーションの最終チェックを行い、カーのドリフトやボディシェイクを調整してリアルな動作を表現します。
Q & A
ビデオではどのようなトピックについて話されていますか?
-ビデオでは、カメラレールリグを使用したカーアニメーションのプロセスについて説明されています。
カーをカメラレールリグにアタッチする方法についてどのように説明されていますか?
-ビデオでは、スプラインに沿ってカーを漂移させながらも追従させる方法を詳しく説明しています。
スプラインの形状を調整する方法は何ですか?
-スプラインの形状を調整するために、ポイントの位置をドラッグしてALTキーを押すことで新しいスプラインポイントを作成し、形状をカスタマイズできます。
スプラインが不規則な形状になった場合はどうすればよいですか?
-スプラインが不規則な形状になった場合は、ポイントのローテーションを編集してスプラインを滑らかにすることができます。
カメラレールリグを使用する際に、静的なメッシュに遭遇する一般的な問題とは何ですか?
-静的なメッシュをレールにアタッチする際には、アクターのモビリティを移動可能に変更する必要があるという問題に遭遇することがあります。
レベルシーケンスを作成し、カーをアニメーションさせるために必要な最初のステップは何ですか?
-最初のステップは、レールリグを選択し、シーケンサーで「プラストラック」ボタンをクリックし、アクターをシーケンサーに追加することです。
カーがスプラインに沿って滑らかに動くようにするにはどうすればよいですか?
-カメラレールリグに「現在の位置オンレール」パラメーターを追加し、アニメーションを設定することでカーがスプラインに沿って滑らかに動くことができます。
カーのスティアリングとホイールの回転をアニメーション化するために必要なステップは何ですか?
-スティアリングとホイールの回転をアニメーション化するためには、コントロールリグを選択し、シーケンサーに追加し、ポイントの変更にキーフレームを設定する必要があります。
カーが漂移する効果を作り出すために、どのようなアプローチを使用していますか?
-カーが漂移する効果を作るために、スプラインのゼロポイントからのオフセットを使用してカーをスライドさせ、漂移させることができます。
アニメーションの最終チェックで何を確認するべきですか?
-アニメーションの最終チェックでは、カーの動きがリアルであるか、スティアリングやホイールの回転が適切であるか、そして全体のアニメーションが滑らかで自然であるかを確認するべきです。
ビデオの最後に提供されるリンクやリソースはどのようなものですか?
-ビデオの最後に、Unreal Engineアニメーションやプロダクションのヒントについてもっと学びたい視聴者がチャンネルを購読したり、このビデオを高評価にしたりするためのリンクやリソースが提供されています。
Outlines
🚗 車のアニメーションとカメラレールリグの使い方
この段落では、カメラレールリグを使用した車のアニメーションの全プロセスについて説明しています。チャンネルの以前のビデオで触れた内容を深掘りし、コメント欄からの要望に応じて、車のアニメーションとカメラレールリグへのアタッチ方法について詳細に解説します。車を滑らかに動かすだけでなく、スプラインに沿ってカードリフトを作りながらもそれに従う方法を学ぶことができます。まず、以前のビデオを確認し、車をこのチュートリアルに備えて準備しておく必要があります。プレイリストも用意されており、新しいビデオが投稿されるごとに更新されます。
🔧 車のアニメーションの詳細設定と調整
この段落では、車をアニメーションさせるための具体的な手順が紹介されています。スプラインの作成、車の位置と向きの調整、そしてアニメーションのキーフレームの設定方法が説明されています。スプラインの形状を調整し、地面に合わせてスナップしたり、滑らかさを保ちながらカーの動きをアニメーション化します。車をレールリグにアタッチし、向きを固定してスプラインに沿って滑らかに動かす方法も紹介されています。さらに、車が曲がる様子や車輪の回転をリアルタイムでアニメーション化する方法や、車がドリフトする動きを追加するテクニックも解説されています。
Mindmap
Keywords
💡カーアニメーション
💡カメラレールリグ
💡スプライン
💡キーフレーム
💡ステンシルメッシュ
💡コントロールリグ
💡漂移
💡アニメーションモード
💡シーケンサー
💡リニア補間
Highlights
介绍了使用相机滑轨制作汽车动画的全过程。
提供了如何将汽车附加到相机滑轨的详细教程。
建议先观看有关汽车动画的先前视频。
创建了包含汽车动画的播放列表,并将随着新视频的发布进行更新。
使用车辆地图模板来清晰显示场景中的变化。
演示了如何创建滑轨路径并调整其形状以适应曲线。
如果地形不平坦,可以单独将每个点贴地。
展示了如何调整滑轨以创建满意的路径。
解释了如何将静态网格体的移动性改为可移动以附加到滑轨。
展示了如何锁定方向到滑轨以使物体始终面向路径方向。
创建了一个名为“drive test”的级别序列来控制汽车动画。
演示了如何在序列器中添加汽车并将其附加到滑轨。
展示了如何设置关键帧以控制汽车在滑轨上的移动。
介绍了如何将控制刚体添加到骨骼网格以进行动画控制。
展示了如何调整转向和车轮旋转以反映转弯。
演示了如何通过偏移滑轨的零点来制作汽车滑行或漂移效果。
讨论了如何通过添加转向变换来改善漂移行为的动画。
展示了如何为汽车动画添加车身摇晃效果。
强调了在商业工作中对细节的关注和制作更真实汽车行为的重要性。
鼓励观众花时间学习并创造出色的作品。
提醒观众订阅频道并为视频点赞以获取更多关于Unreal Engine动画和提高生产效率的技巧。
Transcripts
hi there and glad to see you again on my
channel and today we are going to talk
about full process of car animation
using camera rail rig a lot of you asked
in the comments for more detailed
tutorial on how to animate and how to
attach car to camera rail rig as I touch
this topic very briefly and I didn't go
in depth of how that should be done in
previous videos so today I will guide
you through the whole process on how to
use camera railrig as a car pass how to
make a car drift and still follow the
spline but before make sure that you
watched my previous videos about the car
animation first and have already the car
prepared for this tutorial I've also
made a playlist for you with a car wig
in which will be updated as I post new
videos for this topic now let's get into
it here I have added vehicle map
template as it is bright and very simple
so you can better see what is happening
in the scene first I will create our
pass with camera rig rail click on plus
button cinematic camera rig rail to snap
rail to the ground hit and key on your
keyboard it's very useful trick and I
will use it later on now I will be 18
path adding more points by dragging the
last point of spline and holding ALT key
on the keyboard it creates new spline
points and allows you to create custom
shapes of the spline changing spline
points positioned just like shown right
now continue creating spline to fit your
curve by creating more points and
adjusting shape if you see that the
spline has weird shape you can fix it by
editing Point rotation just simply
select it and turn so the spline would
be smooth
always try to make this plan as smooth
as possible so the car won't wobble on
it if you have uneven terrain you can
snap each point to the ground
individually select the point which you
would like to snap and hit and on your
keyboard like mentioned before now I
will speed up the process of displaying
adjustment as we already learned the
basics after that it just takes time to
make the pass you like
[Music]
and now it looks good to me let's check
on the basic shape how does it work I
will add Cube by default you can't
attach static mesh to the rails so we
need to change actor Mobility to movable
mostly you will run into this issue with
static meshes as we attach the cube
notice this duplication hasn't changed
as the zero coordinates for it
unallocated inside the rail rig we need
to reset it so the cube will sit on the
rail cut
now select the rail and tick lock
orientation to rail so the actor will be
always facing the direction of the
spline now if you try to change current
position on rail parameter Cube will be
smoothly following the spline
brilliant that works well now let's try
to do that with the car for animation we
will create a level sequence I will call
it drive test
open the sequence now select rail rig
and click on plus track button in
sequencer go to actor to sequencer and
add selected it will be on top
now we will add the car be sure that you
already have the skeletal mesh and the
control rig prepared I have Mustang from
previous videos so I grab skeletal mesh
drag it to the scene and add it to the
sequencer too
in order the car follow this plan we
need to attach it in sequencer on
skeletal mesh click add track attach
camera rail rig as you can see car
position now is very far away as it kept
the coordinates but it's zero point not
the world location right now but rail
rig Mount reset the location now
everything is where it should be for
camera rig rail add track current
position on rail
we will animate this parameter for car
movement in the beginning set keyframe
for 0 and 1 in the end you can set any
value between 0 or 1 it just represents
the start and end point of the spline
cool car is moving but smooth keyframes
are not good for my purpose as I want
car move Drive steady at the same speed
but smooth keyframes can be used for
braking and acceleration for this case I
will transform these keys to linear
interpolation so car moves at the same
speed all the time
next step is adding control rig for our
skeletal mesh click add track to
skeletal mesh select control rig asset
based control rig Unreal Engine
automatically will switch to animation
mode and will display the controls I
have some basic setup with the body
steering and wheel rotation first I will
start with steering and change it
accordingly to respond to the turn
select the controller and move it so the
wheels will turn
and add a keyframe for that don't forget
to add the keyframe for each change you
do because if you don't that will revert
to the original position and your
animation may be ruined now I go back a
few frames and set steering to its
neutral position and also keyframe it
adjust it to the point that it feels
real to you
[Music]
thank you
right after that I set wheel rotation
also don't forget to make keyframe for
that otherwise Wheels won't spin on your
render check if the wheel spin is fine
for the speedo cargoing
I think it's too slow so I will increase
the wheel spin ratio right now go back
to zero frame and adjust it
[Music]
now it looks better the best thing
working with the object which is
attached to a spline that you can offset
it from the zero point of the spline and
make it slide or drift go to transform
section of your skeletal mesh and set a
keyframe into zero frame this is our
spline card center point now when we
move further on the spline find a place
where car should start drifting at the
keyframe so it maintains zero position
but will be sliding from this point move
a bit further and transfer the car
position to your liking and don't forget
to keyframe it
Now find the position when you think the
car should go back to regular driving
from drifting
[Music]
keyframe it and in the end reset all
values to zero returning the car
straight on the line
[Music]
have a look at your whole animation
for my taste drifting happens too fast
so let's widen the distance between
neutral position and beginning of
drifting
but now it looks better after initial
animation is done I will be adding some
steering transforms so it better
reflects drifting Behavior
[Music]
thank you
[Music]
looks fine for this quick setup let's
get to the body shake the process is
pretty the same when a car drifts the
Mast is transferred to the outer side
using the body control I can transform
the shake you can look for the
references in the internet for how the
street legal cars drifting basically
just these videos to your animation and
learn from it
thank you
actually turned out even better than I
expected just for the tutorial purposes
if you work commercially try pay
attention to details and make car
Behavior much more detailed and
realistic this extra step will be
appreciated by the client but don't
forget to charge your hours for your
work and this is the exact way I have
created animation in City sample in my
previous video I have attached the car
to the spline keyframe steering and
wheel rotation added body shake place
the camera in the scene and made the
render resulting in these short
cinematic
[Music]
and there is nothing any one of you
can't do just take your time learn and
create something spectacular and if you
would like to learn more about Unreal
Engine animation and boost production
tips don't forget to subscribe to my
channel and hit a like for this video If
you enjoyed it thanks for watching and
see you in the next one
5.0 / 5 (0 votes)