- Messages
- 217
- Country

Ok, now I have a problem... with FS2004 Terrain SDK. You can see the results in the attachment.
1) The arrow shows a part of the airport (NW corner of the image) which is misplaced far to the south-east from where it should be. The read borders show the actual borders of the source image. I think I'm doing smth wrong with Resampler's .INF file settings, i.e. CellX and CellY values. Here is the actual data for the source file:
X axis: 9,600 px
Y axis: 9,600 px
North=40.45782158579722
West=50.064064264297485
South=40.43822657374694
East=50.089813470840454
And here is the contents of the INF file:
2) I also cannot understand how resampler interprets the provided info for CellX and CellY. E.g., in Terrain SDK (Custom Terrain Textures.doc, p.11) it says:
Can anybody explain where the figures for U and V are coming from and what they mean?!? I couldn't find any explanation in the docs. And I think this is somehow connected with my problem above...
What I understood from Creating Terrain.doc is that one should divide the distance/span between Lat and Lon values along X and Y axes to the total number of pixels of source image. That's what I did above:
CellX = (East Long - West Long) / 9600 px =2.6822090148958333333333333333333e-6
CellY = (North Lat - South Lat) / 9600 px =2.0411470885729166666666666666667e-6
But I still get the same results
Thank you in advance!!!
1) The arrow shows a part of the airport (NW corner of the image) which is misplaced far to the south-east from where it should be. The read borders show the actual borders of the source image. I think I'm doing smth wrong with Resampler's .INF file settings, i.e. CellX and CellY values. Here is the actual data for the source file:
X axis: 9,600 px
Y axis: 9,600 px
North=40.45782158579722
West=50.064064264297485
South=40.43822657374694
East=50.089813470840454
And here is the contents of the INF file:
Code:
[Destination]
DestDir = "."
DestBaseFileName = "panorama"
BuildSeasons = 0
UseSourceDimensions = 0
NorthLat = 40.45782158579722
SouthLat = 40.43822657374694
WestLong = 50.064064264297485
EastLong = 50.089813470840454
[Source]
Type = Custom
SourceDir = "."
SourceFile = "panorama.bmp"
Lat = 40.452922
Lon = 50.072649833333
NumOfCellsPerLine = 9600
NumOfLines = 9600
CellXdimensionDeg = 2.6822090148958333333333333333333e-6
CellYdimensionDeg = 2.0411470885729166666666666666667e-6
2) I also cannot understand how resampler interprets the provided info for CellX and CellY. E.g., in Terrain SDK (Custom Terrain Textures.doc, p.11) it says:
Code:
; The ids of the LOD13 quadtree cells inside the corners of the scenery
; area are:
; Northwest: U=6889 V=4269
; Southeast: U=6891 V=4272
; The lat/lon bounds in degrees of the scenery area are:
; North = 90 - 4269 * (90 / 2^13) = 43.099365234375000
; South = 90 - (4272+1) * (90 / 2^13) = 43.055419921875000
; East = -180 + 6889 * (120 / 2^13) = -79.086914062500000
; West = -180 + (6891+1) * (120 / 2^13) = -79.042968750000000
Can anybody explain where the figures for U and V are coming from and what they mean?!? I couldn't find any explanation in the docs. And I think this is somehow connected with my problem above...
What I understood from Creating Terrain.doc is that one should divide the distance/span between Lat and Lon values along X and Y axes to the total number of pixels of source image. That's what I did above:
CellX = (East Long - West Long) / 9600 px =2.6822090148958333333333333333333e-6
CellY = (North Lat - South Lat) / 9600 px =2.0411470885729166666666666666667e-6
But I still get the same results
Thank you in advance!!!

