[OF dev]X,Y to Lat,Long

Terrain / Theater editing

Moderators: Lone Wolf, Snake Man

User avatar
Eagle_Eye
Newbie
Posts: 4
Joined: 2007-06-15 20:40:21

[OF dev]X,Y to Lat,Long

Post by Eagle_Eye » 2007-10-07 09:11:39

hi my friend Nayfe is working on a VHS tape parser, he dont have a account here so i post for him:





Hi all,
I'm developping a vhs tape parser to output a compatible Tacview file.

I just have a little problem:
Positions of entities are x,y,z and Tacview needs coordinates (latitude,longitude) so I need to convert x,y to lat,long...

With SP3 code, it doesn't work well with OF acmi.

For example, let's take Seosan Airstrip Control Tower:
Im getting from OF acmi :
x=1270196.25
y=1490589.875

converted to (SP3 code)
lat=37.253744
lon=124.242394

but in game and in real life, Seosan airstrip is not here, it's
lat=37,445289
lon=127,111816

I conclude that OF conversion is not the same as SP3, and if someone here could tell me what to do, i would be very grateful
Image

Couby
1st Lt
Posts: 127
Joined: 2006-12-25 22:35:21
Location: France

Post by Couby » 2007-10-07 15:16:32

Pay attention to the fact that globaly in game coordinates are not accurate. And also that there is a bug in the 2D projection, so that for exemple if you modify theater center in order to get accurate coordinates for one airfield, town or whatever you want, coordinates for every other objects won't be accurate.
And the more your are away from an object which have accurate coordinates you are the more there is a difference between in game coordinates and real coordinates.

This just for that you take into consideration just ingame coordinates.
ImageImage

Snake Man
Commander-In-Chief
Posts: 9354
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC

Post by Snake Man » 2007-10-07 15:31:15

Also I'm still unsure (forgotten?) if F4 engine uses spherical method for those coordinates or not. For example original korean theater and balkans are not spherical, all PMC theaters are.
PMC Tactical Forum New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

Nayfe
Newbie
Posts: 3
Joined: 2007-10-07 17:18:15

Post by Nayfe » 2007-10-07 21:17:21

Ok problem resolved, I missed the fact that falcon4 reads theater.map to overwrite FALCON_ORIGIN -_- :)

Return to “Terrain / Theater”

Who is online

Users browsing this forum: No registered users and 0 guests