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

P3D v3 - UISettings.xml, Scaleform and Texture/Effects plugin

Messages
1,350
Country
canada
Does anyone have any experience with these topics? Do these topics allow one to add their own UI elements to P3D v3?
 
Not sure about the other two, but Scaleform is used to import Flash/Actionscript designed gauges and instruments into P3D. I have lots of experience in Flash/Actionscript and I'm looking forward trying it out!
 
I have this little thingy under my right clicker that says "Search Google for X," X being whatever text is highlighted. Works with images too.

User Interface Configuration
Prepar3D now supports the native ability to remember an ever expanding amount of user interface preferences which were previously predetermined for the user. These settings allow the user interface to more accurately reflect how Prepar3D is being used in custom training environments. By default, the user interface preferences are handled behind the scenes and Prepar3D will remember the last known state of particular settings. These settings are exposed for more advanced users to edit manually.
The user interface configuration file is named UISettings.xml and is located in your %APPDATA%\Lockheed Martin\Prepar3D v2 directory. As a reminder, editing this file is an advanced task and if it is done incorrectly the file will as a consequence not load. For more technical information on the ins and outs of the file format please review Microsoft's Data Contract Serialization Reference MSDN article.


Prepar3D integrates with Autodesk Scaleform to enable developers to leverage the power of the Adobe Flash tool set to create powerful and interactive content for Prepar3D. There are various different types of content that can be created with using Adobe Flash and Autodesk Scaleform such as:
Scenario Content: Adobe Flash can prove useful as a powerful presentation technology when delivering interactive instructional content or displaying rich media content. SimDirector now allows scenario creators to play Adobe Flash content in both screen space and world space using Autodesk Scaleform.
Panels And Gauges Content: Creating gauges using Adobe Flash content instead of traditional methods (XML, C++, DirectX) is now possible.
Theme Existing User Interface Content: Prepar3D ships with the original flash source files, in the Scaleform SDK, for UI components that are integrated using Autodesk Scaleform. This allows developers to design their own version of the Application Menu, Context Menu, ATC, or InfoGen.




The Custom Texture and Effect Sample is a simple implementation of the new Prepar3D Custom Texture and Effect plug-in capabilities.

The source code for the sample can be found at:

<Prepar3D SDK Path>\Utilities\PDK\TextureandEffectPluginSamples
Custom texture placed in a panel in the Mooney Bravo Glass Cockpit
dx_gauge.jpg


Custom effect sample over Mooney Bravo glass cockpit view
dx_effect.jpg


About the Custom Texture and Effect Sample
Prepar3D v1 had a featured called DirectX Gauge which allowed for C++ gauges to render into a panel texture using DirectX 9. DirectX gauges have been deprecated for Prepar3D v2, but similar capabilities are supported via the new Texture and Effect plug-ins. Now, DirectX 11 rendering into a texture or onto the output of 3D view in Prepar3D is possible. This sample illustrates how these two plug-ins work and how Texture plug-ins can be used in combination with programmable gauges to achieve hardware accelerated rendering of gauge textures. The advantage of separating the Texture and Gauge system is that the plug-in can be a stand-alone add-on. This method provides a texture that artist can reference from any model or as a scriptable element in XML gauges.
 
Back
Top