| View previous topic :: View next topic |
| Author |
Message |
GlobalExplorer
Joined: 14 May 2005 Posts: 234 Location: Berlin
|
Posted: Thu Jan 26, 2006 4:47 am Post subject: |
|
|
| ref wrote: | Marhkimov,GlobalExplorer, you're right , I found this lines at Termaps.cfg
[Map3]
Format=data
Resolution=216000,108000,200; map width,height(in pixels) and density(meters per pixel)
ZoomLevels=200,100,50,20,10,5,2,1; meters per pixel
Tiles=360,180
MAP1 and MAP2 are the maps displayed in the nav screen, this map is 10x bigger, and apparently the minimum resolution is 200 mts.
So far I've been unable to open the data files, maybe is time to remove the dust off from my dissasembler and take a look into the code to figure it out, pet project for the weekend.
Ref
pd: as stupid as may seem the BF in .BFD and .BFI stands for Big File. |
Interesting.
So would that mean the dimensions are 216000*108000 units? But the question remains, what is a unit? Maybe it helps to explain what Sh3Gen tought me about Sh3's world coordinate system.
In Sh3 every position is referenced of Longitude, Latitude and Height. My idea is that basically every coordinate represents a point in a 2-dimensional coordinate system (the height can be ignored in most situations). That means, instead of Longitude and Latitude we might as well speak of x,y. The origin of this coordinate system is the point where the equator and the zero-meridian cross, somewhere south of Cote d'Ivoire. (This is the point whose coordinates are 0,0). It helps me to better understand the referencing system, because now every coordinate simply indicates the positive or negative distance to the origin, in "units".
Example of a group somewhere near Kiel:
Long=1220980.000000
Lat=6524040.000000
That means the groups distance to the origin is 1220980 units in positive x, 6524040 units in positive y direction. But the question remains what is a "unit"?
As far as this is concerned, I would say it is meters.
distance in x = 1220 km
distance in y = 6524 km
As the distance Kiel from Kiel to Cote d'Ivoire, this sounds reasonable.
I can say this quite positively, because in Sh3Gen, whenever I need kilometers, I divide Long and Lat by 1000.
If someone wants to experiment with Sh3's coordinate system I can send him an AutoCAD Document that gives the correct Sh3 coordinates. It uses a raster image of the game map that I have scaled and positioned, and I use it a lot for Sh3Gen. |
|
| Back to top |
|
 |
ref
Joined: 21 Nov 2005 Posts: 252 Location: Mar del Plata, Argentina
|
Posted: Fri Jan 27, 2006 10:03 am Post subject: |
|
|
| GlobalExplorer wrote: |
In Sh3 every position is referenced of Longitude, Latitude and Height. My idea is that basically every coordinate represents a point in a 2-dimensional coordinate system (the height can be ignored in most situations). That means, instead of Longitude and Latitude we might as well speak of x,y. The origin of this coordinate system is the point where the equator and the zero-meridian cross, somewhere south of Cote d'Ivoire. (This is the point whose coordinates are 0,0). It helps me to better understand the referencing system, because now every coordinate simply indicates the positive or negative distance to the origin, in "units".
Example of a group somewhere near Kiel:
Long=1220980.000000
Lat=6524040.000000
That means the groups distance to the origin is 1220980 units in positive x, 6524040 units in positive y direction. But the question remains what is a "unit"?
As far as this is concerned, I would say it is meters.
distance in x = 1220 km
distance in y = 6524 km
As the distance Kiel from Kiel to Cote d'Ivoire, this sounds reasonable.
I can say this quite positively, because in Sh3Gen, whenever I need kilometers, I divide Long and Lat by 1000.
If someone wants to experiment with Sh3's coordinate system I can send him an AutoCAD Document that gives the correct Sh3 coordinates. It uses a raster image of the game map that I have
scaled and positioned, and I use it a lot for Sh3Gen. |
I've been digging a little in the bhi file, it consists of records of grid subdivisions, two file names for each grid :
129600 E001N000/E001N000MK.RL2
40 E001N000/E001N000RS.RL
256 E001N001/E001N001MK.RL2
40 E001N001/E001N001RS.RL
256 E001N002/E001N002MK.RL2
40 E001N002/E001N002RS.RL
East goes from 0 to 179, north from 0 to 90,
west from 0 to 180, south from 0 to 79.
basically they subdivide de map in to small pieces (64k+) for easy handling, still need to determine what the numbers are, first guess are size of compressed chunks.
It'd be nice if you send me the cad doc, to try to match their coordinates with yours to better picture how are they distributed.
please send it to : roberto_fernandez@datafull.com |
|
| Back to top |
|
 |
GlobalExplorer
Joined: 14 May 2005 Posts: 234 Location: Berlin
|
Posted: Fri Jan 27, 2006 3:45 pm Post subject: |
|
|
| I will send you the dwg. That assembler stuff is a bit above my horizon, but hopefully you will find out how the data is organized. |
|
| Back to top |
|
 |
redbrow
Joined: 08 May 2005 Posts: 118
|
Posted: Sat Jan 28, 2006 2:25 pm Post subject: |
|
|
| thanks ref! my game crashes now and then, which is why i always save at every step, and i noted that my crashes seem to happen at the same locations on the map. Your discovery about the map segments helps explain to me why my game crashes at certain locations. |
|
| Back to top |
|
 |
ref
Joined: 21 Nov 2005 Posts: 252 Location: Mar del Plata, Argentina
|
Posted: Sat Jan 28, 2006 3:15 pm Post subject: |
|
|
Ok, some updates, I´ve playing with the terraindata files, so far I've been able to decipher part of the file , the .rl type and decompress it , the terraindata.dbf is made of 129600 squares each one 126 pixels wide, the other files .rl2 are still unknown.
Example:
Which is located here:
Now I´m working on a program to locate the segments on the map easely, its a giant puzzle.
The problem after determining the coordinates is that the squares overlap a few pixels, so they must be edited in groups, once I figure how, I'll try to do a few edits to test if it works in the real world (sh3) without touching the .rl2 files. |
|
| Back to top |
|
 |
GlobalExplorer
Joined: 14 May 2005 Posts: 234 Location: Berlin
|
Posted: Sat Jan 28, 2006 3:31 pm Post subject: |
|
|
WOW! You're making good progress ..
Wouldn't it help to visualize the data with OpenGL? |
|
| Back to top |
|
 |
thasaint
Joined: 26 Aug 2005 Posts: 77
|
Posted: Sun Jan 29, 2006 12:32 am Post subject: |
|
|
| GlobalExplorer wrote: | | Marhkimov wrote: | | It doesn't look out of the question to make small channels in SH3. Look around, and you'll see that the smallest gaps are usually 200-300m wide... So it is possible to model a narrow channel. |
Correct. For example, there is a tiny rock north of Scotland that I once discovered. I wonder what chance there is that people crash into this thing at high time compression :hmm: |
i crashed right into it once, always plot a course very clear of it now  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|