typeParam - scenery object animation speed

Version: 1.5.27.0

Bug description:

On this page in the documentation, it’s stated that the speed of an scenery object’s animation can be controlled by the typeParam=“framerate=XX” parameter. As others have pointed out online, this parameter does not appear to be working. I cannot find any other way to change the animation speed of specifically a modellib bgl object, which seems to always autoplay at 18fps, no matter what parameters are entered. Is there another intended way to do this, or is there an error in the documentation?

Thanks,
Martyn - Just Flight

Hello @MartynJF,

I was able to use the framerate with my test object.

this is the XML I used :

<?xml version="1.0" encoding="utf-8"?>
<ModelInfo guid="{06DEA026-A609-42EA-B820-211C951CA8CB}" version="1.1">

<Animation length="100" name="CubeAction" guid="16DEA026-A609-42EA-B820-211C951CA8CB" type="Standard" typeParam="AutoPlay,FrameRate=36" />

  <LODS>
    <LOD minSize="0.0" ModelFile="Cube.gltf"/>
  </LODS>
</ModelInfo>

The length parameter is required for this to work.

I also observed that after changing the frame rate, the object does not refresh after a build.
I had to delete it and re-add it to the scenery. I’ll open a ticket in our backlog to track this issue.

Let me know if it’s working for you.

Edit : I also logged a second issue to update the documentation about this mandatory parameter.

Regards,
Boris

1 Like

Hello @MartynJF
The documentation has been updated in the sdk 1.5.3 (SU4 flighting).

Regards,
Boris

2 Likes