• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

MSFS20 cannot get LOD's to work for my models

Messages
489
Country
us-ohio
I am creating lods, usually 3 different ones using the MCX to auto create the lods, and saving as gltf's - but they will not work in MSFS

is this a known thing or is there a trick to getting them to work!? some kind of re-write in the xml file?

I would like to optimize more sceneries using lods but right now im stuck since i dont use blender

Thanks for any help here!
 
Hi,

It sounds like you export each LOD separately to gltf. Is that the case? It would be better to add all three levels of detail to the model and then export it at once to gltf. That will save all gltf files and a correct xml file that contains all three lods.
 
Hi Arno, the way you are suggesting is the exact way i am doing it. Thats also the way that was not working for me. I have (ex.) 3 gltf files and 3 .bin files, and 1 .xml - for 3 different lods
to be clear, after running a build project for the new models in msfs, there were no errors, but when i add the actual model in the sim, nothing shows up.
Thanks!
 
That sounds all OK. Did you check if the xml file lists them correctly?
 
im not sure that mcx is writing them the correct way, i mean i dont know. There are some tutorials about it and when i compare the way that MCX writes the .xml, it looks different than what the tutorials are showing....theres a size discrepancy in the way it writes the size format i think. I was just wondering if anyone has used the MCX method for making them, compared to the blender way.

let me run one real quick and show the results.
 
The syntax seems to vary between some models I've seen.

This works for me.

XML:
<LODS>
            <LOD ModelFile="Scillylifeboat_LOD00.gltf" minSize="10"/>

            <LOD ModelFile="Scillylifeboat_LOD01.gltf" minSize="3"/>
            
            <LOD ModelFile="Scillylifeboat_LOD02.gltf" minSize="0"/>
        
    </LODS>

If the model builds and they don't display then the xml is the most likely thing.
 
thats what im thinking may be the cause.
The syntax seems to vary between some models I've seen.

This works for me.

XML:
<LODS>
            <LOD ModelFile="Scillylifeboat_LOD00.gltf" minSize="10"/>

            <LOD ModelFile="Scillylifeboat_LOD01.gltf" minSize="3"/>
           
            <LOD ModelFile="Scillylifeboat_LOD02.gltf" minSize="0"/>
       
    </LODS>

If the model builds and they don't display then the xml is the most likely thing.
let me show what mcx creates and compare them... one sec...
 
The syntax is also different between xml files before and after running the package tool if I remember correctly. To make it even more confusing.
 
this is what mcx creates when i have 3 different lods


<?xml version="1.0" encoding="UTF-8"?>

-<ModelInfo version="1.1" guid="{dd4c493c-9e4b-4088-89fa-6011becceaad}">


-<LODS>

<LOD ModelFile="e2_2_LOD0.gltf" minSize="7.8125"/>

<LOD ModelFile="e2_2_LOD1.gltf" minSize="3.125"/>

<LOD ModelFile="e2_2_LOD2.gltf" minSize="1.25"/>

</LODS>

</ModelInfo>
 
The syntax doesn't look that different to me. Maybe except that the minSize is not zero for the last LOD.
 
blender creates a different xml i do believe, different than what mcx creates... so the question is - do i have to re-write the xml for each model to get the lods to function properly? or is there a setting or something that needs to be changed to have the output xml work correctly?
 
I would have to double check in the sim, the MCX output used to work fine before.
 
i also tried to ammend the line to read from....

<LOD ModelFile="e2_2_LOD0.gltf" minSize="7.8125"/>

to...

<LOD ModelFile="e2_2_LOD00.gltf" minSize="7.8125"/>

it looks like it was missing a 0 in that spot, but i did not change the minsize number, i wonder if it needs a single digit ? or mabey it wont read a decimal?

at least on my end, i can confirm that changing what ive shown here, it does not work either
 
Screenshot_1.jpg

this is the output folder contents for the model, not showing the textures.....
 
The syntax seems to vary between some models I've seen.

This works for me.

XML:
<LODS>
            <LOD ModelFile="Scillylifeboat_LOD00.gltf" minSize="10"/>

            <LOD ModelFile="Scillylifeboat_LOD01.gltf" minSize="3"/>
           
            <LOD ModelFile="Scillylifeboat_LOD02.gltf" minSize="0"/>
       
    </LODS>

If the model builds and they don't display then the xml is the most likely thing.
if you dont mind me asking, where did you generate this xml from? it doesn't look like what MCX generates. And thats my problem, if i have to re-write it then thats fine, but none of my edits have worked coming from MCX yet..
 
Can confirm that the direct output from MCX does not work in sim. I sure would like to figure this one out! Thanks!
Screenshot_3.jpg

Screenshot_2.jpg
 
if you dont mind me asking, where did you generate this xml from? it doesn't look like what MCX generates. And thats my problem, if i have to re-write it then thats fine, but none of my edits have worked coming from MCX yet..
Can't remember. The various Blender exporters seem to do it slightly differently.

Your model naming appears to be the issue.

The convention seems to be modelname_LOD00, modelname_LOD01, modelname_LOD02 etc.
 
Last edited:
Without a sample to review, there are a great variety of thing to keep guessing at. If this is a proprietary model, you could construct another one, using the same process and simple cubes, that we could examine and possibly offer advice for.
 
The model names should match the names of the gltf files. For the rest there is no specific convention that is needed.
 
Back
Top