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
(two_seq.JPG, 512 by 128)
with the following settings
I would get animated textures on the cubebox but I never have thought that it would end up like this

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.
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
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 TGEAI would get animated textures on the cubebox but I never have thought that it would end up like this

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.
About the author