• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

changing Z orientation of model

Status
Not open for further replies.
Level 21
Joined
Mar 29, 2020
Messages
1,237
Hello there,

I have 0 of modeling and wanted to know if the following is something very simple to do:

I want to add animations to some of the models from the game - where everything is the same as the regular animations - just the whole model is lower down (a submerged version of the model for swimming).

Is this a simple task with magos? how would I go about doing that?

thanks!
 
Level 21
Joined
May 29, 2013
Messages
1,567
Duplicate the animations you want with Retera's Model Studio; add the "Swim" tag to the names of the duplicates with Magos; make sure you're renaming the correct set of animations by looking at their intervals in the Sequence Manager; the keyframes of the duplicates will come after all original animations.

Then go to Windows > Node Manager; create a new helper (or a bone; it doesn't really matter); use the "move up/left/right" actions from the right-click menu to move your helper to the top of the node hierarchy.

Right-click your helper; select Edit Node > Translation;
Translation (movement) is animated in lines of code that look like this:
v: { x, y, z }
v
- animation keyframe
x - movement along the x axis (back/front)
y - movement along the y axis (left/right)
z - movement along the z axis (down/up)
Add new lines that contain the starting keyframes of the Swim animations, but make sure they're in ascending order, e.g.

1234: { 0, 0, -75 }
5678: { 0, 0, -75 }
9876: { 0, 0, -75 }
Click OK; save the model and you're done.
 
Level 21
Joined
May 29, 2013
Messages
1,567
You have to make sure the helper you added is a parent of the node that is currently at the top of the hierarchy (Bone_Root).
Nodes.png

Every time the parent node moves/rotates/scales, all of its children (and their children) will also be moved/rotated/scaled. However, all children can also move/rotate/scale independently, without having any effect on their parents and siblings. E.g. Every time the shoulder is rotated, the arm and hand will also be rotated with it; but the hand can also rotate freely by itself.
 
Status
Not open for further replies.
Top