• MDL Bone Rotation Issue
    2 replies, posted
So basically I've attempted to rig a model, the physics when used ingame work fine, but the model's mesh is fucked up for what I am assuming is due to the bones and I have no idea on how to fix them, Anyone got any Ideas? [IMG]https://dl.dropboxusercontent.com/u/92606679/Bone%20Issue.png[/IMG]
What program did you use to rig the skeleton? Also, could you post your QC in [noparse][code][/code][/noparse] tags?
I used blender, which may be the problem Here's my qc file [CODE]//where to compile to $modelname player\test\MaleBase.mdl //reference smd $model malebase "MaleBase.smd" { } //path to textuers //cdmaterials "" //attachments - not important if you have no faceposing or are using valve animations - can be ignored $attachment "eyes" "ValveBiped.Bip01_Head1" 3.67 -4.32 0.00 rotate 0.00 -80.10 -90.00 $attachment "mouth" "ValveBiped.Bip01_Head1" 1.00 -6.50 -0.00 rotate 0.00 -80.00 -90.00 $attachment "chest" "ValveBiped.Bip01_Spine2" 5.00 4.00 -0.00 rotate -0.00 90.00 90.00 //attachment "forward" "ValveBiped.forward" 0.00 0.00 0.00 rotate 0.00 0.00 -0.00 //attachment "anim_attachment_RH" "ValveBiped.Anim_Attachment_RH" -0.00 -0.00 -0.00 rotate -90.00 -90.00 0.00 //attachment "anim_attachment_LH" "ValveBiped.Anim_Attachment_LH" -0.00 -0.00 0.00 rotate -90.00 -90.00 0.00 $attachment "anim_attachment_head" "ValveBiped.Bip01_Head1" -0.00 0.00 0.00 rotate -90.00 -90.00 0.00 //a sequence - has to be at least one //sequence ragdoll "resizedbones" ACT_DIERAGDOLL 1 fps 30.00 //included animations - only usefull if you are using an existing skeleton $includemodel "humans/male_shared.mdl" $includemodel "humans/male_ss.mdl" $includemodel "humans/male_gestures.mdl" $includemodel "humans/male_postures.mdl" //what materials is the models made off $surfaceprop "flesh" $eyeposition 0.000 0.000 70.000 //the center of illumination $illumposition 0.654 0.000 36.127 //ikchains - important for some animations $ikchain rhand ValveBiped.Bip01_R_Hand knee 0.707 0.707 0.000 $ikchain lhand ValveBiped.Bip01_L_Hand knee 0.707 0.707 0.000 $ikchain rfoot ValveBiped.Bip01_R_Foot knee 0.707 -0.707 0.000 $ikchain lfoot ValveBiped.Bip01_L_Foot knee 0.707 -0.707 0.000 //colisionjoints - how much each ragdoll part stretches $collisionjoints "MaleBase.smd" { $mass 90.0 $inertia 10.00 $damping 0.01 $rotdamping 1.50 //the first bone in the model $rootbone "valvebiped.bip01_pelvis" $jointmerge "ValveBiped.Bip01_Pelvis" "ValveBiped.Bip01_Spine1" //the actual ragdoll rotation constraints. You will make those in HLMV $jointconstrain "valvebiped.bip01_spine2" x limit -70.00 70.00 0.00 $jointconstrain "valvebiped.bip01_spine2" y limit -25.00 25.00 0.00 $jointconstrain "valvebiped.bip01_spine2" z limit -65.00 95.00 0.00 $jointconstrain "valvebiped.bip01_l_upperarm" x limit -40.00 40.00 0.00 $jointconstrain "valvebiped.bip01_l_upperarm" y limit -115.00 150.00 0.00 $jointconstrain "valvebiped.bip01_l_upperarm" z limit -135.00 135.00 0.00 $jointconstrain "valvebiped.bip01_l_forearm" x limit -30.00 30.00 0.00 $jointconstrain "valvebiped.bip01_l_forearm" y limit -60.00 60.00 0.00 $jointconstrain "valvebiped.bip01_l_forearm" z limit -140.00 30.00 0.00 $jointconstrain "valvebiped.bip01_r_upperarm" x limit -40.00 40.00 0.00 $jointconstrain "valvebiped.bip01_r_upperarm" y limit -150.00 115.00 0.00 $jointconstrain "valvebiped.bip01_r_upperarm" z limit -135.00 135.00 0.00 $jointconstrain "valvebiped.bip01_r_forearm" x limit -30.00 30.00 0.00 $jointconstrain "valvebiped.bip01_r_forearm" y limit -60.00 60.00 0.00 $jointconstrain "valvebiped.bip01_r_forearm" z limit -140.00 30.00 0.00 $jointconstrain "valvebiped.bip01_r_hand" x limit -60.00 60.00 0.00 $jointconstrain "valvebiped.bip01_r_hand" y limit -60.00 60.00 0.00 $jointconstrain "valvebiped.bip01_r_hand" z limit -70.00 70.00 0.00 $jointconstrain "valvebiped.bip01_l_hand" x limit -60.00 60.00 0.00 $jointconstrain "valvebiped.bip01_l_hand" y limit -60.00 60.00 0.00 $jointconstrain "valvebiped.bip01_l_hand" z limit -70.00 70.00 0.00 $jointconstrain "valvebiped.bip01_r_thigh" x limit -40.00 40.00 0.00 $jointconstrain "valvebiped.bip01_r_thigh" y limit -90.00 55.00 0.00 $jointconstrain "valvebiped.bip01_r_thigh" z limit -110.00 125.00 0.00 $jointconstrain "valvebiped.bip01_r_calf" x limit -30.00 30.00 0.00 $jointconstrain "valvebiped.bip01_r_calf" y limit -12.00 12.00 0.00 $jointconstrain "valvebiped.bip01_r_calf" z limit -12.00 145.00 0.00 $jointconstrain "valvebiped.bip01_head1" x limit -70.00 70.00 0.00 $jointconstrain "valvebiped.bip01_head1" y limit -25.00 25.00 0.00 $jointconstrain "valvebiped.bip01_head1" z limit -65.00 40.00 0.00 $jointconstrain "valvebiped.bip01_l_thigh" x limit -40.00 40.00 0.00 $jointconstrain "valvebiped.bip01_l_thigh" y limit -55.00 90.00 0.00 $jointconstrain "valvebiped.bip01_l_thigh" z limit -110.00 120.00 0.00 $jointconstrain "valvebiped.bip01_l_calf" x limit -30.00 30.00 0.00 $jointconstrain "valvebiped.bip01_l_calf" y limit -12.00 12.00 0.00 $jointconstrain "valvebiped.bip01_l_calf" z limit -12.00 145.00 0.00 $jointconstrain "valvebiped.bip01_l_foot" x limit -40.00 40.00 0.00 $jointconstrain "valvebiped.bip01_l_foot" y limit -40.00 40.00 0.00 $jointconstrain "valvebiped.bip01_l_foot" z limit -55.00 35.00 0.00 $jointconstrain "valvebiped.bip01_r_foot" x limit -40.00 40.00 0.00 $jointconstrain "valvebiped.bip01_r_foot" y limit -40.00 40.00 0.00 $jointconstrain "valvebiped.bip01_r_foot" z limit -55.00 35.00 0.00 $jointconstrain "valvebiped.bip01_l_toe0" x limit 0.00 0.00 0.00 $jointconstrain "valvebiped.bip01_l_toe0" y limit 0.00 0.00 0.00 $jointconstrain "valvebiped.bip01_l_toe0" z limit -46.00 46.00 0.00 $jointconstrain "valvebiped.bip01_r_toe0" x limit 0.00 0.00 0.00 $jointconstrain "valvebiped.bip01_r_toe0" y limit 0.00 0.00 0.00 $jointconstrain "valvebiped.bip01_r_toe0" z limit -46.00 46.00 0.00 $animatedfriction 1.000 400.000 0.500 0.300 0.000 }[/CODE] I had it given to me by a friend, I just edited it to use with my smd file
Sorry, you need to Log In to post a reply to this thread.