What are the dds export settings from a terrain texture?

Close Combat: The Bloody First Tech Support Forum. Please post any issues found here.
Post Reply
Nomada_Firefox
Posts: 1280
Joined: Mon Nov 12, 2001 10:00 am
Location: Spain
Contact:

What are the dds export settings from a terrain texture?

Post 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.
User avatar
PipFromSlitherine
Posts: 1503
Joined: Wed Jun 23, 2010 7:11 pm

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

Post by PipFromSlitherine »

That means that the texture is missing, so likely it could have been placed in the wrong folder?

Cheers

Pip
follow me on Twitter here
Nomada_Firefox
Posts: 1280
Joined: Mon Nov 12, 2001 10:00 am
Location: Spain
Contact:

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

Post 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
Attachments
CC_TBF_Edi..514031.jpg
CC_TBF_Edi..514031.jpg (438.46 KiB) Viewed 522 times
User avatar
ineffable
Posts: 410
Joined: Fri Dec 13, 2019 3:41 pm
Location: Fishers Ferry

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

Post 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.
Quid si
Nomada_Firefox
Posts: 1280
Joined: Mon Nov 12, 2001 10:00 am
Location: Spain
Contact:

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

Post 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.
Nomada_Firefox
Posts: 1280
Joined: Mon Nov 12, 2001 10:00 am
Location: Spain
Contact:

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

Post 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.
User avatar
PipFromSlitherine
Posts: 1503
Joined: Wed Jun 23, 2010 7:11 pm

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

Post 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
follow me on Twitter here
User avatar
PipFromSlitherine
Posts: 1503
Joined: Wed Jun 23, 2010 7:11 pm

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

Post 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

follow me on Twitter here
User avatar
PipFromSlitherine
Posts: 1503
Joined: Wed Jun 23, 2010 7:11 pm

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

Post 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
follow me on Twitter here
Post Reply

Return to “Close Combat: The Bloody First - Tech Support Forum”