|
Post by Kjelle69 on Sept 16, 2004 14:02:23 GMT 1
I finally wrapped up another system in the Newton SDK, which lets you visualize the actual rigid bodies as Newton sees them, which is really useful for debugging purposes. you can turn on the visualizer, and see the actual data behind your rigid bodies... this can help when trying to determine bugs, etc. I have built two different ways to do it: (1) the wrapper draws the individual polygons with 2d lines, which results in an un-culled wireframe of each face. this method is simple, but slower when there are lots of objects around. (2) the wrapper makes an entirely new object, of all of the rigid bodies in the scene. this object defaults to wireframe mode. if you continually delete and re-make the object, you can watch the data in realtime. or, for advanced debuggin purposes, you can keep each object, which represents each frame, and examine the data very carefully. here are some screenshots: here's a simple example of the line-method. here's an example with the object method on a TreeCollision object. note how Newton optimizes the data, turning polygons on the same plane into single faces. finally here's an example with a ragdoll. you can visualize the boxes underneath in realtime! for anyone having problems with "holes" in TreeCollision data, please let me know, I'll send you a special version with this functionality enabled, so you can see if its the optimizer causing problems.
|
|