A plugin for Grand Theft Auto V that generates a labeled LiDAR point cloud from the game environment.
LiDAR GTA V.asi
and the LiDAR GTA V
folder from the latest release into your GTA-V directory (the folder containing GTAV.exe
)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
Start up GTA-V in story mode
Press V
to cycle through camera modes until first person mode is enabled
Press F6
to generate a LiDAR point cloud of the world.
Output file is located under #game_directory#/LiDAR GTA V/#your_chosen_filename#.ply
The output is a Polygon File Format (.PLY) file containing only vertex data
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 |
It is recommended to use CloudCompare (an open-source point-cloud viewer) to view the PLY file generated by LiDAR GTA V
To make development easier, the project will automatically copy the compiled LiDAR GTA V plugin to the directory D:\Games\GTAV\
after building
You may want to set this path to point to your GTA-V installation directory. This can be done by right-clicking LiDAR GTA V in the Solution Explorer and editing the Command Line
field under Configuration Properties -> Build Events -> Post-Build Event -> Command Line
19100135@lums.edu.pk