Page 1 of 1

What are the dds export settings from a terrain texture?

Posted: Thu Feb 20, 2020 5:18 am
by Nomada_Firefox
One question, when I try to load a dds terrain texture for a map, I see this.
Image
It is one of the game maps saved as dds in photoshop. I can imagine how you use a different dds export options. I used DXT1 RGB 4 bpp | no alpha

And probably from all the textures in game.

RE: What are the dds export settings from a terrain texture?

Posted: Thu Feb 20, 2020 12:39 pm
by PipFromSlitherine
That means that the texture is missing, so likely it could have been placed in the wrong folder?

Cheers

Pip

RE: What are the dds export settings from a terrain texture?

Posted: Thu Feb 20, 2020 6:52 pm
by Nomada_Firefox
Thanks. Yes it was the problem....the maps must be in the Close Combat - The Bloody First\Campaigns\MAIN\DATA\MAPS

The unique problem now is the height, I have a bump map from 4096x4096 but the map editor says this. What can be the problem?

Image

RE: What are the dds export settings from a terrain texture?

Posted: Thu Feb 20, 2020 8:40 pm
by ineffable
The Height maps that the Map Editor saves are 1 pixel larger than the map size. eg. the height map for a 512x512 map (2x2) is 513x513 pixels. The height map for a 256x256 (1x1) map is 257x257 pixels. I'd extrapolate from there bearing in mind that 32x32 is the deploy tile size and 512x512 may be the max size.

RE: What are the dds export settings from a terrain texture?

Posted: Fri Feb 21, 2020 5:09 am
by Nomada_Firefox
ORIGINAL: ineffable

The Height maps that the Map Editor saves are 1 pixel larger than the map size. eg. the height map for a 512x512 map (2x2) is 513x513 pixels. The height map for a 256x256 (1x1) map is 257x257 pixels. I'd extrapolate from there bearing in mind that 32x32 is the deploy tile size and 512x512 may be the max size.
Are you sure? because you can not save a dds with this sizes. I have tried and it does not work. I do not want save a height, I want load a external height.

RE: What are the dds export settings from a terrain texture?

Posted: Fri Feb 21, 2020 5:35 am
by Nomada_Firefox
Now I see. It must be loaded as bmp and the size must be the same than the file saved by the map editor. In addition if I am not wrong, the height map is a black/white image and not a bump.

RE: What are the dds export settings from a terrain texture?

Posted: Fri Feb 21, 2020 1:15 pm
by PipFromSlitherine
As said, the size of the texture must be W+1,H+1. DXT textures are not the appropriate format for this kind of data (even if, as you say, they could be in sizes which are not multiples of 4). Use a BMP or TGA for the image format, and save as a 32 bit image. The largest value of the RGB elements is used as the height.

Cheers

Pip

RE: What are the dds export settings from a terrain texture?

Posted: Fri Feb 21, 2020 1:16 pm
by PipFromSlitherine
ORIGINAL: Nomada_Firefox

Thanks. Yes it was the problem....the maps must be in the Close Combat - The Bloody First\Campaigns\MAIN\DATA\MAPS
You should be able to use textures in the local folder (Documents/My Games/CloseCombatTheBloodyFirst/Maps

Cheers

Pip


RE: What are the dds export settings from a terrain texture?

Posted: Fri Feb 21, 2020 3:10 pm
by PipFromSlitherine
Actually, looking at the code it looks like it fails to load the textures from the local path in the editor. We will fix for the next update so you don't need to put textures in the install data.

Note that the game itself will correctly load textures from the local Maps folder, just not the editor.

Cheers

Pip