# mortar-eng：LSW 游戏场景与角色重建

> mortar-eng 以 C++ 重建 LSW 游戏运行环境的部分功能。NUP 和 HGP 读取器将场景模型与角色数据中的网格、纹理、关节和变换信息载入资源对象，供场景加载及渲染代码使用。

- 类型：案例
- 目标：游戏
- 类别：独立重建案例
- 关联：独立重建项目
- 来源复核于：2026-11-06
- 收录于：2026-11-09
- 原始资源：<https://github.com/leftmostcat/mortar-eng>
- 一手来源：<https://github.com/leftmostcat/mortar-eng/blob/9b5326003be9f99d9aba959bcc7e67cfd9b7f5c7/game/lsw/readers/nup.cpp>
- 目录页面：<https://awesomerea.org/zh/resources/mortar-eng-lsw-case/>
- 记录 JSON：<https://awesomerea.org/resources/mortar-eng-lsw-case/record.json>
- 英文版：[English](https://awesomerea.org/resources/mortar-eng-lsw-case/index.md)

## 使用条件与局限

- **前提条件：**CMake 构建配置要求 C++20、OpenGL、SDL2 和 tsl-sparse-map。
- **局限：**游戏初始化代码加载一个写死的场景。
- **许可：**采用 GPL-3.0 许可证。

## 一手来源

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>

## 同分区更多条目：游戏

- [My biggest work：重建 Brawlhalla 回放模拟](https://awesomerea.org/zh/resources/my-biggest-work-brawlhalla-case/index.md) · 案例
- [My Simulation：重建 The Sims Online 客户端](https://awesomerea.org/zh/resources/my-simulation-case/index.md) · 案例
- [Nanolathe：附研究文档的 Total Annihilation 引擎重实现](https://awesomerea.org/zh/resources/nanolathe-case/index.md) · 案例
- [NeMo2：重建 Virtools 游戏引擎库](https://awesomerea.org/zh/resources/nemo2-case/index.md) · 案例
- [NEOTOKYO Rebuild：重建《NEOTOKYO》多人游戏](https://awesomerea.org/zh/resources/neotokyo-rebuild/index.md) · 案例
- [NeoTS2：重建 The Sims 2 游戏引擎](https://awesomerea.org/zh/resources/neots2-case/index.md) · 案例

## 关于此条目

说明已依据一手来源复核。
原创说明采用 MIT 许可；外部项目、论文与素材保留各自的权利和许可。
