导入背景视频
1. 导入人物和场景
![![[Pasted image 20240423134429.png]]](https://img-blog.csdnimg.cn/direct/f31de24ccb76408da2e078b26f43fc07.png)
场景是Akali’s room,可以在墙壁上添加视频
 ![![[Pasted image 20240423134555.png]]](https://img-blog.csdnimg.cn/direct/c089dc81849c4f41b353401390ecda9e.png)
先添加主场景
2. 修改视频文件格式
在背景里选择导入背景视频文件
 ![![[Pasted image 20240423134652.png]]](https://img-blog.csdnimg.cn/direct/c6aea924e1494379a08ba32fd243b841.png)
需要将mp4视频格式转化为AVI格式
方法一
先将视频导入格式工厂
 ![![[Pasted image 20240423135018.png]]](https://img-blog.csdnimg.cn/direct/ea74622968b74ad9af13fbe3a893108c.png)
点击配置
 ![![[Pasted image 20240423135054.png]]](https://img-blog.csdnimg.cn/direct/6614b5c7aa2445db9b23a033167c5e8a.png)
将视频编码改成DivX
 再开始处理
 ![![[Pasted image 20240423135240.png]]](https://img-blog.csdnimg.cn/direct/bddc0cc1ab524f52a2703b46103d7d55.png)
可是直接在背景导入视频文件也会显示无法导入
这里需要下载一个AviSynth+
 Release AviSynth+ 3.7.3 · AviSynth/AviSynthPlus · GitHub
 并下载一个小工具MMBG
 Site Unreachable
 ![![[Pasted image 20240423140545.png]]](https://img-blog.csdnimg.cn/direct/1cf565af81f9404e9606b2c1bae38474.png)
将AVI视频拖到MMBG.bat上面
 然后会在视频的目录上生成一个.avs的文件
这是点击背景导入背景视频文件
 ![![[Pasted image 20240423140756.png]]](https://img-blog.csdnimg.cn/direct/32ba94fcac9e4ffb94fea71d5e5b6e72.png)
选择All Files
 点击刚才生成的.avs文件导入
方法二
如果这个方法出现报错
 AVISource:couldn’t locate a decompressor for fourcc FMP4
 可以使用Pr,导出AVI格式,使用Inter IYUV编码
 ![![[Pasted image 20240423154749.png]]](https://img-blog.csdnimg.cn/direct/28509208042f459393c57267dc4fbbc7.png)
直接导入AVI格式文件,不需要再用MMBG
方法三
将mp4文件,用小丸工具箱封装
 ![![[Pasted image 20240423175638.png]]](https://img-blog.csdnimg.cn/direct/d0642fefe77943fcab673b844d0b1c93.png)
先转换成avi文件
 ![![[Pasted image 20240423175748.png]]](https://img-blog.csdnimg.cn/direct/70f01040ca864dd3aabc1ff37b700e18.png)
再将avi文件转换成mp4文件
 新生成的mp4文件可以导入MMBG中
 生成avs文件
 导入MMD中
本人是第三种方法
MMD环境设置
现在是在整个屏幕上显示视频
 ![![[Pasted image 20240423141005.png]]](https://img-blog.csdnimg.cn/direct/dfa5958a11ea422faac4ff4a9a2b8128.png)
在背景选项里面,点击最下面的一项
-  开启,仅作为屏幕投影 
-  再导入DummyScreen.x插件 
 ![![[Pasted image 20240423141336.png]]](https://img-blog.csdnimg.cn/direct/49b4e2e2103247b88a97a50f83d33f4e.png) 
![![[Pasted image 20240423141420.png]]](https://img-blog.csdnimg.cn/direct/55f8c39259c74eceaa96ab4a5df65f34.png)
-  导入ray环境 
 ![![[Pasted image 20240423141531.png]]](https://img-blog.csdnimg.cn/direct/fc94b710844546d192b76501457147af.png) 
-  导入第二个天空盒 
 ![![[Pasted image 20240423141612.png]]](https://img-blog.csdnimg.cn/direct/ef49211af3d848be9a299f75a2300864.png) 
-  修改模型绘制顺序 
 ![![[Pasted image 20240423141657.png]]](https://img-blog.csdnimg.cn/direct/5b1154ba0a4e4020b15bf29715bcff22.png) 
-  给人物场景天空盒上材质 
 ![![[Pasted image 20240423141800.png]]](https://img-blog.csdnimg.cn/direct/26c4280b56fe4595981004dd4acd0840.png) 
-  给房间的墙添加video材质 
 ![![[Pasted image 20240423141927.png]]](https://img-blog.csdnimg.cn/direct/3bbdf6cb03024ea08efdaef21a6c8cab.png) 
![![[Pasted image 20240423141947.png]]](https://img-blog.csdnimg.cn/direct/7c66eccdc2d14fa1b725a3777708a1a5.png)
-  选第三个LED 
 ![![[Pasted image 20240423155118.png]]](https://img-blog.csdnimg.cn/direct/3401d310ef4749899441fd3d3ea5d7cb.png) 
-  调节ray控制器 
 ![![[Pasted image 20240423142210.png]]](https://img-blog.csdnimg.cn/direct/1a9182c155e547c08b8a64f35f2c7cbc.png) 
SunLight-:0.66
 BloomThreshold反光:0.12
 Contrast-:0.05
 Saturation-,饱和度:0.04
打灯操作
![![[Pasted image 20240423142637.png]]](https://img-blog.csdnimg.cn/direct/df51881b5ae94df69cffaa8c332d2676.png)
10. RectangleLight
-  在Lighting里找到RectangleLight.pmx,拖入 
 ![![[Pasted image 20240423142740.png]]](https://img-blog.csdnimg.cn/direct/d553189853f545bea55cc4e588894461.png) 
-  在主屏幕界面下方调整位置和角度 
 ![![[Pasted image 20240423142801.png]]](https://img-blog.csdnimg.cn/direct/368ab6d7a5344f23a79488500e33c7fc.png) 
记得点击注册
 ![![[Pasted image 20240423142828.png]]](https://img-blog.csdnimg.cn/direct/5643f4bf7f614d40a7004f8e2040f82e.png)
- 再将数值调高,否则灯是不会亮的
 range+:0.04
11. DirectionalLight
再加一个直射光,DirectionalLight
 ![![[Pasted image 20240423142942.png]]](https://img-blog.csdnimg.cn/direct/ecaf1179c51f4b5a92438919d40a8116.png)
![![[Pasted image 20240423143028.png]]](https://img-blog.csdnimg.cn/direct/02f067fe4f434cd98768a4d82ff426f8.png)
调整位置,并注册
 打开光源效果
 ![![[Pasted image 20240423142828.png]]](https://img-blog.csdnimg.cn/direct/16ae3c81f08e4cfbbe695909678c8de3.png)
都是0.2的话,会是一个偏白的光
 如果某一个数值偏高的话,会偏出别的颜色的光
 ![![[Pasted image 20240423155438.png]]](https://img-blog.csdnimg.cn/direct/a2b485eb101949c2b13120f9cf11ffb6.png)
-  添加皮肤材质 
 给眼睛加一个自发光
 ![![[Pasted image 20240423155534.png]]](https://img-blog.csdnimg.cn/direct/18b47f4b0ad94c6c876bcd9edcb9fb71.png) 
-  调节SSAO 
 整体人物0.6
 眼白0.0
 脸0.2
 ![![[Pasted image 20240423155618.png]]](https://img-blog.csdnimg.cn/direct/0edf25f2b0644f8686407baa23ea5dda.png) 
先将ray控制器的虚化关掉
 ![![[Pasted image 20240423143715.png]]](https://img-blog.csdnimg.cn/direct/f8a60b666a1f451b94da57deae8d0a37.png)
-  导入人物动作摄像头 
 ![![[Pasted image 20240423160102.png]]](https://img-blog.csdnimg.cn/direct/e14aa8a7f5244074b8d9c035112d62b3.png) 
-  添加场景材质 
 ![![[Pasted image 20240423160339.png]]](https://img-blog.csdnimg.cn/direct/c0413210deaa458a8a08fcc128666371.png) 
给Metal添加
 ![![[Pasted image 20240423160356.png]]](https://img-blog.csdnimg.cn/direct/85da2b12401b4bfe8d60f15ef9aecf67.png)
给灯条添加
 ![![[Pasted image 20240423160630.png]]](https://img-blog.csdnimg.cn/direct/4b45ce3d97f64e3c95587f404bbd0a20.png)
![![[Pasted image 20240423160601.png]]](https://img-blog.csdnimg.cn/direct/6de8ba0fab3547d0a2dce8801b015079.png)
给天花板加金属材质,显得光滑
 ![![[Pasted image 20240423160747.png]]](https://img-blog.csdnimg.cn/direct/e8a2a11d08e343fb9074a53be57e0f7e.png)
![![[Pasted image 20240423160818.png]]](https://img-blog.csdnimg.cn/direct/929ca3fdec194aba85042722649d3b7d.png)
-  导入Diffusion7 
 ![![[Pasted image 20240423161016.png]]](https://img-blog.csdnimg.cn/direct/3874fdbaf2064262819bbf4c53ff2097.png) 
-  导入PowerDOF,虚化 
 给个0.5
 ![![[Pasted image 20240423161156.png]]](https://img-blog.csdnimg.cn/direct/93bc3b3df2e04a70b6a13280e264b2a7.png) 
-  加个空中漂浮尘埃 
 给个7
 ![![[Pasted image 20240423161259.png]]](https://img-blog.csdnimg.cn/direct/46de0696168245afa8932484678d256b.png)