plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

Please take a moment to read the platform’s guidelines before you get started!

question

SFSimsDev avatar image
SFSimsDev asked SFSimsDev edited

How to implement animation with LODs (avoid frame jumping)

Hi,

I don't know if this relates to the same bug mentioned here(Animations in sceneries don't work in Performance Plus Beta - MSFS DevSupport (flightsimulator.com)), but my pre-animated objects reset to frame zero as they switch between LODs. Is the sim engine able to continue from the previous LOD's frame or is this a limitation currently? If it is supposed to be working please can I see how the object XML should be implemented?

What I currently have is as follows (the animation is included in each of the LOD models themselves):

<?xml version="1.0" ?>
    <ModelInfo guid="{4f4ab111-d69f-4ea8-387e-bfc85e12ab7c}" version="1.1">
        <Animation name="move" guid="{4f4ab111-d69f-4ea8-387e-bfc85e12ab7c}" length="4700" type="Standard" typeparam2="move" typeparam="AutoPlay"/>
        <LODS>
            <LOD MinSize="100" ModelFile="model.gltf"/>
            <LOD MinSize="5" ModelFile="model_LOD01.gltf"/>
            <LOD ModelFile="model_LOD02.gltf"/>
        </LODS>
    </ModelInfo>
animation
10 |10000 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.