Game Development Community

Wave Sin Animation not working for me

by Ronald J Nelson · in Torque Game Engine Advanced · 07/23/2008 (8:01 pm) · 2 replies

I can't seem to get the $wave animation working. I have no problems with $scale and $rotate.

Here is my material. I copied the settings from stock TGEA 1.03. I have also tried these settings on other materials with other shapes.

new Material( CTFFlagWave )
{
mapTo = "ctfflagwave";
baseTex[0] = "main/data/shapes/flags/ctf/ctfflagwave.png";
//bumpTex[0] = "main/data/shapes/flags/ctf/pennrb_nrm.png";

animFlags[0] = $wave;
waveType[0] = Sin;
waveFreq[0] = 0.25;
waveAmp[0] = 1.0;
};

I have even tried waveType[0] = $sinWave which is the way it is on TDN.

Any ideas?

#1
08/03/2008 (7:33 am)
$wave can be used only in combination with $scroll,$rotate and $scale.

BTW it is very easy to write a simple pixel shader (and minimal vertex one) to do the texel offset:
www.facewound.com/tutorials/shader1/
#2
08/03/2008 (3:14 pm)
Thanks Picasso