UsmanJafri / LiDAR-GTA-V

A plugin for Grand Theft Auto V that generates a labeled LiDAR point cloud from the game environment.
MIT License
156 stars 31 forks source link
grand-theft-auto gta5 gtav lidar lidar-data lidar-navigation lidar-point-cloud self-driving-car

LiDAR GTA V

A plugin for Grand Theft Auto V that generates a labeled LiDAR point cloud from the game environment.

Requirements

Installation

  1. Install ScriptHookV following its accompanying instructions
  2. Copy-paste LiDAR GTA V.asi and the LiDAR GTA V folder from the latest release into your GTA-V directory (the folder containing GTAV.exe)

How to use

  1. Navigate to #your_game_directory#/LiDAR GTA V/LIDAR GTA V.cfg and edit the parameters as needed. The parameters include: Horizontal FOV, Vertical FOV, Range, Density and Output filename

  2. Start up GTA-V in story mode

  3. Press V to cycle through camera modes until first person mode is enabled

  4. Press F6 to generate a LiDAR point cloud of the world.

  5. Output file is located under #game_directory#/LiDAR GTA V/#your_chosen_filename#.ply

  6. The output is a Polygon File Format (.PLY) file containing only vertex data

  7. Vertex Color Code:

    Vertex Color Label
    Red Vehicle
    Green Humans and Animals
    Blue Game props
    White Road, Buildings and other hitable textures
    Black No hit
  8. It is recommended to use CloudCompare (an open-source point-cloud viewer) to view the PLY file generated by LiDAR GTA V

Developer Notes

Contributing

Acknowledgements

License

Output Samples