Dsq problems
by Varma Dandu@longsword · in Artist Corner · 04/09/2008 (7:50 pm) · 9 replies
Hi All,
I am getting confused about, how to manage animated shapes within the engine, because these shapes and thire animatimation running in Show tool (demo.exe -show), but it is not in Torque Game Engine.
I also try these conditions
1) DTS with animation (sequence_root), DTS with animation (squence_ambient)
2) DTS with separate animation in DSQ its .cs file
Please help me.
Thank You,
Varma D.
I am getting confused about, how to manage animated shapes within the engine, because these shapes and thire animatimation running in Show tool (demo.exe -show), but it is not in Torque Game Engine.
I also try these conditions
1) DTS with animation (sequence_root), DTS with animation (squence_ambient)
2) DTS with separate animation in DSQ its .cs file
Please help me.
Thank You,
Varma D.
About the author
#3
But I already tried in both show tool and show tool pro.
I thing may be .cs file is wrong, I wrote the following lines..
//script starts
datablock TSStatic(ballDTS)
{
baseShape = "./data/shapes/things/ball.dts";
sequence0 = "./data/shapes.tings/ball_root.dsq root";
};
//end of the script
I placed this .cs file in a folder that contains both ball.dts, ball_root.dsq file and name it as ball.cs.
But I really don't know how to call these script at run time within the engine.
I am Newbie at torque script, please excuse me if any mistakes in my code :)
is anyone solve my question/problem ?
Thank you very mush,
Varma D.
Enjoy!!
04/09/2008 (11:43 pm)
Thank for your response Aun. :)But I already tried in both show tool and show tool pro.
I thing may be .cs file is wrong, I wrote the following lines..
//script starts
datablock TSStatic(ballDTS)
{
baseShape = "./data/shapes/things/ball.dts";
sequence0 = "./data/shapes.tings/ball_root.dsq root";
};
//end of the script
I placed this .cs file in a folder that contains both ball.dts, ball_root.dsq file and name it as ball.cs.
But I really don't know how to call these script at run time within the engine.
I am Newbie at torque script, please excuse me if any mistakes in my code :)
is anyone solve my question/problem ?
Thank you very mush,
Varma D.
Enjoy!!
#4
corrections:
sequence0 = "./data/shapes/things/ball_root.dsq root";
04/09/2008 (11:47 pm)
Oh! my small code has syntax errorscorrections:
sequence0 = "./data/shapes/things/ball_root.dsq root";
#5
04/10/2008 (2:00 am)
...
#6
These are the first few lines in one of my 'constructor' scripts for a playerAvatar. Datablock is defined as a TSShapeConstructor, not a static shape. Now, the static shape 'class' can be used to 'scope' methods to...but not to construct a dts shape??
Hope I'm not steering you in a wrong direction, but sounds like you're having trouble with the construction scripting.
Or, are those variables and assignments part of the StaticShapeClass?
04/10/2008 (5:22 am)
Doesn't a TSShapeConstructor need to be used to load dsq's into a dts? That doesn't seem to follow the 'constructor' scripting I've always used. If embedded within the dts during export; no scripting is necessary to load animations...running animations/sequences is entirely different, than merely having the sequence 'ready' and loaded for playing. Which is why a scoped method is needed for playing sequences during runTime/engine.datablock TSShapeConstructor(RedPlayerDts)
{
baseShape = "./redplayer.dts";
sequence0 = "./player_root.dsq root";
sequence1 = "./player_look.dsq look";These are the first few lines in one of my 'constructor' scripts for a playerAvatar. Datablock is defined as a TSShapeConstructor, not a static shape. Now, the static shape 'class' can be used to 'scope' methods to...but not to construct a dts shape??
Hope I'm not steering you in a wrong direction, but sounds like you're having trouble with the construction scripting.
Or, are those variables and assignments part of the StaticShapeClass?
#7
04/10/2008 (5:31 am)
...
#8
I followed your guidelines with every key stoke and finally I got TestShapes folder under Shapes folder in engine creator's tree.
and I placed the "ball" in my world, but it won't animate! Why the problem is still there?
Thank You very much,
Enjoy!
Varma D.
04/10/2008 (5:34 pm)
Thanks for your help, Joseph.I followed your guidelines with every key stoke and finally I got TestShapes folder under Shapes folder in engine creator's tree.
and I placed the "ball" in my world, but it won't animate! Why the problem is still there?
Thank You very much,
Enjoy!
Varma D.
#9
04/10/2008 (9:04 pm)
...
Torque Owner Varma Dandu@longsword