Animating static shape Question
by Rhye · in Artist Corner · 03/03/2002 (11:29 am) · 12 replies
I'm trying to animate a flag and can't get the animation to work in the -show tool.
It's a basic edit mesh with vertex point deformation. No bones, etc.
Here's the file:
www.sketchedout.com/images/flag.zip
Thanks, all.
It's a basic edit mesh with vertex point deformation. No bones, etc.
Here's the file:
www.sketchedout.com/images/flag.zip
Thanks, all.
About the author
#2
That did it. Thanks.
Question #2: Now do I have to create a script to get it to show up in the engine? I can't seem to get the animation to play on its own...
03/03/2002 (12:06 pm)
Joe,That did it. Thanks.
Question #2: Now do I have to create a script to get it to show up in the engine? I can't seem to get the animation to play on its own...
#4
03/03/2002 (12:18 pm)
hehe. thanks Joe. You saved me days of aggravation. ;)
#6
Joe, I followed the instrux in the previous thread you sent and I can't get the flag shape to show up in Shapes>Misc under the World Creator Editor.
I'm wondering just where my flag.dts and wave.dsq need to sit in the tree...
Also, where does this code need to live if I'm running 1.1? I created flag.cs in Server>scripts, and added the line
exec("./flag.cs");
to my game.cs script.
03/03/2002 (12:51 pm)
Let's go for four...;)Joe, I followed the instrux in the previous thread you sent and I can't get the flag shape to show up in Shapes>Misc under the World Creator Editor.
I'm wondering just where my flag.dts and wave.dsq need to sit in the tree...
Also, where does this code need to live if I'm running 1.1? I created flag.cs in Server>scripts, and added the line
exec("./flag.cs");
to my game.cs script.
#7
03/03/2002 (1:28 pm)
Hmm, could be a 'delete the .dso' thing.
#8
If you can figure this one out I'll make it a six-pack. ;)
Here are my files:
www.sketchedout.com/images/flag_files.zip
Here are my steps:
1. The model and animation shows up in the -Show tool correctly. So...
2. Added this line to game.cs in Server>Scripts:
exec("./flag.cs");
3. Created the flag.cs based upon the link you mentioned Joe, and changed the spelling of "category" (as mentioned in the script).
4. Changed this line from flag.cs:
shapeFile = "./flag.dts";
to this:
shapeFile = "~/data/shapes/flag/flag.dts";
Doing this finally brought the flag into the World Creator Editor Shapes>Misc folder. However, once inserted, the animation does not play.
5. Closed Torque, deleted the flag.cs.dso and game.cs.dso, opened Torque, reloaded map, and STILL no animations *grrrrr*.
6. Went to dinner.
And that's where I am.
Any thoughts would be most appreciated.
03/03/2002 (4:26 pm)
OK, Joe (or anyone smarter than me),If you can figure this one out I'll make it a six-pack. ;)
Here are my files:
www.sketchedout.com/images/flag_files.zip
Here are my steps:
1. The model and animation shows up in the -Show tool correctly. So...
2. Added this line to game.cs in Server>Scripts:
exec("./flag.cs");
3. Created the flag.cs based upon the link you mentioned Joe, and changed the spelling of "category" (as mentioned in the script).
4. Changed this line from flag.cs:
shapeFile = "./flag.dts";
to this:
shapeFile = "~/data/shapes/flag/flag.dts";
Doing this finally brought the flag into the World Creator Editor Shapes>Misc folder. However, once inserted, the animation does not play.
5. Closed Torque, deleted the flag.cs.dso and game.cs.dso, opened Torque, reloaded map, and STILL no animations *grrrrr*.
6. Went to dinner.
And that's where I am.
Any thoughts would be most appreciated.
#9
Make sure that your seuquence name in the max file is the same as the one called in script.
In playThread, it should be
(0,"flag_wave");
Also, check the console when you launch into the sim. It might give you an error message on that script.
It sounds like your path to the shape is correct. If it is showing up in the creator tree in Misc, then it is in there, but it is not calling the thread. I am 90% sure it is the name.
03/03/2002 (5:16 pm)
I got it to work.Make sure that your seuquence name in the max file is the same as the one called in script.
In playThread, it should be
(0,"flag_wave");
Also, check the console when you launch into the sim. It might give you an error message on that script.
It sounds like your path to the shape is correct. If it is showing up in the creator tree in Misc, then it is in there, but it is not calling the thread. I am 90% sure it is the name.
#10
Do you drink Schlitz?
03/03/2002 (5:41 pm)
That did it. Guess I'll be needing my Mastercard. :O)Do you drink Schlitz?
#11
Obsidian Stout is my favorite
www.deschutesbrewery.com/
Although any good stout or porter will do. It would be best to get some on tap, espeically if they have nitro.
03/03/2002 (5:46 pm)
Nope, no Schlitz. I drink expensive microbrews.Obsidian Stout is my favorite
www.deschutesbrewery.com/
Although any good stout or porter will do. It would be best to get some on tap, espeically if they have nitro.
#12
That pub looks excellent.
03/03/2002 (6:01 pm)
Hmmm...Sounds like I'd better bring my Mastercard GOLD then. That pub looks excellent.
Torque Owner Joe Maruschak
In the sequence helper (falg_wave), in the export control dialog, check the 'morph animation' checkbox.
Joe