Have a look at this (animated model) would you?
Blitz3D Forums/Blitz3D Programming/Have a look at this (animated model) would you?
| ||
Hmmm - having a little trouble with the mp5 from this page. I can't seem to get it to animate... don't 3ds models require extra animation definition files? There don't seem to be any and ExractAnimSeq isn't getting me anywhere :/ If anyone fancies having a look at the thing (I wouldn't know which app to use to check if there even is anim data there) and seeing what's what, that would be swell. It looks pretty cool in my current distraction: ![]() |
| ||
you do have an updateworld in your code yeah? I used this code to test it (quick and dirty) and it works fine... tho the animations are pretty lame... |
| ||
oh and press the keys 1, 2 and 3 to swap between the 3 animations.. |
| ||
Well I've no idea what the problem was. I originally only extracted one of the animation sequences, so I just commented that out and pasted in your three extraction lines - it animated. Uncommented my original line, took yours back out and - it animates. Now I can't even reproduce the problem! (An unwelcome non-printing character in the code maybe?) Anyway, cheers for taking a look. The firing anims don't look too bad, but "idle" is really "walking", which is preferable anyway. Fer free it's smashin'. |
| ||
the model isn't too bad but the positioning...oh my lord...it's aweful. Somebody needs to learn how to properly hold their firearm... |
| ||
can just imagine the accuracy firing like that huh :P |
| ||
No kidding... |
| ||
Pfft. One in each hand :D |
| ||
hehe I was tempted to flip one and put it on the left... |
| ||
are you sure your using LoadAnimMesh - a common mistake is to use LoadMesh - which will not load animation or hierarchy data.. jst a thought..ive fallen foul of this in the past.. |
| ||
1. findchild the mesh name 2. animate the child u just found mesh = findchild(zombie,"body01") animate mesh,... |
| ||
are you sure your using LoadAnimMesh Yeah - I was dealing with it exactly the same way as the animated b3d's (Psionics zombies, there). I've just chalked this one up to the IDE. 1. findchild the mesh name 2. animate the child u just found mesh = findchild(zombie,"body01") animate mesh,... Try it ;) |
| ||
have to remember the name of the mesh in 3d package though... otherwise it cant find... is that solve ur probs? |
| ||
You can't animate the child, dude - that's just the model; it's the parent pivot that contains all the anim sequences. I solved this a few posts up by commenting then uncommenting the code related to the gun - wish I'd saved that version of the source as something was borking things up good style. BTW, you don't need to know the name of the mesh if there's only one... GetChild(mesh,1) is reliable in such circumstances. If there is more than one child, but you want to apply the same code to all of them (say entityorder or entityfx etc) then you can still cycle through them without knowing their names: If CountChildren(whatever) > 0 For childcount = 1 To CountChildren(whatever) EntityAlpha GetChild(whatever,childcount),.5 Next EndIf |