Inside3D!
     

Align model tags/helpers/etc in DP Models

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Modeling
View previous topic :: View next topic  
Author Message
jim



Joined: 05 Aug 2005
Posts: 400
Location: In The Sun

PostPosted: Wed Oct 08, 2008 4:29 pm    Post subject: Align model tags/helpers/etc in DP Models Reply with quote

So how do I align them in the model to get it show correctly ingame? All I get is model separated in 3 parts with 2 meter gaps between the parts. Even if I offset the models with "origin" in the text files for dpmodel.exe, the models are only correctly aligned when they're not animated and all parts have the same first frame of the model.

I had done this: Made a model, created a skeleton, attached it to the model, added two helpers, attached them to two bones. Export the model in 3 parts or 4 parts with one part being invisible and contain the helpers. In both cases, the result is the same: objects not together correctly.

Here's a picture of my model in 3dsmax. I added some text showing some coordinates of the objects in the model.

So I want to attach the head into the helper_head and torso to helper_torso. That just doesn't seem to work as expected! I spent whole yesterday trying to get it work, but everything I did: FAIL!
_________________
zbang!
Back to top
View user's profile Send private message Visit poster's website
Chris



Joined: 05 Aug 2006
Posts: 78

PostPosted: Thu Oct 09, 2008 12:58 am    Post subject: Re: Align model tags/helpers/etc in DP Models Reply with quote

The reason there are gaps is because you're not thinking in model space. The head model there when exported is a meter up from the origin. What you want is tohave all the body parts since they're all relative to the origin to just default at the origin. The way you want to do it you'd have to put all those different model parts center of gravity at the 0 0 0 mark, (head where the pelvis is) then attach to the socket.
Back to top
View user's profile Send private message MSN Messenger
jim



Joined: 05 Aug 2005
Posts: 400
Location: In The Sun

PostPosted: Thu Oct 09, 2008 6:38 pm    Post subject: Reply with quote

This seems to work. But it's so weird. I removed my hidden bounding box as it was unuseful. The helper_torso is now part of legs.. helper_head now part of the torso.

If I want head to attach correctly to helper_torso.. then in all head animations helper_head must stay at 0 0 0. For all torso animations the helper_torso must stay at 0 0 0. But what about full body animations, like some death animation? This wouldn't work for them at all. I can already see that when I put all parts have the same animation frames.

So this way the only use for this would be for objects that only have 1 frame or something... like a weapon attached to hand.

edit: I sort of solved the problem by using the curve editor in max.. First I just animate everything as I've always used to animate. Then export legs. Then I reposition the model so helper_torso is at 0 0 0 and remove all rotation and position changes from all bones that would affect helper_torso's position. Then I export the torso and finally I do the same for helper_head and export head.

Still, I think it would be better if I didn't need to do all that..
_________________
zbang!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Modeling All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group