# mortar-eng: LSW game scene and character reconstruction

> mortar-eng reconstructs parts of an LSW game runtime in C++. Its NUP and HGP readers load scene models and character data, including meshes, textures, joints and transforms, into resource objects used by scene-loading and rendering code.

- Type: Case study
- Targets: Game
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-09
- Original resource: <https://github.com/leftmostcat/mortar-eng>
- Primary source: <https://github.com/leftmostcat/mortar-eng/blob/9b5326003be9f99d9aba959bcc7e67cfd9b7f5c7/game/lsw/readers/nup.cpp>
- Catalog page: <https://awesomerea.org/resources/mortar-eng-lsw-case/>
- Record JSON: <https://awesomerea.org/resources/mortar-eng-lsw-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/mortar-eng-lsw-case/index.md)

## Requirements & limits

- **Prerequisites:** C++20, OpenGL, SDL2 and tsl-sparse-map, as specified by CMake.
- **Limits:** The game initializer loads a hard-coded scene.
- **License:** GPL-3.0 license.

## Primary sources

1. <https://github.com/leftmostcat/mortar-eng/blob/9b5326003be9f99d9aba959bcc7e67cfd9b7f5c7/game/lsw/readers/nup.cpp>
2. <https://github.com/leftmostcat/mortar-eng/blob/9b5326003be9f99d9aba959bcc7e67cfd9b7f5c7/game/lsw/readers/hgp.cpp>
3. <https://github.com/leftmostcat/mortar-eng/blob/9b5326003be9f99d9aba959bcc7e67cfd9b7f5c7/game/lsw/game.cpp>
4. <https://github.com/leftmostcat/mortar-eng/blob/9b5326003be9f99d9aba959bcc7e67cfd9b7f5c7/CMakeLists.txt>

## More in Games

- [My biggest work: reconstructing Brawlhalla replay simulation](https://awesomerea.org/resources/my-biggest-work-brawlhalla-case/index.md) · Case study
- [My Simulation: reimplementing The Sims Online client](https://awesomerea.org/resources/my-simulation-case/index.md) · Case study
- [Nanolathe: a documented Total Annihilation engine reimplementation](https://awesomerea.org/resources/nanolathe-case/index.md) · Case study
- [NeMo2: reimplementing the Virtools game engine libraries](https://awesomerea.org/resources/nemo2-case/index.md) · Case study
- [NEOTOKYO Rebuild: rebuilding the NEOTOKYO multiplayer game](https://awesomerea.org/resources/neotokyo-rebuild/index.md) · Case study
- [NeoTS2: rebuilding The Sims 2 engine](https://awesomerea.org/resources/neots2-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
