Skip to content

Commit

Permalink
Update to PUBG 6.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphics committed Nov 23, 2019
1 parent da7e86f commit 751972f
Show file tree
Hide file tree
Showing 22 changed files with 145 additions and 114 deletions.
47 changes: 26 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,66 @@
# PUBG & Fortnite | Terrain Maps

PlayerUnknown's Battlegrounds currently features five maps: Erangel, Miramar, Range, Sanhok and Vikendi. This repository provides information and scripts for extracting elevation and normal maps from the game's sources.
*PlayerUnknown's Battlegrounds* currently features six maps: Erangel Classic, Miramar, Sanhok, Camp Jackal, Vikendi, and Erangel. This repository provides information and scripts for extracting elevation and normal maps from the game's sources.

Please note that all preview images are downscaled to 8bit 512px × 512px and should not be used for rendering (normal data is downsampled using bicubic resampling).
Please note that all preview images are downscaled to 8-bit 512px × 512px and should not be used for rendering (normal data is downsampled using bicubic resampling).

| Erangel Height Map | Erangel Normal Map |
|--------------------|--------------------|
| Erangel Classic Height Map | Erangel Classic Normal Map |
|----------------------------|----------------------------|
| <img src="https://github.com/cgcostume/pubg-maps/blob/master/erangel/pubg_erangel_height_l16_preview.png" width="100%" alt="pubg_erangel_elevation_preview"> | <img src="https://github.com/cgcostume/pubg-maps/blob/master/erangel/pubg_erangel_normal_rg8_preview.png" width="100%" alt="pubg_erangel_normal_preview"> |

| Miramar Height Map | Miramar Normal Map |
|--------------------|--------------------|
| <img src="https://github.com/cgcostume/pubg-maps/blob/master/miramar/pubg_miramar_height_l16_preview.png" width="100%" alt="pubg_miramar_elevation_preview"> | <img src="https://github.com/cgcostume/pubg-maps/blob/master/miramar/pubg_miramar_normal_rg8_preview.png" width="100%" alt="pubg_miramar_normal_preview"> |

| Range Height Map | Range Normal Map |
|--------------------|--------------------|
| <img src="https://github.com/cgcostume/pubg-maps/blob/master/range/pubg_range_height_l16_preview.png" width="100%" alt="pubg_range_elevation_preview"> | <img src="https://github.com/cgcostume/pubg-maps/blob/master/range/pubg_range_normal_rg8_preview.png" width="100%" alt="pubg_range_normal_preview"> |

| Sanhok Height Map | Sanhok Normal Map |
|--------------------|--------------------|
|-------------------|-------------------|
| <img src="https://github.com/cgcostume/pubg-maps/blob/master/sanhok/pubg_sanhok_height_l16_preview.png" width="100%" alt="pubg_sanhok_elevation_preview"> | <img src="https://github.com/cgcostume/pubg-maps/blob/master/sanhok/pubg_sanhok_normal_rg8_preview.png" width="100%" alt="pubg_sanhok_normal_preview"> |

| Camp Jackal Height Map | Camp Jackal Normal Map |
|------------------------|------------------------|
| <img src="https://github.com/cgcostume/pubg-maps/blob/master/jackal/pubg_jackal_height_l16_preview.png" width="100%" alt="pubg_jackal_elevation_preview"> | <img src="https://github.com/cgcostume/pubg-maps/blob/master/jackal/pubg_jackal_normal_rg8_preview.png" width="100%" alt="pubg_jackal_normal_preview"> |

| Vikendi Height Map | Vikendi Normal Map |
|--------------------|--------------------|
| <img src="https://github.com/cgcostume/pubg-maps/blob/master/vikendi/pubg_vikendi_height_l16_preview.png" width="100%" alt="pubg_sanhok_elevation_preview"> | <img src="https://github.com/cgcostume/pubg-maps/blob/master/vikendi/pubg_vikendi_normal_rg8_preview.png" width="100%" alt="pubg_sanhok_normal_preview"> |
| <img src="https://github.com/cgcostume/pubg-maps/blob/master/vikendi/pubg_vikendi_height_l16_preview.png" width="100%" alt="pubg_vikendi_elevation_preview"> | <img src="https://github.com/cgcostume/pubg-maps/blob/master/vikendi/pubg_vikendi_normal_rg8_preview.png" width="100%" alt="pubg_vikendi_normal_preview"> |

| Erangel (Baltic) Height Map | Erangel (Baltic) Normal Map |
|-----------------------------|-----------------------------|
| <img src="https://github.com/cgcostume/pubg-maps/blob/master/baltic/pubg_baltic_height_l16_preview.png" width="100%" alt="pubg_baltic_elevation_preview"> | <img src="https://github.com/cgcostume/pubg-maps/blob/master/baltic/pubg_baltic_normal_rg8_preview.png" width="100%" alt="pubg_baltic_normal_preview"> |

#### Fortnite | Experimental

| Apollo Height Map | Apollo Normal Map |
|--------------------|--------------------|
|-------------------|-------------------|
| <img src="https://github.com/cgcostume/pubg-maps/blob/master/apollo/fortnite_apollo_height_l16_preview.png" width="100%" alt="fortnite_apollo_elevation_preview"> | <img src="https://github.com/cgcostume/pubg-maps/blob/master/apollo/fortnite_apollo_normal_rg8_preview.png" width="100%" alt="fortnite_apollo_normal_preview"> |

Please note that the Fortnite map should be rotated by 90° counter clockwise (and the normals converted accordingly).
Please note that the *Fortnite* map should be rotated by 90° counter clockwise (and the normals converted accordingly).


## How-To/DIY

Please note that the following steps might change with respect to the PUBG version, asset provisioning and structure.
Please note that the following steps might change with respect to the *PUBG* version, asset provisioning, and structure.

1. **Download** the UE Viewer by Gildor's Homepage (`umodel.exe`) - google for it, the sha256 hash of my file is (`56FAB4D29AC7B7800FA6B480D2C2BDA4A7FEC91CCE8B00A8DB77B71849047E96`) and it seems to be legit.
2. **Locate** your PUBG directory, e.g., `C:\Program Files (x86)\Steam\steamapps\common\PUBG`.
3. **Open** `pakchunk5000-WindowsNoEditor_heightmap.pak` (erangel), `pakchunk5100-WindowsNoEditor_heightmap.pak` (miramar|desert), `pakchunk5200-WindowsNoEditor_heightmap.pak` (sanhok|savage), or `pakchunk5300-WindowsNoEditor_heightmap.pak` (vikendi|dihorotok). Please note that the pak files were AES encrypted recently (try google the AES key, e.g., on reddit or gildor's forum).
1. **Download** [UE Viewer by Gildor](https://www.gildor.org/en/projects/umodel) (`umodel.exe`).
2. **Locate** your *PUBG* directory, e.g., `C:\Program Files (x86)\Steam\steamapps\common\PUBG`.
3. **Open** your *PUBG* directory in UE Viewer, overriding game detection to 'Unreal engine 4.16'. Please note that the PAK files are AES encrypted (try Googling for the AES key, e.g., on Reddit or Gildor's forums).
4. **Filter** for `HeightMap` or `Texture2D_` (optional step)
5. **Export** all height maps. This should create a `UmodelExport\Maps\Erangel\Art\Heightmap`, `UmodelExport\Maps\Desert\Art\Heightmap`, or `UmodelExport\Maps\Savage\Art\Heightmap`, `UmodelExport\Maps\DihorOtok\Art\Heightmap` folder in your current working directory.
6. **Run** `pubg-tga-slice.py` for extracting and encoding the relevant tile data into losless 16bit and 8bit pngs:
5. **Export** all heightmaps. This should create a `UmodelExport\Game\Maps\Erangel\Art\Heightmap`, `UmodelExport\Game\Maps\Desert\Art\Heightmap`, `UmodelExport\Game\Maps\Savage\Art\Heightmap`, `UmodelExport\Game\Maps\Range\Art\Heightmap`, `UmodelExport\Game\Maps\DihorOtok\Art\Heightmap`, or `UmodelExport\Game\Maps\Baltic\Art\HeightMap` folder in your current working directory.
6. **Run** `pubg-tga-slice.py` for extracting and encoding the relevant tile data into lossless 16-bit and 8-bit pngs:
```
.\pubg-tga-slice.py -p .\UmodelExport\ -m erangel
.\pubg-tga-slice.py -p .\UmodelExport\ -m miramar
.\pubg-tga-slice.py -p .\UmodelExport\ -m range
.\pubg-tga-slice.py -p .\UmodelExport\ -m sanhok
.\pubg-tga-slice.py -p .\UmodelExport\ -m jackal
.\pubg-tga-slice.py -p .\UmodelExport\ -m vikendi
.\pubg-tga-slice.py -p .\UmodelExport\ -m baltic
```
... or fortnite extract:
...or for *Fortnite* extraction:
```
.\fortnite-tga-slice.py -p .\UmodelExport\ -m apollo
.\fortnite-tga-slice-athena.py -p .\UmodelExport\ -m athena
```
That's it. If the script exits without errors there should be 8192px &times; 8192px losless height and normal maps.
That's it. If the script exits without errors there should be lossless height and normal maps in the current working directory.


## How-To/DIY | DEPRECATED (ubulk approach)
Expand Down
Binary file added baltic/pubg_baltic_height_l16_lod0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baltic/pubg_baltic_height_l16_preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baltic/pubg_baltic_normal_rg8_lod0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baltic/pubg_baltic_normal_rg8_preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file modified miramar/pubg_miramar_height_l16_lod0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified miramar/pubg_miramar_height_l16_preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified miramar/pubg_miramar_normal_rg8_lod0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified miramar/pubg_miramar_normal_rg8_preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 751972f

Please sign in to comment.