Quote for new page.
I'm afraid you are mistaken my good sir, if there are no bones in the models hands, how can you pose them? Also this:
I've had a question about gmod animations for some time now. Is it possible to compile a model to have more animations than the source engine alone provides? Can you make your own animations and gestures and use them in game? If this is possible, you'd think there would be some animation addons.
This IS an animation addon, it's just in beta, so there's no fancy schmancy menu yet.
Source SDK Model Viewer is where I get bones and such.
Here's two more images. I made an idle stance for a high-powered pistol weapon. When the player is shooting they start playing the stance and stop playing when they stop shooting (holding left click or not). One thing you have to remember about this is that you need to use this on the client for it to work best. The server can send the function to clients but if you were to use this in say, Think or Move then it should be mostly or entirely client-controlled.
So this works on npc's? If so, that would inspire me into trying to make a hunter (L4D) snpc.
It works on anything that calls BuildBonePositions and has bones.
If I get time, I'll make DGUI. This is fucking sexy, by the way.
Another great release, Thnx JetBoom =]
Fingers/faces are pose-able. Fingers have bones in source. Are there face bones? If so, couldn't - this be used to pose faces as well?
So, I have made a little animation, nothing big, just a simple grudge head turning thing, and it works in singleplayer, but how would I get it to work in my dedicated server so everyone sees mah head turning around?
Yes, they download cl_boneanimlib.lua and sh_boneanimlib.lua
Yes, it recognizes the SetLuaAnimation() when I use "lua_run" (Same method I used for SP)
So how do I do this?
so how you fixed it?
Finger posing wouldn't work well on players. They only have a thumb and one set for the rest of the fingers. The higher quality models used for ragdolls and NPC's actually have all the fingers.
It works on my server just fine in addon format.
Also, jetboom, moving the spine would also move the head, because the head is parented to the spine. Could you add a way to do things like that in REVERSE, so that the bone moved will also move anything that it's parented to? Such as if the foot moves, everything else does too.
You're supposed to use rotations. Moving the spine in that animation was just a test to show you what happens when you do that.
Not sure if it's just me, but it seems that Lua animations don't entirely work on DModelImages, they are accepted and run just fine... to an extent. The parenting seems to have some weird stuff going on.
Using that animation on for example, a player works fine and makes then bend over at the hips, so I was just wondering if anyone had any ideas?
Edit: Just noticed, I think it's because it uses a ClientsideModel, not sure why it doesn't work with clientside models though.
Is that a player model or an npc model, Delremos? Because I tried setting the "stancetest" to an NPC but it didn't work right.
It's just a
ClientsideModel( LocalPlayer():GetModel(), RENDER_GROUP_OPAQUE_ENTITY )
This makes my character's torso stretch really high up and down. Over and over and over. And I die and spaz everywhere.
Using the it like the PAC would be horrible. (I actually wish I used this method for the PAC as well now that I think about it.)
That would only work for sequences. The math involved in only using rotations would be a nightmare.
So FrameRate is how fast the bones transition to their new position and angle? And how do I reset the bones for postures, stances, and sequences?
StopLuaAnimation ends the animation.
Also, you can assign a group to an animation and then use StopLuaAnimationGroup. Any animation using that group is stopped. Useful for say, different animations for one thing (swinging a weapon) and you don't want overlaps.
I would absolutely less than 3 anyone who made an editor for this.
Also, on my server I have a custom radio, and I made an animation for it and it's cool.
Basically, when I start the radio, people's heads bob left and right, as if listening to the music :D
Cool part: I used the ShouldPlay function or whatever to make it only play if they have the radio on, so you can tell who's listening to the radio and who's not by their heads bobbing
Turning it off and on is better than having it run all the time.
What do you mean?
Why the hell was I rated dumb?
I only made that "Why the hell was I rated dumb?" part of my last post so that I could get dumb ratings on it xD
REVERSE PSYCHOLOGY MY FRIENDS. LEARN IT.