Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

What are the dds export settings from a terrain texture?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Close Combat – The Bloody First >> Close Combat: The Bloody First - Tech Support Forum >> What are the dds export settings from a terrain texture? Page: [1]
Login
Message << Older Topic   Newer Topic >>
What are the dds export settings from a terrain texture? - 2/20/2020 7:18:49 AM   
Nomada_Firefox

 

Posts: 1252
Joined: 11/12/2001
From: Spain
Status: online
One question, when I try to load a dds terrain texture for a map, I see this.

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.

< Message edited by Nomada_Firefox -- 2/20/2020 7:19:01 AM >
Post #: 1
RE: What are the dds export settings from a terrain tex... - 2/20/2020 2:39:00 PM   
PipFromSlitherine

 

Posts: 1388
Joined: 6/23/2010
Status: offline
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

(in reply to Nomada_Firefox)
Post #: 2
RE: What are the dds export settings from a terrain tex... - 2/20/2020 8:52:41 PM   
Nomada_Firefox

 

Posts: 1252
Joined: 11/12/2001
From: Spain
Status: online
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?




Attachment (1)

(in reply to PipFromSlitherine)
Post #: 3
RE: What are the dds export settings from a terrain tex... - 2/20/2020 10:40:20 PM   
ineffable


Posts: 370
Joined: 12/13/2019
From: Fishers Ferry
Status: offline
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

(in reply to Nomada_Firefox)
Post #: 4
RE: What are the dds export settings from a terrain tex... - 2/21/2020 7:09:00 AM   
Nomada_Firefox

 

Posts: 1252
Joined: 11/12/2001
From: Spain
Status: online

quote:

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.

(in reply to ineffable)
Post #: 5
RE: What are the dds export settings from a terrain tex... - 2/21/2020 7:35:53 AM   
Nomada_Firefox

 

Posts: 1252
Joined: 11/12/2001
From: Spain
Status: online
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.

(in reply to Nomada_Firefox)
Post #: 6
RE: What are the dds export settings from a terrain tex... - 2/21/2020 3:15:53 PM   
PipFromSlitherine

 

Posts: 1388
Joined: 6/23/2010
Status: offline
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

(in reply to Nomada_Firefox)
Post #: 7
RE: What are the dds export settings from a terrain tex... - 2/21/2020 3:16:45 PM   
PipFromSlitherine

 

Posts: 1388
Joined: 6/23/2010
Status: offline

quote:

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

(in reply to Nomada_Firefox)
Post #: 8
RE: What are the dds export settings from a terrain tex... - 2/21/2020 5:10:47 PM   
PipFromSlitherine

 

Posts: 1388
Joined: 6/23/2010
Status: offline
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

< Message edited by PipFromSlitherine -- 2/21/2020 5:11:23 PM >


_____________________________

follow me on Twitter here

(in reply to PipFromSlitherine)
Post #: 9
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Close Combat – The Bloody First >> Close Combat: The Bloody First - Tech Support Forum >> What are the dds export settings from a terrain texture? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.133