On the original topic:
I will pin this thread later once I have time to test the new tool briefly. Thanks for the contribution.
To sectlord:
This is technically possible, but it can be tricky to perform and there are some limitations. It may also not yield the desired outcomes in terms of geometry and visual representations since each sky dome file has different skeleton structures for applying and rendering the sky texture files.
It also depends on whether the original UA or OpenUA are used. OpenUA supports easier methods of implementing this, including the usage of external, more industrial-standard formats (I should be able to provide some examples when I have free time later). But these are not compatible with the original UA.
In the case of original UA, it is also necessary to consider the colour palette compatibility since the software rendering mode requires all colours used in the image to be present within its 8-bit 'STANDARD.PAL' palette index. Otherwise the colours that are not part of this 8-bit palette index will come out distorted.
On the contrary, this restriction is not present when the hardware rendering mode is used. But in order to ensure that the graphics assets are fully compatible with both rendering modes in the original engine, the benchmark should be set on the software rendering mode compatibility in mind.
Regarding the method of swapping the images:
The sky texture data stored in *.BAS files in OBJECTS directory are VBMP data. VBMP files are special bitmap files that are used to store textures. They are usually stored in packages and editing them requires special procedures since the format is proprietary.
VBMP files are bitmap files with a custom header and a predefined set of 256 colours. Note that they often have *.ILB or *.ILBM extension but should not be confused with ILBM files.
The colour palette is loaded from a separate palette file. The bitmap data section follows standard Windows bitmap format. The size of the bitmap is 256×256 pixels in all standard UA files.
The most reliable way to extract or modify a VBMP file is to open the *.BAS package file in a hex editor and search for VBMP chunk.
If necessary, I can describe the method on how to achieve this using a hex editor here. But it can be quite complex and there are many factors to consider, such as preparing the correct Bitmap replacement image file with the correct colour palette index. Although I haven't tested yet, perhaps the tool can already support this feature naturally.
Also if this is considered off-topic, then perhaps we could create a new thread dedicated for this topic.