CN117827329A - Method and system for displaying multiple avatars - Google Patents

Method and system for displaying multiple avatars Download PDF

Info

Publication number
CN117827329A
CN117827329A CN202211194876.5A CN202211194876A CN117827329A CN 117827329 A CN117827329 A CN 117827329A CN 202211194876 A CN202211194876 A CN 202211194876A CN 117827329 A CN117827329 A CN 117827329A
Authority
CN
China
Prior art keywords
avatars
accessory
hierarchical
avatar
target scene
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211194876.5A
Other languages
Chinese (zh)
Inventor
胡钧豪
任佳杰
章怀宙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202211194876.5A priority Critical patent/CN117827329A/en
Publication of CN117827329A publication Critical patent/CN117827329A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The application discloses a method for displaying a plurality of virtual images, which comprises the following steps: acquiring a plurality of virtual images; loading the multiple virtual images into a target scene, wherein the multiple virtual images correspond to multiple layers; and rendering the plurality of avatars for presentation in the target scene according to a hierarchy of each of the plurality of layers. In the technical scheme provided by the application, each virtual image is respectively located in different layers, so that the same scene loading can load a plurality of virtual images. Based on the hierarchy of each layer, the rendering sequence of each avatar can be controlled, so that various display effects of a plurality of avatars in a target scene are controlled, and the diversity of virtual play tools is increased.

Description

Method and system for displaying multiple avatars
Technical Field
The present disclosure relates to the field of computer technology, and in particular, to a method, a system, a computer device, and a computer readable storage medium for displaying multiple avatars.
Background
With the development of computer technology, services such as video playing have become the next popular network service. In order to further enhance the interest of video playing and to take into account both the contradictory requirements of content producers for expressing self and protecting self, the video platform provides an avatar capable of rapidly generating its own personality avatar and incorporating into content creation. Taking live broadcast as an example, the anchor may configure itself with an avatar instead of the real itself.
However, the current virtual live tool can only load one virtual image at the same time in the same scene, and the use experience is poor.
Disclosure of Invention
An object of embodiments of the present application is to provide a method, system, computer device, and computer-readable storage medium for displaying multiple avatars, which solve the above problems.
One aspect of the embodiments of the present application provides a method of displaying a plurality of avatars, including:
acquiring a plurality of virtual images;
loading the multiple virtual images into a target scene, wherein the multiple virtual images correspond to multiple layers; and
The plurality of avatars are rendered for presentation in the target scene according to a hierarchy of each of the plurality of layers.
Optionally, the loading the plurality of avatars into the target scene includes:
the plurality of avatars are dynamically loaded based on live 2D.
Optionally, the loading the plurality of avatars into the target scene includes:
assigning a respective identifier to each avatar of the plurality of avatars;
binding identifiers corresponding to the same avatar with the layers to obtain the mapping relation between the multiple avatars and the multiple layers.
Optionally, the identifier comprises a hash value;
accordingly, the assigning a respective identifier to each avatar of the plurality of avatars includes:
storing each virtual image into a memory hash table;
and respectively generating corresponding hash values for each virtual image according to the position of each virtual image in the memory hash table.
Optionally, the method further comprises:
a hierarchy of layers of each avatar is determined based on an order of addition of each avatar of the plurality of avatars.
Optionally, the rendering the plurality of avatars for presentation in the target scene according to the hierarchy of each of the plurality of layers includes:
displaying a hierarchical control interface, wherein the hierarchical control interface comprises a plurality of hierarchical elements, and each hierarchical element corresponds to one layer;
adjusting a hierarchical relationship between the plurality of layers in response to an adjustment to a target hierarchical element of the plurality of hierarchical elements; and
And controlling the rendering order of the plurality of avatars to render the plurality of avatars based on the adjusted hierarchical relationship.
Optionally, the plurality of hierarchical elements form a tree structure.
Optionally, the method further comprises:
loading an accessory into the target scene in response to the adding of the accessory;
adding an accessory layer for the accessory, and adding an accessory layer element bound with the accessory layer into the layer control interface;
and displaying the accessory in the target scene according to the positions of the accessory hierarchy elements in a plurality of hierarchy elements.
An aspect of an embodiment of the present application further provides a system for displaying a plurality of avatars, including:
an acquisition module for acquiring a plurality of avatar;
the loading module is used for loading the multiple virtual images into a target scene, and the multiple virtual images correspond to multiple layers; and
And the rendering module is used for rendering the plurality of virtual images to be displayed in the target scene according to the hierarchy of each layer in the plurality of layers.
An aspect of an embodiment of the present application further provides a method of displaying a plurality of avatars, including:
displaying a graphical interface of a virtual live tool, wherein the graphical interface comprises an avatar adding control;
sequentially loading the plurality of avatars into a target scene in response to the addition of the plurality of avatars by the avatar addition control; wherein the plurality of avatars are respectively configured in different layers;
displaying a hierarchical control interface on the graphical interface; wherein each hierarchical element corresponds to a layer;
adjusting the hierarchical relationship of each layer in response to an adjustment to a target hierarchical element of the plurality of hierarchical elements; and
Controlling a rendering order of the plurality of avatars to render the plurality of avatars based on the adjusted hierarchical relationship;
and displaying rendering results of the plurality of avatars in the target scene.
Optionally, the graphical interface further comprises an accessory addition control; the method further comprises the steps of:
loading the accessory into the target scene in response to the addition of the accessory by the accessory addition control;
adding an accessory layer for the accessory, and adding an accessory layer element bound with the accessory layer into the layer control interface;
and displaying the accessory in the target scene according to the positions of the accessory hierarchy elements in a plurality of hierarchy elements.
An aspect of the embodiments of the present application further provides a computer apparatus comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of presenting a plurality of avatars as described above when the computer program is executed.
An aspect of the embodiments of the present application further provides a computer-readable storage medium having stored thereon a computer program executable by at least one processor to cause the at least one processor to perform the steps of a method of displaying a plurality of avatars as described above.
The method, system, computer device and computer readable storage medium for displaying multiple virtual images provided in the embodiments of the present application may include the following technical effects:
each avatar is located at a different layer, respectively, so that the same scene loading can load multiple avatars. Based on the hierarchy of each layer, the rendering sequence of each avatar can be controlled, so that various display effects of a plurality of avatars in a target scene are controlled, the diversity of virtual playing tool playing methods is increased, and user experience is improved.
Drawings
Fig. 1 schematically illustrates an application environment diagram of a method of displaying a plurality of avatars according to an embodiment of the present application;
fig. 2 schematically illustrates a flowchart of a method of displaying a plurality of avatars according to a first embodiment of the present application;
fig. 3 schematically shows a sub-flowchart of step S202 in fig. 2;
fig. 4 schematically shows another sub-flowchart of step S202 in fig. 2;
fig. 5 schematically shows a sub-flowchart of step S204 in fig. 2;
FIG. 6 schematically illustrates a hierarchical management interface;
FIG. 7 schematically illustrates a display effect in one of the hierarchical relationships;
FIG. 8 schematically illustrates a display effect in another hierarchical relationship;
fig. 9 is a flowchart schematically showing the new steps of a method of displaying a plurality of avatars according to the first embodiment of the present application;
fig. 10 schematically shows a display effect of adding accessories;
FIG. 11 schematically illustrates an operational flow diagram of one example of an application;
fig. 12 schematically illustrates a flowchart of a method of displaying a plurality of avatars according to a second embodiment of the present application;
fig. 13 schematically illustrates a block diagram of a system for displaying a plurality of avatars according to a third embodiment of the present application;
fig. 14 schematically illustrates a block diagram of a system for displaying a plurality of avatars according to a fourth embodiment of the present application;
fig. 15 schematically illustrates a hardware architecture diagram of a computer device adapted to implement a method of displaying a plurality of avatars according to a fifth embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be noted that the descriptions of "first," "second," etc. in the embodiments of the present application are for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions between the embodiments of each application may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the protection scope of the application.
In the description of the present application, it should be understood that the numerical references before the steps do not identify the order of performing the steps, but are only used for convenience in describing the present application and distinguishing each step, and thus should not be construed as limiting the present application.
The following is a term explanation of the present application:
live2D is a drawing rendering technique. Live2D is a completely new animation system that can be animated and that shows the expression and emotion of a character, and can be applied to the fields of game making, live video, animation and video creation.
SDKs (Software Development Kit, software development kits), a collection of development tools when creating application software for a particular software package, software framework, hardware platform, operating system, etc., are kits that implement a function of the software.
For the convenience of understanding the technical solutions provided in the embodiments of the present application, the following related technologies are described below:
with the development of computer vision technology, the virtual image goes into the field of view of the public in a live broadcast mode and is liked by more and more users.
The virtual live tool can render the avatar through a tool kit such as a built-in live2D-sdk, for example, the live2D-sdk can be used for making the avatar of the original picture. The original may be pre-drawn or captured by a camera module.
The inventor knows that the same scene of the virtual live broadcast tool can only load one virtual image at the same time. In order to improve the diversity of virtual live tool play, the application provides a method for displaying a plurality of virtual images. In the present application, the avatar addition hierarchical management system may be rendered based on live2D-sdk, so that a plurality of avatars may be simultaneously loaded in the same scene and the order in which each avatar is displayed is hierarchically managed.
Exemplary application environments for embodiments of the present application are provided below.
Fig. 1 schematically illustrates an environment application diagram of a method of displaying a plurality of avatars according to an embodiment of the present application.
The computer device 10000 may be a terminal device such as a smart phone, a tablet device, or a PC (personal computer). The computer device 10000 is installed with a virtual live tool for displaying an avatar. The virtual live tool may provide a related operator interface. The virtual live tool may be a client program, browser, or the like.
As shown in fig. 1, the virtual live tool may also provide various functions of importing an avatar, hierarchical management, and the like. Based on these functions, the user may adjust the presentation effect by gestures or other forms of input instructions. The interface shown in fig. 1 is merely illustrative. In practical applications, the interface of the virtual live tool may be more reasonable.
A scheme for displaying a plurality of avatars will be described below through various embodiments. The scheme may be implemented by the computer device 10000.
Example 1
Fig. 2 schematically illustrates a flowchart of a method of displaying a plurality of avatars according to a first embodiment of the present application. As shown in fig. 2, the method of displaying a plurality of avatars may include steps S200 to S204, wherein:
and step S200, acquiring a plurality of virtual images.
Step S202, loading the multiple avatars into a target scene, wherein the multiple avatars correspond to multiple layers.
And step S204, rendering the plurality of avatars to be displayed in the target scene according to the hierarchy of each layer in the plurality of layers.
In this embodiment, each avatar is located at a different layer, respectively, so that the same scene loading can load multiple avatars. Based on the hierarchy of each layer, the rendering sequence of each avatar can be controlled, so that various display effects of a plurality of avatars in a target scene are controlled, and the diversity of virtual play tools is increased.
Each of steps S200 to S204 will be described in detail below with reference to fig. 1.
Step S200A plurality of avatars are acquired.
Computer device 10000 provides a virtual live tool. The virtual live tool provides a graphical interface 2 as shown in fig. 1. By way of example, the graphical interface 2 provides a plurality of controls, such as avatar add control 21, map add control (not identified), accessory add control (not identified), and the like, located on the left side of the graphical interface 2.
The user may trigger the controls via a mouse, keyboard, touch panel/screen, for example: by triggering the avatar addition control 21 into the avatar addition interface, local and/or cloud avatar files containing at least part of the data used to render the avatar are selected at the avatar addition interface.
In some embodiments, the computer apparatus 10000 may also acquire avatar files of the plurality of avatars according to a remote control.
In some embodiments, the computer apparatus 10000 may also automatically acquire avatar files of the plurality of avatars according to user settings/preferences.
It should be noted that, the avatar file may be an Live 2D-based animation model file, or other types of files.
Step S202And loading the multiple avatars into a target scene, wherein the multiple avatars correspond to multiple layers.
And loading the multiple virtual images into the target scene in sequence. The plurality of avatars are respectively configured in different layers.
With continued reference to fig. 1, the avatar A1 and the avatar A2 may be sequentially loaded into the target scene. Wherein the avatar A1 is located in one layer and the avatar A2 is located in another layer.
In an alternative embodiment, the step S202 of loading the plurality of avatars into the target scene may be implemented by the steps of: the plurality of avatars are dynamically loaded based on live 2D. Live2D can be animated to represent character actions, etc. In an exemplary application, the virtual live tool loads the multiple avatars through built-in live2D-sdk, creating dynamic expressions, injecting vitality for the avatars. The plurality of avatars may be loaded and rendered by other tool packs.
In an alternative embodiment, as shown in fig. 3, the step S202 of loading the plurality of avatars into the target scene may include the steps of: step S300, allocating and configuring a corresponding identifier for each of the plurality of avatars; step S302, binding identifiers corresponding to the same avatar with the layers to obtain the mapping relation between the multiple avatars and the multiple layers. In this optional embodiment, the plurality of layers and the plurality of avatars are bound in a one-to-one correspondence through identifiers, so that control and display of the corresponding avatars can be achieved through control of the layers.
The identifiers may include hash values to ensure uniqueness of the respective identifiers, thereby ensuring correspondence of the avatar and the layer.
In an alternative embodiment, as shown in fig. 4, the step S300 "allocating a configuration corresponding identifier to each of the plurality of avatars" may include the steps of: step S400, storing each virtual image into a memory hash table; and step S402, respectively generating corresponding hash values for each virtual image according to the position of each virtual image in the memory hash table. In this alternative embodiment, based on the hash value of each avatar, it is possible to ensure that the correspondence between each avatar and the corresponding layer is valid and stable. And binding the layers and the virtual images in a one-to-one correspondence manner through the hash value, so that the control and the display of the corresponding virtual images can be realized through the control of the layers.
Step S204Rendering the plurality of avatars for presentation in the target scene according to a hierarchy of each of the plurality of layers.
As mentioned above, the plurality of avatars correspond to the plurality of layers, and further, it is mentioned that such correspondence may be achieved by binding identifiers (e.g., hash values) of the respective avatars with the corresponding layers.
In case of determining correspondence between the plurality of avatars and the plurality of layers, hierarchical management may be added such that a plurality of avatars may be loaded simultaneously in the same scene and the order in which each avatar is displayed may be hierarchically managed.
For example, the rendering and display order of the avatars corresponding to the respective layers is controlled by managing the hierarchy of the respective layers.
In an alternative embodiment, as shown in fig. 5, the step S204 "rendering the plurality of avatars to be shown in the target scene according to the hierarchy of each of the plurality of layers" may include the steps of: step S500, a hierarchy control interface is displayed, wherein the hierarchy control interface comprises a plurality of hierarchy elements, and each hierarchy element corresponds to one layer; step S502, in response to the adjustment of the target hierarchical element in the plurality of hierarchical elements, adjusting the hierarchical relationship among the plurality of layers; and step S504, controlling the rendering sequence of the plurality of avatars to render the plurality of avatars based on the adjusted hierarchical relationship.
The plurality of hierarchical elements form a tree structure, so that better management effect is achieved. Other structures may of course be formed.
With continued reference to fig. 1, the graphical interface 2 may pop up the hierarchical management interface 22 with the computer device 10000 loading the avatars A1 and A2. The hierarchical management interface 22 may be displayed in tabular form or other forms. Based on the loading of the avatars A1 and A2, the hierarchical management interface 22 presents a first hierarchical element B1 for controlling the layer C1 corresponding to the avatar A1 and a second hierarchical element B2 for controlling the layer C2 corresponding to the avatar A2. By adjusting the order of the first hierarchical element B1 and the second hierarchical element B2, the hierarchical relationship between the layers C1 and C2 can be adjusted, thereby controlling the rendering order of the avatar A1 and the avatar A2.
As shown in fig. 6, each hierarchical element may include, but is not limited to, the following information: thumbnail of corresponding avatar, name of corresponding avatar, direction control, refresh control, lock control, hidden control, delete control. By dragging the positions of the hierarchical elements in the hierarchical list, the rendering order of the corresponding layers (avatars) can be adjusted. By controlling the controls in the hierarchy elements, adjustments and the like can be made to the corresponding avatar.
As shown in fig. 7, the first hierarchical element B1 is higher in hierarchy than the second hierarchical element B2, and thus the avatar A1 overlays the avatar A2.
As shown in fig. 8, the first hierarchical element B1 is lower in hierarchy than the second hierarchical element B2, and thus the avatar A2 overlays the avatar A1.
For quick determination of the hierarchy, as a default, the hierarchy of the layers of each of the plurality of avatars may be determined based on an order of addition of the each avatar. Such as a set-top display of each post-added avatar.
To increase user experience and display effect, the target scene may also incorporate other virtual objects, such as accessories, gifts, and head sticks.
In an alternative embodiment, as shown in fig. 9, the method further comprises: step S900, loading an accessory into the target scene in response to the addition of the accessory; step S902, adding an accessory layer for the accessory, and adding accessory layer elements bound with the accessory layer into the layer control interface; step S904, displaying the accessory in the target scene according to the positions of the accessory hierarchy elements in the plurality of hierarchy elements.
As shown in fig. 10, the graphic interface 2 may pop up the hierarchical management interface 22 in a case where the computer device 10000 loads the avatar A1 and the avatar A2. The hierarchical management interface 22 may be displayed in tabular form or other forms. Based on the loading of the avatars A1 and A2, the hierarchical management interface 22 presents a first hierarchical element B1 for controlling the layer C1 corresponding to the avatar A1 and a second hierarchical element B2 for controlling the layer C2 corresponding to the avatar A2. In the case of subsequent further loading of the accessories A3 and A4, the hierarchical management interface 22 presents a third hierarchical element B3 for controlling the layer C3 corresponding to the accessories A3 and a fourth hierarchical element B4 for controlling the layer C4 corresponding to the accessories A4. As shown in the hierarchical management interface 22, the hierarchical relationship (priority) between the respective layers is: the layer C3 of the third level element B3 > the layer C4 of the fourth level element B4 > the layer C1 of the first level element B1 > the layer C2 of the second level element B2. The final display effect is as follows: the accessory A4 is covered on the virtual image A2, so that the display effect of the end plate of the virtual image A2 is formed; the accessory A3 covers the virtual on the virtual image A1, thereby forming the display effect of the virtual image A1 when holding the wine glass.
In order to make the present application easier to understand, as shown in fig. 11, an application example is provided below.
Step S1100, the user adds an avatar.
Step S1102, dynamically loading the avatar based on live 2D.
Step S1104, storing the ID and the avatar through a memory hash table, and displaying a hierarchical management interface.
Step S1106, the tree hierarchy structure formed by each hierarchy element in the hierarchy management interface is in one-to-one correspondence with the avatar IDs.
In step S1108, the order of each hierarchical element in the tree hierarchy is manipulated to control the rendering order of the avatar.
Step S1110, rendering is performed based on the rendering sequence of the avatar, and rendering results are displayed.
Example two
It should be noted that, specific details in this embodiment may refer to the first embodiment, which is not described herein.
Fig. 12 schematically illustrates a flowchart of a method of displaying a plurality of avatars according to a second embodiment of the present application. As shown in fig. 12, the method of displaying a plurality of avatars may include steps S1200 to S1210, wherein:
step S1200, a graphical interface of a virtual live tool is displayed, wherein the graphical interface comprises an avatar adding control;
step S1202, in response to the addition of a plurality of avatars by the avatar addition control, loading the plurality of avatars into a target scene in turn; wherein the plurality of avatars are respectively configured in different layers;
step S1204, displaying a hierarchical control interface on the graphical interface; wherein each hierarchical element corresponds to a layer;
step S1206, in response to the adjustment for the target hierarchical element of the plurality of hierarchical elements, adjusting the hierarchical relationship of each layer; and
Step S1208 of controlling a rendering order of the plurality of avatars to render the plurality of avatars based on the adjusted hierarchical relationship;
step S1210, displaying the rendering results of the plurality of avatars in the target scene.
In an alternative embodiment, the graphical interface further comprises an accessory addition control; the method further comprises the steps of:
loading the accessory into the target scene in response to the addition of the accessory by the accessory addition control;
adding an accessory layer for the accessory, and adding an accessory layer element bound with the accessory layer into the layer control interface;
and displaying the accessory in the target scene according to the positions of the accessory hierarchy elements in a plurality of hierarchy elements.
Example III
Fig. 13 schematically illustrates a block diagram of a system for displaying a plurality of avatars, which may be divided into one or more program modules, stored in a storage medium and executed by one or more processors to accomplish the embodiments of the present application, according to the third embodiment of the present application. Program modules in the embodiments of the present application refer to a series of computer program instruction segments capable of implementing specific functions, and the following description specifically describes the functions of each program module in the embodiment. As shown in fig. 13, the system 1300 for displaying a plurality of avatars may include an acquisition module 1310, a loading module 1320, a rendering module 1330, wherein:
an acquisition module 1310 for acquiring a plurality of avatars;
a loading module 1320, configured to load the multiple avatars into a target scene, where the multiple avatars correspond to multiple layers; and
And a rendering module 1330 for rendering the plurality of avatars to be shown in the target scene according to the hierarchy of each of the plurality of layers.
In an alternative embodiment, the loading module 1320 is further configured to:
the plurality of avatars are dynamically loaded based on live 2D.
In an alternative embodiment, the loading module 1320 is further configured to:
assigning a respective identifier to each avatar of the plurality of avatars;
binding identifiers corresponding to the same avatar with the layers to obtain the mapping relation between the multiple avatars and the multiple layers.
In an alternative embodiment, the identifier comprises a hash value; the loading module 1320 is further configured to:
storing each virtual image into a memory hash table;
and respectively generating corresponding hash values for each virtual image according to the position of each virtual image in the memory hash table.
In an alternative embodiment, the system further comprises a determination module (not identified) further for:
a hierarchy of layers of each avatar is determined based on an order of addition of each avatar of the plurality of avatars.
In an alternative embodiment, the rendering module 1330 is further configured to: :
displaying a hierarchical control interface, wherein the hierarchical control interface comprises a plurality of hierarchical elements, and each hierarchical element corresponds to one layer;
adjusting a hierarchical relationship between the plurality of layers in response to an adjustment to a target hierarchical element of the plurality of hierarchical elements; and
And controlling the rendering order of the plurality of avatars to render the plurality of avatars based on the adjusted hierarchical relationship.
In an alternative embodiment, the plurality of hierarchical elements form a tree structure.
In an alternative embodiment, the system further comprises an accessory display module (not identified), further for:
loading an accessory into the target scene in response to the adding of the accessory;
adding an accessory layer for the accessory, and adding an accessory layer element bound with the accessory layer into the layer control interface;
and displaying the accessory in the target scene according to the positions of the accessory hierarchy elements in a plurality of hierarchy elements.
Example IV
Fig. 14 schematically illustrates a block diagram of a system for displaying a plurality of avatars, which may be divided into one or more program modules, stored in a storage medium and executed by one or more processors, to accomplish the embodiments of the present application, according to the fourth embodiment of the present application. Program modules in the embodiments of the present application refer to a series of computer program instruction segments capable of implementing specific functions, and the following description specifically describes the functions of each program module in the embodiment. As shown in fig. 14, the system 1400 for displaying a plurality of avatars may include a first display module 1410, a loading module 1420, a second display module 1430, an adjusting module 1440, a control module 1450, a third display module 1460, wherein:
a first display module 1410 for displaying a graphical interface of a virtual live tool, the graphical interface including an avatar addition control;
a loading module 1420 for sequentially loading the plurality of avatars into a target scene in response to the addition of the plurality of avatars through the avatar addition control; wherein the plurality of avatars are respectively configured in different layers;
a second display module 1430 for displaying a hierarchical control interface at the graphical interface; wherein each hierarchical element corresponds to a layer;
an adjustment module 1440, configured to adjust a hierarchical relationship of each layer in response to an adjustment for a target hierarchical element of the plurality of hierarchical elements; and
A control module 1450 for controlling a rendering order of the plurality of avatars to render the plurality of avatars based on the adjusted hierarchical relationship;
and a third display module 1460 for displaying rendering results of the plurality of avatars in the target scene.
In an alternative embodiment, the graphical interface further comprises an accessory addition control; the system further comprises an accessory display module (not identified) for:
loading the accessory into the target scene in response to the addition of the accessory by the accessory addition control;
adding an accessory layer for the accessory, and adding an accessory layer element bound with the accessory layer into the layer control interface;
and displaying the accessory in the target scene according to the positions of the accessory hierarchy elements in a plurality of hierarchy elements.
Example five
Fig. 15 schematically illustrates a hardware architecture diagram of a computer device adapted to implement a method of displaying a plurality of avatars according to a fifth embodiment of the present application. The computer device 10000 is a device capable of automatically performing numerical calculation and/or information processing in accordance with an instruction set or stored in advance. For example, the server may be a rack server, a blade server, a tower server, or a cabinet server (including a stand-alone server or a server cluster formed by a plurality of servers), or may be a terminal device such as a smart phone, a tablet computer, or a computer.
In this embodiment, the computer device 10000 is a device capable of automatically performing numerical calculation and/or information processing in accordance with an instruction set or stored in advance. As shown in fig. 15, the computer device 10000 includes at least, but is not limited to: the memory 10010, processor 10020, network interface 10030 may be communicatively linked to each other via a system bus. Wherein:
memory 10010 includes at least one type of computer-readable storage medium including flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, memory 10010 may be an internal storage module of computer device 10000, such as a hard disk or memory of computer device 10000. In other embodiments, the memory 10010 may also be an external storage device of the computer device 10000, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like. Of course, the memory 10010 may also include both an internal memory module of the computer device 10000 and an external memory device thereof. In this embodiment, the memory 10010 is generally used to store an operating system installed in the computer device 10000 and various kinds of application software, such as program codes of a method of displaying a plurality of avatars. In addition, the memory 10010 may be used to temporarily store various types of data that have been output or are to be output.
The processor 10020 may be a central processing unit (Central Processing Unit, simply CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 10020 is typically configured to control overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is configured to execute program codes or process data stored in the memory 10010.
The network interface 10030 may comprise a wireless network interface or a wired network interface, which network interface 10030 is typically used to establish a communication link between the computer device 10000 and other computer devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal through a network, establish a data transmission channel and a communication link between the computer device 10000 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a global system for mobile communications (Global System of Mobile communication, abbreviated as GSM), wideband code division multiple access (Wideband Code Division Multiple Access, abbreviated as WCDMA), a 4G network, a 5G network, bluetooth (Bluetooth), wi-Fi, etc.
It should be noted that fig. 15 only shows a computer device having components 10010-10030, but it should be understood that not all of the illustrated components are required to be implemented, and more or fewer components may be implemented instead.
In this embodiment, the method for displaying multiple avatars stored in the memory 10010 may be further divided into one or more program modules and executed by one or more processors (the processor 10020 in this embodiment) to complete the present application.
Example six
The present embodiment also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of presenting a plurality of avatars in the embodiment.
In this embodiment, the computer-readable storage medium includes a flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the computer readable storage medium may be an internal storage unit of a computer device, such as a hard disk or a memory of the computer device. In other embodiments, the computer readable storage medium may also be an external storage device of a computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), etc. that are provided on the computer device. Of course, the computer-readable storage medium may also include both internal storage units of a computer device and external storage devices. In this embodiment, the computer-readable storage medium is generally used to store an operating system installed on a computer device and various types of application software, such as program codes of the method of displaying a plurality of avatars in the embodiment, and the like. Furthermore, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
It should be noted that the foregoing is only a preferred embodiment of the present application, and is not intended to limit the scope of the patent protection of the present application, and all equivalent structures or equivalent processes using the descriptions and the contents of the present application or direct or indirect application to other related technical fields are included in the scope of the patent protection of the present application.

Claims (13)

1. A method of displaying a plurality of avatars, comprising:
acquiring a plurality of virtual images;
loading the multiple virtual images into a target scene, wherein the multiple virtual images correspond to multiple layers; and
The plurality of avatars are rendered for presentation in the target scene according to a hierarchy of each of the plurality of layers.
2. The method of claim 1, wherein the loading the plurality of avatars into a target scene comprises:
the plurality of avatars are dynamically loaded based on live 2D.
3. The method of claim 1, wherein the loading the plurality of avatars into a target scene comprises:
assigning a respective identifier to each avatar of the plurality of avatars;
binding identifiers corresponding to the same avatar with the layers to obtain the mapping relation between the multiple avatars and the multiple layers.
4. The method of claim 1, wherein the identifier comprises a hash value;
accordingly, the assigning a respective identifier to each avatar of the plurality of avatars includes:
storing each virtual image into a memory hash table;
and respectively generating corresponding hash values for each virtual image according to the position of each virtual image in the memory hash table.
5. The method as recited in claim 1, further comprising:
a hierarchy of layers of each avatar is determined based on an order of addition of each avatar of the plurality of avatars.
6. The method of any of claims 1-5, wherein rendering the plurality of avatars for presentation in the target scene according to the hierarchy of each of the plurality of layers comprises:
displaying a hierarchical control interface, wherein the hierarchical control interface comprises a plurality of hierarchical elements, and each hierarchical element corresponds to one layer;
adjusting a hierarchical relationship between the plurality of layers in response to an adjustment to a target hierarchical element of the plurality of hierarchical elements; and
And controlling the rendering order of the plurality of avatars to render the plurality of avatars based on the adjusted hierarchical relationship.
7. The method of claim 6, wherein the plurality of hierarchical elements form a tree structure.
8. The method as recited in claim 6, further comprising:
loading an accessory into the target scene in response to the adding of the accessory;
adding an accessory layer for the accessory, and adding an accessory layer element bound with the accessory layer into the layer control interface;
and displaying the accessory in the target scene according to the positions of the accessory hierarchy elements in a plurality of hierarchy elements.
9. A system for displaying a plurality of avatars, comprising:
an acquisition module for acquiring a plurality of avatar;
the loading module is used for loading the multiple virtual images into a target scene, and the multiple virtual images correspond to multiple layers; and
And the rendering module is used for rendering the plurality of virtual images to be displayed in the target scene according to the hierarchy of each layer in the plurality of layers.
10. A method of displaying a plurality of avatars, comprising:
displaying a graphical interface of a virtual live tool, wherein the graphical interface comprises an avatar adding control;
sequentially loading the plurality of avatars into a target scene in response to the addition of the plurality of avatars by the avatar addition control; wherein the plurality of avatars are respectively configured in different layers;
displaying a hierarchical control interface on the graphical interface; wherein each hierarchical element corresponds to a layer;
adjusting the hierarchical relationship of each layer in response to an adjustment to a target hierarchical element of the plurality of hierarchical elements; and
Controlling a rendering order of the plurality of avatars to render the plurality of avatars based on the adjusted hierarchical relationship;
and displaying rendering results of the plurality of avatars in the target scene.
11. The method of claim 10, wherein the graphical interface further comprises an accessory addition control; the method further comprises the steps of:
loading the accessory into the target scene in response to the addition of the accessory by the accessory addition control;
adding an accessory layer for the accessory, and adding an accessory layer element bound with the accessory layer into the layer control interface;
and displaying the accessory in the target scene according to the positions of the accessory hierarchy elements in a plurality of hierarchy elements.
12. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of presenting a plurality of avatars according to any one of claims 1 to 8 or 10 to 11 when the computer program is executed by the processor.
13. A computer-readable storage medium having a computer program stored thereon, wherein the computer program is executable by at least one processor to cause the at least one processor to perform the steps of the method of displaying a plurality of avatars as claimed in any one of claims 1 to 8 or 10 to 11.
CN202211194876.5A 2022-09-28 2022-09-28 Method and system for displaying multiple avatars Pending CN117827329A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211194876.5A CN117827329A (en) 2022-09-28 2022-09-28 Method and system for displaying multiple avatars

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211194876.5A CN117827329A (en) 2022-09-28 2022-09-28 Method and system for displaying multiple avatars

Publications (1)

Publication Number Publication Date
CN117827329A true CN117827329A (en) 2024-04-05

Family

ID=90513977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211194876.5A Pending CN117827329A (en) 2022-09-28 2022-09-28 Method and system for displaying multiple avatars

Country Status (1)

Country Link
CN (1) CN117827329A (en)

Similar Documents

Publication Publication Date Title
CN112291484B (en) Video synthesis method and device, electronic equipment and storage medium
CN112416346B (en) Interface color scheme generation method, device, equipment and storage medium
US20100045662A1 (en) Method and system for delivering and interactively displaying three-dimensional graphics
US10984568B2 (en) Methods, devices, and computer-readable media for sharing image effects
CN114329298B (en) Page presentation method and device, electronic equipment and storage medium
CN113411664B (en) Video processing method and device based on sub-application and computer equipment
EP4080507A1 (en) Method and apparatus for editing object, electronic device and storage medium
CN110750664A (en) Picture display method and device
CN110930325B (en) Image processing method and device based on artificial intelligence and storage medium
CN110599601A (en) Method and device for generating painting image, terminal and storage medium
CN106953924B (en) Processing method of shared information and shared client
CN113470092A (en) Terrain rendering method and device, electronic equipment and storage medium
CN117827329A (en) Method and system for displaying multiple avatars
US20230360280A1 (en) Decentralized procedural digital asset creation in augmented reality applications
CN113419806B (en) Image processing method, device, computer equipment and storage medium
CN116847147A (en) Special effect video determining method and device, electronic equipment and storage medium
CN113343027A (en) Interactive video editing and interactive video display method and device
CN113318444B (en) Role rendering method and device, electronic equipment and storage medium
CN111790149A (en) Reloading method and device in AVG, electronic equipment and computer readable storage medium
CN113542846B (en) AR barrage display method and device
CN110705242A (en) Method and device for manufacturing slide template and electronic equipment
CN114882202A (en) Animation processing method and device
WO2023207981A1 (en) Configuration file generation method, apparatus, electronic device, medium and program product
CN116610396A (en) Method and device for sharing shooting of native content and meta-universe content and electronic equipment
CN114880611A (en) Screenshot processing method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination