!HELP! Milkshape Skeleton Loading -> !!Crash!!

Started by
2 comments, last by Stylez99 20 years, 6 months ago
Hi, i have read the Tutorials from Brett Porter. When i loading static Models without Animations it Works good! But when i loading a Model with a Key Frame Animation (Bones) it crashs bevor display anything...i started to debug...the misstake is here: ----------------------------------------------------------------- (steps of going to the mistake..) Model.cpp --------- void Model::draw() . . . const Matrix& final = m_pJoints[m_pVertices[index].m_boneID].m_final; . . . newNormal.transform3( final ); . . . Vector.cpp ---------- void Vector::transform3( const Matrix& m ) . . . vector[0] = m_vector[0]*matrix[0]+m_vector[1]*matrix[4]+m_vector[2]*matrix[8]; <- on this Position it crashed!!! the Value for the m_matrix is: 0x000000b0 and the Value for m_matix[0] - m_matrix [15] is: CXX0030: Error: expression cannot be evaluated ----------------------------------------------------------------- Please Help me ... i dont know what i make bad... bye Stylez99 PS: sorry for my very bad english!
Advertisement
It seems your matrix is initialised. Could you have a look at where its values are initialised?
vector[0] = m_vector[0]*matrix[0]+m_vector[1]*matrix[4]+m_vector[2]*matrix[8]; <- on this Position it crashed!!!


Check for this == NULL

Looks like your instance is null (you didnt allocate something)
Hi,
I make the tutorial again...and it works

thanks for Help...

This topic is closed to new replies.

Advertisement