A Fast Method for Local Penetration Depth Computation

Stephane Redon, Ming C. LinJ. Graph. Tools 2006

TL;DR

This paper introduces a novel, efficient method for computing local penetration depth between intersecting 3D polyhedral models. By decoupling penetration direction estimation from depth calculation and leveraging graphics hardware, it achieves real-time performance even for complex, non-convex objects, making it suitable for interactive applications.

What Problem Does This Paper Address?

Determining the "penetration depth" – the minimum distance objects need to move to no longer intersect – is crucial for realistic collision response and simulation in computer graphics and robotics. However, accurately calculating this depth is computationally expensive, often requiring specific knowledge of object geometry (like convexity) or complex pre-processing. Existing methods can be too slow for real-time interaction with complex, non-convex models. This paper aims to provide a fast, approximate method for local penetration depth that doesn't rely on such prior knowledge or extensive pre-computation.

Methods

The proposed method breaks down the problem into three stages:

  1. Intersection Segment Clustering: Given a list of intersection segments (from a standard triangle-triangle intersection test), this stage groups them into "intersection curves." These curves represent locally coherent regions of penetration. To achieve near-linear time complexity, they use a combination of a heap and a hash table for efficient proximity queries and segment management.
  2. Intersection Curve Fitting and Clustering: The intersection curves are further refined. Oriented Bounding Boxes (OBBs) are fitted to each curve. These OBBs are then used to perform a final clustering of curves, merging them if their OBBs are sufficiently close. The average penetration direction for each final curve is determined by the smallest axis of its fitting OBB.
  3. Local Penetration Depth Computation: This is the core of the speedup. Instead of complex geometric calculations, the authors leverage graphics hardware. For each intersection curve and its determined direction, they render the intersecting objects from viewpoints aligned with the penetration direction. By reading back the z-buffer, they can estimate the penetration depth at pixel resolution. They perform this for both positive and negative directions and take the minimum to find the most efficient separation.

Datasets

Not discussed in the paper. The authors use examples of Stanford bunnies and dragons for demonstration and benchmarking.

Key Insights and Ideas

  • Decoupling Direction and Depth: The most significant insight is separating the estimation of the penetration direction from the calculation of the penetration depth. This allows for a more efficient, hardware-accelerated approach to depth estimation.
  • Leveraging Graphics Hardware: Utilizing the GPU for z-buffer readbacks to estimate depth is a clever way to achieve high performance for a computationally intensive task.
  • Local Coherence: The focus on local penetration information, rather than a global solution, simplifies the problem and makes real-time computation feasible.
  • Robustness to Non-Manifold Geometry: The method is designed to work even with "triangle soups" and non-manifold objects, which are common in real-world 3D models.

Key Results

The algorithm demonstrates impressive speed, computing penetration information for complex models (like 48,000-triangle bunnies) in under three milliseconds. The clustering stage achieves near-linear time complexity with respect to the number of intersection segments. The depth computation stage is also efficient, with timings largely dependent on the number of intersection curves and the z-buffer size. The paper shows successful handling of complex intersection scenarios, including open curves due to holes in models.

Limitations and Future Work

The authors acknowledge several limitations:

  • Locality: The method provides local penetration information, which might lead to consistency issues in complex collision responses. They suggest using information from previous time steps to mitigate this.
  • Topology Assumptions: The algorithm assumes local intersections form non-degenerate polygonal curves without loops. It may not handle cases where more than two intersection segments meet at a single point.
  • Penetration Direction Approximation: The OBB axis approximation for penetration direction is not always exact, especially in cases of deep penetration.
  • Penetration Distance Approximation: The depth calculation is approximate and relies on pixel resolution. This can lead to inaccuracies for very fine features or deep penetrations where parts of the intersection might fall outside the rendering bounding box.

Future work could involve adaptive determination of the z-buffer region size and exploring occlusion queries for even faster depth estimation.

Summary updated

BibTeX
@article{redon2006fast,
  author = {Stephane Redon and Ming C. Lin},
  title = {{A Fast Method for Local Penetration Depth Computation}},
  journal = {J. Graph. Tools},
  year = {2006},
  doi = {10.1080/2151237x.2006.10129216},
}

Loading related content...

Figure