Unity5 Tutorial: Cloth for Animated Characters using Blender Rigify addon
Unity cloth part starts at 18:30
Overview: in this video I will show you how to include a cloth component on an animated character in Unity and add collision to the characters rig, so the cloth collides with the moving character mesh.
Link to Patreon: https://www.patreon.com/bryfe
Link to website: http://http://brycehenley.com
I had trouble figuring this out with the lack of comprehensive tutorials, so I decided to try and make one after figuring it out.
----------------------steps--------------------------------------------------------------------
separate cloth geometry from the rest of the character model
start by rigging the model
(in this case I will show you my rig setup in blender)
add a rigify human meta rig
use the rigify to unity blender add on (search in default add ons)
https://github.com/trynyty/Rigify_DeformBones to simplify the rig for import into unity
generate rig buttons for animation
select all mesh objects then shift select the rig, parent to rig with automatic weights
animate the rig
import into unity, the best way I have found has been to save a copy of the .blend
directly into the assets folder in your unity project
place character prefab in scene
drag your animation into the components section of your inspector to test the animation
expand the prefab in your scene overview
select just the mesh you want to be your cloth
add a cloth component
click constraints
paint 0.0 distance where you want the cloth not to move
the rest can be weight painted to your liking, I have found it good to start with
a weight of 0.2 and gradually work up the model
play the animation back by playing the scene
notice that the cloth passes through the character model, now we need to add collision
With Unity5's new cloth system, you can only use capsule and sphere collision on cloth
So we need to add a physics collider component to the characters rig so it follows the animation
expand the rig in the overview
select the bone you want to parent to
add a physics capsule collider component to the bone
adjust the size of the collider
then open back up the cloth component and add a collision object selecting the one
we parented to the bone
Play back the animation, and it should now collide with the character model
To make it look better play with weight painted and skinning weights of the rig in blender
-----------------------------------------------------------------
I apologize for not being able to show key presses in blender, I use a custom layout loosely based on Maya, and figured it would confuse more than help.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Unity5 Tutorial: Cloth for Animated Characters using Blender Rigify addon», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.