STEAM 组
Blender Source Tools BleST
STEAM 组
Blender Source Tools BleST
402
游戏中
2,348
在线
成立于
2013 年 11 月 8 日
所有讨论 > Help > 主题详情
protatoguy 2017 年 8 月 3 日 上午 10:42
Part of model becomes messed up.
I renamed some bones that were weighted to the head, which also had facial flexes. Then when I exported as a .dmx and compiled it., the head model went crazy. But, when I export as .smd, there are no issues. I also tried removing all the shape keys before exporting, but same problem.
< >
正在显示第 1 - 15 条,共 33 条留言
Zappy 2017 年 8 月 3 日 上午 11:21 
Please copy-paste the entire QC file here, and also show some screenshots of the head going crazy with a .DMX export and being fine with an .SMD export.
最后由 Zappy 编辑于; 2017 年 8 月 3 日 下午 12:31
Artfunkel 2017 年 8 月 3 日 下午 12:30 
Just guessing until the files arrive, but if you change the reference mesh's skeleton you'll also need to export all of your animations again.
protatoguy 2017 年 8 月 3 日 下午 4:44 
最后由 protatoguy 编辑于; 2017 年 8 月 3 日 下午 4:44
Artfunkel 2017 年 8 月 4 日 上午 12:07 
Looks like a misplaced bone. Have you tried re-exporting the animations like I suggested? In particular anims\ragdoll.dmx.
protatoguy 2017 年 8 月 4 日 上午 10:20 
Yes, blender also exports the animations. I have tried recompiling it. It did not fix it, also smd does not have problems, why?
Artfunkel 2017 年 8 月 4 日 上午 10:30 
No idea yet. Please upload your blend.
Zappy 2017 年 8 月 4 日 下午 12:46 
For the $Sequence line in the SMD QC, I suggest using head.smd, not anims\ragdoll.smd.
Likewise for $Sequence in the DMX QC, I suggest using head.dmx and not anims\ragdoll.dmx.
最后由 Zappy 编辑于; 2017 年 8 月 4 日 下午 12:47
protatoguy 2017 年 8 月 4 日 下午 1:20 
Here is the blend file.

It is a port from Overwatch

https://drive.google.com/open?id=0BxENF50YVgXob2duWmZRdS1sbG8

Also I don't understand why I should use head.smd/dmx for the sequence as it is not an animation file.
最后由 protatoguy 编辑于; 2017 年 8 月 4 日 下午 1:20
Zappy 2017 年 8 月 4 日 下午 1:24 
引用自 Lol3#IC
- Also I don't understand why I should use head.smd / dmx for the sequence as it is not an animation file.
StudioMDL looks at the various frames of skeletal animation for sequences. A mesh file does contain 1 frame of skeletal animation. You should use it because the model is supposed to just be in the reference pose in that sequence.
Artfunkel 2017 年 8 月 5 日 上午 5:19 
This is happening because her face is weighted to too many bones. The limit is three in Source 1, and four in Source 2.

I have code in the exporter to cull the excess links and redistribute their weight across the survivors, and I'm sure you've noticed the warnings. But that isn't enough for your "head" mesh because even though the individiual vertices are within the limit, the mesh overall is stil weighted to too many bones. 11 bones, to be precise. Evidently the engine doesn't like this.

You need to convert the face bones to shape keys until the head is within the limit. You should be fine once it's just the head, neck, and possibly jaw bones.

I'll add an error message to the exporter to explain that the model is invalid.
Zappy 2017 年 8 月 5 日 上午 5:22 
引用自 Artfunkel
- I have code in the exporter to cull the excess links and redistribute their weight across the survivors, and I'm sure you've noticed the warnings. But that isn't enough for your "head" mesh because even though the individiual vertices are within the limit, the mesh overall is stil weighted to too many bones. 11 bones, to be precise. Evidently the engine doesn't like this. -
I'm not really sure where you get that information, considering I can have a single DMX mesh that's all connected together, has lots of bones (over 20 bones), and works just fine since there's not any given vertice that uses over 3 bones. Just wanted to let you know.
Artfunkel 2017 年 8 月 5 日 上午 5:53 
From testing the compiler's behaviour, of course. I just made a test plane with 36 bones and it's mashed up too. If you want to upload your blend I'll take a look and see what's different about yours. Perhaps it's a bug that has been fixed in the version of the engine you're compiling for?
Zappy 2017 年 8 月 5 日 上午 6:03 
引用自 Artfunkel
From testing the compiler's behaviour, of course. I just made a test plane with 36 bones and it's mashed up too. If you want to upload your blend I'll take a look and see what's different about yours. Perhaps it's a bug that has been fixed in the version of the engine you're compiling for?
Just to be clear, I'm not talking about this specific thing, so while what you said may apply to this specific project for some reason and somehow also your test plane, I don't feel it applies in general somehow.

What I'm not experiencing issues with are edited Team Fortress 2 models (which are often split up into several parts and never need to be "culled" to be exported as DMX) and edited custom My Little Pony models (which are often not split up, and is what I'm talking about in this case). I'm compiling for Source FilmMaker and ocassionally Team Fortress 2, using their respective versions of StudioMDL... but the pony models don't seem to have any vertices with over 5 or 6 linked bones (pre-"cull"), though, and are usually weighted in big regions, rather than lots of bones affecting close and neighbouring vertices (like on a face, such as in this case).

Again, I just personally don't think it affects everything in general, but if it also applies to a test plane you just made, then I'm not really sure anymore...
protatoguy 2017 年 8 月 5 日 上午 7:12 
What I don't understand is before I renamed the head bone, if you export as DMX it will be fine. It also had shape keys. But, now if you rename it, it will become messed up. Renaming the neck bone does not affect anything so its fine.
Artfunkel 2017 年 8 月 5 日 上午 7:45 
Hmm, you're right, it's only when the bone and the mesh share the same name. This must be related to the way that DMX stores both meshes and bones in the same hierarchy.

Either way, I'm confident that this is a bug in the compiler, not the exporter.
< >
正在显示第 1 - 15 条,共 33 条留言
每页显示数: 1530 50

所有讨论 > Help > 主题详情
发帖日期: 2017 年 8 月 3 日 上午 10:42
回复数: 33