Feral Heart

Help & Guidance => Game Help => Topic started by: Nowe on March 13, 2013, 01:39:25 am

Title: Question Concerning "Moving trees" and "grass"
Post by: Nowe on March 13, 2013, 01:39:25 am
Since FH+ Doesn't work on this computer And if what I heard is true how is it possible to make The Trees move?
Title: Re: Question Concerning "Moving trees" and "grass"
Post by: Blackeme99 on March 13, 2013, 02:19:56 am
Well i do know that you can make animated meshes.

I downloaded a map with an animated bonfire.

So yes it is most likely possible.

I don't know how though.
Title: Re: Question Concerning "Moving trees" and "grass"
Post by: Ruby1234 on March 13, 2013, 02:52:36 am
I downloaded a map with an animated bonfire.
That'd be a particle, not a standard mesh.
Unless I am mistaken.
-
As for "moving" trees n such,
it's just a material code.
Quote from: OGRE Manual
Format: wave_xform <xform_type> <wave_type> <base> <frequency> <phase> <amplitude>

Example: wave_xform scale_x sine 1.0 0.2 0.0 5.0
-
xform_type
scroll_x
Animate the x scroll value

scroll_y
Animate the y scroll value

rotate
Animate the rotate value

scale_x
Animate the x scale value

scale_y
Animate the y scale value

wave_type
sine
A typical sine wave which smoothly loops between min and max values

triangle
An angled wave which increases & decreases at constant speed, changing instantly at the extremes

square
Max for half the wavelength, min for the rest with instant transition between

sawtooth
Gradual steady increase from min to max over the period with an instant return to min at the end.

inverse_sawtooth
Gradual steady decrease from max to min over the period, with an instant return to max at the end.

base
The base value, the minimum if amplitude > 0, the maximum if amplitude < 0

frequency
The number of wave iterations per second, i.e. speed

phase
Offset of the wave start

amplitude
The size of the wave
One that works well is;
Code: [Select]
wave_xform rotate sine 1 .1 0 .02
Title: Re: Question Concerning "Moving trees" and "grass"
Post by: Ingredient on March 13, 2013, 05:56:17 am
Here: http://www.mediafire.com/?2wv0jy7ovb95eu3 (http://www.mediafire.com/?2wv0jy7ovb95eu3) :)

Just move the files into Feralheart>> Media>> Objects>> Trees and replace the existing files with those. That should give you the moving trees ;)