Animation Problem

Modelling, Textures, Animating and other general engine asset topics.

Animation Problem

Postby Cysticcraze on Sat Jan 22, 2011 7:59 pm

I cant get my prop to move, so I figure I made a really simple mistake exporting from XSI or in the .qc file, hope you guys can help.

$scale 10
$modelname "cysticcraze\cystics_combine_crate\cystics_combine_crate.mdl"
$surfaceprop Metal_Box
$body mybody "combine_crate_ref.smd"

$cdmaterials "models\cystics_combine_crate\"
$texturegroup skinfamilies
{
{ "combine_storage_crate.vmt" }
{ "combine_storage_cratea.vmt" }
{ "combine_storage_crateb.vmt" }
}

$sequence open "combine_crate_open.smd" loop fps 26


$collisionmodel "combine_crate_phys.smd" { $concave }


When I export from XSI I have all boxes checked, and yes I am exporting the skeletal animation.
Image
User avatar
Cysticcraze
Regular
Regular
 
Joined: Tue Sep 08, 2009 9:48 pm

Re: Animation Problem

Postby Kosire on Sun Jan 23, 2011 3:58 am

You need the phys properties..

add like
Code: Select all
$keyvalues        { prop_data { "base" "Metal.Medium"  } }

in you're QC and then compile the map with the prop being prop_physics or prop_physics_multiplayer.

Also add the $mass (for the weight) in between the { } in the $collisionmodel.
User avatar
Kosire
1337 p0st3r
1337 p0st3r
 
Joined: Sat Mar 07, 2009 7:25 pm
Location: Denmark

Re: Animation Problem

Postby Cysticcraze on Mon Jan 24, 2011 4:39 am

Ok I did that and still no cake. I want it to be static btw, but I figure if its a phys I can always just check a falg. Heres my current settup.

$scale 10
$modelname "cysticcraze\cystics_combine_crate\cystics_combine_crate.mdl"
$surfaceprop Metal_Box
$body mybody "combine_crate_ref.smd"

$cdmaterials "models\cystics_combine_crate\"
$texturegroup skinfamilies
{
{ "combine_storage_crate.vmt" }
{ "combine_storage_cratea.vmt" }
{ "combine_storage_crateb.vmt" }
}

$sequence open "combine_crate_open.smd" loop fps 26

$keyvalues
{
prop_data
{
"base" "Metal.Medium"
}
}

$collisionmodel "combine_crate_phys.smd" { $concave $mass 100 }


Am I putting the animation into the qc file correctly? Because I have like three more animations to add, if I can get one to work I will figure out the rest.
Image
User avatar
Cysticcraze
Regular
Regular
 
Joined: Tue Sep 08, 2009 9:48 pm

Re: Animation Problem

Postby joe_dirt976 on Mon Jan 24, 2011 5:16 am

if your using xsi, did you use the skeletal animation option for your smd export? make sure the mesh is eveloped to the bones btw.
Image
Major Banter wrote:Joe Dirt. Also known locally in Interlopers as "Hammer Machine"
User avatar
joe_dirt976
Sir Post-a-lot
Sir Post-a-lot
 
Joined: Sun Nov 18, 2007 10:47 pm
Location: USA

Re: Animation Problem

Postby Kosire on Mon Jan 24, 2011 3:04 pm

You don't need ".vmt" in the skinfamilies.
User avatar
Kosire
1337 p0st3r
1337 p0st3r
 
Joined: Sat Mar 07, 2009 7:25 pm
Location: Denmark

Re: Animation Problem

Postby Cysticcraze on Tue Jan 25, 2011 3:32 am

joe_dirt976 wrote:make sure the mesh is eveloped to the bones btw.


How would I go about doing this? I know I just admitted to being a novice, but I really am.
Image
User avatar
Cysticcraze
Regular
Regular
 
Joined: Tue Sep 08, 2009 9:48 pm

Re: Animation Problem

Postby jister on Tue Jan 25, 2011 6:49 am

dunno for XSI but in max it's a skin modifier where you add all the bones and then use envelopes to assign which vert should be attached how much percentage to what bone.
i.e. if you have a crate where the lit opens, you're animation will have two bones, one with all the verts from the crate enveloped 100%. and one with all the verts from the lit enveloped 100% to.
User avatar
jister
May Contain Skills
May Contain Skills
 
Joined: Wed May 11, 2005 7:35 pm

Re: Animation Problem

Postby thenone on Thu Jan 27, 2011 3:16 am

Yeah for XSI, the points need to be enveloped to a null at least. And like jister said above.

Check this out, it's a good tut. Enveloping by object would work well in this case.

http://www.moddb.com/engines/source/tutorials/introduction-to-animation-with-the-softimagexsi-6-mod-tool

Make sure once you start animating, you don't freeze anything in the scene(except 'Freeze M'). Also, all the objects need to be merged before export, after animation is done. The collision model would need $collisionjoints in the qc as well, but you're better off just using hammer features to simulation that(nodraw brushes).
thenone
Member
Member
 
Joined: Sun May 09, 2010 6:24 pm

Re: Animation Problem

Postby Cysticcraze on Thu Jan 27, 2011 3:59 am

thenone wrote:Yeah for XSI, the points need to be enveloped to a null at least. And like jister said above.


Yea, my prop is already animated, so I dont need that tutorial. I just need to know how to envelope. Thanks for all the info though, I actually havent watched that movie in nearly a year!
Image
User avatar
Cysticcraze
Regular
Regular
 
Joined: Tue Sep 08, 2009 9:48 pm

Re: Animation Problem

Postby joe_dirt976 on Thu Jan 27, 2011 4:39 am

as long as you followed this method for animating, http://www.moddb.com/groups/noesis-interactive/videos/animation-with-the-softimagexsi-6-mod-tool#imagebox

then using the following for enveloping will fix the rest.. http://developer.valvesoftware.com/wiki/Weightmap
Image
Major Banter wrote:Joe Dirt. Also known locally in Interlopers as "Hammer Machine"
User avatar
joe_dirt976
Sir Post-a-lot
Sir Post-a-lot
 
Joined: Sun Nov 18, 2007 10:47 pm
Location: USA

Re: Animation Problem

Postby Cysticcraze on Thu Jan 27, 2011 5:40 pm

Ok, I think I have done it right, thanks for all the help guys. Now I have another problem, it only recognizes a single frame. Do I need something in the editor or to edit my QC? It may be only exporting the frame I have it set to in the editor, any thoughts? Here is my QC:

Also how do I add multiple animations to the QC?

$scale 10
$modelname "cysticcraze\cystics_combine_crate\cystics_combine_crate.mdl"
$surfaceprop Metal_Box
$body mybody "combine_crate_ref.smd"

$cdmaterials "models\cystics_combine_crate\"
$texturegroup skinfamilies
{
{ "combine_storage_crate" }
{ "combine_storage_cratea" }
{ "combine_storage_crateb" }
}

$sequence idle "combine_crate_idle.smd" loop fps 26

$keyvalues
{
prop_data
{
"base" "Metal.Medium"
}
}

$collisionmodel "combine_crate_phys.smd" { $concave $mass 100 }
Image
User avatar
Cysticcraze
Regular
Regular
 
Joined: Tue Sep 08, 2009 9:48 pm

Return to Art Creation

Who is online

Users browsing this forum: No registered users