IP Library Granted Patent US 12711684
Granted Patent B2
US 12711684 · App. 18/763,893 · Granted Aug 18, 2026

Method, apparatus, device, readable storage medium and product for displaying virtual object

Inventors: Jiacheng Liu (Beijing, CN); Fan Zhang (Beijing, CN)
Assignees: Beijing Zitiao Network Technology Co., Ltd.; Lemon Inc.
G06T13/00G06T7/20G06T2200/24G06T2207/20092
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12711684
App. No.
18/763,893
Granted
Aug 18, 2026
Kind
B2
Abstract

There are provided a method for displaying a virtual object, apparatus, device, readable storage medium and product. The method includes: obtaining an effect processing request triggered by a user, the effect processing request comprising identification information of target effect; displaying, in a media content generating page, at least one target image frame and a virtual object associated with the target effect; determining a first motion parameter of the virtual object in a first direction based on the at least one target image frame, and determining a second motion parameter of the virtual object in a second direction based on predetermined content associated with the virtual object; and driving, through a predetermined dynamic component, the virtual object to move according to the first motion parameter and the second motion parameter, the predetermined dynamic component being on a skeleton node corresponding to the virtual object.

Claims (70)

1 . A method for displaying a virtual object, comprising:

obtaining an effect processing request triggered by a user, the effect processing request comprising identification information of target effect;

displaying, in a media content generating page, at least one target image frame and the virtual object associated with the target effect;

determining a first motion parameter of the virtual object in a first direction based on the at least one target image frame, and determining a second motion parameter of the virtual object in a second direction based on predetermined content associated with the virtual object, wherein the predetermined content comprises skeleton animation information or a predetermined parameter, skeleton nodes corresponding to the virtual object comprise a root node and at least one child node, the root node being a parent of the at least one child node or above, and determining the second motion parameter comprises:

adding the skeleton animation information to the root node; and

adding a predetermined dynamic component to the at least one child node; and

driving, through the predetermined dynamic component, the virtual object to move according to the first motion parameter and the second motion parameter, the predetermined dynamic component being on the skeleton nodes corresponding to the virtual object.

2 . The method of claim 1 , wherein determining the first motion parameter of the virtual object in the first direction based on the at least one target image frame comprises:

tracking location information of a target object in the at least one target image frame;

determining location movement information of the target object in two target image frames based on location information of the target object in a current target image frame and location information of the target object in a previous target image frame; and

determining the first motion parameter in the first direction based on the location movement information.

3 . The method of claim 1 , wherein the predetermined content associated with the virtual object comprises the skeleton animation information, wherein the skeleton animation information comprises a display location of the virtual object in each of the at least one target image frame;

determining the second motion parameter of the virtual object in the second direction based on the predetermined content associated with the virtual object comprises:

executing a predetermined number of frames of the skeleton animation information; and

determining the second motion parameter of the virtual object in the second direction based on the executed predetermined number of frames of the skeleton animation information.

4 . The method of claim 3 , wherein determining the second motion parameter of the virtual object in the second direction based on the executed predetermined number of frames of the skeleton animation information comprises:

determining the second motion parameter of the root node in the second direction based on the executed predetermined number of frames of the skeleton animation information; and

determining the second motion parameter of the root node in the second direction as the second motion parameter of the at least one child node of the virtual object in the second direction.

5 . The method of claim 1 , wherein driving, through the predetermined dynamic component, the virtual object to move according to the first motion parameter and the second motion parameter, the predetermined dynamic component being on the skeleton nodes corresponding to the virtual object comprises:

driving, through the predetermined dynamic component, the at least one child node to move according to the first motion parameter and the second motion parameter, the predetermined dynamic component being on a skeleton node corresponding to the at least one child node.

6 . The method of claim 1 , wherein the predetermined content associated with the virtual object comprises a predetermined parameter;

determining the second motion parameter of the virtual object in the second direction based on predetermined content associated with the virtual object comprises:

determining the predetermined parameter as the first motion parameter of the virtual object in the first direction.

7 . The method of claim 1 , wherein the method further comprises:

in response to a setting operation triggered by the user, obtaining a random motion parameter generated by the user, wherein the random motion parameter comprises one or more of an action coordinate axis, a gravity parameter range, and trigger timing;

wherein, driving, through the predetermined dynamic component, the virtual object to move according to the first motion parameter and the second motion parameter, the predetermined dynamic component being on the skeleton nodes corresponding to the virtual object comprises:

driving, through the predetermined dynamic component, the virtual object to move jointly according to the first motion parameter, the second motion parameter and the random motion parameter.

8 . An electronic device, comprising: a processor and a memory;

the memory storing computer-executed instructions;

the processor executing the computer-executed instructions stored in the memory to cause the processor to implement a method for displaying a virtual object, comprising:

obtaining an effect processing request triggered by a user, the effect processing request comprising identification information of target effect;

displaying, in a media content generating page, at least one target image frame and the virtual object associated with the target effect;

determining a first motion parameter of the virtual object in a first direction based on the at least one target image frame, and determining a second motion parameter of the virtual object in a second direction based on predetermined content associated with the virtual object, wherein the predetermined content comprises skeleton animation information or a predetermined parameter, skeleton nodes corresponding to the virtual object comprise a root node and at least one child node, the root node being a parent of the at least one child node or above, and determining the second motion parameter comprises:

adding the skeleton animation information to the root node; and

adding a predetermined dynamic component to the at least one child node; and

driving, through the predetermined dynamic component, the virtual object to move according to the first motion parameter and the second motion parameter, the predetermined dynamic component being on the skeleton nodes corresponding to the virtual object.

9 . The device of claim 8 , wherein determining the first motion parameter of the virtual object in the first direction based on the at least one target image frame comprises:

tracking location information of a target object in the at least one target image frame;

determining location movement information of the target object in two target image frames based on location information of the target object in a current target image frame and location information of the target object in a previous target image frame; and

determining the first motion parameter in the first direction based on the location movement information.

10 . The device of claim 8 , wherein the predetermined content associated with the virtual object comprises the skeleton animation information, wherein the skeleton animation information comprises a display location of the virtual object in each of the at least one target image frame;

determining the second motion parameter of the virtual object in the second direction based on the predetermined content associated with the virtual object comprises:

executing a predetermined number of frames of the skeleton animation information; and

determining the second motion parameter of the virtual object in the second direction based on the executed predetermined number of frames of the skeleton animation information.

11 . The device of claim 10 , wherein determining the second motion parameter of the virtual object in the second direction based on the executed predetermined number of frames of the skeleton animation information comprises:

determining the second motion parameter of the root node in the second direction based on the executed predetermined number of frames of the skeleton animation information; and

determining the second motion parameter of the root node in the second direction as the second motion parameter of the at least one child node of the virtual object in the second direction.

12 . The device of claim 8 , wherein driving, through the predetermined dynamic component, the virtual object to move according to the first motion parameter and the second motion parameter, the predetermined dynamic component being on the skeleton nodes corresponding to the virtual object comprises:

driving, through the predetermined dynamic component, the at least one child node to move according to the first motion parameter and the second motion parameter, the predetermined dynamic component being on a skeleton node corresponding to the at least one child node.

13 . The device of claim 8 , wherein the predetermined content associated with the virtual object comprises a predetermined parameter;

determining the second motion parameter of the virtual object in the second direction based on predetermined content associated with the virtual object comprises:

determining the predetermined parameter as the first motion parameter of the virtual object in the first direction.

14 . The device of claim 8 , wherein the method further comprises:

in response to a setting operation triggered by the user, obtaining a random motion parameter generated by the user, wherein the random motion parameter comprises one or more of an action coordinate axis, a gravity parameter range, and trigger timing;

wherein, driving, through the predetermined dynamic component, the virtual object to move according to the first motion parameter and the second motion parameter, the predetermined dynamic component being on the skeleton nodes corresponding to the virtual object comprises:

driving, through the predetermined dynamic component, the virtual object to move jointly according to the first motion parameter, the second motion parameter and the random motion parameter.

15 . A non-transitory computer readable storage medium, wherein the computer readable storage medium stores computer-executed instructions which, when executed by a processor, implement a method for displaying a virtual object, obtaining an effect processing request triggered by a user, the effect processing request comprising identification information of target effect;

displaying, in a media content generating page, at least one target image frame and the virtual object associated with the target effect;

determining a first motion parameter of the virtual object in a first direction based on the at least one target image frame, and determining a second motion parameter of the virtual object in a second direction based on predetermined content associated with the virtual object, wherein the predetermined content comprises skeleton animation information or a predetermined parameter, skeleton nodes corresponding to the virtual object comprise a root node and at least one child node, the root node being a parent of the at least one child node or above, and determining the second motion parameter comprises:

adding the skeleton animation information to the root node; and

adding a predetermined dynamic component to the at least one child node; and

driving, through the predetermined dynamic component, the virtual object to move according to the first motion parameter and the second motion parameter, the predetermined dynamic component being on the skeleton nodes corresponding to the virtual object.

16 . The medium of claim 15 , wherein determining the first motion parameter of the virtual object in the first direction based on the at least one target image frame comprises:

tracking location information of a target object in the at least one target image frame;

determining location movement information of the target object in two target image frames based on location information of the target object in a current target image frame and location information of the target object in a previous target image frame; and

determining the first motion parameter in the first direction based on the location movement information.

17 . The medium of claim 15 , wherein the predetermined content associated with the virtual object comprises the skeleton animation information, wherein the skeleton animation information comprises a display location of the virtual object in each of the at least one target image frame;

determining the second motion parameter of the virtual object in the second direction based on the predetermined content associated with the virtual object comprises:

executing a predetermined number of frames of the skeleton animation information; and

determining the second motion parameter of the virtual object in the second direction based on the executed predetermined number of frames of the skeleton animation information.