# How do you Calculate V and U values for <scenery>.inf files..

## Recommended Posts

Hello all,I need to know how to calculate/find the U and V values for the calculations of LOD boundaries in scerery .inf files. That or how to calculate the Lat and Long of the Cell boundaries for any given location.I'm making Photorealistic Scenery for FS2004 for the Greater Townsville Area (North Queensland, Australia), and like most newbies I'm getting water around my scenery where my textures don't quite meet the LOD boundaries.I noticed that the niagara scenery has a [Destination] section with some calculations for where the resample.exe should crop the scenery tiles at the LOD boundaries to help fix this, but I don't know where they plucked the U and V values from that they use in the calculations the top of the file. More importantly I need to know where to get the values for around Townsville from, or how to calculate these values and/or the Lat and Long of the boundaries of the LOD grid inside the extents of my ever increasing scenery source texture bitmap.I've flown around Niagara and used TDFCalc2004 to see if it would give me any clues, but nothing looked similar.I'm using Cellgrid 2004 to visualise the LOD grid in the sim, but the lines are quite thick making them rather imprecise for stitching sceneries together (where I'll need a 1 pixel wide line).----------------------------------------------------------------The niagara.inf file for seasions has the following at the top:......; The ids of the LOD13 quadtree cells inside the corners of the scenery ; area are:; Northwest: U=6889 V=4269 ** Where do these numbers come from? **; Southeast: U=6891 V=4272 ** Where do these numbers come from? **; 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; The south and east bounds in the [Destination] section below are moved ; in slightly from the exact bounds of the scenery area to prevent the ; resampler from including extra cells in the output.[Destination] DestDir = "." DestBaseFileName = "NiagaraWithSeasons" BuildSeasons = 1 UseSourceDimensions = 0 NorthLat = 43.099365234375000 SouthLat = 43.0554199218751 WestLon = -79.086914062500000 EastLon = -79.042968751.........----------------------------------------------------------------

##### Share on other sites
 Help AVSIM continue to serve you!Please donate today!

Hi bungo.You might try this:http://webpages.charter.net/ludowr/PhotoCalc.zipPhotocalc is a beta that was made to give you the bounds for both the FS2000 resample and the FS2004 resample, as well as the suggested download ( image ) extents.Dick

##### Share on other sites

At a glance, that may just be what I was after.I'll check it out further.ThanksBraedon.

##### Share on other sites

Keep us posted on how you are doing with this. are you going to relese this when done? have you got any screen shots you would like to post? ThanksFieldsy

## Create an account or sign in to comment

You need to be a member in order to leave a comment

## Create an account

Sign up for a new account in our community. It's easy!

Register a new account

• Tom Allensworth,
Founder of AVSIM Online

• ### Hot Spots

• Flight Simulation's Premier Resource!

AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!