Author Topic: How do I add a waving effect to grass?  (Read 3048 times)

Offline tuffgirl66

  • Forum Newcomer
  • *
  • Posts: 8
  • Country: 00
  • Floof-O-Meter: 1
  • yain't
    • View Profile
How do I add a waving effect to grass?
« 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.)

Offline Bawfle

  • Courage is not the absence of fear but rather the judgement that something is more important than fear.
  • Elder Grey Pelt
  • ****
  • Posts: 3,147
  • Country: gb
  • Floof-O-Meter: 344
  • The Zambisi Pride
    • View Profile
Re: How do I add a waving effect to grass?
« Reply #1 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/9j24xxcxw9px357/treeWave.program

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


Pixel Doll Commissioned and Coloured by RingoKioko
Inactive // Retired // Gone

Offline tuffgirl66

  • Forum Newcomer
  • *
  • Posts: 8
  • Country: 00
  • Floof-O-Meter: 1
  • yain't
    • View Profile
Re: How do I add a waving effect to grass?
« Reply #2 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/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;

baltowolflover

  • Guest
Re: How do I add a waving effect to grass?
« Reply #3 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

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!

Offline tuffgirl66

  • Forum Newcomer
  • *
  • Posts: 8
  • Country: 00
  • Floof-O-Meter: 1
  • yain't
    • View Profile
Re: How do I add a waving effect to grass?
« Reply #4 on: June 05, 2014, 01:52:08 pm »
Ah, thank you! c: It works now. By the way, I love your signature :D