GRUP STEAM
Blender Source Tools BleST
GRUP STEAM
Blender Source Tools BleST
350
ÎN JOC
2,322
ONLINE
Creat la
8 noiembrie 2013
Toate discuțiile > Help > Detaliile subiectului
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.

Postat inițial de 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.
< >
Se afișează 1-9 din 9 comentarii
Zappy 27 iun. 2018 la 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 27 iun. 2018 la 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 27 iun. 2018 la 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 27 iun. 2018 la 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


Editat ultima dată de 44 Colt; 27 iun. 2018 la 11:36
Autorul acestui fir de discuții a indicat faptul că postarea aceasta răspunde la subiectul inițial.
Zappy 27 iun. 2018 la 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.
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 27 iun. 2018 la 13:03 
Postat inițial de 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.)
It's a bug. I've fixed it locally but it's not worth making a new release for.
44 Colt 27 iun. 2018 la 13:42 
Yes, scaling it in blender instead of the qc file fixed the issue. Thanks.
< >
Se afișează 1-9 din 9 comentarii
Per pagină: 1530 50

Toate discuțiile > Help > Detaliile subiectului
Data postării: 27 iun. 2018 la 8:04
Postări: 9