Hi Arno:
I apparently did not have the latest update to MSFS default package files cited in my recent thread here:
https://www.fsdeveloper.com/forum/threads/mcx-gdi-error-converting-dds-to-png.453581/
After a MSFS Content Manager World Update: USA-II, was updated / installed, the above cited KFHR package contains new files.
In MCX September 14, 2021 - Build, I imported:
[MSFS-2020_Packages_Install_Path]\Official\OneStore\microsoft-airport-kfhr-friday-harbor\scenery\Microsoft\Friday-Harbor\modelLib.BGL
In MCX > Material Editor > {Textures} tab, all selected mapped textures were able to be converted from DDS to PNG with NO GDI+ error
But, when I attempt to export from MCX: Object 27/30 (KFHR-05) a glTF 3D model, MCX stops the export, then throws this error:
"Error: An item with the same key has already been added."
PS: The final MCX Event Log entry before the KFHR-05 glTF export object process 'stopped' ...is:
12:23 AM glTFWriter Information Object contains multiple LODs, these will be exported as separate objects.
I am intrigued as to this reference to there being "multiple LODs", since IIUC, these would have to all be compiled into the modelLib.BGL.
BTW: The modelLib.BGL was imported initially by MCX BGLXReader:
12:23 AM BGLXReader Information Read 30 object models, 0 object placements, 0 effect placements
12:23 AM AllObjectReader Information Cleaning object: KFHR-05
12:23 AM AllObjectReader Information Removed 2 triangles with small area
12:23 AM AllObjectReader Information Cleaning object: KFHR-27
12:23 AM AllObjectReader Information Removed 5 triangles with small area
12:23 AM AllObjectReader Information Cleaning object: KFHR-30
12:23 AM AllObjectReader Information Removed 4 triangles with small area
12:23 AM AllObjectReader Information Cleaning object: KFHR-29
12:23 AM AllObjectReader Information Removed 8 triangles with small area
MCX Object Information for KFHR-05 shows apparent use of (5) LODs and multiple "Attachpoints" for 'light00 [R255 G255 B255]'
MCX Attached_Object_Editor info for KFHR-05 shows apparent use of multiple "Attachpoints" for 'light00 [R255 G255 B255]'
A search of MSFS SDK online documentation web pages returns no hits for "Attachpoint"
Anthony31 states:
So, does the latter information posted above in this "PS", mean MSFS' KFHR-05 source "Library" modelLib.BGL ...is compiled in MDL format ?
I would greatly appreciate your advice as to how to eliminate this error, so MCX glTF export can complete output of the selected object.
GaryGB
I apparently did not have the latest update to MSFS default package files cited in my recent thread here:
https://www.fsdeveloper.com/forum/threads/mcx-gdi-error-converting-dds-to-png.453581/
After a MSFS Content Manager World Update: USA-II, was updated / installed, the above cited KFHR package contains new files.
In MCX September 14, 2021 - Build, I imported:
[MSFS-2020_Packages_Install_Path]\Official\OneStore\microsoft-airport-kfhr-friday-harbor\scenery\Microsoft\Friday-Harbor\modelLib.BGL
In MCX > Material Editor > {Textures} tab, all selected mapped textures were able to be converted from DDS to PNG with NO GDI+ error
But, when I attempt to export from MCX: Object 27/30 (KFHR-05) a glTF 3D model, MCX stops the export, then throws this error:
"Error: An item with the same key has already been added."
PS: The final MCX Event Log entry before the KFHR-05 glTF export object process 'stopped' ...is:
12:23 AM glTFWriter Information Object contains multiple LODs, these will be exported as separate objects.
I am intrigued as to this reference to there being "multiple LODs", since IIUC, these would have to all be compiled into the modelLib.BGL.
BTW: The modelLib.BGL was imported initially by MCX BGLXReader:
12:23 AM BGLXReader Information Read 30 object models, 0 object placements, 0 effect placements
12:23 AM AllObjectReader Information Cleaning object: KFHR-05
12:23 AM AllObjectReader Information Removed 2 triangles with small area
12:23 AM AllObjectReader Information Cleaning object: KFHR-27
12:23 AM AllObjectReader Information Removed 5 triangles with small area
12:23 AM AllObjectReader Information Cleaning object: KFHR-30
12:23 AM AllObjectReader Information Removed 4 triangles with small area
12:23 AM AllObjectReader Information Cleaning object: KFHR-29
12:23 AM AllObjectReader Information Removed 8 triangles with small area
MCX Object Information for KFHR-05 shows apparent use of (5) LODs and multiple "Attachpoints" for 'light00 [R255 G255 B255]'
MCX Attached_Object_Editor info for KFHR-05 shows apparent use of multiple "Attachpoints" for 'light00 [R255 G255 B255]'
A search of MSFS SDK online documentation web pages returns no hits for "Attachpoint"
Anthony31 states:
ADDING A VISIBILITY CONDITION:
Now, here is a very important distinction between ModelBehavior code and PartInfo code. With PartInfo you could either use an Attachpoint (no longer supported in MSFS) or add it to an animated. With ModelBehavior the visibility condition is completely separate to any animation. You can easily make non-animated parts visible or not visible. While the ASOBO_GT_Anim templates refer to the name of the animation in your 3D model visibility refers to the name of your part.
So, does the latter information posted above in this "PS", mean MSFS' KFHR-05 source "Library" modelLib.BGL ...is compiled in MDL format ?
I would greatly appreciate your advice as to how to eliminate this error, so MCX glTF export can complete output of the selected object.
GaryGB
Attachments
Last edited: