• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

QMID, Lod values (xdim and ydim)

Messages
68
Country
unitedstates
Hi everyone! Still busy here. Anyways, I have a question regarding the XDIM and YDIM values. I know that you'll use either the Block size or the one pixel stuff values. My problem is that given a bitmap or whatever, how do you know what the XDIM and YDIM values are? Is there any way to calculate it by hand? (I love math so....:D)

Thanks for replies, project is going good. No eta or screenshots yet! sorry
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Hi,

Normally you would know the resolution of your bitmap, is that not the case in your case? From that you can then determine all the needed information.
 
Messages
68
Country
unitedstates
Yeah. I have the dimensions. Let's say I have an aerial image of 3168x7489 pixels. Width is 3168, Height is 7489. So x is the width and y is the height, right? If I wanted the bitmap to show at . . . let's say LOD 20, how do you calculate that? Multiply or divide something?
 

HolgerSandmann

Resource contributor
Messages
392
Country
ca-britishcolumbia
Hi there,

if you have the NW (X1,Y1) and SE (X2,Y2) corner coordinates you can determine xdim and ydim as follows:

xdim = (X2-X1)/bitmap columns
ydim = (Y2-Y1)/bitmap rows

If either value is negative just discard the sign.


The coordinates need to be in decimal degrees. If yours are in degrees and decimal minutes (the standard FSX display) then you need to convert them first: divide the decimal minutes part by 60 and add that as the fractional part to the degrees value.

Cheers, Holger
 
Messages
68
Country
unitedstates
Oh, so it's like finding slopes!! Ok, got it now. Converting the coordinates is easy so. . . thanks!! :cool: I'll try that.
 
Top