STEAM 组
Blender Source Tools BleST
STEAM 组
Blender Source Tools BleST
329
游戏中
2,040
在线
成立于
2013 年 11 月 8 日
所有讨论 > Help > 主题详情
44 Colt 2018 年 6 月 27 日 上午 8:04
Axis of rotation in mdl different compared to blender
I'm making a super mario character with a spinning propeller on his head:
https://imgur.com/sAEBVzs


the propeller itself is basically centered on the character's head, and it rotates about that point in blender (rotating about the z axis).

But in the model file (imgur file above) the axis of rotation of the propeller is different (the angle is not different, just the centre of rotation).

Armature is torso bone and propeller bone, which is parented to torso bone.
propeller parented to propeller bone, everything else is parented to torso bone.
I did LocRot in blender animations.




My qc file is here:

$scale 360

$modelname "flyboy/flyboy.mdl"


$cdmaterials "models/flyboy"


$body mybody "flyboy.smd"


$sequence idle "flyboy" loop fps 1

$sequence flying "flying_001" loop fps 30

Can someone help?
Thanks.

引用自 Zappy:
I downloaded the compiled Source model and checked it in Source Filmmaker, and yes, it seems wrong. Then I downloaded the Blender session, copied your QC file, loaded the Blender session, exported a mesh DMX (and changed the QC to load that), and compiled the model, and nothing seemed wrong.

However... You have "$scale 360" in your QC file. It's much better to do the scaling within a 3D model editor instead (so you scale it up to 360x scale in Blender and remove the $Scale line from the QC file). While I haven't tested doing so, I assume that doing that will make the model end up as you want it to, even if you do SMD exports.
< >
正在显示第 1 - 9 条,共 9 条留言
Zappy 2018 年 6 月 27 日 上午 8:36 
Please show a screenshot where the propeller bone's axis is visible in Blender, and another where it's visible in Source.
44 Colt 2018 年 6 月 27 日 上午 10:42 
Bone axis in source mid animation:
https://imgur.com/AtjvDgF

Bone axis in source in idle sequence:
https://imgur.com/vAYArgT

Bone axis in blender:
https://imgur.com/gvdKY5u

I'm not sure what to make of these, the bone axis seems to be the same but the propeller mesh is clearly not rotating about the centre part.
Zappy 2018 年 6 月 27 日 上午 11:20 
Does this issue also happen in Blender? And whether or not it does, please upload the Blender session and compiled Source model somewhere for us to view ourselves.
44 Colt 2018 年 6 月 27 日 上午 11:35 
It doesn't happen in blender no. Here are some the drop box files, thanks.

blender file:
https://www.dropbox.com/s/vjjohtxp7s1cgne/fly_boy.blend?dl=0


compiled source file: https://www.dropbox.com/sh/h9a3l4avhuquo95/AABBO5hOvZd127yrprTpD4hXa?dl=0


最后由 44 Colt 编辑于; 2018 年 6 月 27 日 上午 11:36
该讨论串的作者已表示此帖子解答了原先的主题。
Zappy 2018 年 6 月 27 日 下午 12:38 
I downloaded the compiled Source model and checked it in Source Filmmaker, and yes, it seems wrong. Then I downloaded the Blender session, copied your QC file, loaded the Blender session, exported a mesh DMX (and changed the QC to load that), and compiled the model, and nothing seemed wrong.

However... You have "$scale 360" in your QC file. It's much better to do the scaling within a 3D model editor instead (so you scale it up to 360x scale in Blender and remove the $Scale line from the QC file). While I haven't tested doing so, I assume that doing that will make the model end up as you want it to, even if you do SMD exports.
Artfunkel 2018 年 6 月 27 日 下午 12:54 
This seems to be happening due to floating point rounding errors. These are large enough to be noticeable because you have an insane scene setup: your armature is scaled to 0.2, and then you scale the whole model by 360 in the QC file. You also have the origins of each of your meshes miles away from the geometry.

Once I brought everything within normal tolerances the problem went away.
Zappy 2018 年 6 月 27 日 下午 1:03 
引用自 Artfunkel
Once I brought everything within normal tolerances the problem went away.
Speaking of problems, when I exported a mesh DMX from that Blender session, the Blender Source Tools gave 5 or 6 warnings about there being multiple armatures... even though there only seems to be a single armature. Do you know why that is? (I do apologize for asking about an unrelated issue here, but I have never had that error myself, and I don't want to create a bug report about someone else's Blender session.)
Artfunkel 2018 年 6 月 27 日 下午 1:05 
It's a bug. I've fixed it locally but it's not worth making a new release for.
44 Colt 2018 年 6 月 27 日 下午 1:42 
Yes, scaling it in blender instead of the qc file fixed the issue. Thanks.
< >
正在显示第 1 - 9 条,共 9 条留言
每页显示数: 1530 50

所有讨论 > Help > 主题详情
发帖日期: 2018 年 6 月 27 日 上午 8:04
回复数: 9