Game Development Community

Max2Dts question regarding ExportAlways.

by Stefan Lundmark · in Torque Game Engine · 06/15/2007 (3:59 pm) · 3 replies

Hi guys,

I've been working with the exporter code for a while now. Trying to make the procedure of exporting shapes simpler with less options. CFG's are something I've never really bothered with but I also understood they were there for a reason. Now, I'm completely at a loss on what reason that might be.

Why on earth do you need to designate objects that always has to export? Can't you just export it all? What would happen if I do that? I tried with the crossbow and there was no difference in the final result.

Given that animated player shapes have alot of nodes and stuff, I figured I might ask if I'm breaking that by exporting everything in the .max file. So, do I break anything this way?

Thanks a ton!

#1
06/15/2007 (4:10 pm)
Not entirely sure what it is you're asking really.
There's usually a lot of nodes in your max files you REALLY don't want to export. (various nodes you use to control your animation etc). In the case of animations it's definitely a problem (if a DSQ contain nodes not in the DTS it won't load), and in the DTS it's more of an optimization thing, the fewer nodes exported, the less for torque to process each frame.

I've had some models with roughly a hundred bones and some 2-3 hundred extra nodes in my rig to control the animation, definitely don't want those nodes in the DTS/DSQs...
#2
06/15/2007 (4:12 pm)
Oh, and I forgot. Sometimes you only want to export part of the animation. Say you have separate upper/lower body animation in your game, it's easy to cull out all the lower bones when you export the upper animation etc.
#3
06/15/2007 (5:03 pm)
Thanks Magnus, wonderful information.

Do you *ever* want to export any of the animation nodes? Like the Hip? Or any of the other nodes which you can move around to make the shape animate a certain way.

If so, wouldn't it just be easier to have an Export Always list of MountPoint, MuzzlePoint, Mount1,2,3,4 etc and all that stuff?