All textures are compiled to DDS and displayed by DirectX.
Hi Dick:
[
EDITED]
I like the way that reads, as it involves a familiar FSX / P3D work-flow (...but now implemented through different glTF-related MS utilities).
But IMHO, some here are still seeking help to better understand the work-flow for output of
*.DDS, versus that for output of
*.PNG or
*.JPG (into the pertinent MSFS-2020 project
source \Texture sub-folder chain) ...which AFAIK, ultimately must take place for glTF 3D models to display.
I am referring, of course, to the "original recipe" Khronos glTF 1.0 and/or 2.0 specification requiring use of
*.PNG or
*.JPG.
glTF™ is a royalty-free specification for the efficient transmission and loading of 3D scenes and models by engines and applications. glTF minimizes the size of 3D assets, and the runtime processing needed to unpack and use them. glTF defines an extensible publishing format that streamlines...
www.khronos.org
Are you instead referring to the subsequent extension criteria defined by Microsoft, for use of
*.DDS as a mapped Material on glTF 3D models ?
https://github.com/KhronosGroup/glTF/blob/master/extensions/2.0/Vendor/MSFT_texture_dds/README.md
If so, IIUC, output of
*.PNG or
*.JPG project files is an 'intermediate' step prior to
conversion by MSFS-2020 SDK compiler into
*.DDS package files.
In keeping with the subsequent extension criteria defined by Microsoft, for use of *.DDS as a mapped Material on glTF 3D models, mapped *.DDS texture Materials may also be packaged inside glTF *.BIN *.GLB (binary format) files instead of as stand-alone texture files in a \Texture sub-folder (for ex: MSFS-2020 SimObjects), thus IIUC, one may not see a *.DDS as a "final" compiler output ?
OOPS !
After using MCX to delve into the innards of MSFS-2020' proprietary extension
*.glTF, and associated
*.BIN, and
*.XML files, thus far I have found that within the above cited extension criteria defined by Microsoft, for use of
*.DDS as a mapped Material on glTF 3D models, mapped
*.DDS texture Materials may
NOT (...yet ?) be packaged
inside glTF
*.GLB (binary format) files
instead of being utilized as external, stand-alone texture files in a \Texture sub-folder (for
ex: MSFS-2020 SimObjects).
Thus, IIUC, one 'should' still see a
*.DDS as a "final" compiler output.
As an example, consider:
Code:
[MSFS-2020_Packages path]\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\Marshaller\model.Marshaller_Female_Summer_Asian\Marshaller_Female_Summer_Asian_LOD00.gltf
[MSFS-2020_Packages path]\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\Marshaller\model.Marshaller_Female_Summer_Asian\Marshaller_Female_Summer_Asian_LOD00.bin
[MSFS-2020_Packages path]\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\Marshaller\model.Marshaller_Female_Summer_Asian\Marshaller_Female_Summer_Asian_LOD01.gltf
[MSFS-2020_Packages path]\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\Marshaller\model.Marshaller_Female_Summer_Asian\Marshaller_Female_Summer_Asian_LOD01.bin
[MSFS-2020_Packages path]\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\Marshaller\model.Marshaller_Female_Summer_Asian\Marshaller_Female_Summer_Asian_LOD02.gltf
[MSFS-2020_Packages path]\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\Marshaller\model.Marshaller_Female_Summer_Asian\Marshaller_Female_Summer_Asian_LOD02.bin
[MSFS-2020_Packages path]\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\Marshaller\model.Marshaller_Female_Summer_Asian\Marshaller_Female_Summer_Asian.xml
Apparently MCX always switches to 'import' of the
*.XML file ...regardless of whether one loads a MSFS-2020
*.glTF, or
*.BIN file.
The
*.XML file code points to a ASCII
*.glTF file (so MCX will then read / load texture image Materials from a [MSFS-2020_Packages path] sub-folder):
Code:
<?xml version="1.0" encoding="utf-8" ?>
<ModelInfo version="1.1" guid="{39fc8a14-cde1-433d-8680-218278c94eb5}">
<LODS>
<LOD minSize="25" ModelFile="Marshaller_Female_Summer_Asian_LOD00.gltf">
<AnimationFileList>
<AnimationFile>Marshaller_Female.gltf</AnimationFile>
</AnimationFileList>
</LOD>
<LOD minSize="17" ModelFile="Marshaller_Female_Summer_Asian_LOD01.gltf">
<AnimationFileList>
<AnimationFile>Marshaller_Female.gltf</AnimationFile>
</AnimationFileList>
</LOD>
<LOD minSize="10" ModelFile="Marshaller_Female_Summer_Asian_LOD02.gltf">
<AnimationFileList>
<AnimationFile>Marshaller_Female.gltf</AnimationFile>
</AnimationFileList>
</LOD>
</LODS>
<AnimationInclude>
<Include File=".\..\animations.xml"/>
</AnimationInclude>
</ModelInfo>
The example MCX Event Log for import of
Marshaller_Female_Summer_Asian_LOD02.gltf shows mapped texture Materials are loaded from:
D:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\
texture\ sub-folder (...
not from a glTF 2.0
*.GLB binary):
Code:
11:58 AM glTFReader Information Starting reading of file d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\Marshaller\model.Marshaller_Female_Summer_Asian\Marshaller_Female_Summer_Asian_LOD02.bin
11:58 AM glTFReader Information Found matching model XML, reading object using information from model XML file
11:58 AM CFGReader Information Starting reading d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\Marshaller\sim.cfg
11:58 AM CFGReader Information Reading models from aircraft.cfg
11:58 AM ModelXmlReader Information Started reading file d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\Marshaller\model.marshaller_female_summer_asian\marshaller_female_summer_asian.xml
11:58 AM glTFReader Information Starting reading of file d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\Marshaller\model.Marshaller_Female_Summer_Asian\Marshaller_Female_Summer_Asian_LOD02.bin
11:58 AM glTFReader Information Finished reading objects
11:58 AM ModelXmlReader Information Finished reading file d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\Marshaller\model.marshaller_female_summer_asian\marshaller_female_summer_asian.xml
11:58 AM CFGReader Information Reading points from aircraft.cfg
11:58 AM CFGReader Information Read 0 points
11:58 AM CFGReader Information Finished reading aircraft.cfg
11:58 AM AllObjectReader Information Cleaning object: marshaller_female_summer_asian
11:58 AM AllObjectReader Information Removed 0 triangles with small area
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_female_asian_arms_albedo.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_female_arms_normal.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_female_arms_comp.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_female_asian_head_albedo.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_female_asian_head_normal.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_female_asian_head_comp.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_female_indian_head_albedo.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_female_indian_head_normal.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_female_indian_head_comp.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_tarmac_worker_boots_albedo.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_tarmac_worker_boots_normal.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_tarmac_worker_boots_comp.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_tarmac_worker_headset_albedo.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_tarmac_worker_headset_normal.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_tarmac_worker_headset_comp.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_tarmac_worker_suit_albedo.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_tarmac_worker_suit_normal.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_tarmac_worker_suit_comp.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_tarmac_worker_summer_albedo.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_tarmac_worker_summer_normal.png.dds
11:58 AM ObjectRenderer Information Loaded texture: d:\MSFS-2020_Packages\Official\OneStore\asobo-simobjects-characters\SimObjects\Humans\texture\ch_tarmac_worker_summer_comp.png.dds
[
END_EDIT]
BTW: IIRC, you had previously posted some code (in PowerBuilder ?) to Compile a 3D scenery object project with the MSFS-2020 SDK fspackagetool,
Would you please show us a modified code version with a step to also launch MCX as a viewer for a visual inspection of the compiled 3D model ?
Thanks in advance for any further clarification you may be able to offer on this work-flow.
GaryGB