# US 2021/0287415 A1 · Virtual object display method and apparatus, electronic device, and storage medium

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

- Number: US 2021/0287415 A1
- Document ID: US20210287415A1
- Status: Published application
- Kind: A1
- Application number: 17/335,879
- Filed: 2021-06-01
- Published: 2021-09-16
- Earliest claimed: 2019-04-30
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Zhixuan DING
- Web page: https://patentgrep.com/patent/US20210287415A1

## CPC

- G06T 13/40: of characters, e.g. humans, animals or virtual beings
- A63F 13/52: involving aspects of the displayed game scene
- A63F 13/56: Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
- A63F 13/60: Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
- G06T 7/70: Determining position or orientation of objects or cameras (camera calibration G06T7/80)
- G06T 11/60: Creating or editing images; Combining images with text
- G06T 13/00: Animation
- A63F 13/2145: the surface being also a display device, e.g. touch screens
- A63F 13/822: Strategy games; Role-playing games (A63F13/825, A63F13/828 take precedence)
- A63F 2300/1075: using a touch screen
- A63F 2300/6607: for animating game characters, e.g. skeleton kinematics
- A63F 2300/807: Role playing or strategy games
- G06T 2200/24: involving graphical user interfaces [GUIs]
- G06T 2210/52: Parallel processing
- 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

## Abstract

The present disclosure discloses a display method and apparatus for a virtual object, an electronic device, and a storage medium, and is related to the field of computer technologies. The method includes: obtaining a plurality of animation frames corresponding to each of a plurality of virtual objects and a weight of each animation frame; blending a plurality of animation frames corresponding to the plurality of virtual objects in parallel through an image processor according to the weight of each animation frame, to obtain target position and pose data of each bone in bone models of the plurality of virtual objects; and displaying the plurality of virtual objects in a graphical user interface according to the target position and pose data of each bone in the bone models of the plurality of virtual objects.

## Claims

### Claim 1

A display method for a virtual object, executed by an electronic device, comprising:
obtaining a plurality of animation frames corresponding to each of a plurality of virtual objects and each animation frame's weight, each animation frame comprising position and pose data of each bone in bone models of the virtual objects;
blending the plurality of animation frames corresponding to the plurality of virtual objects in parallel through an image processor according to each animation frame's weight to obtain target position and pose data of each bone in the bone models of the plurality of virtual objects; and
displaying the plurality of virtual objects in a graphical user interface according to the target position and pose data of each bone in the bone models of the plurality of virtual objects.

### Claim 2 (depends on 1)

The method according to claim 1, wherein blending the plurality of animation frames corresponding to the plurality of virtual objects in parallel comprises:
obtaining a plurality of parallel channels of the image processor according to a number of the plurality of virtual objects, each parallel channel being configured for one virtual object; and
blending the plurality of animation frames corresponding to the plurality of virtual objects in parallel through the plurality of parallel channels of the image processor according to each animation frame's weight to obtain the target position and pose data of each bone in the bone models of the plurality of virtual objects.

### Claim 3 (depends on 1)

The method according to claim 1, wherein blending the plurality of animation frames corresponding to the plurality of virtual objects in parallel comprises:
for each of the plurality of virtual objects, weighting the position and pose data of each bone in the bone models in the plurality of animation frames corresponding to the each virtual object according to the plurality of animation frames' weights corresponding to the each virtual object to obtain the target position and pose data of each bone in the bone model of the each virtual object.

### Claim 4 (depends on 1)

The method according to claim 1, wherein blending the plurality of animation frames corresponding to the plurality of virtual objects in parallel comprises:
for each of the plurality of virtual objects, selecting a preset number of animation frames having maximum weights among the corresponding plurality of animation frames; and
blending the selected animation frames according to the corresponding weights to obtain the target position and pose data of each bone in the bone model of each virtual object.

### Claim 5 (depends on 1)

The method according to claim 1, wherein, after blending the plurality of animation frames corresponding to the plurality of virtual objects in parallel, the method further comprises:
storing the target position and pose data of each bone in the bone models of the plurality of virtual objects in a first map,
wherein displaying the plurality of virtual objects in the graphical user interface according to the target position and pose data of each bone in the bone models of the plurality of virtual objects comprises:
sampling the first map to display the plurality of virtual objects in the graphical user interface according to a sampling result.

### Claim 6 (depends on 5)

The method according to claim 5, wherein storing the target position and pose data of each bone in the bone models of the plurality of virtual objects in the first map comprises:
storing the target position and pose data of each bone in the bone models of the plurality of virtual objects and corresponding identification information of the plurality of virtual objects in the first map,
wherein sampling the first map to display the plurality of virtual objects in the graphical user interface according to the sampling result comprises:
sampling the first map according to the identification information of the plurality of virtual objects to display the plurality of virtual objects in the graphical user interface according to the sampling result.

### Claim 7 (depends on 6)

The method according to claim 6, wherein sampling the first map according to the identification information of the plurality of virtual objects to display the plurality of virtual objects in the graphical user interface according to the sampling result comprises:
instancing a draw call to obtain an object, the draw call comprising the identification information of the plurality of virtual objects; and
sampling the first map according to the identification information of the plurality of virtual objects by using the object to display the plurality of virtual objects in the graphical user interface according to the sampling result.

### Claim 8 (depends on 1)

The method according to claim 1, wherein obtaining the plurality of animation frames corresponding to each of a plurality of virtual objects and each animation frame's weight comprises:
obtaining position and pose indication data of the plurality of virtual objects;
traversing an animation tree based on the position and pose indication data of each virtual object to obtain a traversing result of each virtual object, leaf nodes of the animation tree being associated with animation frames; and
obtaining the plurality of animation frames corresponding to each of the plurality of virtual objects and each animation frame's weight according to a plurality of traversing results corresponding to the plurality of virtual objects.

### Claim 9 (depends on 8)

The method according to claim 8, wherein before obtaining the plurality of animation frames corresponding to each of the plurality of virtual objects and each animation frame's weight, the method further comprises:
traversing the animation tree to obtain animation frames associated with the leaf nodes of the animation tree; and
storing the animation frames associated with the leaf nodes in a second map; and
wherein obtaining the plurality of animation frames corresponding to each of the plurality of virtual objects and each animation frame's weight according to a plurality of traversing results corresponding to the plurality of virtual objects comprises:
obtaining the plurality of animation frames corresponding to the plurality of virtual objects and the each animation frame's weight from the second map according to the plurality of traversing results corresponding to the plurality of virtual objects.

### Claim 10 (depends on 1)

The method according to claim 1, wherein obtaining the plurality of animation frames corresponding to each of a plurality of virtual objects and each animation frame's weight comprises:
obtaining the plurality of animation frames corresponding to each of the plurality of virtual objects and each animation frame's weight through a plurality of task threads in a central processing unit.

### Claim 11 (depends on 1)

The method according to claim 1, wherein after obtaining the plurality of animation frames corresponding to each of the plurality of virtual objects and each animation frame's weight, the method further comprises:
writing the plurality of animation frames corresponding to each of the plurality of virtual objects and the each animation frame's weight into a cache; and
wherein blending the plurality of animation frames corresponding to the plurality of virtual objects in parallel through the image processor according to each animation frame's weight to obtain the target position and pose data of each bone in the bone models of the plurality of virtual objects comprises:
extracting the plurality of animation frames corresponding to each of the plurality of virtual objects and each animation frame's weight from the cache through the image processor; and
blending the plurality of animation frames corresponding to the plurality of virtual objects in parallel according to each animation frame's weight to obtain the target position and pose data of each bone in the bone models of the plurality of virtual objects.

### Claim 12 (depends on 1)

The method according to claim 1, wherein displaying the plurality of virtual objects in the graphical user interface according to the target position and pose data of each bone in the bone models of the plurality of virtual objects comprises:
skinning each virtual object according to the target position and pose data of each bone in the bone model of each virtual object to obtain a display form of each virtual object; and
displaying the display form of each virtual object in the graphical user interface.

### Claim 13

A display apparatus for a virtual object, comprising:
at least one processor, configured to:
obtain a plurality of animation frames corresponding to each of a plurality of virtual objects and each animation frame's weight, each animation frame comprising position and pose data of each bone in bone models of the virtual objects; and
blend a plurality of animation frames corresponding to the plurality of virtual objects in parallel according to each animation frame's weight to obtain target position and pose data of each bone in the bone models of the plurality of virtual objects; and
a display in communication with the at least one processor and configured to display the plurality of virtual objects in a graphical user interface according to the target position and pose data of each bone in the bone models of the plurality of virtual objects.

### Claim 14 (depends on 13)

The display apparatus of claim 13, wherein the at least one processor is further configured to:
obtain a plurality of parallel channels according to the number of the plurality of virtual objects, each parallel channel being configured for one virtual object; and
blend the plurality of animation frames corresponding to the plurality of virtual objects in parallel through the plurality of parallel channels according to each animation frame's weight to obtain the target position and pose data of each bone in the bone models of the plurality of virtual objects.

### Claim 15 (depends on 13)

The display apparatus of claim 13, wherein, to blend the plurality of animation frames corresponding to the plurality of virtual objects in parallel, the at least one processor is further configured to:
for each of the plurality of virtual objects, weight the position and pose data of each bone in the bone models in the plurality of animation frames corresponding to each virtual object according to the plurality of animation frames' weights corresponding to each virtual object to obtain the target position and pose data of each bone in the bone model of each virtual object.

### Claim 16 (depends on 13)

The display apparatus of claim 13, wherein, to blend the plurality of animation frames corresponding to the plurality of virtual objects in parallel, the at least one processor is further configured to:
for each of the plurality of virtual objects, select a preset number of animation frames having maximum weights among the corresponding plurality of animation frames; and
blend the selected animation frames according to the selected animation frames' weights to obtain the target position and pose data of each bone in the bone model of each virtual object.

### Claim 17 (depends on 1)

An electronic device, comprising one or more processors and one or more memories, the one or more memories storing at least one computer-readable instruction, the one or more processors being configured to load the at least one computer-readable instruction to perform the method of claim 1.

### Claim 18

A non-transitory computer-readable storage medium, storing at least one instruction, the instruction being loaded and executed by at least one processor to cause the at least one processor to perform the steps, comprising:
obtaining a plurality of animation frames corresponding to each of a plurality of virtual objects and each animation frame's weight, each animation frame comprising position and pose data of each bone in bone models of the virtual objects;
blending the plurality of animation frames corresponding to the plurality of virtual objects in parallel through an image processor according to each animation frame's weight to obtain target position and pose data of each bone in the bone models of the plurality of virtual objects; and
displaying the plurality of virtual objects in a graphical user interface according to the target position and pose data of each bone in the bone models of the plurality of virtual objects.

### Claim 19 (depends on 18)

The storage medium according to claim 18, wherein, to blend the plurality of animation frames corresponding to the plurality of virtual objects in parallel, the at least one processor is further caused to perform the steps comprising:
obtaining a plurality of parallel channels of the image processor according to the number of the plurality of virtual objects, each parallel channel being configured for one virtual object; and
blending the plurality of animation frames corresponding to the plurality of virtual objects in parallel through the plurality of parallel channels of the image processor according to the each animation frame's weight to obtain the target position and pose data of each bone in the bone models of the plurality of virtual objects.

### Claim 20 (depends on 18)

The storage medium according to claim 18, wherein to blend the plurality of animation frames corresponding to the plurality of virtual objects in parallel, the at least one processor is further caused to perform the steps comprising:
for each of the plurality of virtual objects, selecting a preset number of animation frames having maximum weights among the corresponding plurality of animation frames; and
blending the selected animation frames according to the selected animation frames' weights to obtain the target position and pose data of each bone in the bone model of each virtual object.
