# US 2024/0005582 A1 · Animation processing method and apparatus, computer storage medium, and electronic device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0005582 A1
- Document ID: US20240005582A1
- Status: Published application
- Kind: A1
- Application number: 18/367,913
- Filed: 2023-09-13
- Published: 2024-01-04
- Earliest claimed: 2020-01-15
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Rong Zhang
- Web page: https://patentgrep.com/patent/US20240005582A1

## CPC

- G06T 13/40: of characters, e.g. humans, animals or virtual beings
- A63F 13/55: Controlling game characters or game objects based on the game progress
- A63F 13/573: using trajectories of game objects, e.g. of a golf ball according to the point of impact
- A63F 13/67: adaptively or by learning from player actions, e.g. skill level adjustment or by storing successful combat sequences for re-use
- G06N 3/006: based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/092: Reinforcement learning
- A63F 13/52: involving aspects of the displayed game scene
- A63F 13/655: by importing photos, e.g. of the player
- A63F 2300/6607: for animating game characters, e.g. skeleton kinematics
- A63F 2300/695: Imported photos, e.g. of the player
- G06T 2200/24: involving graphical user interfaces [GUIs]
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- A63F: CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

An animation processing method is performed by an electronic device. The method including: obtaining state information and task information that correspond to a virtual character in a virtual environment at a current moment in an animation segment and a terrain feature of the virtual environment; performing feature extraction on the terrain feature, the state information, and the task information using an animation processing model, to obtain joint action information corresponding to the virtual character at a next moment; obtaining gesture adjustment information corresponding to the virtual character from the current moment to the next moment based on the joint action information; and updating the animation segment according to the gesture adjustment information.

## Claims

### Claim 1

An animation processing method performed by an electronic device, the method comprising:
obtaining state information and task information that correspond to a virtual character in a virtual environment at a current moment in an animation segment and a terrain feature of the virtual environment;
performing feature extraction on the terrain feature, the state information, and the task information using an animation processing model, to obtain joint action information corresponding to the virtual character at a next moment;
obtaining gesture adjustment information corresponding to the virtual character from the current moment to the next moment based on the joint action information; and
updating the animation segment according to the gesture adjustment information.

### Claim 2 (depends on 1)

The animation processing method according to claim 1, further comprising:
obtaining gesture adjustment information corresponding to the virtual character at a plurality of moments based on the animation segment; and
determining a target action sequence according to the gesture adjustment information at the plurality of moments.

### Claim 3 (depends on 1)

The animation processing method according to claim 1, further comprising:
determining that the current moment is an initial moment of the animation segment and determining the state information according to gesture information of the virtual character at the initial moment of the animation segment; or
determining that the current moment is a non-initial moment of the animation segment and determining the state information according to joint action information corresponding to the virtual character at a previous moment.

### Claim 4 (depends on 1)

The animation processing method according to claim 1, wherein the terrain feature is a feature of a self-defined terrain or a feature of a real-life terrain;
the state information comprises a gesture, a speed, and a phase of each joint of the virtual character; and
the task information comprises a target speed direction or a target point coordinate corresponding to the virtual character.

### Claim 5 (depends on 1)

The animation processing method according to claim 1, wherein the obtaining gesture adjustment information corresponding to the virtual character from the current moment to the next moment based on the joint action information further comprises:
determining a joint torque according to the joint action information; and
applying the joint torque to a corresponding joint of the virtual character to obtain gesture adjustment information corresponding to the virtual character.

### Claim 6 (depends on 5)

The animation processing method according to claim 5, wherein the determining a joint torque according to the joint action information comprises:
determining a current position and a target position of a joint according to the joint action information;
determining a current speed and a current acceleration of the joint according to the current position, and a target speed of the joint according to the target position, respectively;
determining a first position and a first speed that correspond to the joint after a next control period according to the current speed and the current acceleration; and
calculating the joint torque according to a proportional coefficient, a derivative gain coefficient, the current position, the target position, the target speed, the first position, and the first speed.

### Claim 7 (depends on 5)

The animation processing method according to claim 5, wherein the applying the joint torque to a corresponding joint of the virtual character to obtain gesture adjustment information corresponding to the virtual character comprises:
applying the joint torque to the corresponding joint using a physical engine; and
rendering the corresponding joint using the physical engine to generate the gesture adjustment information.

### Claim 8

An electronic device, comprising:
one or more processors; and
memory, configured to store one or more computer programs, the one or more computer programs, when executed by the one or more processors, causing the electronic device to perform an animation processing method including:
obtaining state information and task information that correspond to a virtual character in a virtual environment at a current moment in an animation segment and a terrain feature of the virtual environment;
performing feature extraction on the terrain feature, the state information, and the task information using an animation processing model, to obtain joint action information corresponding to the virtual character at a next moment;
obtaining gesture adjustment information corresponding to the virtual character from the current moment to the next moment based on the joint action information; and
updating the animation segment according to the gesture adjustment information.

### Claim 9 (depends on 8)

The electronic device according to claim 8, wherein the method further comprises:
obtaining gesture adjustment information corresponding to the virtual character at a plurality of moments based on the animation segment; and
determining a target action sequence according to the gesture adjustment information at the plurality of moments.

### Claim 10 (depends on 8)

The electronic device according to claim 8, wherein the method further comprises:
determining that the current moment is an initial moment of the animation segment and determining the state information according to gesture information of the virtual character at the initial moment of the animation segment; or
determining that the current moment is a non-initial moment of the animation segment and determining the state information according to joint action information corresponding to the virtual character at a previous moment.

### Claim 11 (depends on 8)

The electronic device according to claim 8, wherein the terrain feature is a feature of a self-defined terrain or a feature of a real-life terrain;
the state information comprises a gesture, a speed, and a phase of each joint of the virtual character; and
the task information comprises a target speed direction or a target point coordinate corresponding to the virtual character.

### Claim 12 (depends on 8)

The electronic device according to claim 8, wherein the obtaining gesture adjustment information corresponding to the virtual character from the current moment to the next moment based on the joint action information further comprises:
determining a joint torque according to the joint action information; and
applying the joint torque to a corresponding joint of the virtual character to obtain gesture adjustment information corresponding to the virtual character.

### Claim 13 (depends on 12)

The electronic device according to claim 12, wherein the determining a joint torque according to the joint action information comprises:
determining a current position and a target position of a joint according to the joint action information;
determining a current speed and a current acceleration of the joint according to the current position, and a target speed of the joint according to the target position, respectively;
determining a first position and a first speed that correspond to the joint after a next control period according to the current speed and the current acceleration; and
calculating the joint torque according to a proportional coefficient, a derivative gain coefficient, the current position, the target position, the target speed, the first position, and the first speed.

### Claim 14 (depends on 12)

The electronic device according to claim 12, wherein the applying the joint torque to a corresponding joint of the virtual character to obtain gesture adjustment information corresponding to the virtual character comprises:
applying the joint torque to the corresponding joint using a physical engine; and
rendering the corresponding joint using the physical engine to generate the gesture adjustment information.

### Claim 15

A non-transitory computer-readable storage medium, storing one or more computer programs, the one or more computer programs, when executed by one or more processors of an electronic device, causing the electronic device to perform an animation processing method including:
obtaining state information and task information that correspond to a virtual character in a virtual environment at a current moment in an animation segment and a terrain feature of the virtual environment;
performing feature extraction on the terrain feature, the state information, and the task information using an animation processing model, to obtain joint action information corresponding to the virtual character at a next moment;
obtaining gesture adjustment information corresponding to the virtual character from the current moment to the next moment based on the joint action information; and
updating the animation segment according to the gesture adjustment information.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the method further comprises:
obtaining gesture adjustment information corresponding to the virtual character at a plurality of moments based on the animation segment; and
determining a target action sequence according to the gesture adjustment information at the plurality of moments.

### Claim 17 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the method further comprises:
determining that the current moment is an initial moment of the animation segment and determining the state information according to gesture information of the virtual character at the initial moment of the animation segment; or
determining that the current moment is a non-initial moment of the animation segment and determining the state information according to joint action information corresponding to the virtual character at a previous moment.

### Claim 18 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the terrain feature is a feature of a self-defined terrain or a feature of a real-life terrain;
the state information comprises a gesture, a speed, and a phase of each joint of the virtual character; and
the task information comprises a target speed direction or a target point coordinate corresponding to the virtual character.

### Claim 19 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the obtaining gesture adjustment information corresponding to the virtual character from the current moment to the next moment based on the joint action information further comprises:
determining a joint torque according to the joint action information; and
applying the joint torque to a corresponding joint of the virtual character to obtain gesture adjustment information corresponding to the virtual character.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium according to claim 19, wherein the determining a joint torque according to the joint action information comprises:
determining a current position and a target position of a joint according to the joint action information;
determining a current speed and a current acceleration of the joint according to the current position, and a target speed of the joint according to the target position, respectively;
determining a first position and a first speed that correspond to the joint after a next control period according to the current speed and the current acceleration; and
calculating the joint torque according to a proportional coefficient, a derivative gain coefficient, the current position, the target position, the target speed, the first position, and the first speed.
