Forum Jump

Select Group :
Select Forum :
Sorted By :
Sort Order :
From The :
 
Thread Tools  Search this thread 
nomis489
Total Points:
30
Registered User
November 22, 2008 10:11 AM PST
Problems loading hkpRigidBody from .hkx file

 

I've just started working with Havok and I have set my world and manually added objects. This is working fine however when I come to load a rigid body from an hkx file my program crashes and Havok outputs the following error message:

.\Packfile\hkPackfileData.cpp(147): [0x4A45F946] Assert : typeInfo != HK_NULL

Found unregistered type 'hkpMoppCode'.

I'm using the WorldSnapshotDemo as the basis for loading this file, which manages load OK so I can probably assume the file itself is OK. 

Any help is appreciated.

 

Regards,

Simon

nomis489
Total Points:
30
Registered User
November 22, 2008 1:16 PM PST
Rate
 
#1
For anyone else that might have this problem, the soluton was changing:

#define HK_CLASSES_FILE <Common/Serialize/Classlist/hkCommonClasses.h>
#include <Common/Serialize/Util/hkBuiltinTypeRegistry.cxx>
to
#define INCLUDE_HAVOK_PHYSICS_CLASSES
#define HK_CLASSES_FILE <Common/Serialize/ClassList/hkClasses.h>
#include <Common/Serialize/Util/hkBuiltinTypeRegistry.cxx>




Intel Software Network Forums Statistics

8290 users have contributed to 31236 threads and 99110 posts to date.
In the past 24 hours, we have 8 new thread(s) 22 new posts(s), and 30 new user(s).

In the past 3 days, the most popular thread for everyone has been comparison cilk++, openmp, pthreads first results The most posts were made to comparison cilk++, openmp, pthreads first results The post with the most views is Very amusing...  Escalated as

Please welcome our newest member zq.x