Code Monkey home page Code Monkey logo

renderdoc_for_game_data's Introduction

RenderDoc for Game data

This repo aims to acquire data from commerical games for various vision tasks whose data is difficulty to colloect. Before the start, please get familiar with the great game debugging tool RenderDoc.

What can you get

With this codebase, you can get various intermediate outputs of the rendering pipeline of a game, including depth, meshes and textures. Below are some examples from the commercial game GTAV (Grand Theft Auto V). Note that Rockstar Games, the publisher of GTAV, allows non-commerical use of footage from the game as long as certain conditions are met. See the policy.

Various info in G-Buffer

You may get the diffuse map, normal map, specular map, irradiance map and depth map as follows.

Final Output Depth Map Diffuse Map
Normal Map Irradiance Map Specular Map

HDR and LDR image pairs

For someone who are interested in data-driven tone mapping and reverse tone mapping, it is a good choice to get HDR and LDR image pairs from the game.

LDR Output HDR Output

Semantic label

With mesh data and their various coordinates, you can even get the masks for amodal isntance semantic segementation where ostackled parts of the object should be labeled in the mask.

Original Image Amodel Mask

Foggy image simulation

With images and corresponding depth, you can get clear and foggy image pairs to faciliate your defogging researches.

Original Image Simulated Foggy Image
Original Image Simulated Dust Image

Customization on your own

To begain with, you should get to know the rendering pipeline of your target game. For GTAV, you may find useful information in this Link. Then, compile the RenderDoc. Since I have just modified functions of capture and saving to save the depth maps, if you don't need those you may use the original RenderDoc. After that, capture frames you need. Finally, run the processing code in scripts/python in cmd (not the shell of RenderDoc).

Run extract_data_for_GTA5.py to get LDR, HDR, and depth maps. You may modify the variables log_file_root and save_roots on your own settings. If something's wrong with capAPIForGTAV.py, there may be a update in the rendering pipeline. In this case, you should locate the required data in the pipeline using the GUI of RenderDoc and modify the code accordingly.

renderdoc_for_game_data's People

Contributors

baldurk avatar pantosj avatar cnorthrop avatar galpeter avatar xiaofeng94 avatar cgmb avatar velro avatar olvaffe avatar valeriog-crytek avatar greg-lunarg avatar unityjake avatar corngood avatar babymustgrowstrong avatar anteru avatar tuxerr avatar zerhacken avatar michaelkvance avatar nlguillemot avatar amitprakash07 avatar victor-moya avatar reinsteam avatar vk2gpu avatar mcnopper avatar jozefkucia avatar ianelliottus avatar dominikwitczakamd avatar zeux avatar plagman avatar tabikati avatar scottmarsland avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.