hkpSimpleMeshShape won't come to rest

vfgdfg
Total Points:
560
Status Points:
60
Brown Belt
November 9, 2008 10:32 AM PST
Rate
 
#14 Reply to #13

Hey again,

sorry to keep bothering you with this, but going back to the hkpExtendedMeshShape once more, since I understand I'll be better of using that for map geometry, I gave it another shot today, I put my code to the standalone console demo and I still get the crash at hkEntityAabbUtil::entityBatchRecalcAabb(const hkpCollisionInput, but in the console I got intresting message:

----------------------------
Havok - Build (20080925)
Version 6.0.0 (r1)
Base system initialized.
----------------------------
e:\RSYS\Build\code\PcXsPerpetualKeycode\Source\Common/Base/Math/Vector/hkVector4
Util.inl(122): [0x4868F301] Assert : aabb.isValid()
Aabb at 0012E980 was invalid. (Contains a NaN or min > max)

But still not sure where the problem is. But, I found some another example code (on this forum again, but it's pretty similiar to the TowerLand.cpp which btw I couldn't find in the actual example program) that uses hkArray for the buffers and that way my test code doesn't crash, but I don't get anything on the Visual Debugger either except for the moving ball (I've disabled the brickwalls and floor creation).

There's some ".\World\BroadPhaseBorder\hkpBroadPhaseBorder.cpp(131): [0x65567363] Warning : En
tity left the broadphase and has been removed from the hkpWorld. See hkpWorldCin
fo::BroadPhaseBorderBehaviour for details." text in the Console for three times, probably has to do with it since it doesn't give them if I don't create the shape, but I can't figure out what the problem is.

I zipped the project here, if you would have the time to take a look at it, it's small (just the cpp and some solution files) and it should work just extracting under demo\StandAloneDemos. There's a new addExtendedTestBox method that has three different pieces of test code, first one the code I found which doesn't work and it's commented out, then the test code I made based on it and which doesn't crash but nothing appears in the Visual Debugger, and lastly the "original" code, which now creates a full box though instead of one triangle, it's commented out as well.

Basicly I  would just need some code to set up a hkpExtendMeshShape with some given triangle data to get going with it.

Thanks for your time,

Jarno

ps. I haven't tried the Convex Shape yet but I will.



Intel Software Network Forums Statistics

8458 users have contributed to 31570 threads and 100530 posts to date.
In the past 24 hours, we have 16 new thread(s) 129 new posts(s), and 150 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 gemm(A,A,A) like possible? The post with the most views is Quoting - rase if (k.eq.0

Please welcome our newest member soundmyth