Game Development Community

Sequence animation flag not working correctly

by Dhruv Thukral · in Torque Game Engine Advanced · 11/20/2005 (4:15 pm) · 6 replies

Hi,
Im quite new to TSE and Im trying to do an animation running on a billboard. I managed to do scrolling and scaling but when I try to do sequence which is what I want I get the same thing as scrolling!
The whole texture shows when only 1/4 of it should be showing. I changed the sequenceSegmentSize to 0.25 but I still get the whole texture showing but with 1/4 of it scrolling and showing up at the other side when I need only 1/4 of it showing at one time.
Can anyone please help in implementing that?

#1
11/20/2005 (8:22 pm)
I think billboards are not fully implemented (working) yet in TSE. Check the bounty system.
I could be wrong but I thought I saw a bounty on it.
#2
11/20/2005 (11:02 pm)
Can you post your material definition? If the billboard renders facing you, it works. Also, whether billboards work or not is not related to whether the material system is working, which seems like the more salient issue.
#3
11/22/2005 (12:30 am)
Thank you guys for the quick response I appreciate it.
This is my material definition:
new Material(Frogedge)
{
   mapTo = frog;
   baseTex[0] = "frogJump";
   pixelSpecular[0] = true;
   specular[0] = "0.1 0.1 1.0 1.0";
   specularPower[0] = 32.0;

};

new Material(Froganim)
{
   mapTo = frog;

   // stage 0
   baseTex[0] = "frogJump";
   translucent[0]=true;
   animFlags[0] = $sequence;
   specular[0] = "0.8 0.8 0.8 1.0";
   sequenceFramePerSec[0] = 4.0;
   sequenceSegmentSize[0] = 0.25;
}

The billboarding works fine the only problem is I don't want the whole texture to be seen, just only 0.25 of it.

I defined the materials in a materials.cs file and I put it inside the folder of the shape I want to sequence. And the texture material effect takes place when I insert the shape to the level from the World Editor Creator. So I don't call the addMaterialMapping method.
Is there something I'm doing wrong or is this the way that sequence works?
#4
11/29/2005 (2:53 pm)
Anything guys?
#5
04/18/2006 (8:51 pm)
Is this a bug?

The document stated to offset at regular intervals. Does the offset here referring to the offset between different frames? What does this offset means?
#6
06/04/2006 (11:02 am)
Animated material sequences seems to be working fine for me with TSE Milestone 3, if it was broken, it's certainly fixed now. If you're still having this problem, it could be the way the texture is setup.

John K.