Changes in the ASToFra tools in the last 90 days

MR [ 378 ] - 2024-04-13 06:20:38.523000
Resolve "Unable to cast object of type 'System.Object[]' to type 'System.IConvertible'."
Made glTF reader more robust for invalid input for indices (in that case part is ignored). Closes #6601
Affected tools/features: ModelConverterX, Severity::crash, reader

MR [ 377 ] - 2024-04-13 05:55:21.981000
Resolve "Index was out of range. Must be non-negative and less than the size of the collection.\Parameter name: index"
Fixed crash when trying to export a scenery without models as ground polygon BGL. Closes #6597
Affected tools/features: ModelConverterX, Severity::crash

MR [ 376 ] - 2024-04-12 21:27:20.823000
Resolve "Index was outside the bounds of the array."
Fixed issue when reading Wavefront OBJ file where first part has no material set. Closes #6603
Affected tools/features: ModelConverterX, Severity::crash, reader

MR [ 375 ] - 2024-04-09 20:23:21.584000
Resolve: "BGL stats reader and MSFS"
Update BGL and MDL stats readers to support MSFS files as well. Only name and guid are read from those. Closes #6618
Affected tools/features: Samples, Severity::bug

MR [ 374 ] - 2024-04-07 06:57:10.811000
Resolve: "Pilot missing"
Improved detection of alpha settings when loading FS2004 models by checking the alpha channel for the segment of the texture that is mapped. This helps to reduce drawing order issues when converting from FS2004 to FSX. Closes #6445
Affected tools/features: ModelConverterX, Severity::bug, reader

MR [ 373 ] - 2024-04-05 21:26:02.670000
Resolve "glTF node naming"
Modified naming of nodes for visibility conditions and mouse rectahgles to make it easier to assign the correct behaviour in the XML file. Closes #6584
Affected tools/features: ModelConverterX, Severity::feature-request, writer

MR [ 372 ] - 2024-04-01 20:41:42.469000
Resolve: "No shadow"
Use source/destination blend when setting diffuse alpha value (for drawing order) to prevent issues of shadow disappearing. Closes #6480
Affected tools/features: ModelConverterX, Severity::bug, writer

MR [ 371 ] - 2024-04-01 07:07:29.060000
Resolve: "Glass no longer reflecting in preview"
Make sure that correct environment map is loaded when loading a model from FS2004. Closes #6579
Affected tools/features: ModelConverterX, Severity::bug, visualisation

MR [ 370 ] - 2024-03-31 08:53:32.157000
Resolve "Issues converting FSX aircraft to FS2004"
Fixed issue that animations could be dropped due to a bug in the function that checks if they are empty animations. Closes #6581 Made sure makemdl.parts.xml does not contain AND or OR since that does not work in sim. Replace them by && and ||. Closes #6502
Affected tools/features: ModelConverterX, Severity::bug, writer

MR [ 369 ] - 2024-03-31 08:11:11.267000
Resolve "glTF node naming"
Reflect visibility condition and mouse rectangle names in the glTF node names as well. Closes #6584
Affected tools/features: ModelConverterX, Severity::feature-request, writer

MR [ 368 ] - 2024-03-30 09:48:09.646000
Resolve: "Propellor rotates around wrong axis"
Fixed issue that attached lights could be lost on import because visibility condition was not checked. Fixed offset issue in animation added for part with automatic visibility condition when the part was under an animated parent. Made some optimizations to FS2004 X file export as well. Closes #6478 Closes #6574
Affected tools/features: ModelConverterX, writer

MR [ 367 ] - 2024-03-30 07:03:28.884000
Resolve "Index was outside the bounds of the array."
Fixed index out of bounds issue in Wavefront OBJ reading when model contained parts with only lines. Closes #6577
Affected tools/features: ModelConverterX, Severity::crash, reader

MR [ 366 ] - 2024-03-30 06:36:03.982000
Resolve "P3D v6.1 PBR flags"
Update ModelConverterX to support the additional material attributes for P3D v6 PBR materials. This includes the emissive color, precipitation propertiies and texture. Also vertex colors are now supported for P3D v6 MDL files. Closes #6405
Affected tools/features: ModelConverterX, Severity::feature-request, reader, writer

MR [ 365 ] - 2024-03-24 06:46:25.513000
Resolve: "Propoellor rotates around wrong axis"
Added animation for parts that only have a visibility condition that matches an automatic animation name, else they might rotate around the wrong axis. Closes #6478
Affected tools/features: ModelConverterX, Resolution::not a bug, writer

MR [ 364 ] - 2024-03-23 17:41:27.550000
Added event log output to ProcessElevationRaster step

Affected tools/features: editor, scenProc

MR [ 363 ] - 2024-03-23 07:04:10.847000
Resolve "Exception when loading model with hierarchy editor"
Fixed crash in hierarchy editor on mouse move when new model is loading Closes #6551
Affected tools/features: ModelConverterX, Severity::crash, editor

MR [ 362 ] - 2024-03-22 23:43:50.643000
Resolve "Cannot convert null to 'int' because it is a non-nullable value type"
Made glTF reader more robust for invalid texture index definitions. Closes #6546
Affected tools/features: ModelConverterX, Severity::crash, reader

MR [ 361 ] - 2024-03-22 23:17:22.674000
Resolve "Object reference not set to an instance of an object."
Fixed crash when trying to export an object without representations present Closes #6569
Affected tools/features: ModelConverterX, Severity::crash, writer

MR [ 360 ] - 2024-03-22 22:37:14.033000
Resolve "Index out of range"
Fixed bug that invalid geometry was added when reading parts from Wavefront OBJ when material could not be found. Closes #6571
Affected tools/features: ModelConverterX, Severity::crash, reader

MR [ 359 ] - 2024-03-22 21:56:54.510000
Resolve: Unexpected image type exception
Replace exception on from image type in DetectFeatures step by warning in event log and skip the image in that case. Closes #6573
Affected tools/features: Severity::crash, scenProc

MR [ 358 ] - 2024-03-22 20:14:08.153000
Resolve: glTF night material setting lost on export-import
Fixed issue with reading DayNightSwitch attribute from MSFS material, the value was always read as true. Closes #6568
Affected tools/features: ModelConverterX, Severity::bug, reader, writer

MR [ 357 ] - 2024-03-08 23:20:27.030000
Fixed issue with automatic animation direction
Fixed issue that automatic animation direction was not correct when rotation axis and desired rotation axis were opposite. #6555
Affected tools/features: ModelConverterX, Resolution::not a bug, writer

MR [ 356 ] - 2024-03-09 07:06:08.621000
Resolve: "Model loads without textures"
Fixed bug that textures were not loaded because the model.cfg file was not found with certain relative folder names. Closes #6561
Affected tools/features: ModelConverterX, Severity::bug, visualisation

MR [ 355 ] - 2024-03-05 10:54:17.004000
Resolve "Calculate slope of elevation data"
Added step to calculate derived data, like slope, from elevation raster data. Closes #6350
Affected tools/features: Severity::feature-request, scenProc

MR [ 354 ] - 2024-02-18 07:28:07.544000
Progress: "AI model not converted right"
Improved how visibility conditions are processed so that they work correctly for more (AI) aircraft models. Closes #6455
Affected tools/features: ModelConverterX, Severity::bug, reader

MR [ 353 ] - 2024-02-18 05:47:54.092000
ATTO section length
Fixed bug in MDL reader that could cause too many bytes to be read in the ATTO section.
Affected tools/features: ModelConverterX, Severity::bug, reader

MR [ 352 ] - 2024-02-17 22:28:03.102000
Resolve "Livery does not load"
Fixed issue that livery was not always read correctly when loading aircraft MDL file. When a model uses a nested model file with subfolders, the location of the model.cfg file was not determined correctly. Closes #6538
Affected tools/features: ModelConverterX, Severity::bug, reader

MR [ 351 ] - 2024-02-17 07:14:26.127000
Resolve: "Object reference not set to an instance of an object"
Made SCASM reader robust for reading polygon with MoveTo/DrawTo commands when no color or texture has been set yet. Closes #6536
Affected tools/features: ModelConverterX, Severity::crash

MR [ 350 ] - 2024-02-16 22:16:10.847000
Resolve: "Add new attached object selection issue"
Fixed issue that when adding new attached object in the attached object editor, the first object in the list is always selected as well. Closes #6534
Affected tools/features: ModelConverterX, Severity::bug, UI, editor

MR [ 349 ] - 2024-02-16 21:51:13.394000
Resolve: "Texture does not load"
Fixed issue that texture could not be loaded by incorrectly calculated number of mipmaps. Closes #6533
Affected tools/features: ModelConverterX, Severity::bug, reader

MR [ 348 ] - 2024-02-15 21:00:08.934000
Resolve: "Error loading MDL"
Fixed crash in preview when loading new object while attached object editor is open (now really fixed, one condition was missed in the previous fix). Closes #6528
Affected tools/features: ModelConverterX, Severity::bug, visualisation

MR [ 347 ] - 2024-02-15 06:30:28.295000
Resolve: "Error loading mdl"
Fixed crashes in preview when an editor with the option to highlight nodes was open when loading a new object file. Closes #6528
Affected tools/features: ModelConverterX, Severity::bug, visualisation

MR [ 346 ] - 2024-02-14 21:24:00.026000
Resolve: "Issue with NewObjectKeepView"
Fixed issue with ObjectChangeLevel NewObjectKeepView. When this level was used without having used NewObject at least once the preview was not shown correctly.
Affected tools/features: Samples, visualisation

MR [ 345 ] - 2024-02-12 21:38:54.795000
Resolve: "Animated parts with wrong scale"
Fixed issue that removing node scaling could result in invalid rotation animation keys. Closes #6527
Affected tools/features: ModelConverterX, Severity::bug, reader

MR [ 344 ] - 2024-02-11 12:11:54.796000
Resolve: "Object reference is not instance of object"
Fixed crash when using ShadedTexPoly command when no texture is set in SCASM reader. Closes #6509
Affected tools/features: ModelConverterX, Severity::crash, reader

MR [ 343 ] - 2024-02-11 11:21:58.963000
Resolve: "Index out of range on DSF import"
Prevent crash when X-Plane DSF file contains object index that is not in the object list. Closes #6513
Affected tools/features: ModelConverterX, Severity::crash, reader

MR [ 342 ] - 2024-02-11 07:30:39.021000
Updated schedule rules
\[CI SKIP\]

MR [ 341 ] - 2024-02-10 21:54:25.660000
Resolve "Black polygon in effect"
Fixed issue that some FSX effect files were rendered with visible black polygons. Closes #6511
Affected tools/features: FXEditor, ModelConverterX, Severity::bug, reader, visualisation

MR [ 340 ] - 2024-02-10 08:36:09.502000
Resolve "Model collapsed"
Fixed issue that scenegraph optimization can lead to XtoMDL warnings and collapsed models in some cases. Closes #6523
Affected tools/features: ModelConverterX, Severity::bug, writer

MR [ 339 ] - 2024-02-10 07:20:32.528000
Modified rules to run deploy schedule

MR [ 338 ] - 2024-02-06 21:29:21.847000
Removed unused code
Removed unused code that was used to generate the changelog before.

MR [ 337 ] - 2024-02-06 21:04:15.653000
Resolve: "No light point export to OBJ file"
Added ability to export point lights to X-Plane OBJ. The exact name of the named light can be set in the options, as well as if the color should be written or not (depending on the name light type that is used). Closes #6490
Affected tools/features: ModelConverterX, Severity::bug, writer

MR [ 336 ] - 2024-02-04 07:32:26.291000
Removed code smells
Removed code smells

MR [ 335 ] - 2024-02-04 10:05:57.124000
Sonarqube pipeline integration
Improved SonarQube integration into the Gitlab pipeline

MR [ 334 ] - 2024-02-03 20:46:38.832000
Resolve: "Black polygon in effect
Added missing commit in the previous merge request. Fixed issues with rendering particle effects in ortho views (not free rotate view). Improved searching for FX files, when a model is inside a FS installation folder the FX file is read from that FS version. Closes #6511
Affected tools/features: FXEditor, ModelConverterX, Severity::bug, reader, visualisation

MR [ 333 ] - 2024-02-03 07:33:47.507000
Resolve "Black polygon in effect"
Fixed issue that blend mode for particles without a texture was processed incorrectly, this could result in black polygons in rendered particle effects. Also tix an issue in the fade logic. FXEditor GUI also has issue fixed that there was a large icon bar visible in the text editor part. Closes #6511
Affected tools/features: FXEditor, ModelConverterX, Severity::bug, reader, visualisation

MR [ 332 ] - 2024-01-29 22:41:42.621000
Resolve: "Issue loading models"
Fixed issue with finding aircraft.cfg and textures when the model folder uses sub-folders to structure various models. Improved performance of reading FS2004 aircraft MDL files. Closes #6508
Affected tools/features: ModelConverterX, Severity::bug, reader

MR [ 331 ] - 2024-01-29 22:02:05.199000
Progress "AI model not converted right"
Fixed issue exporting FS2004 position animations with first key not zero to FSX format. Map FS2004 taxi light on the right effect. #6455
Affected tools/features: ModelConverterX, Severity::bug, reader

MR [ 330 ] - 2024-01-28 07:30:07.872000
Resolve "Errors on model export"
Made logic to replace invalid characters on export to MDL file more robust as it did sometimes miss a texture. Also made sure that custom animation names do not contain brackets. Closes #6467
Affected tools/features: ModelConverterX, Severity::bug, writer

MR [ 329 ] - 2024-01-27 08:34:27.577000
Resolve "Change object keep view"
Added option to interface to change an object and keep the current view. This is now also done when using undo in MCX. Closes #6507
Affected tools/features: ModelConverterX, Samples, Severity::feature-request, visualisation

MR [ 328 ] - 2024-01-27 07:52:33.800000
Progress: "AI model not converted right"
Modified scenegraph optimization logic so that a simpler structure results and XtoMDL does not drop animations on export. #6455
Affected tools/features: ModelConverterX, Severity::bug, reader

MR [ 327 ] - 2024-01-25 20:52:04.069000
Resolve: "Viewer sample in Visual Studio"
Fixed error in viewer sample due to missing renderer state instance. Closes #6505
Affected tools/features: Samples, Severity::bug

MR [ 326 ] - 2024-01-23 16:03:40.678000
Resolve "Viewer sample in Visual Studio"
Modified constructor of preview control to work better in IDE designer. Closes #6505
Affected tools/features: Samples, Severity::bug

MR [ 325 ] - 2024-01-22 21:46:42.574000
Added test cases for emissive mode export
Closes #6497
Affected tools/features: ModelConverterX, writer

MR [ 324 ] - 2024-01-22 21:35:39.924000
Resolve: "Index out of range"
Made Wavefront OBJ reader more robust for models that have some parts with vertex colors and others without. Closes #6504
Affected tools/features: ModelConverterX, Severity::crash, reader

MR [ 322 ] - 2024-01-21 12:49:50.047000
Resolve "Der angegebene Schl³ssel war nicht im W÷rterbuch angegeben."
Made reading of FS2004 aircraft MDL robust for missing mouse rectangle definitions. A warning is shown in the event log in those cases. Closes #6474
Affected tools/features: ModelConverterX, Severity::crash, reader

MR [ 321 ] - 2024-01-21 11:39:46.312000
Resolve "Errors on model export"
Fixed XtoMDL errors caused by frame names in the X file when there is a dot in the name or by textures with an & in the name. Closes #6467
Affected tools/features: ModelConverterX, Severity::bug, writer

MR [ 320 ] - 2024-01-21 07:51:54.616000
Resolve "Can't add node in hierarchy editor"
Fixed bug that it was no longer possible to add new nodes in the hierarchy editor. Closes #6498
Affected tools/features: ModelConverterX, Severity::bug, editor

MR [ 319 ] - 2024-01-21 07:00:39.179000
Progress "AI model not converted right"
Improvements to make sure that FS2004 AI aircraft model can be converted to FSX model with correct visibility conditions and such. #6455
Affected tools/features: ModelConverterX, Severity::bug, reader, writer

MR [ 318 ] - 2024-01-20 11:08:23.739000
Align heading values in XML output
Closes #6492
Affected tools/features: ModelConverterX, Severity::feature-request, scenProc, writer

MR [ 317 ] - 2024-01-20 08:49:16.039000
Modified error report for label names used in Gitlab

MR [ 316 ] - 2024-01-18 14:44:05.259000
Resolve: "Exception in material editor after updating material"
Fixed exception in material editor after updating a material property or applying a template. Closes #6491
Affected tools/features: ModelConverterX, Severity::bug, editor

MR [ 315 ] - 2024-01-17 20:24:34.515000
Resolve "Apply template in material editor"
Fixed bug that applying a material template in the material editor did not update the material correctly. Closes #6491
Affected tools/features: ModelConverterX, Severity::bug, editor

MR [ 314 ] - 2024-01-17 19:48:18.513000
Resolve "PNG alpha not read anymore"
Fixed issue that on texture reload the alpha channel of a texture could be lost. This happened to textures where the alpha channel was added later (e.g. because a COLLADA file has a transparency set in the material properties which was added by MCX to the texture). Closes #6488
Affected tools/features: ModelConverterX, Severity::bug, reader

MR [ 313 ] - 2024-01-16 14:37:31.513000
Made sure app.config file is included in the samples packages.

MR [ 312 ] - 2024-01-14 20:18:26.503000
Resolve: "Merge tool and representations"
The object merge tool now merges the new object into the active representation instead of always as external. Closes #6484
Affected tools/features: ModelConverterX, Severity::feature-request, editor

MR [ 311 ] - 2024-01-14 19:48:04.430000
Resolve: "Index of range exception when reading MDL file"
Fixed an issue that when while parsing a MDL file which is somehow partly invalid that the ScasmConditionAnalyser code could throw an exception. Made the code more robust for this situation now.
Affected tools/features: ModelConverterX, Severity::crash, reader