TgaBuilder

Texture Panel Building Tool for TRLE

Latest Releases | Github Repository

Logo

Description

Overview

TgaBuilder is a Texture Panel Building tool for TRLE, which is intended to facilitate the process of texture panel creation. The tool is inspired by TBuilder by IceBerg but programmed from scratch in .net 8, C# WPF by me.

If you have already worked with TBuilder in the past, you should get familiar with TgaBuilder very quickly. It should cover most of the features TBuilder also has and introduces a few things more, most prominently:

Installation

Download the latest release from GitHub Releases and extract the files.

Requirements

Please note that, as a .net WPF tool, TgaBuilder has significantly higher system resource requirements, particularly for RAM, than TBuilder, which was written in Delphi. If you are still satisfied using TBuilder, please continue using it. TgaBuilder is not intended as a substitute for it.

Usage

Title Bar

TitleBar

Source Loading

Undo / Redo

Destination Loading / Saving

Source Panel (Left)

Destination Panel (Rigth)

Picking Mode

Placing Mode

General Controls

Selection Area

SelectionArea

AnimationArea

Animation Area

Import Tab (Source Panel)

Import Tab

From left to rigth:

Please use Imports carefully and conscientiously when building own custom levels. Specifically, clarify with the creator whether you are authorised to use custom assets. If in doubt, use assets that are guaranteed to be acceptable for use in your own custom levels instead. Please also note that this tool is licensed under the MIT licence.

Batch File Loader

Batch Loader

Grid Tab (Source Panel)

Grid Tab

From left to rigth:

Offset Tab (Source Panel)

Offset Tab

From left to rigth:

Alpha Tab (Source Panel)

Alpha Tab

From left to rigth:

View Tab (Source and Destination Panel)

View Tab

From left to rigth:

Placing Tab (Destination Panel)

From left to rigth:

Placing Tab

From left to rigth:

Size Tab (Destination Panel)

From left to rigth:

Size Tab

Mode Tab (Destination Panel)

Same functions as in TBuilder. From left to rigth:

Mode Tab

Format Tab (Destination Panel)

This tab allows you to modify the format of the destination texture panel. TgaBuilder now fully supports the opening, modification and writing of both 24-bit and 32-bit pixel formats.

Format Tab

The tab setting will be set automatically depending on the input after loading. You can then set it manually if you wish. If you select RGB 24 BPP, magenta will be used for transparent parts. If you select BGRA 32 BPP, you will have a real alpha channel. Switching between the two settings will set the pixel values appropriately (e.g. alpha = 0 areas will be converted to magenta areas, and so on).

Format

Switching from BGRA 32 BPP to RGB 24 BPP will set the magenta colour correctly, but since pixels with an alpha value other than 0 or 255 are not supported by RGB 24 BPP, information will be lost, possibly making the switching step irreversible.

Keyboard Shortcuts

Key Combination Description
Ctrl + A Create a new texture panel
Ctrl + C Copy selection to clipboard
Ctrl + V Paste from clipboard to selection
Ctrl + Z Undo
Ctrl + Y Redo
Ctrl + S Save destination texture panel
Ctrl + Shift + S Save destination texture panel to new / other file
Ctrl + E Open source texture panel
Ctrl + D Open destination texture panel
Ctrl + Q Import from TR Level
Ctrl + W Open batch loader

Limitations

License

This project is licensed under the MIT License.

Third-Party Libraries

For WPFZoomPanel I did some custom modifications and adapted it to .net 8. This modified project is included in this reporsitory as well.

Package Version Source License Project URL
WPFZoomPanel - GitHub MIT GitHub
Pfim 0.11.3 NuGet MIT GitHub
bzPSD 0.1.0 NuGet BSD-3-Clause license GitHub
WPF UI 4.0.3 NuGet MIT GitHub
Microsoft Dependency Injection 9.0.6 NuGet MIT Microsoft
SharpZipLib 1.4.2 NuGet MIT GitHub

I would like to express my gratitude to the TombEditor team and the authors of TRosettaStone. Their imppressive public contributions immensely helped me understanding the TR level file format.

Contributing

Contributions are welcome! If you find a bug or have a feature request, please open an issue.
If you want to contribute code, feel free to fork the repository and create a pull request.

Support

If you have any issues, please open a GitHub Issue.

To Do List