Can someone make a Hierarchy tutorial?

Can someone make a Hierarchy tutorial?

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Can someone make a Hierarchy tutorial?

Post by Snipawolf »

I really still don't get a little of the hierarchy....

TBH the only part I don't understand are the weapons...
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

Hierarchy? huh?
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

In UpSpring...

Parent and child and everything...
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Post by Gnomre »

Think of them as joints. Let's say you have a human. The root piece is the pelvis; any time it moves, the rest of the body must follow. Its origin is in its center, around where it attaches to the torso.

The torso is a child of the pelvis. Its origin should be in the same place as the pelvis origin.

Then you have an arm. As you'd expect, the upper arm should be a child of the torso (if the torso moves the arms move). The origin of the upper arm should be at the shoulder joint, to allow the expected movement.

Next you have the lower arm, which is a child of the upper arm. Its origin is at the elbow.

For most spring models a seperate hand piece is unnecessary, but you can still do it if you want. It'd go at the wrist as a child of the lower arm.

Then, let's say he has a rifle. The rifle would be a child of the lowest arm piece (generally lower arm, but like I said, it can be the hand if you please). The origin of the gun should be at the handle, where the gun is held. As you'd expect, this would be the pivot point when a person holds it.

Finally, the gun has a single point with no geometry at the end of the barrel(s). This piece can be called anything, but it's often called the flare. This piece is used in QueryWeaponX(piecenum) in the script. It is where the projectile actually spawns when the unit fires, so this is why you want it to spawn from your flare piece rather than the handle of the gun. This is also where smoke puffs and such are emitted from by weapons.

The hierarchy is the same for every other limb. For a tank, it might be chassis -> turret -> sleeve -> barrel -> flare for something with the simplicity of, say, a Goliath or Stumpy.

To reset origins, move the child piece relative to its parent's origin (in the case of the root piece, the world origin) and hit "Apply Transform." If the parent's origin is 4 'units' (whatever unit upspring measures in, it's sure not script units) to the left of the child's position, then the child's origin will now be 4 'units' to its left. There's really no easy way to explain it without messing with it yourself.
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

How do I add the "flare" though...

Do I have to model it?

I knew about the rest of stuff. however, I think I may make a sticky with loads of info like this in it...
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Post by Gnomre »

Add new piece or something like that... it's a button clear as day in the modelling tab...
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

Oh, k I'll look for it :p
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

the flare doesn't have to be an object that is OTA leftovers.

it is simply a point. create ne object for the win.
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

ohh, even easier
:p
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Post by Gnomre »

Finally, the gun has a single point with no geometry at the end of the barrel(s). This piece can be called anything, but it's often called the flare.
Hohum...
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

Ohh, What do you mean by frame? (please not frames per second)...
Post Reply

Return to “Game Development”