MoF-Image: Generating Mixture-of-Features Video Game Image Dataset via GPU Rendering Simulation

Yu Wen, Xingke Yang, Aamir Bader Shah, Ruizhi Cao, Miao Pan, Chenhao Xie, Xin Fu

Abstract

Computer vision (CV) tasks in the video game industry, such as super-resolution and 3D environment reconstruction, require high-quality datasets with perfectly aligned geometric ground truth. However, existing datasets often suffer from engine lock-in, manual annotation errors, and a lack of multi-modal features. This paper introduces MoF-Image, a novel dataset generated by intercepting the GPU rendering pipeline via simulation. By capturing graphics API commands rather than final screen pixels, the proposed method provides a "mixture of features" (MoF)—including depth maps, surface normals, and object edges—perfectly aligned across multiple resolutions. Evaluation using state-of-the-art super-resolution models demonstrates the dataset's utility in training high-fidelity models for gaming applications.

Introduction

The video game industry represents a massive frontier for computer vision research. From upscaling legacy textures to generating immersive 3D environments, the demand for robust training data is higher than ever. Despite this, researchers face significant hurdles in acquiring high-quality gaming datasets.

Existing data collection methods typically encounter three primary obstacles:

  1. Engine Lock-in: Data is frequently trapped within proprietary engines like Unreal or Unity. Without source code access, extracting internal geometric data is nearly impossible.
  2. Manual Labor: Tasks like object detection often rely on manual annotation, which is slow, expensive, and prone to human error.
  3. Single-Task Focus: Most datasets provide limited data types (e.g., RGB only), whereas modern CV tasks require a "mixture of features" (MoF) such as depth and motion vectors to achieve high performance.

Methodology: GPU Rendering Simulation

To overcome these challenges, we propose a shift from software-based rendering to GPU rendering simulation. Our approach utilizes AttilaSim, a trace-driven GPU simulator. Instead of recording the final output on a screen, our system "intercepts" graphics API commands (OpenGL or DirectX) sent from the game application to the hardware.

The system architecture for MoF-Image generation, illustrating the flow from game commands to validated frames via GPU simulation.

By modifying the simulator’s rendering pipeline, we can extract internal data at specific stages:

  • Depth Extraction: We dump the contents of the z-buffer during both early and final Z-test phases to obtain precise distance information.
  • Normal Mapping: In the rasterization phase, we calculate the normal vector for every triangle and assign it to the corresponding pixels, a feature not naturally stored in standard forward rendering.
  • Edge Detection: Using the depth buffer, we mathematically compute sharp object boundaries to create an "Edge Map" that is perfectly aligned with the RGB frame.

This simulation-based approach allows for the generation of identical frames at various resolutions (from 320x240 to 1600x1200) while maintaining identical geometric ground truth.

The MoF-Image Dataset

The resulting MoF-Image dataset consists of 11,703 source frames extracted from three classic titles: Doom 3, Quake 4, and The Chronicles of Riddick. This selection provides a diverse range of indoor and outdoor environments with complex lighting and geometry.

Sample frames from the MoF-Image dataset showing the original RGB frames alongside their corresponding geometric rendering information.

Each entry in the dataset includes:

  • Multi-resolution RGB frames: Native renders at 320×240, 640×480, 1280×960, and 1600×1200.
  • Geometric Ground Truth: Corresponding Depth maps, Normal maps, and Edge maps for every frame.

By bypassing the need for manual labeling, the dataset ensures a one-to-one correspondence between visual pixels and underlying geometry, eliminating the "drift" or misalignment common in standard video-based depth estimation.

Key Results and Evaluation

We evaluated several state-of-the-art (SOTA) Super-Resolution (SR) models, including SRCNN, VDSR, and PAN, using the MoF-Image dataset. The results indicate that the dataset serves as a robust training ground for reconstructing fine-grained textures and geometric edges.

Specifically, the PAN-62K model trained on our dataset achieved a PSNR of 36.11 and an SSIM of 0.9436 on the x2 scale. These metrics outperform results on standard benchmarks like Set14, proving that the geometric features provided by MoF-Image significantly enhance model fidelity in gaming contexts.

Limitations and Future Work

While MoF-Image provides a significant leap forward, some limitations remain. The current simulator primarily supports legacy APIs like Direct3D 9 and OpenGL, meaning it cannot yet capture the complexities of modern Ray Tracing or DirectX 12 features. Additionally, storing rendering information in 8-bit RGB channels introduces minor quantization errors, particularly in depth maps where 256 levels of gray may not capture subtle distance changes.

Future work will focus on exploring higher-precision encoding strategies and expanding the framework to support modern, high-fidelity game traces and APIs.

Summary updated

BibTeX
@inproceedings{wen2025mof,
  author = {Yu Wen and Xingke Yang and Aamir Bader Shah and Ruizhi Cao and Miao Pan and Chenhao Xie and Xin Fu},
  title = {{MoF-Image: Generating Mixture-of-Features Video Game Image Dataset via GPU Rendering Simulation}},
  booktitle = {Workshops @ CVPR},
  year = {2025},
}
Figure