SpeedTree Wind?

Is wind supported in Godot? I have a few trees, and no wind. I was hoping there is a way to get wind working for my trees so they are not so well still =) .

Comments

  • DschoonmakerDschoonmaker Posts: 230Member

    There's no wind built-in, but it shouldn't be hard to make it yourself. Area already has gravity, so within a certain area you can simulate wind for physics bodies.

    For trees, you could probably get the gravity(maybe using groups, so that you only get the gravity from wind areas) for each tree, then pass that information to a shader & move leaf vertices there.

    That's my idea, but it may not be the best way to do it. I don't know how Unity does it.

  • TwistedTwiglegTwistedTwigleg Posts: 2,629Admin

    If you want a really simple window effect for the tree, I would recommend checking out this page on the documentation. It gives a nice, though not realistic, appearance of wind.

  • DschoonmakerDschoonmaker Posts: 230Member

    If all you need is a little leaf movement, a simple wind shader like that is good. Areas & a more complex wind shader would be useful for dynamic wind movement, like changing wind direction & objects that create wind(a fan, a bomb, etc.)

  • WashedUpStudiosWashedUpStudios Posts: 11Member

    Thanks I will take a look into this and see if it works well for what I am going for. :)

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file