• 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.

Text-labels in FSX

Messages
51
Country
denmark
The program FSDiscover from Flight1 provides FSX with small textlabels over different POI (Points Of Interest). These points (= locations) is created via the program and saved in a simple textfile where each line has the name of location, latitude and longitude.
I would like to create a program which makes FSX show text-labels from a list of small towns in my danish scenery.
I guess I have to explore the FSX SDK and maybee the SimConnect part of it. But I do not know much about this and wonder if somebody could give me a hint about where to look??

/Lars :)
 
Hi Lars,

I never did this myself but here are a few tracks that you might try. You will need C++ or C# programming.

You can create a transparent gauge that covers all the screen and write strings where you want.

You will find an example here:
http://archive.msdn.microsoft.com/ES...ReleaseId=1640

That was the easy part. What is difficult, IMO, is to compute where the label must be displayed.

First you must know the position and axis of the camera. I am not sure SimConnect provides that sort of data. If you limit the gauge to the 2D cockpit, the camera will be in the position and axis of the plane. And this information is available from SimConnect. You will also need the zoom factor.

Then you will have to do the computation in order to determine the position on the screen where the label must be displayed. If you love Maths and trigonometry, you are going to have a great time !

Alternatively, here is a dirty but much simpler method to do it : create an AI
non ATC Aircraft using SimConnect. Place this aircraft at an altitude of 2000 ft over the place you want to label. Using the freeze options you can make the aircraft fixed. Give to this plane the name of the place and FSX will display it for you. You can create an aircraft model that is invisible ... and it is done.

Patrick.
 
Back
Top