> On 16/07/12 10:52, Oren Hurvitz wrote: >> I want to bring up again the problem of avatars sinking into the terrain.
I strongly believe that to properly resolve this, better physics visualization is needed to visualize the internal data structures (the terrain and the physical avatar capsule). There was some code available that would display the physics world as ODE sees it in real-time, but when I last worked on this (years ago) I think the terrain wasn't visualized. If the code is still as I last left it, then the avatar capsule orientation is still rather hacky in that it is always tilted. A straight-up capsule should theoretically have worked fine, but it didn't (falling through the ground very frequently), and apparently a tilted capsule, while better, also doesn't always work. I remember being able to reproduce the problem (a collision should have been registered, but wasn't) and investigating the in-memory structures of the terrain collider, but I didn't have time to find the root cause. Though I'm not actively working on OpenSim these days, this still bugs me, as I feel I was close to the solution but didn't quite get there. To really get to the root cause, I would recommend implementing some sort of collision logging, visualization, and forward/backward stepping through the log file to see what collisions are happening at each timestep. Then find a specific geometry that can reliably reproduce the bug and determine where the missing collisions are occurring (times when the avatar capsule is geometrically intersecting the terrain - which must be confirmed in the visualization tool previously mentioned - yet ODE failed to report a collision). Then, trace through the capsule-terrain collider to see why the collision was not produced. It would be a fun endeavor for me but my hands are full with other projects right now. :( -Norman (nlin) _______________________________________________ Opensim-dev mailing list Opensim-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/opensim-dev