Game Development Community

Please enlighten me on $sequence used in animaFlags

by Playware · in Torque Game Engine Advanced · 03/25/2007 (10:59 pm) · 0 replies

Hi to all,

I seriously would like to know by setting up animFlags[0] = $sequence, what can I achieve?
What does this do actually?

From tdn.garagegames.com/wiki/TSE/Materials/Overview#Sequence,
it seems like if I have 4 frames of images each 128 by 128 glued together

mtest.dewtouch.net/two_seq.JPG(two_seq.JPG, 512 by 128)
with the following settings

new Material(AnimatedMat)
{
   mapTo = two;
   baseTex[0] = "two_seq";
   animFlags[0] = $sequence;
   sequenceFramePerSec[0] = 4;
   sequenceSegmentSize[0] = 0.25;
};
Using newbox.dts that comes with TGEA

I would get animated textures on the cubebox but I never have thought that it would end up like this
mtest.dewtouch.net/result.png
It squeezed and map the entire 512 by 128.
At first, I thought setting sequenceFramePerSec[0] = 4 leads to having all 4 frames being mapped.
However, changing it to 1 doesn't change anything.