a simple texture viewer written in python with pyside6 for gui and pil to handle image processing. this tool is specifically designed to view texture files from project i.g.i and igi 2: covert strike stored in .res
files. it supports .tex
and .tga
image formats and provides functionality to extract and view these images interactively
- gui based viewer: interface built using pyside6
- support for .res files: parses
.res
resource files and displays their content - image handling: uses
pil
(pillow) library to manipulate and display images - console debugging: toggle the internal console to view logs and debug output
- image export: double-click on an image to save it in
.tga
format - responsive design: adapts the image display to the current window size
- python 3.6+
- pyside6 (
pip install pyside6
) - pil (
pip install pillow
)
-
clone the repository:
git clone https://github.com/remivoire/igi2-tex-viewer.git
-
navigate to the project directory:
cd igi2-tex-viewer
-
install the required dependencies:
pip install -r requirements.txt
-
run the script:
python ilff_pyside6.py
-
use the
file -> open
menu to load a.res
file containing textures -
browse through the available textures using the list on the left
-
double-click on any image to save it in
.tga
format
- ctrl+o: open a
.res
file - ctrl+d: toggle the console view
- esc: exit the application
- .tex: custom format used in igi 2 for storing textures
- .tga: standard tga (targa) image format for viewing and exporting textures
- some
.tex
files with unusual sizes or formats might not display correctly - specific textures in the resource file might fail to load
.spr
files still do not load on this implementation, actively being worked on