> so the bone parenting stuff is what effects it in the model?
> I.e for the
> legs you need the tops of the legs to be children of the
> right bone in order
> for sequence and gaitsequence to work correctly (or something to that
> effect)?

No, it depends only on the *order* of the bones, not their parent - any bone
stored before Bip01 Spine in the sequence is animated based on the
gaitsequence - see CStudioModelRenderer::StudioSetupBones around line 886:

        // calc gait animation
        if (m_pPlayerInfo && m_pPlayerInfo->gaitsequence != 0)
        {
                pseqdesc = (mstudioseqdesc_t *)((byte *)m_pStudioHeader +
m_pStudioHeader->seqindex) + m_pPlayerInfo->gaitsequence;

                panim = StudioGetAnim( m_pRenderModel, pseqdesc );
                StudioCalcRotations( pos2, q2, pseqdesc, panim,
m_pPlayerInfo->gaitframe );

                for (i = 0; i < m_pStudioHeader->numbones; i++)
                {
                        if (strcmp( pbones[i].name, "Bip01 Spine") == 0)
                                break;
                        memcpy( pos[i], pos2[i], sizeof( pos[i] ));
                        memcpy( q[i], q2[i], sizeof( q[i] ));
                }
        }

Jim
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to