Re:Using NeuralNets to make smooth character animations
by jjcm on Tuesday May 02, 2017 @10:52PM
(#14252665)
What I'm really curious about is the latency of it. Having smooth and accurate animations makes for a very rich experience, but in most games having your character react instantly to your commands is more valuable. Even if it's a 100ms delay in order to accomplish this, it might still be too much especially for fast, action packed games. I know in the Witcher 3 they reduced some of the complexity in animations to make them react quicker. What this does sound amazing for though is NPCs.
Re:Using NeuralNets to make smooth character animations
by flohofwoe on Wednesday May 03, 2017 @03:53AM
(#14253803)
Exactly this. The character control in some games (eg GTA 4 and 5) feels laggy and imprecise because stopping, turning, reversing takes a lot of time. Yes, it is "natural", "realistic" and it looks nice if you're watching someone play, but playing yourself it feels like steering an oil tanker :)
Re:Using NeuralNets to make smooth character animations
by kbart on Wednesday May 03, 2017 @06:43AM
(#14254516)
I, on the contrary, like some inertia in movement because, as you've mentioned, it is more realistic. Sure, it get some time to get used to (especially if you had played Quake style shooters for a while), but I like inertial movement more than weightless ragdolls.
Re:Using NeuralNets to make smooth character animations
by chongli on Wednesday May 03, 2017 @06:46AM
(#14254531)
I don't think the GP was referring only to the speed of the algorithm. If the system adds more frames to the animation in order to smooth it out then the animation slows down by definition, unless the frame rate is also increased.
If you play a game like Street Fighter 2 you'll note that the animations for many of the basic attacks are extremely brief, something like 11 frames in duration. This may further be reduced by animation cancelling, which allows a new animation to override the currently playing one, speeding things up.
I'm generally skeptical of the ability to speed up the frame rate in order to smooth things out anyway. Players tend to use certain key frames as cues to help them properly time their attacks. By running at a higher frame rate, you reduce the temporal distinctiveness of these key frames. At any rate, I'd like to see and judge the result for myself.
Re:Using NeuralNets to make smooth character animations
by zimzim on Wednesday May 03, 2017 @03:55AM
(#14253812)
Yes, but it is very game dependent. Maybe this "engine" does not suited for fast, action packed games, but I think what players hate is annoying and logically/physically wrong animations, not smooth and fair.
Also you can train the NN on faster more reactive training data.
Re:Using NeuralNets to make smooth character animations
by mattnewport on Wednesday May 03, 2017 @03:04AM
(#14253619)
I think you're misunderstanding his point - it's not a question of latency due to the performance of the algorithm, it's a fairly fundamental tradeoff between smoothly blended animations and low latency response to user input.
In many games the user wants to see close to immediate response to their input, e.g. moving the stick to turn or pressing a button to jump but that inherently conflicts with the desire to smoothly transition between animations.
In reality, your brain starts planning an upcoming turn or jump and moving your body accordingly some time before reaching the physical obstacle you are avoiding. Control schemes for games generally don't allow for this kind of anticipatory input but rather you press the jump button at the moment you want to jump. This leaves no time to smoothly blend the animation - by the time the game receives the input it should already have started the blend some time ago.
Re:Using NeuralNets to make smooth character animations
by abainbridge on Wednesday May 03, 2017 @03:47AM
(#14253776)
Exactly. In about 2002 I worked on a PS2 game where you played a dog (Yes you could do a turd. No you couldn't lick your balls).
I spent ages tuning the code that determined how high to place the dog's centroid above the ground. I gained a lot of respect for the amount of geometry calculations a real dog has to do in order to keep its face out of the floor when running. The code needed to start reacting to a probable landscape collision hundreds of milliseconds before it happened in order to prevent the need for unnaturally large forces.
Re:Using NeuralNets to make smooth character animations
by nerfhammer on Wednesday May 03, 2017 @05:24PM
(#14260267)
Fascinating.
Obviously the thing to do is to predict user input. Capacitive sensors within buttons to try to detect when your finger is above or resting on a key? Or just hall effect analog buttons, so you can tell when the button starts to go down before it reaches the bottom of the depress action.
Re:Using NeuralNets to make smooth character animations
by rl3 on Tuesday May 02, 2017 @10:24PM
(#14252536)
This is amazing. It should even be possible to have characters traverse obstacles differently depending on their in-game skill level.
Imagine this system used to implement rock climbing. The player is simply pressing the "W" key to go up, but depending on their character's skill level the speed and manner in which traversal occurs could be very different.
I really hope Bethesda is paying attention to this, because open world games could use it more than anything. In Skyrim you climb mountains by mashing the jump button. Far from ideal, and tends to break immersion.
The tech could even be used to power melee animations some day, perhaps entire fighting styles.
Re:Using NeuralNets to make smooth character animations
by Baeocystin on Tuesday May 02, 2017 @11:44PM
(#14252875)
Fully agreed. While Skyrim Horse Physics™ was entertaining in its own way, something like the OP would be a huge leap forward for immersion.
It would likely have secondary effects of easing the burden on animators, allowing them to concentrate on more important aspects of the game, like facial interactions.
Re:Using NeuralNets to make smooth character animations
by rl3 on Wednesday May 03, 2017 @12:37AM
(#14253073)
That's a good point. I suspect neural nets would be suitable for near-perfect lip syncing animations that aren't too expensive.
We can already synthesize the speech itself to the point it sounds real, although it's very computationally intensive at present. Infusing the speech with emotion remains very difficult. Some day voice actors will probably just license their likeness along with a sample of emotive recordings.
After that, one of the few remaining holy grails is generative dialog for NPCs that's both believable, dynamic in relation to the game world, and don't sound like glorified ELIZA bot output.
Neural nets can probably be used for level design today. One use case might be creating an entire urban environment complete with residential interiors, where the artists don't have to slave over each individual apartment for it to be believable. Imagine playing a war game where the levels look like there's actually people living there.
Re:Using NeuralNets to make smooth character animations
by partycoder on Tuesday May 02, 2017 @09:07PM
(#14252223)
The results are amazing. I am do not have a trained eye around animation, but it looks no different than motion capture.
So far, correct me if I am wrong, the state of the art prior to this would be something like Unity's Mecanim, where you define a state machine for animation transitions, which would interpolate animations to save you work.
Very handy for character locomotion, but only gets you so far. I'm not sure how applicable offline processing is to this though, since if you have a large number of different types of obstacles to be traversed, you'd have to bake >= that number of animations, and your animation state machine would be enormous. The end goal might be to do that in real time, but I don't think anyone is going to seriously suggest running a neural net to calculate animation positions while the game is running. Maybe if you had some smarts in the level designer you could determine the potential pool of animations needed based on placed geometry, and build the animations at packaging time along with the state machine.
Re:Using NeuralNets to make smooth character animations
by partycoder on Wednesday May 03, 2017 @08:51AM
(#14255195)
Well, the expensive part is to train the network. After that it should not be as expensive, depending on the size.
If that is still not enough, they can also try to look at ways of producing a "good enough" effect with a smaller network.
Then, it can also be limited to only some characters, the ones that you are more likely to pay attention to.
Now, the MS Kinect does some intense processing behind the scenes (random forests) to capture your motion in real time. Yet you can still run games with decent performance. I think a neural network to adjust animations is not too dissimilar in terms of performance cost.
If you play a game like Street Fighter 2 you'll note that the animations for many of the basic attacks are extremely brief, something like 11 frames in duration. This may further be reduced by animation cancelling, which allows a new animation to override the currently playing one, speeding things up.
I'm generally skeptical of the ability to speed up the frame rate in order to smooth things out anyway. Players tend to use certain key frames as cues to help them properly time their attacks. By running at a higher frame rate, you reduce the temporal distinctiveness of these key frames. At any rate, I'd like to see and judge the result for myself.
but maybe in the future we'll have fully NN autoencoded games!
In many games the user wants to see close to immediate response to their input, e.g. moving the stick to turn or pressing a button to jump but that inherently conflicts with the desire to smoothly transition between animations.
In reality, your brain starts planning an upcoming turn or jump and moving your body accordingly some time before reaching the physical obstacle you are avoiding. Control schemes for games generally don't allow for this kind of anticipatory input but rather you press the jump button at the moment you want to jump. This leaves no time to smoothly blend the animation - by the time the game receives the input it should already have started the blend some time ago.
I spent ages tuning the code that determined how high to place the dog's centroid above the ground. I gained a lot of respect for the amount of geometry calculations a real dog has to do in order to keep its face out of the floor when running. The code needed to start reacting to a probable landscape collision hundreds of milliseconds before it happened in order to prevent the need for unnaturally large forces.
Obviously the thing to do is to predict user input. Capacitive sensors within buttons to try to detect when your finger is above or resting on a key? Or just hall effect analog buttons, so you can tell when the button starts to go down before it reaches the bottom of the depress action.
Imagine this system used to implement rock climbing. The player is simply pressing the "W" key to go up, but depending on their character's skill level the speed and manner in which traversal occurs could be very different.
I really hope Bethesda is paying attention to this, because open world games could use it more than anything. In Skyrim you climb mountains by mashing the jump button. Far from ideal, and tends to break immersion.
The tech could even be used to power melee animations some day, perhaps entire fighting styles.
It would likely have secondary effects of easing the burden on animators, allowing them to concentrate on more important aspects of the game, like facial interactions.
(Looking at you, BioWare.)
We can already synthesize the speech itself to the point it sounds real, although it's very computationally intensive at present. Infusing the speech with emotion remains very difficult. Some day voice actors will probably just license their likeness along with a sample of emotive recordings.
After that, one of the few remaining holy grails is generative dialog for NPCs that's both believable, dynamic in relation to the game world, and don't sound like glorified ELIZA bot output.
Neural nets can probably be used for level design today. One use case might be creating an entire urban environment complete with residential interiors, where the artists don't have to slave over each individual apartment for it to be believable. Imagine playing a war game where the levels look like there's actually people living there.
Clearly early days, but still, the promise is there.
So far, correct me if I am wrong, the state of the art prior to this would be something like Unity's Mecanim, where you define a state machine for animation transitions, which would interpolate animations to save you work.
Very handy for character locomotion, but only gets you so far. I'm not sure how applicable offline processing is to this though, since if you have a large number of different types of obstacles to be traversed, you'd have to bake >= that number of animations, and your animation state machine would be enormous. The end goal might be to do that in real time, but I don't think anyone is going to seriously suggest running a neural net to calculate animation positions while the game is running. Maybe if you had some smarts in the level designer you could determine the potential pool of animations needed based on placed geometry, and build the animations at packaging time along with the state machine.
If that is still not enough, they can also try to look at ways of producing a "good enough" effect with a smaller network.
Then, it can also be limited to only some characters, the ones that you are more likely to pay attention to.
Now, the MS Kinect does some intense processing behind the scenes (random forests) to capture your motion in real time. Yet you can still run games with decent performance. I think a neural network to adjust animations is not too dissimilar in terms of performance cost.
http://theorangeduck.com/media/uploads/other_stuff/phasefunc...
http://www.gameanim.com/2016/05/03/motion-matching-ubisofts-...
I would always trust actual concrete implementation rather than a research project though... unless they have source and demo available.