• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

veritas

Sergeant
50 Badges
Jun 30, 2003
58
0
Visit site
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Snowfall
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Steel Division: Normandy 44
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Steel Division: Normand 44 - Second Wave
  • Cities: Skylines - After Dark
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Steel Division: Normandy 44 -  Back to Hell
  • Cities: Skylines - Parklife
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Battle for Bosporus
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis III Complete
  • Crusader Kings II
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sword of the Stars II
  • Victoria 2
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
Hello,

i have extended the map size (*.bmp, textures) to 2400x1228.

The last problem i have is the misplaced shadowmap as shown in this picture:

shadow_problem.jpg



It is generated in relation to colormap_water.dds wich i've resized also.
Whatever i tried, it always seems to be way off.

I also tried to tweak the x y coords in water.fx without any good result.

Any help would be most welcome.
 
Additional info:

The vanilla colormap_water.dds has a size of 2048x1024.
My map is larger than that, so the colormap_water.dds doesnt overlay the whole map. When i use this map the shadowmap is correct.(For the part of the map which is covered by the colormap_water.dds)

Then i resized the colormap_water.dds to the same size of province.bmp which is 2400x1228. Now, when reloading the game the new colormap_water.dds gets cramped to size defined in water.fx.

So i changed the x y coords and FOW size in water.fx according to the new texture size, but then the shadowmap is off.

Maybe a dev has an explanation for that ...
 
Got it working.

Solution: colormap_water.dds maximum size is 2048x1024.
It will be stretched by the definitions made in water.fx.

The shadowmap is defined in terrain_2_0.fx.
The values there needs to be adjusted to the new map size.

extended_map.jpg


Maybe this is a useful info for some modders out there.

Regards
 
veritas said:
Got it working.

Solution: colormap_water.dds maximum size is 2048x1024.
It will be stretched by the definitions made in water.fx.

The shadowmap is defined in terrain_2_0.fx.
The values there needs to be adjusted to the new map size.



Maybe this is a useful info for some modders out there.

Regards

Nice find. Fantastic news that the map can be extended to. It wasn't possible in EU3 so I didn't bother running any tests on it in Rome and worked with shrinking the current one instead. This is alot better ofcourse.
 
Ohh.... the map size can be adjusted. :cool:

Great work Veritas.
 
I expanded the textures too. But there is limit at x=~10800.
If the file is larger than that, it will crash while generating the textures. The strange part is that the game will generate the textures on the next start of the game. It must be some kind of memory problem.
 
Got it working.

Solution: colormap_water.dds maximum size is 2048x1024.
It will be stretched by the definitions made in water.fx.

The shadowmap is defined in terrain_2_0.fx.
The values there needs to be adjusted to the new map size.

Could someone expand upon what exactly needs to be changed in the terrain_2_0.fx file? I have looked at the file but am unsure as to what I need to change. My map is currently 1024x1024.

Thanks in advance.
 
Line 272 + 273, 333 + 334, 372 + 373, 409 + 410, 451 + 452, 507 + 508 show the following:

Code:
	Out.vFOWCoords.x = Position.x / 1960.0 + 0.5 / FOW_SIZE;
	Out.vFOWCoords.y = Position.z / 1228.0 + 0.5 / FOW_SIZE;

which are the values you need to change. Not sure how many of them you need to change and how many you can leave as is so you will have to fiddle with them to make it just right :)
 
Note to modders.

When editing make sure you check the Alpha 1 Channel. This can hold black colouring even though you have coloured the main image differently. This black colouring will appear in game and cover over oceans (non-province).

Hope this saves someone a few hours of their life. :)

EDIT: Also the following file format is successful for colormap_water.dds:

8:8:8:8 ARGB (32 bits)
2D Texture
No MIP Maps
MIP Map Filtering --> Filter Type: Point