Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / Softimage XSI 4.2 ModTool - export .x keyframe animations?

Author
Message
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 9th Aug 2007 17:17
I have Softimage XSI 4.2 ModTool (HL2) installed with the .X exporter addon installed. I made a cube with a simple keyframe animation (transform, press k, etc) When I export the file to .x and load it in DBP (DGDK.NET) I see the cube and its material but the animation doesn't play or loop. I think I already know the answer but I thought I'd check with you guys first, can I export xsi->x with keyframe animations and play them in dbp/dgdk (Maybe some setting in the export needs to change from the defaults) or do I have to use bone/skel animations?

thanks for your help

My DBP plugins page is now hosted [href]here[/href]
Redmotion
21
Years of Service
User Offline
Joined: 16th Jan 2003
Location: Mmm mmm.. Marmite
Posted: 13th Aug 2007 20:56 Edited at: 13th Aug 2007 21:00
If you haven't already clocked this, you need to change to the type of animation to SRT (scale/rotate/transform). Its only skinned animation you use the "matrix" setting.

Plus check the "animation" box to specify that you are exporting the animation.

Lastly, ensure that your animation starts after frame 0 (eg: on frame 1). You can animate on frames like -5, -6, etc. But they don't export.

I didn't think you could export direct X files from the mod tool so that's news to me!

I've also posted 2 tutorials for getting direct x files from XSI into dark basic, including a light mapping one here:
http://redmotion.blogspot.com/2007/06/exporting-directx-files-to-dark-basic.html
http://redmotion.blogspot.com/2007/06/auto-rendermap-script-xsi.html

Good luck.

CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 13th Aug 2007 23:19
thanks for the info - greatly appreciated
I also saw the post about mod tool 6, so I will be setting myself up with that asap! Do you know if it upgrades 4.2 to 6 or is it a totally stand-alone install? (Im still looking at the page you linked)

My DBP plugins page is now hosted [href]here[/href]
Redmotion
21
Years of Service
User Offline
Joined: 16th Jan 2003
Location: Mmm mmm.. Marmite
Posted: 14th Aug 2007 01:31
Standalone.

Softimage don't do patches.

(It means that a studio doesn't patch a load of computers with the new version and then find the current production has been screwed up - which does happen.)

CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 14th Aug 2007 03:27
thanks
I tried switching to SRT in xsi 4.2 but the same thing happened, no anims ran in dbp (doesnt appear to have the data in the x file) so I am not sure what is going on there BUT...

I installed xsi 6 and with the same settings in the export the animation is now exported and runs in dbp - cool

The only problem now is that it seems to be cutting out unused frames at the end of the animation. So say for example my animation goes from 1 to 80, the last 20 are unused. When played in xsi the animation runs then the last 20 frames are also run, but do nothing, as expected, but in dbp the animation loops without the last 20 frames that should be a still pause of sorts. Is xsi trimming out unused frames, and if so can this setting be changed?

My DBP plugins page is now hosted [href]here[/href]
Redmotion
21
Years of Service
User Offline
Joined: 16th Jan 2003
Location: Mmm mmm.. Marmite
Posted: 14th Aug 2007 11:30 Edited at: 14th Aug 2007 11:39
If you think about it, your blank 20 frames is actually animation. If you think about how the japanese consider music the space between is as important as the notes themselves.

You have 3 animation editor windows in XSI:
0 - the animation editor - for precise editing of motion using curves (eg: use for precise ease-in/ease-out of motion)
Alt+0 - the animation mixer - for re-using/mixing/layering/transitioning and blending animations together
(no hotkey) - the dopesheet - very good for precise positioning/copy/pasting of keyframes

Personally, I'd use the dopesheet (because it is really the easiest way to copy/paste and reposition keyframes for selected obbject). In your case you should:
1.Copy the last keyframe
2.Paste it to the last frame you require.

That way you are properly defining that period where there is no movement for that object. You can tweak the position of the keyframes precisely in the dopesheet by selecting them and using the middle mouse button to move them.

(Copy and paste keyframes using the buttons or holding CTRL+middle clicking and then dragging to a new location.)

Hope that helps.

Attachments

Login to view attachments
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 14th Aug 2007 15:17
yep, I was thinking that exactly (placing a keyframe at 100). I am new to xsi and I guess I expected it to work like 3dsmax r3.1 where this exact scenario (empty last 20 frames) would actually be included in the anim as empty/pause frames, and would appear as such in dbp as they did in max.

cool, thanks for the tip. I'll try it out. Hopefully you wont get sick of me asking various questions about xsi here.

My DBP plugins page is now hosted [href]here[/href]
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 14th Aug 2007 15:46
Redmotion,

Yep, adding the last keyframe did the trick, thanks

Another question: I think there is a difference in the framerate at which dbp plays animations vs xsi. It seems faster in dbp than in xsi - how can I adjust one or the other so they match?

My DBP plugins page is now hosted [href]here[/href]
Redmotion
21
Years of Service
User Offline
Joined: 16th Jan 2003
Location: Mmm mmm.. Marmite
Posted: 14th Aug 2007 22:26 Edited at: 14th Aug 2007 22:27
You adjust the playback speed in dbpro.

SET ANIMATION SPEED Animation Number, Speed


CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 14th Aug 2007 22:35
do you know what speed dbp defaults to?
do you know what speed xsi defaults to?
is there a way to change it in xsi as well?

thanks

My DBP plugins page is now hosted [href]here[/href]
Redmotion
21
Years of Service
User Offline
Joined: 16th Jan 2003
Location: Mmm mmm.. Marmite
Posted: 14th Aug 2007 22:56
I think its something you have to experiment with in dbpro, the manual is quite unclear what is!

Quote: "SET ANIMATION SPEED

This command will set the speed of the specified animation. A value of 100 is normal, where 50 is half speed and 200 is double the speed. You can
specify any integer value for the speed.
"


In XSI you don't "slow down or speed up" the animation by changing a "speed" setting. You just make the keyframes further apart or closer together. You can do it in the dope sheet. Select all the keyframes and then drag the corner tabs of the selection with the middle button to change the proportions of all key frames or just move the ones you want further apart.

CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 14th Aug 2007 23:26
I understand, but there should be some known rate its following like 24 or 30 keyframes per second. It would be better for the modelling app to be set to whatever dbp is doing that way you save the line of code, and your anim in xsi is wysiwyg with relation to dbp.

no big deal tho - I can work around it

thanks again

My DBP plugins page is now hosted [href]here[/href]

Login to post a reply

Server time is: 2024-11-26 06:32:58
Your offset time is: 2024-11-26 06:32:58