Difference between revisions of "Blender2P3D/FSX"

From FSDeveloper Wiki
Jump to: navigation, search
(Created page with "{{ambox | type = content | imageleft = 40px | imageright = 40px | style = width: 100%; color: black; font-weight: bold...")
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
| imageright = [[Image:Broom icon.jpg|40px]]
 
| imageright = [[Image:Broom icon.jpg|40px]]
 
| style = width: 100%; color: black; font-weight: bold; background:#EFFFB0; font-style: italic
 
| style = width: 100%; color: black; font-weight: bold; background:#EFFFB0; font-style: italic
| text  = <small>This guide is current work-in-progress, please stay tuned for more content. [[User:Vitus|Vitus]] ([[User talk:Vitus|talk]])</small>
+
| text  = <small>This guide is current work-in-progress, please stay tuned for more content.[[User:Vitus|Vitus]] ([[User talk:Vitus|talk]])</small>
 +
}}
 +
{{ambox
 +
| type  = content
 +
| imageleft = [[Image:40px-Emblem-Info.png|40px]]
 +
| imageright = [[Image:Broom icon.jpg|40px]]
 +
| style = width: 100%; color: black; font-weight: bold; background:#EFFFB0; font-style: italic
 +
| text  = <small>The current version of the Blender2P3D/FSX addon is 0.97. Please note that this addon is still in a testing stage and is subject to change. Use it at your own discretion.[[User:Vitus|Vitus]] ([[User talk:Vitus|talk]])</small>
 
}}
 
}}
  
Line 39: Line 46:
  
 
== Setup ==
 
== Setup ==
tbc...
+
<gallery>
 +
Image:blender2p3dfsx_setup1.jpg
 +
Image:blender2p3dfsx_setup2.jpg
 +
Image:blender2p3dfsx_setup3.jpg
 +
Image:blender2p3dfsx_setup4.jpg
 +
</gallery>
 +
After downloading the addon, open Blender 2.8x and open the Preferences (Edit->Preferences). Navigate to the "Add-ons" tab and click on "Install...".
 +
In the file manager, navigate to the Blender2P3DFSX.zip file, select it and click on "Install Add-on". This will extract the content of the zip file to your Blender script folder (by default under: %APPDATA%\Blender Foundation\Blender\<version number>\scripts\addons). Next, you need to activate the addon by clicking on the check-mark next to "3DView: P3D/FSX Toolset". That should enable the addon and the various panels and properties. Close the Preferences window.
 +
 
 +
To ensure that the addon was correctly installed, press "N" on your keyboard while the mouse pointer is in one of the main viewports. This should open the main panels of the addon under the tab named "P3D/FSX".
  
 
= Using the Tools =
 
= Using the Tools =
Line 88: Line 104:
 
Special thanks go to [https://www.fsdeveloper.com/forum/members/arno.1/ Arno Gerretsen] and [https://www.fsdeveloper.com/forum/members/spotlope.39/ Bill Womack] for their input during the development and testing of the addon.
 
Special thanks go to [https://www.fsdeveloper.com/forum/members/arno.1/ Arno Gerretsen] and [https://www.fsdeveloper.com/forum/members/spotlope.39/ Bill Womack] for their input during the development and testing of the addon.
  
The software is licensed under [http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License (GNU-GPL-3)]. Feel free to use it as you see fit, both for freeware and commercial projects. If you have suggestions for changes, use the support thread in the forum. If you would like to get involved in the development, contact any of the authors mentioned above to coordinate the effort.
+
The software is licensed under [http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License (GNU-GPL-3)]. Feel free to use it as you see fit, both for freeware and commercial projects. If you have suggestions for changes, use the support thread in the forum. If you would like to get involved in the development of the addon, contact any of the authors mentioned above to coordinate the effort.
  
  

Revision as of 15:49, 26 March 2020





The Blender2P3D/FSX toolset is an addon for Blender. This addon is a continuation of the Blender2FSX Toolset manual and it incorporates compatibility with the latest API for Blender version 2.8x and above. The new toolset also features full support of PBR materials for Lockheed Martin's Prepar3D v4.4 and above, as well as some changes to the interface and file structure of the addon. This wiki will help you install and use the new toolset.

Installation

Requirements

  • Windows 10 or 8.x
  • Microsoft Flight Simulator X SDK including updates to SP2 or Acceleration or
  • Lockheed Martin Prepar3D SDK v2.x, v3.x, & v4.x

Setup

After downloading the addon, open Blender 2.8x and open the Preferences (Edit->Preferences). Navigate to the "Add-ons" tab and click on "Install...". In the file manager, navigate to the Blender2P3DFSX.zip file, select it and click on "Install Add-on". This will extract the content of the zip file to your Blender script folder (by default under: %APPDATA%\Blender Foundation\Blender\<version number>\scripts\addons). Next, you need to activate the addon by clicking on the check-mark next to "3DView: P3D/FSX Toolset". That should enable the addon and the various panels and properties. Close the Preferences window.

To ensure that the addon was correctly installed, press "N" on your keyboard while the mouse pointer is in one of the main viewports. This should open the main panels of the addon under the tab named "P3D/FSX".

Using the Tools

Overview

Once installed, the Blender2P3D/FSX toolset will append the list of toolkit panels in your viewport. Press "N" to open or close the list of tools. There will be a new entry named "P3D/FSX", which gives access to the tools of this addon. The different tools are organized in different panels, which are grouped by function. The addon adds object properties to the scene. These properties are for instance the references to the various SDKs you can utilize or object properties like attached animations or scenery properties. Furthermore, the addon will append the material parameters by P3D or FSX specific parameters. Lastly, the addon extends the exporter capabilities and allows you to export your scene to an x-file format and from there calls XToMdl.exe to generate a Prapar3D/Flight Simulator X compatible 3d model.

Setting up your scene

tbc...

Scenery properties

tbc...

Animations

tbc...

Attachpoints

tbc...

Material parameters

The P3D/FSX Blender toolset will extend the material properties to include flight simulator specific parameters. Make sure to carefully go through the list of properties to make sure that your material is ready for export. The most fundamental parameter is the main material mode. You can choose between "PBR Material", "Specular Material" and "Disabled". Note that any material with the mode being set to "disabled" will be skipped during the export process. Also note that the PBR material is only available for models used in Prepar3D version 4.4 or higher. Therefore, if you are preparing a model for FSX or older versions of Prepar3d, make sure to have the material mode set to Specular.

The P3D/FSX Blender toolset is making use of Blender's shader graph and as a result it is important that your materials comply with the conventions of the addon's exporter. Whenever you change between different material modes, a script will automatically replace the current shader graph with one that is compatible with the chosen material mode. This means that currently you will have to re-assign all textures every time you change the material mode!

PBR Material mode

When you switch to the PBR Material mode, the shader graph will be populated with a "BSDF Principled" node and a number of nodes that are linked up with the principled's input sockets. You can revise the material at any point by removing nodes or links. You can also add logic blocks between existing links and observe the effects in the viewport. Keep in mind however, that those type of changes will have no effect on the model when you export it to Prepar3D.

Specular Material mode

Environment/Reflection map

Oppose to P3D, Blender is using a global reflection map in conjunction with reflective materials. Depending on your requirements, it might be necessary for you to utilize different reflection maps for different materials. To accommodate this, you can link any reflection map to any material, using the Parameter "Reflection map" under the P3D/FSX material properties. However, any change to the file or file-path will not change anything about how reflections are presented in Blender. If you would like to get an idea of how your reflection map works with your other material settings, you can manually change Blender's global reflection map. To do so, open the "World Properties" and under "Surface->Color", select "Environment Texture" as a new source for the world reflection map and navigate to your texture. Don't forget to change the render mode to "Viewport Shading". Please note that changes to the world properties won't be taken into account when exporting your model to .X or .MDL.


Exporting to .X/.MDL

tbc...

Credits and license

The addon in its current version is the hard work of many members of the fsdeveloper.com forum. The original FSX2Blender addon was developed by: Felix Owono-Ateba, Ron Haertel, Kris Pyatt (2017) and Manochvarma Raman (2018) This current incarnation of the addon uses most of the original algorithms, but with an updated UI and compatibility for Blender 2.8x. Parts of the original exporter script have been re-written to accommodate Blender's new material workflow and to add PBR support to the addon (P3D v4.4+ only). This work was done 2019/2020 by Otmar Nitsche.

Special thanks go to Arno Gerretsen and Bill Womack for their input during the development and testing of the addon.

The software is licensed under GNU General Public License (GNU-GPL-3). Feel free to use it as you see fit, both for freeware and commercial projects. If you have suggestions for changes, use the support thread in the forum. If you would like to get involved in the development of the addon, contact any of the authors mentioned above to coordinate the effort.