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

3D gauges?

Messages
1
Country
unitedstates
Hi,

I am a long time xplane developer, dealing primarily with complex avionics implementations and specifically 2d rendering on gauges of 3d gauge data (for example, a glass gauge showing a 3d movable representation of the aircraft exterior). I’ve used OpenGL along with shaders to accomplish this in xplane.

I am experimenting with implementing a similar idea - a cockpit gauge which shows a 3d rendered scene. Read through the SDK docs (which I understand are still very premature), but already confusion arises regarding certain elements. I am not sure whether my confusion is due to the infancy of the MSFS2020 SDK and it’s documentation, or my lack of experience in MSFS development in general.

I can see that the nanovg library is available, allowing me to draw in 2d. How would one go about doing 3d rendering (into a bitmap, for example)?

Technically, this is also possible with webgl/ other html5 technologies but i am struggling to understand what is available to you as a developer writing code in c++ or js which gets compiled to a web assembly module.

Thanks!
 

Vitus

Resource contributor
Messages
1,480
Country
newzealand
The way this is done is by using the behavior .xml file of the model to either define your own animation templates, or use the default ones that come with the sim. Unfortunately, the animation templates are not at all explained in the SDK yet, so we're all still in the figuring-out-process of that journey. It is definitely possible but will take some digging.
 
Messages
392
Country
australia
I am experimenting with implementing a similar idea - a cockpit gauge which shows a 3d rendered scene. Read through the SDK docs (which I understand are still very premature), but already confusion arises regarding certain elements. I am not sure whether my confusion is due to the infancy of the MSFS2020 SDK and it’s documentation, or my lack of experience in MSFS development in general.
That might be possible later, but in the current state of the SDK I do not believe it's possible as you would need to use WebAssembly and that is still going through development.
 
Top