[Noob Question]Tutorials for Integrating Havok with 3rd party graphics engine

havokdaniel
August 5, 2008 2:52 PM PDT
Rate
 
#25 Reply to #24
Hi Ominae392,

Thanks for removing that!

The reason why .hkx files are much faster is that they can be saved as platform-specific binary files and then loaded straight into memory. No parsing of vertices or construction of geometry is necessary, just a memcpy().

hkLoader is used in most of the animation demos but not many of the physics demos, as most of the geometry for the physics demos is loaded at runtime. However, hkBinaryPackfileReader (which is used by hkLoader) is used in a few that you can see. Have a look at Physics/UseCase/AssetStreaming and PhysicsApiCollideShapesLandscapeChunkMopp. A pretty simple one which loads a .hkx into a buffer is here: CommonApiSerializeNativePackfileLoadNativePackfileLoadDemo.cpp.

Let me know if you have any questions about hkLoader or hkBinaryPackfileReader.

Daniel


Intel Software Network Forums Statistics

8488 users have contributed to 31627 threads and 100752 posts to date.
In the past 24 hours, we have 33 new thread(s) 138 new posts(s), and 198 new user(s).

In the past 3 days, the most popular thread for everyone has been gemm(A,A,A) like possible? The most posts were made to Crash when loading skeleton The post with the most views is Dear Steve, excuse me for a d

Please welcome our newest member chat1983