Feral Heart

Help & Guidance => Member Made Tutorials => Modding & Meshing Tutorials => Topic started by: TullileIsHere on October 25, 2015, 06:17:43 pm

Title: Waving Leaves
Post by: TullileIsHere on October 25, 2015, 06:17:43 pm
Are you tired of the leaves on the trees in FeralHeart just sitting there? Well, here's a way to make it so that the leaves wave.

1. Open the main FH folder (it should be in OS(C:))

2. Go to media>objects>trees

3. Open the material file of whatever tree you want to add the waving animation to.
(For this, I'm using the acacia tree.)

4. Copy and paste the following right underneath "texture acacialeaf.png" (or whatever texture you're using for the leaves):

            wave_xform rotate sine 1 .12 0 .02

5. Save

6. Open FeralHeart (close it, then open it again if it's already open)


Your tree's leaves should now have a waving animation, like so:
(http://i.imgur.com/fLtkATF.gif)
Don't be afraid to experiment with the numbers in the code above to get different waves.
Title: Re: Waving Leaves
Post by: Whisperingwaves on October 25, 2015, 06:22:34 pm
Ooo, many users will appreciate this tutorial~ Thank you very much for posting this up. It will be useful if someone wants to make FH a bit more realistic~

~ Whisper
Title: Re: Waving Leaves
Post by: ritat on October 25, 2015, 06:55:45 pm
This is wonderful, thanks for sharing! <3 I tried it and it works. I really struggle with codes but I am getting better ideas now.

+Nuzzle. Did you figure this out yourself?
Title: Re: Waving Leaves
Post by: TullileIsHere on October 25, 2015, 09:54:45 pm
I've seen the code used in other games like World of Warcraft for the in-game meshes (mostly on the plants and whatnot), so I thought I should try to use it on FeralHeart.
Title: Re: Waving Leaves
Post by: Warriorstrike on October 26, 2015, 02:33:14 am
Thank you for sharing this with us. I'm sure that this will definitely help some floofs who are having difficulty with meshes, or would just like a good tutorial to show them how to make them look different. Nice work! c:
Title: Re: Waving Leaves
Post by: PrettyReckless on October 26, 2015, 05:01:48 am
Thank you so much for sharing this.
I must try this once I am home for work. ^^
Title: Re: Waving Leaves
Post by: Preach on October 26, 2015, 09:57:14 am
Ooh! That's so cool. Do you think falling leaves are possible?
Title: Re: Waving Leaves
Post by: Jango_Fett on October 26, 2015, 01:36:43 pm
tulile you're a life saver



i owe you my firstborn
Title: Re: Waving Leaves
Post by: TullileIsHere on October 26, 2015, 07:32:40 pm
Ooh! That's so cool. Do you think falling leaves are possible?
Honestly, I doubt it, unless if you're able to add a falling leaf particle to the default mesh.
tulile you're a life saver



i owe you my firstborn
Ah jeez, thanks.
Title: Re: Waving Leaves
Post by: shayy on October 26, 2015, 10:24:45 pm
 Thanks a lot for sharing!! Zit would probably make my game super lag tho, but I would love to download it. :) Great job
Title: Re: Waving Leaves
Post by: Alphabet on November 10, 2015, 10:00:41 pm
Ohh, fun! I tried messing with the wave scripts and putting them on materials, but it seems I was obviously doing it wrong because it never turned out right... Haha. I'm going to have a blast messing with this.
Title: Re: Waving Leaves
Post by: greystar on November 21, 2015, 07:56:11 pm
What do I do with the bracket? The little } thing?
EDIT: Nevermind, I figured it out.
Helpful tip, do not delete the bracket like I did... XD
Other side note-- It looks weird on things like the palm trees and grass, but it's negligible.
Title: Re: Waving Leaves
Post by: TullileIsHere on November 22, 2015, 06:52:49 pm
What do I do with the bracket? The little } thing?
EDIT: Nevermind, I figured it out.
Helpful tip, do not delete the bracket like I did... XD
Other side note-- It looks weird on things like the palm trees and grass, but it's negligible.
Like I said before, you'll need to experiment with the numbers to make it look "normal" on certain meshes. The palm and grass meshes were a little difficult to do, but I found that making the numbers into small decimals works with them.
Title: Re: Waving Leaves
Post by: greystar on November 22, 2015, 07:05:51 pm
Ah! thank you.