Texture Painting from Video

Jinhui Hu, Suya You, Ulrich NeumannJ. WSCG 2005

Abstract

Traditional 3D modeling relies on static texture maps that fail to reflect the dynamic nature of real-world environments. This paper presents a "texture painting" system developed by researchers at USC that utilizes live video streams to update 3D model surfaces in real-time. By integrating 3D camera tracking with 2D image registration and temporal background learning, the system projects current environmental conditions onto geometry while filtering out transient foreground objects. Experimental results demonstrate real-time performance in simulated environments and viable frame rates in complex real-world campus settings.

Introduction

In the field of computer graphics and urban modeling, 3D assets are typically wrapped in static texture maps—essentially digital photographs captured at a single point in time. While effective for static visualizations, these models quickly become obsolete as lighting shifts, renovations occur, or environmental conditions change. Furthermore, the manual labor required to segment, map, and update these textures is significant.

To bridge the gap between static 3D representations and dynamic reality, this research proposes a system that treats video not as a sequence of frames, but as a continuous resource for "painting" the environment. By leveraging live video feeds, the system can dynamically update the appearance of a 3D model to reflect its current state, effectively turning a static model into a living digital twin.

Methodology

The proposed pipeline transforms raw video data into persistent surface information through several key technical stages:

1. Base Texture Buffers and Model-Based Warping

Rather than managing an unconstrained stream of video frames, the system assigns "base texture buffers" to specific visible patches of the 3D model. Using the camera’s tracked pose and projection matrices, the system calculates the mathematical correspondence between pixels in the 2D video frame and coordinates on the 3D model. This allows the video to be "warped" directly onto the model's geometry in real-time.

2. Selective Texture Painting and Background Learning

A primary challenge in live video texturing is the presence of transient objects, such as pedestrians or vehicles, which can "smear" across the texture of a building. To mitigate this, the system employs a background learning algorithm. By calculating a linear average of frames over time, the system identifies static background elements. Only these persistent pixels are projected onto the model, effectively "cleaning" the scene of moving distractions.

3. Hybrid 2D/3D Alignment

Hardware-based 3D tracking is rarely precise enough for seamless texturing; even minor sensor jitter can cause ghosting or misalignment. To resolve this, the researchers implemented a secondary 2D image registration step. The system utilizes the Harris corner detector and Sum of Squared Difference (SSD) matching to align the live video frame with the existing data in the base texture buffer, ensuring high-fidelity registration.

4. Occlusion Detection

To prevent textures from being projected onto hidden surfaces (e.g., painting the rear of a structure with a view of its front), the system utilizes depth maps. This ensures that only surfaces with a direct line of sight to the camera are updated.

Experimental Evaluation

The system was evaluated using two distinct datasets:

  • Simulation Dataset: A virtual 3D cube textured with a real image. This environment provided perfect pose data, allowing the team to validate the core warping logic and mathematical accuracy without the interference of tracking errors.
  • Real-World Dataset (USC Campus): Using a LiDAR-generated 3D model of the University of Southern California campus, researchers collected live video and pose data via a portable acquisition system. This tested the system's robustness against sensor noise and complex architectural geometry.

Results and Discussion

Performance Metrics

In the simulation environment, the system achieved approximately 30 frames per second (fps) on a 1.1GHz workstation, meeting the threshold for real-time interaction. In the real-world USC campus test, performance decreased to approximately 10 fps. The researchers identified the 2D image registration (Harris corner detection and SSD matching) as the primary computational bottleneck.

Optimization Strategies

To improve efficiency, the researchers discovered that because video frames overlap significantly, the texture buffer does not require an update for every frame. By updating the buffer only every 20th frame, the system achieved a significant performance boost with no perceptible loss in visual quality.

Conclusion and Future Work

While the system successfully demonstrates the feasibility of real-time texture painting, several areas for improvement remain. The current method for grouping 3D polygons into texture buffers relies on simple heuristics; optimizing this process for complex geometries remains an NP-hard challenge. Additionally, the system is currently CPU-bound. Future iterations will focus on migrating image warping and registration tasks to the GPU, which is expected to enable higher-resolution video processing and the management of multiple simultaneous video streams. Ultimately, this work paves the way for more responsive and accurate digital representations of the physical world.

Summary updated

BibTeX
@article{hu2005texture,
  author = {Jinhui Hu and Suya You and Ulrich Neumann},
  title = {{Texture Painting from Video}},
  journal = {J. WSCG},
  year = {2005},
}
Figure