TGEA particle animate texture !
by A.P.W Studio · in Torque Game Engine Advanced · 06/30/2009 (8:10 am) · 6 replies
please help me to use particle animate (texcoord) in tgea ,
i set my datablock correctly but that did not work ,
please help me !
i set my datablock correctly but that did not work ,
please help me !
About the author
#2
06/30/2009 (9:51 pm)
Help us help you by describing/showing what you've already tried.
#3
07/01/2009 (11:58 pm)
i set my texturecoord and animTexFrames and animTexTiling like tdn but it show me different coord of my image .
#4
07/02/2009 (12:24 am)
Then you may have to experiment to get the coordinates correct. The actual values you specify will vary depending on how your image "sheet" is set up.
#5
+---+---+
| 1 | 2 |
|---|---|
| 3 | 4 |
+---+---+
animateTexture = "1";
framesPerSec = "4";
animTexFrames = "0-3";
animTexTiling = "2 2";
textureCoords[0] = "0 0";
textureCoords[1] = "0 0.5";
textureCoords[2] = "0.5 0.5";
textureCoords[3] = "0.5 0.5";
textureCoords[0] = "0.5 0";
textureCoords[1] = "0.5 0.5";
textureCoords[2] = "1.0 0.5";
textureCoords[3] = "1.0 0.0";
textureCoords[0] = "0 0.5";
textureCoords[1] = "0 1.0";
textureCoords[2] = "0.5 1.0";
textureCoords[3] = "0.5 0.5";
textureCoords[0] = "0.5 0.5";
textureCoords[1] = "0.5 1.0";
textureCoords[2] = "1.0 1.0";
textureCoords[3] = "1.0 0.5";
07/02/2009 (12:57 am)
here is my setting and my image is 2X2 filled with number.+---+---+
| 1 | 2 |
|---|---|
| 3 | 4 |
+---+---+
animateTexture = "1";
framesPerSec = "4";
animTexFrames = "0-3";
animTexTiling = "2 2";
textureCoords[0] = "0 0";
textureCoords[1] = "0 0.5";
textureCoords[2] = "0.5 0.5";
textureCoords[3] = "0.5 0.5";
textureCoords[0] = "0.5 0";
textureCoords[1] = "0.5 0.5";
textureCoords[2] = "1.0 0.5";
textureCoords[3] = "1.0 0.0";
textureCoords[0] = "0 0.5";
textureCoords[1] = "0 1.0";
textureCoords[2] = "0.5 1.0";
textureCoords[3] = "0.5 0.5";
textureCoords[0] = "0.5 0.5";
textureCoords[1] = "0.5 1.0";
textureCoords[2] = "1.0 1.0";
textureCoords[3] = "1.0 0.5";
#6
just do this
textureCoords[0] = "0 0";
textureCoords[1] = "0 1.0";
textureCoords[2] = "1.0 1.0";
textureCoords[3] = "1.0 0";
07/02/2009 (1:37 am)
oops i have done it ,just do this
textureCoords[0] = "0 0";
textureCoords[1] = "0 1.0";
textureCoords[2] = "1.0 1.0";
textureCoords[3] = "1.0 0";
Torque Owner TheGasMan
G.A.S. [+others]