Metacosmic space processing method and device and computer equipment
By dynamically managing the metaverse space, ensuring that the number of users is in the appropriate range and considering friend relationships and geographical location, the problem of too many or too few users in the metaverse space is solved, improving server resource utilization efficiency and user experience, and enhancing the metaverse social attributes.
Patent Information
- Application Number
- CN202411185271.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-11-29
AI Technical Summary
In the metaverse space, too many users lead to excessive consumption of server resources, slow operation or downtime, and improper user allocation leads to reduced social effects and poor user experience, especially when the number of users is small, users may feel lonely, leading to users Loss.
By judging user login and logout requests, dynamically open or merge meta-universe space, ensure that the number of users in each space is in the appropriate range, consider friend relationships and geographical location when allocating users, avoid too few or too many users, and improve server resources Utilization efficiency and user experience.
Effectively utilize server resources, improve user experience, avoid users feeling lonely in the newly opened space, enhance the social attributes of the metaverse, and reduce user churn.
Smart Images

Figure CN119046006A_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of metaverse technology, and in particular to a method, device and computer equipment for processing metaverse space. Background Art
[0002] The metaverse refers to a virtual world built with digital technology that maps or transcends the real world and can interact with the real world. It is a digital living space with a new social system. In various metaverse scenarios, space and characters are implemented by modeling. If there are too many users in the same space, the server or terminal device will consume too much resources for model calculation, resulting in slow operation or even downtime, which seriously affects the user experience. Therefore, how to dynamically allocate users to different spaces to avoid too many users in a single space has become an important part of the metaverse space algorithm design.
[0003] In the traditional domain partitioning algorithm, when a new user comes online, it can be determined whether there is currently free space. If there is free space, the free spaces can be sorted according to the number of people they can accommodate, and the user can be assigned to the space with the largest number of people. If there is no free space, a new space can be created and the user can be assigned to the newly created space.
[0004] In the above traditional domain segmentation algorithm, users in the same space may not know each other. This greatly reduces the social effect of the same space, greatly reduces the social attributes of the Metaverse, and affects the user experience. In addition, when the number of people online in the Metaverse is small, users cannot see other users for a long time in the newly opened space, resulting in poor user experience and user loss. Summary of the invention
[0005] The embodiments of this specification provide a method, apparatus, and computer device for processing a metaverse space, which are used to improve the utilization efficiency of server resources and enhance user experience.
[0006] The embodiment of this specification provides a method for processing a metaverse space, including:
[0007] After receiving a login request from a target user, determining whether a first user identifier of the target user is located in a first metaverse space in an offline state, where the first metaverse space is a developed metaverse space;
[0008] If it is not located in the first metaverse space, determine whether the space opening conditions are met;
[0009] If the space creation condition is met, obtain the second user ID of the offline friend of the target user;
[0010] Open up a new metaverse space as the second metaverse space;
[0011] Assigning the first user identification to the second metaverse space in an online state;
[0012] The second user identification is allocated to the second metaverse space in an offline state.
[0013] The embodiments of this specification provide another method for processing the metaverse space, including:
[0014] After receiving a logout request from a target user, removing the first user identifier of the target user from a third metaverse space, where the third metaverse space is the metaverse space where the first user identifier is located;
[0015] If the number of users in the third metaverse space is not zero and is less than the set number, determine whether there is a fourth metaverse space, and the number of users and the geographical location of the fourth metaverse space meet the merging conditions;
[0016] If the fourth metaverse exists, assign the user ID in the third metaverse to the fourth metaverse;
[0017] Destroy the third dimension of the universe.
[0018] The embodiment of this specification also provides a device for processing a metaverse space, including:
[0019] A first determination unit is used to determine whether a first user identifier of the target user is located in a first metaverse space in an offline state after receiving a login request from the target user, wherein the first metaverse space is a developed metaverse space;
[0020] The second judgment unit is used to judge whether the space development condition is met if the space is not located in the first metaverse space;
[0021] An acquisition unit, configured to acquire a second user identifier of an offline friend of the target user if the space creation condition is met;
[0022] A development unit, used to develop a new metaverse space as the second metaverse space;
[0023] A first allocation unit is used to allocate the first user identification to the second metaverse space in an online state;
[0024] The second allocation unit is used to allocate the second user identification to the second metaverse space in an offline state.
[0025] The embodiment of this specification also provides another device for processing the metaverse space, including:
[0026] A moving unit, configured to move the first user identifier of the target user out of a third metaverse space after receiving a logout request from the target user, wherein the third metaverse space is the metaverse space where the first user identifier is located;
[0027] A judgment unit, configured to judge whether there is a fourth metaverse space if the number of users in the third metaverse space is not zero and is less than a set number, and the number of users and the geographical location of the fourth metaverse space meet the merging condition;
[0028] an allocating unit, for allocating the user identification in the third metaverse space to the fourth metaverse space if the fourth metaverse space exists;
[0029] Destruction unit, used to destroy the third metaverse space.
[0030] An embodiment of the present specification also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for processing the metaverse space when executing the computer program.
[0031] An embodiment of this specification also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned method for processing the metaverse space.
[0032] The embodiments of this specification also provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the above-mentioned method for processing the metaverse space.
[0033] The technical solution of the embodiment of this specification, after receiving the login request of the target user, can determine whether the first user identification of the target user is located in the first metaverse space in an offline state, and the first metaverse space is the opened metaverse space; if it is not located in the first metaverse space, it can be determined whether the space opening condition is met; if the space opening condition is met, the second user identification of the offline friend of the target user can be obtained; a new metaverse space can be opened as the second metaverse space; the first user identification can be allocated to the second metaverse space in an online state; the second user identification can be allocated to the second metaverse space in an offline state. Therefore, when the target user logs in and needs to open a new space, in addition to allocating the first user identification to the newly opened second metaverse space in an online state, the second user identification is also allocated to the newly opened second metaverse space in an offline state. In this way, the newly opened second metaverse space includes the first user identification in an online state and the second user identification in an offline state. Thereby, too few users in the newly opened second metaverse space can be avoided, and the efficient use of server resources can be guaranteed. In addition, the target user corresponding to the first user identification and the user corresponding to the second user identification are friends. It can avoid the target user from feeling lonely and uncomfortable in the newly opened second metaverse space, and improve the user experience.
[0034] The technical solution of the embodiment of this specification can remove the first user identifier of the target user from the third metaverse space after receiving the logout request of the target user; if the number of users in the third metaverse space is not zero and is less than the set number, it can be determined whether there is a fourth metaverse space, and the number of users and the geographical location of the fourth metaverse space meet the merging conditions; if there is a fourth metaverse space, the user identifier in the third metaverse space can be allocated to the fourth metaverse space; the third metaverse space can be destroyed. Therefore, if the logout of the target user causes the number of users in the third metaverse space to be small, the third metaverse space can be merged into a nearby fourth metaverse space that meets the merging conditions, and the third metaverse space can be destroyed. By dynamically destroying the third metaverse space with a small number of users, the efficient use of server resources is guaranteed. At the same time, it can also avoid the third metaverse space having too few users, causing users in the third metaverse space to feel lonely and uncomfortable. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. The drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0036] Figure 1This is a flow chart of a method for processing the metaverse space in an embodiment of this specification;
[0037] Figure 2 This is a flow chart of a method for processing the metaverse space in an embodiment of this specification;
[0038] Figure 3 This is a flow chart of a method for processing the metaverse space in an embodiment of this specification;
[0039] Figure 4 This is a flow chart of a method for processing the metaverse space in an embodiment of this specification;
[0040] Figure 5 This is a schematic diagram of the structure of a processing device for the metaverse space in an embodiment of this specification;
[0041] Figure 6 It is a schematic diagram of the structure of the processing device of the metaverse space in the embodiments of this specification. DETAILED DESCRIPTION
[0042] The technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, rather than all of the embodiments. The specific embodiments described herein are only used to explain the present disclosure, rather than to limit the present disclosure. Based on the described embodiments of the present disclosure, all other embodiments obtained by those of ordinary skill in the art are within the scope of protection of the present disclosure. In addition, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0043] It should be noted that the user-related information and data involved in the embodiments of this specification are all information and data authorized by the user or fully authorized by relevant parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users or relevant parties to choose to authorize or refuse.
[0044] It should also be noted that in the embodiments of this specification, certain software, components, models and other existing solutions in the industry may be mentioned. They should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.
[0045] The domain partitioning algorithm is an algorithm that divides the logged-in users into different spaces. The domain partitioning algorithm can be used to distribute logged-in users to different spaces to avoid too many users in a single space. This will cause the server or terminal device to consume too much resources for model calculation, resulting in slow operation or even downtime, which seriously affects the user experience.
[0046] In the traditional domain partitioning algorithm, when a new user comes online, it can be determined whether there is currently free space. If there is free space, the free spaces can be sorted according to the number of people they can accommodate, and the user can be assigned to the space with the largest number of people. If there is no free space, a new space can be created and the user can be assigned to the newly created space.
[0047] In the above-mentioned traditional domain segmentation algorithm, users in the same space may not know each other. This greatly reduces the social effect of the same space, greatly reduces the social attributes of the metaverse, and affects the user experience. In addition, when the number of people online in the metaverse is small, users cannot see other users for a long time in the newly opened space, resulting in poor user experience and user loss. In addition, the frequent online and offline of users may cause the number of users in some metaverse spaces to be too small, resulting in a waste of space, resulting in low resource utilization efficiency of the server, and also causing users to feel lonely. In order to solve at least one of the above technical problems or similar technical problems, the embodiments of this specification provide a method, device and computer equipment for processing a metaverse space.
[0048] Please also read Figure 1 and Figure 2 The embodiment of this specification provides a method for processing a metaverse space. The method is used to allocate a metaverse space to a target user who initiates a login request. The method is applied to a server and may include the following steps.
[0049] Step 11: After receiving a login request from a target user, determine whether the first user ID of the target user is offline and located in a first metaverse space, where the first metaverse space is a developed metaverse space.
[0050] In some embodiments, the terminal device may send a login request to the server. The login request is used to request to log into the metaverse space. The login request may include a first user identifier of the target user. The first user identifier is used to identify the target user. The first user identifier may include an account, nickname, phone number, email address, etc.
[0051] There can be zero, one, or multiple metaverse spaces opened up in the metaverse.
[0052] The metaverse space may be a virtual space constructed in the metaverse using digital technology. The metaverse space may include one or more user identifiers. Users corresponding to each user identifier in the same metaverse space can communicate with each other. Users corresponding to user identifiers in different metaverse spaces cannot communicate with each other. The number of users in the metaverse space may be within a certain numerical range. The number of users in the metaverse space may be the number of user identifiers in the metaverse space. The number of users in the metaverse space cannot be too many or too few. If the number of users in the metaverse space is too large, it will cause the server or terminal device to consume too much resources for model calculation, resulting in slow operation or even downtime, which seriously affects the user experience. If the number of users in the metaverse space is too small, it will cause space waste and cause users to feel lonely. The upper limit value of the numerical range may be H, and the lower limit value of the numerical range may be L. L≤the number of users in the metaverse space≤H. H and L are non-zero natural numbers.
[0053] Terminal devices are user-oriented devices, such as smart phones, tablet computers, laptops, etc.
[0054] In some embodiments, before the target user logs in, the first user identifier of the target user may be assigned to the first Metaverse space in an offline state. The first Metaverse space may be an already opened Metaverse space. The owner of the first Metaverse space may be a friend or a nearby user of the target user. The user identifier of the owner may be located in the first Metaverse space in an online state. The offline state means that the user corresponding to the user identifier is not logged in. The online state means that the user corresponding to the user identifier is logged in. To this end, after receiving the login request of the target user, the server may determine whether the first user identifier of the target user is located in the first Metaverse space in an offline state. By determining whether the first user identifier is located in the first Metaverse space in an offline state, it can be determined whether there is a need to open up a Metaverse space.
[0055] If the first user identifier is located in the first metaverse space, the server can determine that there is no need to open up a metaverse space, and can set the first user identifier in the first metaverse space from an offline state to an online state, thereby achieving login. If the first user identifier is not located in the first metaverse space, the server can determine that there is a need to open up a metaverse space.
[0056] Step 12: If it is not located in the first metaverse space, determine whether the space development conditions are met.
[0057] In some embodiments, if the first user identifier is not located in the first metaverse space, the server may determine whether the space opening condition is currently met. The space opening condition may be pre-set.
[0058] The space development conditions may include at least one of the following: there is no developed metaverse space in the metaverse; there is a developed metaverse space in the metaverse, but the number of users of the developed metaverse space is greater than or equal to H.
[0059] Step 13: If the space creation condition is met, obtain the second user identifier of the offline friend of the target user.
[0060] In some embodiments, if the space opening condition is met, the server can obtain the second user identifiers of the target user's offline friends based on the target user's friend data. Specifically, the server can query the second user identifier whose current login status is offline in the query friend data. The friend data may include a friend list. The friend data may include the second user identifiers of one or more friends. In the friend data, the login status of the second user identifiers may be all offline; or all online; or part may be offline and the other part may be online. The second user identifier may include an account, nickname, phone number, email address, etc.
[0061] In some embodiments, in each metaverse space of the metaverse, the user identification of each user may correspond to friend data. The friends may include social friends. The friend data may include social friend data. In this way, the metaverse space can be dynamically developed based on the user's social system, thereby ensuring the social attributes of the developed metaverse space.
[0062] Step 14: Open up a new metaverse space as the second metaverse space.
[0063] In some embodiments, the server may use digital technology to create a three-dimensional virtual space. The digital technology may include three-dimensional modeling technology, rendering technology, virtual reality technology (VR), etc. For example, the server may use virtual reality technology to generate an interactive metaverse space as the second metaverse space.
[0064] Step 15: Allocate the first user ID to the second metaverse space in an online state.
[0065] Step 16: Allocate the second user ID to the second metaverse space in an offline state.
[0066] In some embodiments, the server may assign the first user identifier to the second metaverse space and set the login status of the first user identifier in the second metaverse space to an online state. The server may also assign the second user identifier to the second metaverse space and set the login status of the second user identifier in the second metaverse space to an offline state.
[0067] Therefore, when the target user logs in and needs to open up a new space, in addition to assigning the first user ID to the newly opened second Metaverse space in an online state, the second user ID is also assigned to the newly opened second Metaverse space in an offline state. In this way, the second Metaverse space may include the first user ID in an online state and the second user ID in an offline state. This can avoid having too few users in the newly opened second Metaverse space and ensure efficient use of server resources. In addition, the target user corresponding to the first user ID and the user corresponding to the second user ID are friends. This can avoid the target user from feeling lonely and uncomfortable in the newly opened second Metaverse space and improve the user experience.
[0068] In some embodiments, the server may count the number of second user identifiers obtained in step 13 (i.e., the number of offline friends of the target user); if the number of second user identifiers obtained is greater than or equal to the set number, it means that the number of offline friends is large, and the set number of second user identifiers may be selected; the set number of second user identifiers may be allocated to the second metaverse space in an offline state. The set number may be the difference between a preset minimum number of users and 1, for example, it may be L-1. In this way, when the number of offline friends is large, a certain number of offline friends may be selected from them to join the newly opened second metaverse space. This allows the number of users in the second metaverse space to reach the preset minimum number of users, thereby ensuring efficient use of server resources. In addition, the target user corresponding to the first user identifier and the user corresponding to the second user identifier are friends. This can prevent the target user from feeling lonely and uncomfortable in the second metaverse space, thereby improving the user experience.
[0069] In some embodiments, the server may also count the number of second user identifiers obtained in step 13 (i.e., the number of offline friends of the target user); if the number of second user identifiers obtained is less than the set number, it means that the number of offline friends is small, and the difference between the number of second user identifiers obtained in step 13 and the set number may be calculated; the third user identifier that is geographically closest to the target user by the difference may be obtained; the second user identifier obtained in step 13 may be allocated to the second metaverse space in an offline state; the third user identifier may be allocated to the second metaverse space in an offline state.
[0070] The user corresponding to the third user identifier is not a friend of the target user corresponding to the first user identifier. The login status of the third user identifier is offline. The server can obtain the geographic location of the first user identifier; can obtain a third user identifier that is not a friend of the target user and whose login status is offline; can obtain the geographic location of the third user identifier; can calculate the geographic distance between the first user identifier and the third user identifier based on the geographic location; can select the third user identifier with the closest geographical distance by the difference; can allocate the third user identifier by the difference in offline status to the second metaverse space. The set number can be the difference between the preset minimum number of users and 1, for example, it can be L-1.
[0071] In this way, when the number of offline friends is small, in addition to adding offline friends to the second metaverse space, you can also obtain nearby offline users and add them to the second metaverse space. This allows the number of users in the second metaverse space to reach the pre-set minimum number of users, ensuring efficient use of server resources. In addition, the target user corresponding to the first user identifier and the user corresponding to the second user identifier are friends. The geographical distance between the target user corresponding to the first user identifier and the user corresponding to the third user identifier is relatively close. This prevents the target user from feeling lonely and uncomfortable in the newly opened second metaverse space, thereby improving the user experience.
[0072] In some embodiments, the server may also set the target user as the owner of the second metaverse space.
[0073] The server may also send a first login result to the terminal device. The terminal device may receive and display the first login result. The first login result is used to indicate that the login is successful. The first login result may include information of the second metaverse space, for example, identification information of the second metaverse space, a user identification in the second metaverse space, and the like.
[0074] In some embodiments, if the first user identifier is located in the first metaverse space, the server may determine that there is no need to open up the metaverse space, and may set the first user identifier in the first metaverse space from an offline state to an online state, thereby achieving login. The server may send a second login result to the terminal device. The terminal device may receive and display the second login result. The second login result is used to prompt that the login is successful. The second login result may include information of the first metaverse space, for example, it may include an identifier of the first metaverse space, a user identifier in the first metaverse space, and the like.
[0075] In some embodiments, if the space development condition is not met, it means that there is an developed metaverse space, and the number of users in one or more developed metaverse spaces is less than H. The server can calculate the geographical distance between the target user and each developed first metaverse space; the first metaverse space whose geographical distance meets the set distance condition can be obtained; and the first user identifier can be assigned to the selected first metaverse space in an online state.
[0076] The server may obtain the geographic location of the owner of the first Metaverse space as the geographic location of the first Metaverse space. The server may obtain the geographic location of the first user identifier. The server may select a first Metaverse space with a number of users less than H from the first Metaverse spaces that have been developed. Thus, the server may calculate the geographic distance between the first user identifier and each first Metaverse space that has been developed and has a number of users less than H based on the geographic location; may select a first Metaverse space whose geographic distance meets the set distance condition; and may assign the first user identifier to the selected first Metaverse space in an online state.
[0077] The above distance conditions may include: the first metaverse space that is geographically closest.
[0078] In this way, when the space development conditions are not met, the server can query the first metaverse space with a nearby geographical location and a smaller number of users, and add the target user to the queried first metaverse space. This allows each developed first metaverse space to have an appropriate number of users, ensuring efficient use of server resources.
[0079] The technical solution of the embodiment of this specification, after receiving the login request of the target user, can determine whether the first user identification of the target user is located in the first metaverse space in an offline state, and the first metaverse space is the opened metaverse space; if it is not located in the first metaverse space, it can be determined whether the space opening condition is met; if the space opening condition is met, the second user identification of the offline friend of the target user can be obtained; a new metaverse space can be opened as the second metaverse space; the first user identification can be allocated to the second metaverse space in an online state; the second user identification can be allocated to the second metaverse space in an offline state. Therefore, when the target user logs in and needs to open a new space, in addition to allocating the first user identification to the newly opened second metaverse space in an online state, the second user identification is also allocated to the newly opened second metaverse space in an offline state. In this way, the newly opened second metaverse space includes the first user identification in an online state and the second user identification in an offline state. Thereby, too few users in the newly opened second metaverse space can be avoided, and the efficient use of server resources can be guaranteed. In addition, the target user corresponding to the first user identification and the user corresponding to the second user identification are friends. It can avoid the target user from feeling lonely and uncomfortable in the newly opened second metaverse space, and improve the user experience.
[0080] Please also read Figure 3 and Figure 4 The embodiment of this specification also provides another method for processing the Metaverse space. The method is used to log out a target user who has logged in to the Metaverse space. The method is applied to a server and may include the following steps.
[0081] Step 31: After receiving a logout request from a target user, the first user identifier of the target user is removed from a third metaverse space, where the third metaverse space is the metaverse space where the first user identifier is located.
[0082] In some embodiments, after logging into the metaverse space, the target user may log out. To this end, the terminal device may send a logout request to the server. The logout request is used to instruct the first user identifier of the target user to be removed from the third metaverse space. The logout request may include the first user identifier of the target user and the identifier of the third metaverse space. The first user identifier is used to identify the target user. The first user identifier may include an account, nickname, telephone number, email address, etc. One or more metaverse spaces may be opened in the metaverse. The third metaverse space is the metaverse space where the first user identifier is located. The identifier of the third metaverse space may include the name and number of the third metaverse space.
[0083] The first user identifier is online in the third metaverse space. The owner of the third metaverse space may be the target user or may not be the target user. The third metaverse space may only include the first user identifier. Alternatively, in addition to the first user identifier, the third metaverse space may also include one or more other user identifiers. The one or more other user identifiers may all be offline; may all be online; may also be partially offline and the other partially online.
[0084] The metaverse space may be a virtual space constructed in the metaverse using digital technology. The metaverse space may include one or more user identifiers. Users corresponding to user identifiers in the same metaverse space may communicate with each other. Users corresponding to user identifiers in different metaverse spaces cannot communicate with each other. The number of users in the metaverse space may be within a certain numerical range. The number of users in the metaverse space may be the number of user identifiers in the metaverse space. The upper limit value of the numerical range may be H, and the lower limit value of the numerical range may be L. L≤the number of users in the metaverse space≤H. H and L are non-zero natural numbers. The terminal device is a user-oriented device, for example, it may include a smart phone, a tablet computer, a laptop computer, etc.
[0085] In some embodiments, after receiving the logout request of the target user, the server may remove the first user identifier from the third metaverse space; and may set the first user identifier from an online state to an offline state.
[0086] Step 32: If the number of users in the third metaverse space is not zero and is less than the set number, determine whether there is a fourth metaverse space, and the number of users and geographical location of the fourth metaverse space meet the merging conditions.
[0087] In some embodiments, the set number may be a preset minimum number of users, for example, L.
[0088] If the number of users in the third metaverse space is not zero and is less than the set number after the first user identifier is removed from the third metaverse space, it indicates that there are fewer users in the third metaverse space, resulting in low utilization efficiency of server resources. Thus, the server can search whether there is a fourth metaverse space nearby that meets the merging conditions. The fourth metaverse space meets the merging conditions, for example, including the number of users in the fourth metaverse space and the geographical location that meets the merging conditions. The merging conditions may include quantity conditions and distance conditions. The quantity condition may include: the sum of the number of users in the fourth metaverse space and the number of users in the third metaverse space is less than H. The distance condition may include: the geographical distance between the third metaverse space and the third metaverse space is the smallest.
[0089] The geographical location of the metaverse space may include the geographical location of the owner of the metaverse space. The geographical distance between the metaverse spaces may include the geographical distance between the owners of the metaverse spaces.
[0090] Step 33: If the fourth metaverse exists, assign the user ID in the third metaverse to the fourth metaverse.
[0091] In some embodiments, if there is a fourth metaverse space, the server can allocate the user identifier in the third metaverse space to the fourth metaverse space, thereby merging the third metaverse space into the fourth metaverse space. During the allocation process, the server can keep the login status of each user identifier in the third metaverse space unchanged. For example, if the login status of a user identifier in the third metaverse space is online, then after being allocated to the fourth metaverse space, the login status of the user identifier can remain online. For another example, if the login status of a user identifier in the third metaverse space is offline, then after being allocated to the fourth metaverse space, the login status of the user identifier can remain offline.
[0092] Step 34: Destroy the third metaverse.
[0093] In some embodiments, the server can destroy the third metaverse space to release resources. Therefore, if the target user's logout results in a small number of users in the third metaverse space, the third metaverse space can be merged into a nearby fourth metaverse space that meets the merging conditions, and the third metaverse space can be destroyed. By dynamically destroying the third metaverse space with a small number of users, efficient use of server resources is guaranteed. At the same time, it can also avoid the users in the third metaverse space from feeling lonely and uncomfortable due to the small number of users in the third metaverse. This improves the user experience.
[0094] In some embodiments, after the first user identifier is removed from the third metaverse space, if the number of users in the third metaverse space is zero, it means that the third metaverse space does not need to be merged. The server can destroy the third metaverse space to release resources.
[0095] In some embodiments, after the first user identifier is removed from the third metaverse space, if the number of users in the third metaverse space is greater than the set number, it means that the number of users in the third metaverse space is large and is not suitable for merging. The server can determine whether the target user is the owner of the third user space; if the target user is the owner of the third user space, a user identifier can be selected from the third metaverse space, and the user corresponding to the selected user identifier can be set as the owner of the third metaverse space. For example, the server can randomly select a user identifier from the third metaverse space, and set the user corresponding to the selected user identifier as the owner of the third metaverse space. For another example, the server can determine whether the third metaverse space contains a user identifier whose login status is online and has a friend relationship with the first user identifier; if not, a user identifier can be randomly selected from the third metaverse space, and the user corresponding to the selected user identifier can be set as the owner of the third metaverse space; if so, a user identifier whose login status is online and has a friend relationship with the first user identifier can be selected, and the user corresponding to the selected user identifier can be set as the owner of the third metaverse space.
[0096] The server can refresh the third metaverse space.
[0097] In some embodiments, if the fourth metaverse space does not exist, it means that although the number of users in the third metaverse space is small, a suitable fourth metaverse space cannot be found for merging. The server can determine whether the target user is the owner of the third user space; if the target user is the owner of the third user space, a user identifier can be selected from the third metaverse space, and the user corresponding to the selected user identifier can be set as the owner of the third metaverse space. For example, the server can randomly select a user identifier from the third metaverse space, and set the user corresponding to the selected user identifier as the owner of the third metaverse space. For another example, the server can determine whether the third metaverse space contains a user identifier whose login status is online and has a friend relationship with the first user identifier; if not, a user identifier can be randomly selected from the third metaverse space, and the user corresponding to the selected user identifier can be set as the owner of the third metaverse space; if so, a user identifier whose login status is online and has a friend relationship with the first user identifier can be selected, and the user corresponding to the selected user identifier can be set as the owner of the third metaverse space.
[0098] The server can refresh the third metaverse space.
[0099] In some embodiments, the server may also send a logout result to the terminal device. The terminal device may receive and display the logout result. The logout result is used to indicate that the logout is successful.
[0100] The technical solution of the embodiment of this specification can remove the first user identifier of the target user from the third metaverse space after receiving the logout request of the target user; if the number of users in the third metaverse space is not zero and is less than the set number, it can be determined whether there is a fourth metaverse space, and the number of users and the geographical location of the fourth metaverse space meet the merging conditions; if there is a fourth metaverse space, the user identifier in the third metaverse space can be allocated to the fourth metaverse space; the third metaverse space can be destroyed. Therefore, if the logout of the target user causes the number of users in the third metaverse space to be small, the third metaverse space can be merged into the nearby fourth metaverse space that meets the merging conditions, and the third metaverse space can be destroyed. By dynamically destroying the third metaverse space with a small number of users, the efficient use of server resources is guaranteed. At the same time, it can also avoid the third metaverse space having too few users, which makes users in the third metaverse feel lonely and uncomfortable. Improve the user experience.
[0101] See also Figure 5 The embodiment of this specification also provides a processing device for the metaverse space, including:
[0102] A first determination unit 51 is used to determine whether the first user identifier of the target user is located in a first metaverse space in an offline state after receiving a login request from the target user, wherein the first metaverse space is a developed metaverse space;
[0103] The second judgment unit 52 is used to judge whether the space development condition is met if the space is not located in the first metaverse space;
[0104] An acquisition unit 53 is used to acquire a second user identifier of an offline friend of the target user if the space creation condition is met;
[0105] A development unit 54, used for developing a new metaverse space as a second metaverse space;
[0106] A first allocation unit 55 is used to allocate the first user identification to the second metaverse space in an online state;
[0107] The second allocation unit 56 is used to allocate the second user identification to the second metaverse space in an offline state.
[0108] See also Figure 6 The embodiment of this specification also provides a processing device for the metaverse space, including:
[0109] A moving unit 61 is used to move the first user identifier of the target user out of a third metaverse space after receiving a logout request from the target user, wherein the third metaverse space is the metaverse space where the first user identifier is located;
[0110] A judgment unit 62, configured to judge whether there is a fourth metaverse space if the number of users in the third metaverse space is not zero and is less than a set number, and the number of users and the geographical location of the fourth metaverse space meet the merging condition;
[0111] The allocating unit 63 is used to allocate the user identification in the third metaverse space to the fourth metaverse space if the fourth metaverse space exists;
[0112] The destruction unit 64 is used to destroy the third metaverse space.
[0113] An embodiment of the present specification also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for processing the metaverse space when executing the computer program.
[0114] An embodiment of this specification also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned method for processing the metaverse space.
[0115] The embodiments of this specification also provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the above-mentioned method for processing the metaverse space.
[0116] Those skilled in the art will appreciate that this specification may be provided as a method, system, or computer program product. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0117] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products of the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. The computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0118] The various functional units in the embodiments of this specification may be integrated into one processing unit, or each functional unit may exist physically separately, or two or more functional units may be integrated into one processing unit.
[0119] Those skilled in the art will understand that the description of each embodiment in this specification has its own emphasis. For parts not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments. In addition, it is understood that after reading this specification, those skilled in the art can think of any combination of some or all of the embodiments listed in this specification without creative work, and these combinations are also within the scope of disclosure and protection of this specification.
[0120] Although the present specification is described by way of examples, it is known to those skilled in the art that the above examples are only used to help understand the core idea of the present specification. It is understood by those skilled in the art that there are many variations and changes in the present specification. It is hoped that the appended claims include these variations and changes without departing from the spirit of the present specification.
Claims
1. A method for processing metaverse space, characterized in that: include: After receiving a login request from a target user, determining whether a first user identifier of the target user is located in a first metaverse space in an offline state, where the first metaverse space is a developed metaverse space; If it is not located in the first metaverse space, determine whether the space opening conditions are met; If the space creation condition is met, obtain the second user ID of the offline friend of the target user; Open up a new metaverse space as the second metaverse space; Assigning the first user identification to the second metaverse space in an online state; The second user identification is allocated to the second metaverse space in an offline state.
2. The method according to claim 1, characterized in that The method further comprises: If the user is located in the first metaverse space, the first user identification is set to an online state in the first metaverse space.
3. The method according to claim 1, characterized in that The method further comprises: If the space opening conditions are not met, the geographical distance between the target user and the first metaverse space is calculated; Obtain the first metaverse space whose geographical distance meets the set distance condition; The first user identification is assigned to the acquired first metaverse space in an online state.
4. The method according to claim 1, characterized in that: The method further comprises: If the number of second user identifiers is greater than or equal to a set number, selecting the set number of second user identifiers; The step of allocating the second user identification to the second metaverse space in an offline state includes: The set number of second user identifiers are allocated to the second metaverse space in an offline state.
5. The method according to claim 1, characterized in that The method further comprises: If the number of second user identifiers is less than the set number, calculating the difference between the number of second user identifiers and the set number, and obtaining the third user identifier having the closest geographical distance to the target user as the difference; The third user ID and the second user ID are allocated to the second metaverse space in an offline state.
6. The method according to claim 1, 4 or 5, characterized in that: The method further comprises: Set the target user as the owner of the second metaverse space.
7. A method for processing metaverse space, characterized in that: include: After receiving a logout request from a target user, removing the first user identifier of the target user from a third metaverse space, where the third metaverse space is the metaverse space where the first user identifier is located; If the number of users in the third metaverse space is not zero and is less than the set number, determine whether there is a fourth metaverse space, and the number of users and the geographical location of the fourth metaverse space meet the merging conditions; If the fourth metaverse exists, assign the user ID in the third metaverse to the fourth metaverse; Destroy the third dimension of the universe.
8. The method according to claim 7, characterized in that The method further comprises: If the number of users in the third metaverse is zero, the third metaverse will be destroyed.
9. A device for processing metaverse space, characterized in that: include: A first determination unit is used to determine whether a first user identifier of the target user is located in a first metaverse space in an offline state after receiving a login request from the target user, wherein the first metaverse space is a developed metaverse space; The second judgment unit is used to judge whether the space development condition is met if the space is not located in the first metaverse space; An acquisition unit, configured to acquire a second user identifier of an offline friend of the target user if the space creation condition is met; A development unit, used to develop a new metaverse space as the second metaverse space; A first allocation unit is used to allocate the first user identification to the second metaverse space in an online state; The second allocation unit is used to allocate the second user identification to the second metaverse space in an offline state.
10. A processing device for a metaverse space, characterized in that: include: A moving unit, configured to move the first user identifier of the target user out of a third metaverse space after receiving a logout request from the target user, wherein the third metaverse space is the metaverse space where the first user identifier is located; A judgment unit, configured to judge whether there is a fourth metaverse space if the number of users in the third metaverse space is not zero and is less than a set number, and the number of users and the geographical location of the fourth metaverse space meet the merging condition; an allocating unit, for allocating the user identification in the third metaverse space to the fourth metaverse space if the fourth metaverse space exists; Destruction unit, used to destroy the third metaverse space.
11. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.
12. A computer-readable storage medium, characterized in that: Computer instructions are stored thereon, and when the instructions are executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
13. A computer program product, characterized in that The invention comprises a computer program, which implements the steps of the method according to any one of claims 1 to 8 when being executed by a processor.
