当前位置:网站首页>MMD->Unity一站式解决方案
MMD->Unity一站式解决方案
2022-08-02 14:11:00 【莉萝爱萝莉】
1. 准备工作
1. 准备模型
你需要准备来自MMD的模型,或任意其他可在Unity中使用的模型
- 获取来自MMD的模型方法有很多,比如 bowlroll 、aplaybox(模之屋)。
- 针对其他模型的获取,你也可以前往 booth 获取对应模型。
2. 准备动作与相机
动作模型分为三类,舞蹈动作、手部/面部动作、以及镜头动作
通常来说,这些动作的文件后缀为vmd。
你可以前往 bowlroll 、aplaybox(模之屋) 获取动作。
3. 各种插件的获取
mmd的pmx模型转fbx:stereoarts
mmd口型加载:MMD4UnityTools
mmd镜头加载:MMD2UnityTool
物理:mmd自带,插件可选(Dynamic Bone)动态骨骼或(Magica Cloth)魔法布料
注:导入口型时,由于插件问题导致不能正常运行,因此需要微调MMDExtensionsEditor
源码
var curve = new AnimationCurve(package.ToArray());
varchara = GameObject.Find("U_Char_2");
var gameObjectName = chara.name;
var parentName = chara.transform.parent.name;
var mesh = chara.GetComponent<SkinnedMeshRenderer>().sharedMesh;
/* 被隐去的部分 var gameObjectName = Selection.gameObjects.First().name; var parentName = Selection.gameObjects.First().transform.parent.name; var mesh = Selection.gameObjects.First().GetComponent<SkinnedMeshRenderer>().sharedMesh;*/
var bsCounts = mesh.blendShapeCount;
var blendShapeNames = Enumerable.Range(0, bsCounts).ToList().ConvertAll(index => mesh.GetBlendShapeName(index));
边栏推荐
- 如何用硬币模拟1/3的概率,以及任意概率?
- Knapsack Problem - Dynamic Programming - Theory
- unity-shader(入门)
- Yolov5 official code reading - prior to transmission
- Codeforces Round #605 (Div. 3)
- Use libcurl to upload the image of Opencv Mat to the file server, based on two methods of post request and ftp protocol
- Redis common interview questions
- 2342. 数位和相等数对的最大和 哈希优化
- 模板系列-二分
- pygame image rotate continuously
猜你喜欢
剑指offer:合并两个排序的链表
Introduction to MATLAB drawing functions ezplot explanation
极简式 Unity 获取 bilibili 直播弹幕、SC、上舰、礼物等 插件
二叉排序树与 set、map
Win10 computer can't read U disk?Don't recognize U disk how to solve?
【离散化+前缀和】Acwing802. 区间和
Doubled and sparse tables
1. Development community homepage, register
Open the door of power and electricity "Circuit" (2): Power Calculation and Judgment
Use tencent cloud builds a personal blog
随机推荐
轻量化AlphaPose
4.发布帖子,评论帖子
项目:数据库表的梳理
推开机电的大门《电路》(二):功率计算与判断
奇技淫巧-位运算
Open the door of electricity "Circuit" (1): voltage, current, reference direction
MATLAB制作简易小动画入门详解
STM32LL library - USART interrupt to receive variable length information
Win11 system cannot find dll file how to fix
剑指offer:反转链表
Lightweight AlphaPose
MATLAB绘图函数plot详解
IPV4和IPV6是什么?
Win10 computer can't read U disk?Don't recognize U disk how to solve?
二叉树遍历之后序遍历(非递归、递归)入门详解
【离散化+前缀和】Acwing802. 区间和
5.事务管理
What should I do if the Win10 system sets the application identity to automatically prompt for access denied?
Golang 垃圾回收机制详解
2342. 数位和相等数对的最大和 哈希优化