63 lines
1.8 KiB
Markdown
63 lines
1.8 KiB
Markdown
# RogueSquadron Extractor - MODEL module
|
|
|
|
Inspired by the work of **dpethes** (https://github.com/dpethes/rerogue) :clap:
|
|
|
|
This set of git repos are a compilation of tools coded in C to make RS modding far more than a dream!
|
|
The collection consist of few independants modules, each of them deals with specific data like sound, textures, heightmaps, etc...
|
|
|
|
All modules are independants. This is the **'MODEL'** module.
|
|
|
|
## MODEL MODULE
|
|
|
|
It's extract texture datas from Rogue Squadron 3D (PC) game models files (HOB).
|
|
|
|
This module can do:
|
|
- Extract objects inside HOB files to Wavefront OBJ format,
|
|
- Extract automatically inside subfolder (usefull when you have multiples objects to extract),
|
|
- Multiple inputs files.
|
|
|
|
## TODO
|
|
|
|
- Add textures to models.
|
|
- Discover all unknow fields, animation, bones mesh, etc.
|
|
|
|
### Using
|
|
|
|
`RSE-Model_"version" [options] <hob files...>` or you can simply drag&drop HOB files on it.
|
|
|
|
A futur main program can extract all HOB files directly from DAT file.
|
|
Due to issue with copyrights, I can't provide samples... You need to extract HOB files yourself.
|
|
|
|
<img src="https://repo.jcsmith.fr/pictures/rse-model.gif" width="620" height="400" />
|
|
|
|
### Options
|
|
|
|
- -h Print this message
|
|
- -v Activate verbose output
|
|
- -no-subdir Extract textures directly inside current folder
|
|
|
|
### Dependencies
|
|
|
|
- obj-lib: as obj file exporter. (https://github.com/rlk/obj)
|
|
|
|
### Compiling
|
|
|
|
You can compile on both Windows (MinGW) or native Linux system thanks to CMake.
|
|
|
|
To compile, just clone and launch cmake:
|
|
|
|
```shell
|
|
cmake .
|
|
make
|
|
make install
|
|
```
|
|
|
|
We can also use cross-compilation (after installing `mingw64` and `cmake` packages on your distrib):
|
|
|
|
```shell
|
|
mkdir build && cd build
|
|
cmake -DGNU_HOST=x86_64-w64-mingw32 \
|
|
-DCMAKE_TOOLCHAIN_FILE=../mingw_cross_toolchain.cmake \
|
|
..
|
|
cmake --build .
|
|
``` |