• 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.

SDK Problem Windsock with wind direction, please ....

Messages
341
Hi all

I create a windsock for MSFS.

The animation work well depending on the strength of the wind. But the windsock don't move according the the wind direction.

I made a little file to try just this animation, with the same result.

This file is a "modelLib" object in my scenery.
If anybody can help me, I join this little file
Thanks :)
 

Attachments

Maybe you should provide the model.xml of your Simobject, It Is there where magic Is done

Cross check with code i have provided here for a wind direction animation


Inviato dal mio Mi 9 Lite utilizzando Tapatalk
 
Thank you for your answer.
My object is in the modelLib folder and not in a simobject. Is it a problem ?
 
It Is,
How Is your windosock moving _according_ to the strength of the Wind?

A Simobject Is the only way to gather Sim variables (Wind Speed, Wind directions, time, season, precipitation and so on)

In the Simobject you can define the name of the animation for each Wind strength










Inviato dal mio Mi 9 Lite utilizzando Tapatalk
 
I confirm : My windsock work well according to the wind strengh (I made different animations for some wind speeds). The animation work.
There is only a problem with the orientation

I'll try with a simobject
 
Just facing some issues here also with the SampleWindsock model from the SDK Samples. I imported the gltf into Blender and have good mesh, but I think animations are all broken as reading from the gltf.

Has anyone managed to get the sample into blender working? I'm ok with the animations like the LightHouse tutorial from Flying Theston but when coming into spines like the example model I'm lost.

Is there any reference I can check about this?
 
Just facing some issues here also with the SampleWindsock model from the SDK Samples. I imported the gltf into Blender and have good mesh, but I think animations are all broken as reading from the gltf.

Has anyone managed to get the sample into blender working? I'm ok with the animations like the LightHouse tutorial from Flying Theston but when coming into spines like the example model I'm lost.

Is there any reference I can check about this?
There Is a very interesting 3d about that, including instruction and tutorial




You Better start from scratch rather than importing a glTF

If you are not in an hurry best solution (to me) Is using premade objects by trfsto (tutorial author and windy thing Dev in flightsim.to)
Or waiting for Asobo's Blender exporter

Or using 3ds max, you have 1 month free, and bone animation Is literally straightforward!

Inviato dal mio Mi 9 Lite utilizzando Tapatalk
 
"Or waiting for Asobo's Blender exporter"

good news if it's planned :) I had not seen this news

I made a "simObjects" windsock.
I put it in :
My scenery...\PackageSources\SimObjects\StaticObject\Windsock
with a "model", a "texture" folder and a sim.cfg (I was inspired by your example : easy guide ....)
But but it does not appear in the list of simObjects

I don't have this problem with the others type of objects (ModelLib)
is there a particularity with the simObjects ?
 
"Or waiting for Asobo's Blender exporter"

good news if it's planned :) I had not seen this news

I made a "simObjects" windsock.
I put it in :
My scenery...\PackageSources\SimObjects\StaticObject\Windsock
with a "model", a "texture" folder and a sim.cfg (I was inspired by your example : easy guide ....)
But but it does not appear in the list of simObjects

I don't have this problem with the others type of objects (ModelLib)
is there a particularity with the simObjects ?
You can follow the on going developement here!


Inviato dal mio Mi 9 Lite utilizzando Tapatalk
 
"Or waiting for Asobo's Blender exporter"

good news if it's planned :) I had not seen this news

I made a "simObjects" windsock.
I put it in :
My scenery...\PackageSources\SimObjects\StaticObject\Windsock
with a "model", a "texture" folder and a sim.cfg (I was inspired by your example : easy guide ....)
But but it does not appear in the list of simObjects

I don't have this problem with the others type of objects (ModelLib)
is there a particularity with the simObjects ?

Attached the full source of my weather station, if you want to take a look, it is a simple simbobject with a vane and anemometer

you are exptected to put this in PackageSources/Landmarks/

and of course yo will need an assegroup in your packagedefinitions.xml like this

Code:
<AssetGroup Name="SimObjects">
            <Type>SimObject</Type>
            <Flags>
                <FSXCompatibility>false</FSXCompatibility>
            </Flags>
            <AssetDir>PackageSources\SimObjects\Landmarks\LIDT_METEO\</AssetDir>
            <OutputDir>SimObjects\Landmarks\LIDT_METEO\</OutputDir>
        </AssetGroup>
 

Attachments

There are a variety of windsock simobjects you could already use in the sim:
Untitled.png

And the SDK has a windsock example.
 
Ok, thank you Mamu and Dick

I had a mistake in my xml.file.
by comparing mine and yours, Mamu, I saw it and I was able to correct it

Now my windsock works well

Thanks for help
 
Thanks, I tried the cloth tutorial but have no luck, I'm a bit lost on the bone part. Maybe would be easier for that part use 3ds max and the .max from the example.
 
Maybe start with something more simple, as a animated cylinder / windsock. 5 bones are enough and it's easier to manage to begin.
And there are some tutos like this one
 
Well, after some try error I could figure out the point I was stuck on the tutorial, and have the tutorial for the cloth finished.

I have 7 bones but know I'm trying to figure out how to make the react to the wind velocity.

I was able to do a rotation animation to the wind direction, which is ok. But trying to check the flag tutorial, I don't see the point were I can map the bones to the actual xml animations which will animate the different segments dependant of the wind.

I'm not sure, but my NLA Track after the tutorial look like this:

1643459974053.png


Bones disappeared from the list. If I change the bone names on the hierarchy view and then setup the XML for the animation, should it behave as the windshock?

The tutorial for FSX looks different from what we have for MSFS, as far as I know...
 
The tuto for FSX, it was only for the bones creation and working with blender.

For the cloth animation under MSFS, I don't know Tisor. I haven't watched this tutorial yet
but I will do that too. I think it's the same principle than the windsocks
but someone can help you :)
 
Last edited:
I have another problem: in the game, the animation of my custom windsock in relation to the direction of the wind is correct to the north and south but the directions East and West are reversed.
It doesn’t matter if I correct the orientation of the windsock at 0° in the xml.

Anybody got any ideas?
I join 2 screens to show the problem

Thank for help :)
 

Attachments

  • Capture d’écran 2022-03-21 124556.jpg
    Capture d’écran 2022-03-21 124556.jpg
    555.2 KB · Views: 225
  • Capture d’écran 2022-03-21 124624.jpg
    Capture d’écran 2022-03-21 124624.jpg
    612.4 KB · Views: 207
First, add more Wind
How did you do your rotation animation? It Is supposed to go clockwise
(zero to 359)

As a suggestion, for the orientation use the msfs template, search for the windsock.xml in your official folder

You Just Need an animation with 360 degrees rotation on Z axis and node called Orientation in your blend file

Inviato dal mio Mi 9 Lite utilizzando Tapatalk
 
Thanks Mamu :)
Ok I checked the animation and it was going counterclockwise.
I corrected it but now the problem is North/South :)
I don't understand
 
did some research:

this works well when making the rotation clockwise
frame 0 - Z value rotation 0
frame 360 - Z value -359 (minus 359)
maybe, also the direction of the axis of your object is important!


funny thing, when using Asobo template

Code:
<Behaviors>

        <Include ModelBehaviorFile="Asobo\Misc\SimObjects.xml"/>
        
        <Component ID="WindTurbine">
            <UseTemplate Name="ASOBO_WindDirection_Template">
            </UseTemplate>
        </Component>

    </Behaviors>

the cone is pointing to the wind direction (wind direction is where the wind is coming from)

(this is the guts of the asobo template : <ANIM_CODE>(A:AMBIENT WIND DIRECTION,degrees) 180 + dnor</ANIM_CODE>)


when instead using the former PartInfo coding style, the back of the wind turbine nacelle is pointing to the wind direction



Code:
<Animation guid="8f34f6bc-4b05-4d45-8bec-43a29ad0d0f7" name="Orientation" type="Sim" typeParam2="Orientation" typeParam="Autoplay"/>

<PartInfo>

            <Name>Orientation</Name>

            <AnimLength>360</AnimLength>

            <Animation>

                <Parameter>

                    <Code>(A:AMBIENT WIND DIRECTION, Degrees)</Code>

                </Parameter>

            </Animation>

        </PartInfo>
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    329.2 KB · Views: 205
Back
Top