World Background Maps

User avatar
BenganJ
Moderator
Posts: 9589
Joined: December 15th, 2018, 11:54 am
Location: Gothenburg, Sweden

Re: World Background Maps by dOOmERdaZe

Post by BenganJ » August 3rd, 2019, 6:19 pm

@Tapir
For the moment you can stop crossing your fingers and whispering words to yourself.

@All others
Right now I haven't got the high resolution resources I need to get this going! The end
result right now is too pixelated when zooming in. I have to dig on the net to see if I
can find a better starting image. For those that started to hold your breath, you can
breath again. :lol: :lol: :lol:
---------------------------------------------------------------------------------------------------------------------------------------------
System: Windows 8.1
Processor: Intel Core i7-4790@
Memory: 16GB
Graphics: ASUS GeForce GTX1660Ti
Image
User avatar
Tapir
VIP
Posts: 4175
Joined: December 15th, 2018, 3:07 pm
Location: Stratford, UK

Re: World Background Maps by dOOmERdaZe

Post by Tapir » August 3rd, 2019, 7:13 pm

@Bengan: at the moment I can breathe normally and I do not whisper. :D
But I still crossed my fingers. ;)
If you try to get something, it is usually successful. Therefore, allow me to continue to have crossed my fingers. ;) ;)

Image

System: Windows 11 PRO
Processor: Intel i7-12700KF 5GHZ
Motherboard: Gigabyte B760 DS3H AX
Memory: Corsair DDR5-6000 32 GB
Storage: Samsung 990 M2 SSD + 2 Samsung 870 SSD
Graphics: Asus GeForce Dual RTX 3060 V2 12GB GDDR6
ExtremorPL
Modder
Posts: 205
Joined: April 11th, 2019, 7:16 pm

Re: World Background Maps by dOOmERdaZe

Post by ExtremorPL » August 3rd, 2019, 7:36 pm

I think you should create your starting image in e.g. 8192x8192 resolution if you want to have your map background in 4096x4096. Why? If you want map_x.dds files (for close zoom) in 4096x4096 you need to cut original image for 4 parts. So start with 8192x8192 and after everything just scale it to 4096x4096 or leave how it is (8192x8192). Or create far zoom map in 4096x4096 and close zoom version in 8192x8192 for better quality.
Retired modder.
User avatar
BenganJ
Moderator
Posts: 9589
Joined: December 15th, 2018, 11:54 am
Location: Gothenburg, Sweden

Re: World Background Maps by dOOmERdaZe

Post by BenganJ » August 3rd, 2019, 8:12 pm

@ExtremorPL

Right, that's EXACTLY what I've been done up 'til now, but when
I got hold of a special program written by a guy at Goddard Space
Center/NASA, that can create Lambert Conic Conformal projected
images from e.g. Equirectangular ones, I had to search for a higher
resolution start image, as the sample coming with the program was
only 1800x900, which is WAY too low! Now I have found one with a
resolution of 21600x10800. So, now I'm on it again mate! Watch out! :D
---------------------------------------------------------------------------------------------------------------------------------------------
System: Windows 8.1
Processor: Intel Core i7-4790@
Memory: 16GB
Graphics: ASUS GeForce GTX1660Ti
Image
ExtremorPL
Modder
Posts: 205
Joined: April 11th, 2019, 7:16 pm

Re: World Background Maps by dOOmERdaZe

Post by ExtremorPL » August 3rd, 2019, 8:16 pm

Can you share link to it? It would help me with my editor background. Sorry if you already did that, maybe I missed something.
Retired modder.
User avatar
BenganJ
Moderator
Posts: 9589
Joined: December 15th, 2018, 11:54 am
Location: Gothenburg, Sweden

Re: World Background Maps by dOOmERdaZe

Post by BenganJ » August 3rd, 2019, 8:17 pm

Link to what?
---------------------------------------------------------------------------------------------------------------------------------------------
System: Windows 8.1
Processor: Intel Core i7-4790@
Memory: 16GB
Graphics: ASUS GeForce GTX1660Ti
Image
ExtremorPL
Modder
Posts: 205
Joined: April 11th, 2019, 7:16 pm

Re: World Background Maps by dOOmERdaZe

Post by ExtremorPL » August 3rd, 2019, 8:19 pm

BenganJ wrote:
August 3rd, 2019, 8:12 pm
A special program written by a guy at Goddard Space
Center/NASA, that can create Lambert Conic Conformal projected
images from e.g. Equirectangular ones.
Retired modder.
User avatar
BenganJ
Moderator
Posts: 9589
Joined: December 15th, 2018, 11:54 am
Location: Gothenburg, Sweden

Re: World Background Maps by dOOmERdaZe

Post by BenganJ » August 3rd, 2019, 8:21 pm

No problem at all mate, here it is: https://www.giss.nasa.gov/tools/gprojector/
Enjoy!
---------------------------------------------------------------------------------------------------------------------------------------------
System: Windows 8.1
Processor: Intel Core i7-4790@
Memory: 16GB
Graphics: ASUS GeForce GTX1660Ti
Image
ExtremorPL
Modder
Posts: 205
Joined: April 11th, 2019, 7:16 pm

Re: World Background Maps by dOOmERdaZe

Post by ExtremorPL » August 3rd, 2019, 8:25 pm

Thanks mate! :D
Retired modder.
User avatar
BenganJ
Moderator
Posts: 9589
Joined: December 15th, 2018, 11:54 am
Location: Gothenburg, Sweden

Re: World Background Maps by dOOmERdaZe

Post by BenganJ » August 4th, 2019, 2:32 am

@ExtremorPL

Mate, I found map projection data parameters in a location, that is what I call SCS-odd,
/def/climate.sii :!: :!: :!: :roll: :roll: :roll:

Code: Select all

	// Globe coordinates (in degrees) are based on map position:
	// latitude = map_origin[0] + (map_z - map_offset[0]) * map_factor[0]
	// longitude = map_origin[1] + (map_x - map_offset[1]) * map_factor[1]
	//
	// If advanced map projection is used (eg lambert) projection is applied on coordinates accordingly.

	map_projection: lambert_conic
	standard_paralel_1: 37
	standard_paralel_2: 65

	map_origin: (50, 15)
	map_offset: (16660.0, 4150.0)
	map_factor: (-1.71570875e-4, 1.729241463e-4)
You'll need at least the two standard_paralel values if you play with that program
I pointed you to. The 3 at the bottom are, as far as I understand it, used when you
want to calculate latitude and longitud for a certain map position X and Z. That's
another of those SCS-odd ones! :lol: The formulas for calculation is documented
within the commented paragraph! Damn, this isn't easy, mate! Right now I miss one
or two parameters to get the background images correctly distorted and tilted.
I hope you get some use out of this mate. :D

EDIT: Digging and testing a bit I noticed that the map_origin values are latitude and
longitude values for the origin of the map. Those values you should also input in the
definition of the Lambert Conic Conformal projection parameters in the program. :D
The last parameter for the projection is Height which gives you the zoom of the map
after projection.

EDIT2: Yesterday Scul, at the Promods team, told us that the MiddleEast map addon
already had changed to this "new projection", but that Promods itself weren't there
yet. That's why every satellite background mods and zoom mods didn't work any more.

https://www.promods.net/viewtopic.php?p=269640#p269640
---------------------------------------------------------------------------------------------------------------------------------------------
System: Windows 8.1
Processor: Intel Core i7-4790@
Memory: 16GB
Graphics: ASUS GeForce GTX1660Ti
Image
Post Reply