Erin Catto wrote:
I plan to support edge soups for static level geometry. These will be placed in an AABB tree for fast processing.
Convex decomposition wouldn't be hard for closed polygons. In the worst case I could just triangulate the polygon.
Both the convex hull code and the convex decomposition code could be contributions because they are external utilities.
Convex decomposition wouldn't be hard for closed polygons. In the worst case I could just triangulate the polygon.
Both the convex hull code and the convex decomposition code could be contributions because they are external utilities.
I've found that "naive" edge-soup (i.e just representing static geometry as individual linesegs) doesn't work all that well -- when an object penetrates into a vertex, you get a different response depending on which of the two edges (which share the vert) are processed first. Additionally, neither of the two responses will be correct. This same problem happens with convex decomposition -- the multiple convex/local solutions don't necessarily combine to arrive at the correct concave/global solution.
Then again, triangle-soup is very popular.. I just have never had good results without relying on some sort of special handling of shared features (planes shared by convex-decomposed chunks should never be considered a seperating axis, verts shared by edges in edge-soup should be handled differently, etc).
I'd love to hear how other people are doing this though.