Feral Heart

Help & Guidance => Game Help => Topic started by: tuffgirl66 on May 26, 2014, 05:38:45 pm

Title: How do I add a waving effect to grass?
Post by: tuffgirl66 on May 26, 2014, 05:38:45 pm
I've seen in some maps that there's grass with a pretty epic waving effect. 8D Does anyone know how to add that to a grass mesh? (I don't mean adding it to all of the meshes in the default game, I just mean making a copy of the default grass with the waving effect.)
Title: Re: How do I add a waving effect to grass?
Post by: Bawfle on May 26, 2014, 07:35:39 pm
I don't have grass movements, but I do however have tree movements:

Once you have downloaded them, place both of these into FeralHeart\\Media\\Objects\\Trees.
http://www.mediafire.com/view/cbk1sxz7ceyhcv4/treeWave.cg (http://www.mediafire.com/view/cbk1sxz7ceyhcv4/treeWave.cg)
http://www.mediafire.com/view/9j24xxcxw9px357/treeWave.program (http://www.mediafire.com/view/9j24xxcxw9px357/treeWave.program)

Then relaunch :) I'll try grab the grass waving effect if I can!
Title: Re: How do I add a waving effect to grass?
Post by: tuffgirl66 on June 02, 2014, 02:22:26 pm
I don't have grass movements, but I do however have tree movements:

Once you have downloaded them, place both of these into FeralHeart\\Media\\Objects\\Trees.
http://www.mediafire.com/view/cbk1sxz7ceyhcv4/treeWave.cg (http://www.mediafire.com/view/cbk1sxz7ceyhcv4/treeWave.cg)
http://www.mediafire.com/view/9j24xxcxw9px357/treeWave.program (http://www.mediafire.com/view/9j24xxcxw9px357/treeWave.program)

Then relaunch :) I'll try grab the grass waving effect if I can!

Thank you for the suggestion, but I can't seem to get those to work ;w;
Title: Re: How do I add a waving effect to grass?
Post by: baltowolflover on June 02, 2014, 07:30:49 pm
If you want to make a copy of it. Make you're own material, If you don't know how try using this tutorial.
http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=44951.0 (http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=44951.0)

And copy and paste this material in the ReadMe.

material GrassMat
{
   transparency_casts_shadows off
   receive_shadows off
   technique
   {
      pass
      {
         diffuse 0.05 0.05 0.05 1
         cull_hardware none
         cull_software none

         alpha_rejection greater_equal 128

         texture_unit
         {
            texture grass.png
            wave_xform scroll_x sine 1 .1 0 .1
         }
      }
   }
}

Then rename the "GrassMat" to WavingGrassMat, Or whatever you'll like!
Hope this helps!
Title: Re: How do I add a waving effect to grass?
Post by: tuffgirl66 on June 05, 2014, 01:52:08 pm
Ah, thank you! c: It works now. By the way, I love your signature :D