Fixed compile error when folder already exists
Fixed issue with previous merge request that resulted in compile error in certain cases.
Resolve "Normals not shown in preview"
Added mention in manual that normal visualisation shader might not work on some hardware. Also clean up shader initialisation code.
Closes #6801
Affected tools/features: ModelConverterX, Severity::bug, visualisation
Resolve: "Development release check"
Fixed bug that it was not detected correctly if a build is a development release or not when checking for updates. Also made sure the development release is shown in the title bar when it is a development release build.
Affected tools/features: ModelConverterX, Severity::bug
Resolve "Use X-Plane light name on export to X-Plane OBJ"
Updated hierarchy editor to be able to search for lights better (search for X-Plane name) and also so more details about lights.
Closes #6782
Affected tools/features: ModelConverterX, Severity::feature-request, writer
Resolve "Use X-Plane light name on export to X-Plane OBJ"
Improved writing of lights to X-Plane OBJ files. Before all lights point lights were exported with the name specified on the export file dialog, but now if the XPlaneName attribute of the light is set that name will be used as light type. Also added mapping from FS effect files to X-Plane light names. This can be found in the light_mapping.ini file.
Closes #6782
Affected tools/features: ModelConverterX, Severity::feature-request, writer
Resolve "model not shown in preview"
Fixed bug that when loading an object with only an internal representation that the preview control would initially activate the external representation and thus an empty screen is shown.
Closes #6803
Affected tools/features: ModelConverterX, Severity::bug
Resolve "not all GPW settings loaded"
Fixed bug that not all settings from a loaded GPW MGP settings file were stored correctly when the case of the material name differed between the model and the MPG file. Comparison is now done non case sensitive.
Closes #6804
Affected tools/features: ModelConverterX, Severity::bug, editor
Resolve "DirectX download link broken"
Updated download link that is used to download DirectX 9.0c when it is detected that this version is missing. The link used before was broken.
Closes #6802
Affected tools/features: ModelConverterX, Severity::bug
Resolve "Last location not remembered in all editors"
Made sure that the location control used in the for example the ground polygon wizard and the convert and place object wizard is initialized with the last used coordinates instead of always zero.
Closes #6800
Affected tools/features: ModelConverterX, Severity::bug, UI
Resolve "Support additional X-Plane commands"
Added support to X-Plane OBJ reader to read ANIM_hide/ANIM_shpw commands as visibility conditions. There is no mapping between X-Plane and FS variable names, the users has to convert the visibility condition code manually if conversion if needed.
Closes #6760
Affected tools/features: ModelConverterX, Severity::feature-request, reader
Resolve "Cleanup code smell"
Removed various code smells from the source code.
Closes #6797
Affected tools/features: ModelConverterX, scenProc
Resolve "Option to remove all visibility conditions"
Added option to the object writer to remove all mouse rectangles and/or visibility conditions from the object before exporting it. This option can be activated for any format in the export object dialog. This can be useful if you want to export an object as scenery that contains mouse rectangles or visibility conditions.
Closes #6799
Affected tools/features: ModelConverterX, Severity::feature-request, writer
Resolve "Cleanup compiler warnings"
Made sure the source code compiles without warnings.
Affected tools/features: ModelConverterX, scenProc
Resolve "Animated parts exported wrong"
Fixed bug that removing a LOD from an object that cause export issues with animations in other LODs. This did happen when modelparts of different LODs are nested.
Closes #6798
Affected tools/features: ModelConverterX, Severity::bug, writer
Resolve "Calculate light direction from point"
Added functionality to place and update attached objects with the mouse in the preview directly. It is possible to place effects and lights and to update the position and orientation of attached effects.
Closes #6373
Closes #745
Affected tools/features: ModelConverterX, Severity::feature-request, editor
Resolve "SketchUp GLB imports upside down"
Added option to the glTF/glb reader that specifies which coordinate system is used. The default value is right handed Y upwards, but it is possible to specify another value. For example for SketchUp GLB models that seem to use a left handed Y downwards coordinate system.
Closes #6792
Affected tools/features: ModelConverterX, Severity::bug, reader
Resolve "PBR settings in X-Plane OBJ"
Added material conversion profile for X-Plane PBR materials so that P3D and MSFS PBR textures can be converted to X-Plane PBR textures.
Also added support for TEXTURE_MAP command and fixed issue with DDS texture flipping for X-Plane OBJ files.
Closes #4531
Affected tools/features: ModelConverterX, Severity::feature-request
Resolve "Material conversion for MSFS optimized materials"
Added material profile for package MSFS objects, to allow conversion back to MSFS source material profile or other profiles.
Closes #5770
Affected tools/features: ModelConverterX, Severity::feature-request, editor
Resolve "Refactor material conversion"
Refactor material converter logic to be more generic, so that translation of materials between different simulators can be defined in a material profile, instead of having all conversions hard coded.
Closes #6709
Affected tools/features: ModelConverterX, Severity::feature-request, editor
Resolve "Export OpenFlight with relative texture names"
Fixed issue that OpenFlight writer would remove the backslashes from relative texture paths and replace them by an underscore. Now objects with relative texture names are exported correctly.
Closes #6796
Affected tools/features: ModelConverterX, Severity::bug, writer
Resolve "Support BC7 compressed textures"
Added support to read BC7 compressed textures from KTX2 files.
Closes #6780
Affected tools/features: ModelConverterX, Severity::feature-request, reader
Resolve "cockpit_detail variable range should include -1"
Modified default value of cockpit_detail variable from 0 to 65535 to ensure that CFS2 aircraft by default load with full detail in the VC. Also fixed issue that tooltip did not show for all variables in the user specified variable form on importing SCASM and older aircraft MDL files.
Closes #6785
Affected tools/features: ModelConverterX, Severity::bug, reader
Resolve "Allow renaming and converting of textures without saving the files"
Allow changing texture format in the material editor without having to save the textures to disk directly. Using the old "Save textures" button it is still possible to change the format and save directly as well.
Closes #5637
Affected tools/features: ModelConverterX, Severity::feature-request, UI
Resolve "Allow texture manipulation from material editor"
Added additional texture manipulations to the material editor texture context menu and the texture converter form. These manipulations are horizontal flip, rotate clockwise and rotate counter clockwise.
Closes #1084
Affected tools/features: ModelConverterX, Severity::feature-request
Resolve "Textures of MSFS objects flipped"
Fixed bug that when MSFS SimObject that has been run through the fspackagetool was loaded the DDS textures were vertically flipped.
Closes #6777
Affected tools/features: ModelConverterX, Severity::bug, reader
Resolve "Unsupported vkFormat 91"
Added support for reading vkFormat 91 from KTX2 textures (16 bit uncompressed data). In ModelConverterX the texture are internally store with 8 bit data, since ModelConverterX only supports that representation of the textures. So the additional details of the texture will not be shown in ModelConverterX.
Closes #6795
Affected tools/features: ModelConverterX, Severity::bug, reader
Resolve "Automatic texture conversion on export"
Added function to write textures to disk while exporting an object or scenery. With the "write textures" option in the file save dialog this function can be enabled. Additional settings allow setting options like the texture format, size requirement and output folder.
Closes #628
Affected tools/features: ModelConverterX, Severity::feature-request
Resolve: "Error opening manual"
Fix bug that pressing button to open manual gives an error.
Affected tools/features: ModelConverterX, Severity::bug, scenProc
Resolve "Support MSFS livery packages"
Support reading of MSFS library packages. Made sure that the MSFS virtual file system is represented in ModelConverterX, so that relative references made in texture.cfg files work correctly.
Note: for this change the default texture search path has been modified. So it is recommended to revert your settings to the default search path.
Closes #5641
Affected tools/features: ModelConverterX, Severity::feature-request, reader, visualisation
Resolve "Import MSFS scenery package"
Added reader to import MSFS dev project XML file into ModelConverterX. This will read the assets specified into the project into the tool (e.g. SimObject, BGL or ModelLib).
Closes #6786
Affected tools/features: ModelConverterX, Severity::feature-request, reader
Resolve "Batch converter format selection bug"
Fixed bug that file format selection in batch converter form did not result in exporting of objects or scenery using that format.
Note: internally ModelConverterX stores the format selection differently now, which means that previously saved batch converter configurations (MBC files) will not work correctly anymore. You will need to load them in the batch converter, set the format to the right value again and then save them.
Closes #6794
Affected tools/features: ModelConverterX, Severity::bug, editor
Resolve "P3D PBR export does not work"
Fixed bug that when exporting a scenery the wrong writer was selected (offset from the selected format).
Closes #6793
Affected tools/features: ModelConverterX, Severity::bug, writer
Fixed crash with force simple shader
Fixed exception in the 3D preview code with force simple shader enabled.
Affected tools/features: ModelConverterX, Severity::crash, visualisation
Improved default settings for FS2004 SDK
Better default values for the FS2004 BGLComp and MakeMDL tool to match the default installation path of the FS2004 SDK.
Affected tools/features: ModelConverterX, writer
Resolve: "Crash when pressing import"
Fixed crash on pressing import with certain last selected format values from previous ModelConverterX version.
Affected tools/features: ModelConverterX, Severity::crash
Resolve "Warning on packing MCX generated glTF file"
Made sure ASOBO_normal_map_convention attribute is written to glTF file to reduce the number of warnings in the fspackagetool. Also write copyright attribute when author name or company is set in the options.
Closes #6779
Affected tools/features: ModelConverterX, Severity::bug, writer
Resolve "Comp texture does not work in MSFS"
Fixed bug that comp texture in MSFS glTF file did not work correctly because of incorrect nesting of the occlusionTexture attribute of the material.
Closes #6789
Affected tools/features: ModelConverterX, Severity::bug, writer
Resolve "Show animation changes directly like transformations"
When editing animation keys in the animation key editor make sure that the 3D preview of ModelConverterX is updated automatically after each change to the keys to make editing easier.
Closes #6791
Affected tools/features: ModelConverterX, Severity::feature-request, editor
Resolve "Animation key editor first key values ignored"
Fixed issue that values of first key were always set to zero when opening animation key editor.
Closes #6790
Affected tools/features: ModelConverterX, Severity::bug, editor
Pipeline improvements
Improvements to the build and test pipeline to prevent the merge issue encountered with the previous merge.
Resolve: "Fixed compile issues after merge"
Fixed compile issues after last merge into master.
Resolve "Options in dialogs"
Moved options closer to where they are used (import and export file dialog). Also added new forms for remaining general options and preview options.
Closes #550
Affected tools/features: ModelConverterX, Severity::feature-request
Resolve "MSFS 2020 requires occlusionTexture entry with PBR comp texture"
Fixed issue that comp texture was not written in glTF file as occlusionTexture and therefore the package tool gave an error. Also made sure that the extraOcclusionTexture extension is written and read correctly.
Closes #6787
Affected tools/features: ModelConverterX, Severity::bug, writer
Resolve "System.FormatException: FsVariableInfo"
Fixed crash when initialising FsVariableInfo on computers that do not have the dot as decimal character.
Closes #6745
Affected tools/features: ModelConverterX, Severity::crash