Hi. I actually copied the Windsock sample folder from the SDK , renaming the folder like my object.
In the “PackageSources” Folder of the project there has to be the “SimObject” folder.
Then the “Landmarks” folder.
In my Yongphulla airport project the folder structure looks like this:
Then in the Landmarks folder I created a folder with the Simobject name:
In that folder there is the “TEXTURE” , “model” and “animation” folder.
In the “TEXTURE” folder you copy the textures
In the “model” folder you export the 3D model.
When you export the model don´t bake the animation with 3ds max. I tried to do that , but the animation never worked. The Babylon exporter has got the animation baking option, so use that instead.
Its under “use preexport process”
Then in the .xml I used the windsock example. And changed the GUIDs in the .xml file
For the praying mill I created I used a GUID for the model and a different GUID for the animation.
It looks like this.: Or if you have a windsock type animation that changes depending on windspeed and direction just use the windsock example.
Then now I am not quite sure if the “animation” folder is necessary? Because the model folder already has got some animation in the .xml.
But since I just copy from the samples I also used that " animation" folder.
There I exported the .gltf and then .bin file with the babylon exporter again with a _animation name at the end. Then I deleted the .gltf file, because the windsock also has none there.
In the .xml is just another GUID without any animation info:
Then within the Developer mode you also need to set the right output directory. Otherwise the package won´t be built.
The Output Directory should be “SimObjects\Landmarks\nameof yourfolder”
in my case like this:
Then all should work.
Or not. In my case the packe didnt built in game. Not sure if I messed something up .
But the airport I created I always built the package outside of the simulator with the “fspackagetool.exe” program.
I followed this tutorial for that.:
MSFS SDK Tutorial - How to build your packages outside of the sim. - YouTube
But thats only necessary if your objects suddenly dissapear or your face some odd bug.