I was messing around today in max 6 and built this ammo feed chute; anyone know how I can rig it? The tabs sticking out the ends are spring steel that flex and make the chute springy, the sections connect with each other via four hooks.
The chute has to be able to bend up, down, side to side and twist along its length. I bet it's a lot of work.
Thanks in advance!
Replies
Z_z
Here's a pic of the IK chain I made for controlling a connector piece; the mesh it controlls in skinned and properly weighted, I just have to make a lot of them.
"There are two simple rules to follow when mirroring a character rig with bones and IK. The first is that the IK chain's Parent Space has to be set to Start Joint, not IK Goal.
The second requirement is that the root of the IK chain must be linked to something that doesn't have IK on it. You can tell whether this is true by looking at the Motion panel. "
This is something I made using the array tool (it's not an IK chain)
In this pic it's easy to see that each element is actually made from two halves that rotate along their width when the chute twists. I'm wondering how I can simulate this with an IK setup so that I don't have to manually do it with each element.
if slight errors would be toleratable, I'd probably try a combination of path-deform for links, and the ammo controlled by the same spline (no path deform as deformation would look more obvious on the round projectiles)
this would be my first approach, not sure if it would work and be as controllable as you need it.
probably some sort of script, where the chain is represnted by 2 splines parallel could work too.
oh and happy easter
The chute elements don't fly away, they stay in one place and channel the ammo into the receiver of the weapon from the ammo source. I placed ammo into the chute to convey what it looks like when in use, I guess it created some confusion. The ammunition chute is actually very important because if the ammo isn't guided into the weapon, properly aligned, there would be trouble; just think what would happen if the bullets got caught on something while being pulled into a gatling gun that fires 100 rounds per second...Usually any cannon with a caliber of 20mm or higher uses a feed chute regardless of its firing rate though for, smooth operation.
Here are the two chutes that I based mine on:
25mm
30mm
(got the 25mm pic off of Navy News, and the 30mm one from another .mil site, forgot which one)
I think you're right about creating a script, too bad I've never done that before, I'll have to look through the reference.
depending on what max version you are on
http://www.scriptspot.com/Main_Scripts.asp?BrowseType=Controllers&Sort=Name
you might find something more to play with
my idea would be, using one spline as the "back" and create align points, by looking at the opposite spline (same percentage, lets say at half lenght) then you have a lookat vector in that direction, the other up vector would be along the spline to the next node, crossproduct of both would inhibit "rolling" of the links. since back and front spline have different "up" vectors you could use that to define the bending of back/front.
I am not on max7 so I cant check the lookat-upnode-controller scripts that are presented there, but actually those + a script that auto generates those nodes along the splines would by my approach
I'm thinking of wiring the twist angle of the chute directly to the rotation angle of the element halves since they're directly related. There are so many variables to think of; I'm confused...
here is a basic setup, I just threw together
better would be putting the pivots in the middle of the shells
http://crazybutcher.cube3d.de/wip/belt-fed.zip
you create 1 spline, and copy it to create a second parallel to it,
create a shell and link it via path constraint to spline1 ( remove the animation of it to make it static)
create a dummy object parallel to it on spline2. link the dummy with path constraint to spline2. after that link the shell with a look-at constraint to the dummy, and setup axis so that it will point to the dummy.
then instance clone the shells+sphere along "up" direction and see that you will get a chain.
now the only thing you need to do is animate those splines.
probably need to fiddle with them a bit to keep a constant distribution (use smooth instead of bezier)
to make the links rotate at half.. probably a bit more tricky, I would experiment with 1 dummy along spline1 which "banks" along the path, and the dummy along spline2 banks too. then set up an addition orientation-constraint for the links, one time using spline1dummy and one time spline2dummy
I don't like the idea of manually controlling the shape of the splines, so I'm thinking of having two spline IKs, each with about six control points, then creating a chain of six bones between the two splines and linking the bones to the spline IKs' control points. In other words, when I move the bones in the middle, the two splines will conform to them and always have an equal distance between each other. After creating a rig like that, I can mess around with the look at constraint, and if that fails, I can write a script with a bunch of "if" statements heh. I can also make the chain of bones in the middle a spline IK, and the ammunition can fallow that path.
Also dont forget you can skin directly to a spline if your spline Ik isnt so crash hot.
I used Reactor instead of IK, it seems more logical as it gives me greater freedom. I'll be rigging the metal connecting tabs so that they flow with the chute and don't clip through it, I'll also link some spline IKs to the rigid bodies that control the chute, which will guide the ammo. And thanks for the comments
I'm working on getting the ammunition to flow through the chute properly aligned, but I can't get the bullets to face the right direction after trying Crazy Butcher's idea. Basically what I have so far is a spline with all it's control points linked to the rigid bodies which gives it the same shape as the chute. I'm thinking of maybe attaching the bullets to a spline IK chain running along the previously mentioned spline which would keep the distance between the ammo, but I'm pretty much stuck there because I have no clue how to get them rotated properly...
you have one spline for the actual position dummy of the ammo (end)
and the other one as lookat target (front), would give you aligned bullets, when both use same spacing along their splines.
to animate them you would need to animate both dummys along the spline
(700KB, requires DivX codec)
I basically got the ammo aligned properly by using your idea Butcher, only I added to it. Basically each bullet has it's own three short splines, one for a dummy object on the side, another for the bullet and a box, and then I have an extra third one above the bullet spline that also has a dummy object. The bullet looks at the dummy object on the side and the box looks at the dummy above it, the bullet then uses the box as the upnode. All this is then cloned and put together in a chain with a single slider controlling all the bullets. After each bullet reaches the end of its spline, it snaps back to the start and creates the illusion that the bullet behind it is now moving along its spline. I hope that all makes sense
I should also mention that I was too lazy to make links attaching the bullets, ah well.
one side note, atm it looks too much like a conveyor, while I havent seen similar belt-feds in action, the ones I saw in army the belt was abruptly pulled in after each shot. so it's more of a quick pull, wait, quick pull, wait.. kind of movement.
As for the flow of the ammunition, I was just trying to demonstrate that I got it to move through the chute That is how ammunition flows into gatling guns though, it's a smooth continuous motion as the ammo is reeled into the rotor assembly. If it's a chain gun, or a recoil/gas operated weapon then yeah, the bullets would be pulled in abruptly one at a time as the bolt assembly slides back.
it's so beautiful. *sniff