Skip to content

Posts from Importing textures with an alpha channel (BC3 and 8.8.8.8).

No ratings yet — be the first to rate!
Auto-translated

I'm implementing my own vision for the interface of the Wrath and Necromancy skill buttons. When importing the .dds textures, I encounter a problem: all the unused space in the texture (with a transparent background) in the game turns white. The file format and the one specified in the xdb file match. I tried changing the options when saving, but it either didn't change anything or the file was read incorrectly by the game. What could be the problem?

I use the Nvidia plugin in Photoshop to save the files, and the preview shows everything as it should be.

User Avatar
Auto-translated
Not sure, maybe it doesn't need an alpha channel, but rather the absence of a background. How are the buttons made in other mods? I haven't looked into it myself.
Just in case, also check that MIP maps are disabled, but it shouldn't be related to this issue.
User Avatar
Auto-translated
I can't seem to find that small guide I made earlier, but your transparency has the wrong color. It needs to be black, but it's white... Just a short answer.
 

К А
Стикеры GBF в Telegram
In reply to Ment
Auto-translated

The problem is solved. (Please change it to BC2 in the title, I made a typo because I meant DXT3).

The solution to the problem, as mentioned above, lies in the incorrect color. However, I will explain it in more detail for future reference.

1) The bottom layer (background) should be black, and the texture is drawn on top of it.
2) Select the entire texture separately from the background and create an alpha channel; fill the selection with white.
3) Save it in BC2 or another format. Disable MIP maps.

User Avatar
Auto-translated
Ziegmaster

I'm implementing my own vision for the interface of the Wrath and Necromancy buttons. When importing .dds textures, I'm facing a problem where all the unused space in the texture (with a transparent background) turns white in the game. The file format and the one specified in the xdb match. I tried changing the options when saving, but it either didn't change anything or the file was read incorrectly by the game. What could be the problem?

I'm using the Nvidia plugin in Photoshop to save, and the preview shows everything as it should be.

Do you have Paint.net? The plugins in Photoshop are useless. If you delete everything around the icon in Photoshop and save it as PNG, for example, or even with a plugin for dds, it will have a white background.

Added 1 minute ago
Ziegmaster

The problem is solved. (Please change it to BC2 in the title, I made a typo, as I meant DXT3)

The solution to the problem, as mentioned above, lies in the incorrect color. However, I will describe it in more detail for future reference.

1) The very bottom layer - the background - must be black, and the texture is drawn on top of it.
2) Select the entire texture separately from the background and create an alpha channel, fill the selection with white.
3) Save in BC2 or another format. Disable MIP maps.


Well, since the problem is solved, I assume you don't need any more help
Мой проект:
NVS 3.0 (Narron's Visual Solutions for HOMMV)
- Ссылка на скачивание мода;
- Ссылка на Компендиум NVS 3.0;
- Сообщество проекта в vk.com
User Avatar
Auto-translated
2 Narron
In Photoshop, you can easily save images in PNG format without a background; just don't merge the layers beforehand.
If I understand correctly.
In reply to L'Garold
User Avatar
Auto-translated
L'Garold
2 Narron
In Photoshop, you can safely save in PNG format without a background; the main thing is not to merge the layers beforehand.
If I understand correctly.

That's correct, DDS doesn't handle that well. Since I don't use Photoshop plugins, I open PNG files in Paint.net and use the magic wand tool to remove any remaining empty areas. Then, to check for the absence of a white background, I select the DDS save option with B8G8R8XB settings (Linear X8R8G8B8). On a small screen, when this setting is selected, a white or black color is displayed. If there is no white color where the empty areas were, it means everything is fine, and I choose the other settings I need for the DDS file.
Мой проект:
NVS 3.0 (Narron's Visual Solutions for HOMMV)
- Ссылка на скачивание мода;
- Ссылка на Компендиум NVS 3.0;
- Сообщество проекта в vk.com
In reply to Ziegmaster
Auto-translated
Ziegmaster

The problem is solved. (Please change BC2 in the title, I made a typo, as I meant DXT3).

The solution to the problem, as mentioned above, lies in the incorrect color. However, I will explain it in more detail for future reference.

1) The very bottom layer - the background - should be black, and the texture is drawn on top of it.
2) Select the entire texture, separate from the background, and create an alpha channel. Fill the selection with white.
3) Save in BC2 or another format. Disable MIP maps.

However, the question of whether something can be done about the dark, semi-transparent background remains unresolved. Due to the alpha channel, some elements become slightly transparent because of the black color in the texture. This is not critical for me, but I doubt I will be able to figure it out myself.

In reply to Ziegmaster
User Avatar
Auto-translated
Ziegmaster

The question of whether something can be done about the dark, semi-transparent background remains unresolved. Due to the alpha channel and the black color in the texture, some elements become slightly transparent. It's not critical for me, but I doubt I'll be able to figure it out myself.


Download Paint.NET (it's free) and use it to work on the DDS textures. This program is designed for that.
Мой проект:
NVS 3.0 (Narron's Visual Solutions for HOMMV)
- Ссылка на скачивание мода;
- Ссылка на Компендиум NVS 3.0;
- Сообщество проекта в vk.com

Statistics

Welcome our newest member: Emil