A tool for generating minimaps for Battlefield 3 maps
MinHook - https://github.com/TsudaKageyu/minhook
DirectXTex - https://github.com/Microsoft/DirectXTex
UI is done with ImGui - https://github.com/ocornut/imgui
FB SDK (with small changes and additions) - https://www.unknowncheats.me/forum/battlefield-3/90022-frostbite_sdk-eastl.html
-
Start the game, join a server
-
Inject .dll into the game
-
F1 to enable the UI and freecamera
- Use WASD to move the camera
- "Zoom" can be changed by changing the OrthoView size
-
With the UI open and the ortographical view enabled, drag an area for the minimap
- Note that rendering is depending on camera height. Objects higher than the camera do not render
- Resolution is the width and height of one cell in the grid in meters
- The resulting images will be limited to window height
-
Press "Generate minimap"
- Images will be dumped in Battlefield 3\BF3MinimapGenerator\LevelName\map#\grid_#_#.tga
- A file called info.txt will also be created with the following data
- Side length of one cell in pixels
- Amount on cells in a row/column
- Side length of one cell in world units
- Center coordinate of each cell