Method, device and electronic equipment for loading a meta-universe map
By acquiring the block and hierarchy information of the user's location and loading the metaverse map, the method solves the problem of the inability to load infinite maps in existing technologies, and achieves improved display effects and efficiency of infinite maps.
Patent Information
- Application Number
- CN202211592046.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-12
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2042-12-12
AI Technical Summary
Existing technologies cannot effectively load infinite maps and cannot meet the needs of infinite expansion in large scenes.
By obtaining the user's current location coordinates and configuration hierarchy information, the block to which the user belongs is determined, and the loading data is obtained based on the block and hierarchy configuration information. Data loading is performed in a layered and block-based manner, and HLOD technology is used for rendering.
It improves display quality and efficiency in infinitely expanding scenes within a large world, and is suitable for loading infinite maps in the metaverse.
Smart Images

Figure CN115797531B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to artificial intelligence technologies such as metaverse, augmented reality, virtual reality, and computer vision. BACKGROUND
[0002] With the expansion of the big world, an infinite map needs to be loaded in the map to meet the demand for infinite expansion in a large scene. The map loading strategy in the prior art only loads limited buildings in the scene, which is not suitable for the loading of infinite maps in the big world. Therefore, there is an urgent need for an infinite map loading method. SUMMARY
[0003] The present disclosure provides a loading method, device, equipment and storage medium for a metaverse map.
[0004] According to an aspect of the present disclosure, a loading method for a metaverse map is provided, comprising: obtaining a coordinate point of a current position of a user and configuration level information, the configuration level information comprising configuration information of a plurality of different levels; determining a block to which the current position of the user belongs according to the coordinate point; and obtaining loading data according to the block to which the current position of the user belongs and the configuration information of the plurality of different levels, and loading the loading data.
[0005] According to another aspect of the present disclosure, a loading device for a metaverse map is provided, comprising: an obtaining module configured to obtain a coordinate point of a current position of a user and configuration level information, the configuration level information comprising first configuration information of a plurality of different levels; a determining module configured to determine a block to which the current position of the user belongs according to the coordinate point; and a loading module configured to obtain loading data according to the block to which the current position of the user belongs and the configuration information of the plurality of different levels, and load the loading data.
[0006] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the loading method for a metaverse map of the present disclosure.
[0007] According to another aspect of the present disclosure, a non-transitory computer readable storage medium storing computer instructions is provided, the computer instructions being used to cause a computer to execute the loading method for a metaverse map of the present disclosure.
[0008] According to another aspect of the present disclosure, a computer program product is provided, the computer program being executed by a processor to implement the loading method for a metaverse map of the present disclosure.
[0009] The present disclosure has the following beneficial effects compared with the prior art:
[0010] The loading data is obtained through the configuration information of each level in the plurality of different levels in the block configuration level information to which the current position of the user belongs, so that the loading data far away from the position where the current user is located can be obtained according to the configuration level information, which is suitable for the scene of infinite expansion in a large world. Meanwhile, all buildings and other required loading objects in the scene can be included in the loading data in each level, so as to render the loading data to achieve the display effect of an infinite map, thereby improving the display effect.
[0011] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present disclosure, nor to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0012] The accompanying drawings are used to better understand the present scheme and do not limit the present disclosure. Among them:
[0013] Figure 1 is a flowchart of a loading method of a meta-universe map according to an embodiment of the present disclosure;
[0014] Figure 2 is a flowchart of a loading method of a meta-universe map according to an embodiment of the present disclosure;
[0015] Figure 3 is a flowchart of a loading method of a meta-universe map according to an embodiment of the present disclosure;
[0016] Figure 4 is a flowchart of a loading method of a meta-universe map according to an embodiment of the present disclosure;
[0017] Figure 5 is a flowchart of a loading method of a meta-universe map according to an embodiment of the present disclosure;
[0018] Figure 6 is a flowchart of a loading method of a meta-universe map according to an embodiment of the present disclosure;
[0019] Figure 7a is a flowchart of a loading method of a meta-universe map according to an embodiment of the present disclosure;
[0020] Figure 7b is a schematic diagram of rendering different display levels according to an embodiment of the present disclosure;
[0021] Figure 8aThis is a flowchart illustrating a method for loading a metaverse map according to an embodiment of this disclosure;
[0022] Figure 8b This is a schematic diagram of the distribution of map tiles according to an embodiment of the present disclosure;
[0023] Figure 9 This is a schematic diagram of the structure of a loading device for a metaverse map provided according to an embodiment of the present disclosure;
[0024] Figure 10 This is a block diagram of an electronic device used to implement the method for loading a metaverse map according to embodiments of the present disclosure. Detailed Implementation
[0025] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0026] The following description, with reference to the accompanying drawings, outlines a method, apparatus, and electronic device for loading a metaverse map according to embodiments of this disclosure.
[0027] Figure 1 This is a schematic diagram according to the first embodiment of the present disclosure.
[0028] like Figure 1 As shown, the loading methods for this metaverse map may include:
[0029] Step 101: Obtain the coordinates of the user's current location and configuration level information, wherein the configuration level information includes configuration information at multiple different levels.
[0030] It should be noted that the execution entity of the above-mentioned metaverse map loading method is the metaverse map loading device, which can be implemented by software and / or hardware. In this embodiment, the metaverse map loading device can be configured in an electronic device.
[0031] In this example embodiment, the electronic device may include devices such as terminal devices and servers, and this embodiment does not limit the electronic device.
[0032] In the embodiments of the present disclosure, the configuration level information can be preconfigured, wherein the configuration information includes a plurality of different levels, and the configuration information in different levels is also different. In the embodiments of the present disclosure, the different levels can be divided according to different resources required by the visual effect, wherein the resources required by the visual effect of each level are the same, and the resources required by the visual effect of different levels are different, so that the same resource can be used to process the visual effect of the loading data of the same level, without using different resources to process different loading data, thereby improving the subsequent infinite map display efficiency.
[0033] In the embodiments of the present disclosure, the map is divided into different blocks according to the coordinates, and the size of each block is the same. In the embodiments of the present disclosure, the configuration information of each level in the plurality of different levels can include the position information of all blocks required to be loaded by each level.
[0034] In step 102, the block to which the current position of the user belongs is determined according to the coordinate point.
[0035] In the embodiments of the present disclosure, the block in which the coordinate point of the current position of the user is located can be determined according to the coordinate point of the current position of the user. For example, assuming that the coordinate point of the current position of the user is (0, 0), the block to which the current position of the user belongs is the block in which the coordinate point (0, 0) is located.
[0036] In step 103, the loading data is obtained according to the block to which the current position of the user belongs and the configuration information of the plurality of different levels, and the loading data is loaded.
[0037] In the embodiments of the present disclosure, when the loading data is obtained according to the block to which the current position of the user belongs and the configuration information of the plurality of different levels, the loading data can be obtained according to the block to which the current position of the user belongs and the configuration information of part of the plurality of different levels. The part of the levels can be determined as required.
[0038] In the embodiments of the present disclosure, when the loading data is obtained according to the block to which the current position of the user belongs and the configuration information of the plurality of different levels, the loading data can also be obtained according to the block to which the current position of the user belongs and the configuration information of each level in the plurality of different levels.
[0039] In the embodiments of the present disclosure, the configuration information of each level in the plurality of different levels can include the position information of the blocks required to be loaded by each level, then the blocks required to be loaded by each level are determined according to the position information of all blocks required to be loaded by each level, and the loading data of each level is determined according to the corresponding loading data of the required loading blocks, and the loading data of the corresponding level is loaded according to the required level. This part will be described in detail in subsequent embodiments.
[0040] In addition, the loading method in the embodiments of the present disclosure does not require other interfaces and local dependencies, and is a universal infinite map loading method, which can be used in parallel worlds, that is, can be applied to different parallel worlds in the metaverse.
[0041] In the embodiments of the present disclosure, the loading data is obtained through the configuration information of multiple different levels in the block configuration level information to which the current position of the user belongs, so that the loading data far away from the position where the current user is located can be obtained according to the configuration level information, which is suitable for the scene of infinite expansion in a large world. Meanwhile, the loading data can include all buildings and other required loading objects (such as trees) in the scene, so as to render the loading data to achieve the display effect of the infinite map, thereby improving the display effect.
[0042] It should be noted that in the embodiments of the present disclosure, the loading data can be obtained according to the configuration information of part of the levels in the multiple different levels in the block configuration level information to which the current position of the user belongs, or the loading data can be obtained according to the configuration information of each level in the multiple different levels in the block configuration level information to which the current position of the user belongs. Based on this, the following second embodiment to third embodiment is a detailed introduction to the method of obtaining loading data according to the configuration information of each level in the multiple different levels in the block configuration level information to which the current position of the user belongs. The method of obtaining loading data according to the configuration information of part of the levels in the multiple different levels in the block configuration level information to which the current position of the user belongs can refer to the following detailed introduction, and the loading data of each level in part of the levels is not described herein.
[0043] Figure 2 is a schematic diagram according to the second embodiment of the present disclosure.
[0044] As Figure 2 indicated, the loading method of the metaverse map can include:
[0045] Step 201, obtaining a coordinate point of a current position of a user and configuration level information, wherein the configuration level information includes configuration information of multiple different levels.
[0046] Step 202, determining a block to which the current position of the user belongs according to the coordinate point.
[0047] The specific implementation of steps 201-202 can be referred to the related description of the embodiments of the present disclosure, which will not be repeated here.
[0048] Step 203, determining the coordinates of the blocks required to be loaded in the configuration information of each level in the configuration information of multiple different levels according to the block to which the current position of the user belongs.
[0049] In the embodiments of the present disclosure, the configuration information of each level in the plurality of different levels can include position information of the required loading block of each level, and all blocks required to be loaded by each level are determined according to the position information of the required loading block of each level. For example, it is assumed that the level configuration information includes five levels, and the position information of the required loading block of the configuration information in level 0 includes one-step left and right adjacent blocks. At this time, the block where the current position of the user belongs is the block where the coordinate point (0, 0) is located, and the required loading block in level 0 is the block where the coordinate point (-1, 0) is located and the block where the coordinate point (1, 0) is located.
[0050] In step 204, the loading data of the block is obtained according to the coordinates of the required loading block, and the loading data of the block is loaded.
[0051] In the embodiments of the present disclosure, the loading data of the required loading block corresponding to each level in all levels can be loaded through step 204.
[0052] In the embodiments of the present disclosure, the loading data of each block can include the ID, display level and object data of all loading objects in each block. In the embodiments of the present disclosure, after the loading data of the loading block is loaded, the loading data of the block can be used for rendering to obtain a target map element, and the target map element is displayed on the map display interface.
[0053] In the embodiments of the present disclosure, according to the block where the current position of the user belongs, the coordinates of the required loading block in the configuration information of each level in the configuration level information are determined, the loading data of the block is obtained according to the coordinates of the required loading block, and the loading data of the block is loaded. The data is loaded in a hierarchical and block manner, so that the loading data required to be loaded by each level can be obtained according to the user demand and the resource classification corresponding to each level.
[0054] Figure 3 is a schematic diagram according to the third embodiment of the present disclosure.
[0055] As shown in Figure 3 , the loading method of the meta-universe map can include:
[0056] In step 301, loading data of an infinite map with different fineness is obtained, wherein the loading data of the infinite map with different fineness includes the ID, display level and object data of the loading object of the block.
[0057] In the embodiments of the present disclosure, each block includes at least one loading object, and the loading object can include one object or a group of objects.
[0058] Furthermore, in this embodiment of the disclosure, after obtaining infinite map loading data of different levels of detail, it is possible to directly obtain the loading data corresponding to each level from the infinite map loading data, so that subsequent rendering can be performed based on the loading data of each level.
[0059] Step 302: Obtain the coordinates of the user's current location and configuration level information, wherein the configuration level information includes configuration information at multiple different levels.
[0060] Step 303: Determine the block to which the user's current location belongs based on the coordinates.
[0061] Step 304: Based on the block to which the user's current location belongs, determine the coordinates of the block to be loaded in the configuration information of each level of the configuration hierarchy.
[0062] For details on the specific implementation of steps 302 to 304, please refer to the relevant descriptions in the embodiments of this disclosure, which will not be repeated here.
[0063] Step 305: Obtain the ID, display level, and object data of the loaded object in the block based on the required coordinates.
[0064] In this embodiment of the disclosure, the ID, display level, and object data of the loaded object in the block can be obtained from the infinite map loading data according to the coordinates of the block to be loaded.
[0065] In this embodiment of the disclosure, the aforementioned object data may be a texture of the loaded object; the display level of the loaded object may be related to the distance between the loaded object and the block currently occupied by the user. Specifically, when the loaded object is close to the block currently occupied by the user, it may be displayed in detail, i.e., the actual display of the loaded object; when the loaded object is far from the block currently occupied by the user, it may be displayed in simplified detail, i.e., a false display of the loaded object. In this case, the false display of the loaded object can be used to save resource usage due to the greater distance.
[0066] Step 306: Determine the ID, display level, and object data of all loaded objects in the block as the block's loading data, and load the block's loading data.
[0067] In this embodiment of the disclosure, the loading data of the required loading blocks in the configuration information of each level can be loaded through step 306.
[0068] In this embodiment, by acquiring infinite map loading data of different levels of detail, it is possible to directly obtain the loading data corresponding to the blocks to be loaded in each level from the infinite map loading data, so that subsequent rendering can be performed based on the loading data.
[0069] Figure 4 This is a schematic diagram according to the fourth embodiment of the present disclosure.
[0070] As Figure 4 shown, the loading method of the meta-universe map can include:
[0071] Step 401, obtain the coordinate point of the current position of the user and configuration level information, wherein the configuration level information includes configuration information of multiple different levels.
[0072] Step 402, determine the block to which the current position of the user belongs according to the coordinate point.
[0073] Step 403, obtain loading data according to the block to which the current position of the user belongs and the configuration information of multiple different levels, and load the loading data.
[0074] The specific implementation of steps 401-403 can be referred to the related description of the embodiments of the present disclosure, which will not be repeated here.
[0075] Step 404, unload part of the loaded loading data according to the block to which the current position of the user moves.
[0076] In the embodiments of the present disclosure, the user will move in different directions, and part of the data in the loaded data does not need to be displayed after the user moves. Therefore, part of the data in the loaded data needs to be unloaded according to the position to which the user moves, so as to realize the process of dynamically loading and unloading data, and effectively utilize the storage space.
[0077] Figure 5 is a schematic diagram according to the fifth embodiment of the present disclosure.
[0078] As Figure 5 shown, the loading method of the meta-universe map can include:
[0079] Step 501, obtain the coordinate point of the current position of the user and configuration level information, wherein the configuration level information includes configuration information of multiple different levels.
[0080] Step 502, determine the block to which the current position of the user belongs according to the coordinate point.
[0081] Step 503, obtain loading data according to the block to which the current position of the user belongs and the configuration information of multiple different levels, and load the loading data.
[0082] The specific implementation of steps 501-503 can be referred to the related description of the embodiments of the present disclosure, which will not be repeated here.
[0083] Step 504, determine the block to be unloaded in the loaded data according to the block to which the current position of the user moves.
[0084] In the embodiments of the present disclosure, the method for determining the blocks of the loaded data that need to be unloaded according to the block to which the current position of the user moves can include: determining the blocks of the loaded data that are more than a distance threshold from the block to which the current position of the user moves as the blocks of the loaded data that need to be unloaded.
[0085] In the embodiments of the present disclosure, the distance threshold can be set according to the user's needs.
[0086] Step 505: Unloading the loaded data corresponding to the blocks that need to be unloaded.
[0087] In the embodiments of the present disclosure, the blocks of the loaded data that need to be unloaded are determined according to the block to which the current position of the user moves, and the loaded data corresponding to the blocks that need to be unloaded is unloaded, so that the loaded data that does not need to be displayed can be unloaded when the user moves according to the user's needs, thereby realizing the process of dynamically loading and unloading data.
[0088] Figure 6 is a schematic diagram according to the sixth embodiment of the present disclosure.
[0089] As shown in Figure 6 , the loading method of the meta-universe map can include:
[0090] Step 601: Obtain the coordinate point of the current position of the user and configuration level information, wherein the configuration level information includes configuration information of each level in a plurality of different levels.
[0091] Step 602: Determine the block to which the current position of the user belongs according to the coordinate point.
[0092] Step 603: Obtain the loaded data according to the block to which the current position of the user belongs and the configuration information of the plurality of different levels, and load the loaded data.
[0093] For specific implementation of steps 601-603, refer to the related description of the embodiments of the present disclosure, which will not be repeated here.
[0094] Step 604: Render the loaded data to obtain target map elements, and display the target map elements on a map display interface.
[0095] In the embodiments of the present disclosure, the corresponding configuration level information can be pre-configured as needed, so that the loading data far away from the current location of the user can be obtained according to the configuration level information, and the loading data far away from the current location of the user can be rendered, so that the user can browse the scene far away from the current location, which is suitable for the scene of infinite expansion in a large world. At the same time, all buildings and other loading objects (such as trees) required in the scene can be included in the loading data, so that all loading objects are loaded to achieve the display effect of an infinite map, thereby improving the display effect.
[0096] Figure 7a is a schematic diagram according to the seventh embodiment of the present disclosure.
[0097] As Figure 7a shown, the loading method of the meta-universe map can include:
[0098] Step 701a, obtain infinite map loading data of different fineness, wherein the infinite map loading data of different fineness contains the ID, display level and object data of the loading objects of the block.
[0099] Step 702a, obtain the coordinate point of the current location of the user and the configuration level information, wherein the configuration level information includes a plurality of configuration information of different levels.
[0100] Step 703a, determine the block to which the current location of the user belongs according to the coordinate point.
[0101] Step 704a, determine the coordinates of the blocks that need to be loaded in the plurality of different levels according to the block to which the current location of the user belongs.
[0102] Step 705a, obtain the ID, display level and object data of the loading objects in the block according to the coordinates of the blocks that need to be loaded.
[0103] Step 706a, determine the ID, display level and object data of all loading objects in the blocks that need to be loaded as the loading data of the block, and load the loading data of the block.
[0104] For specific implementation of steps 701a-706a, refer to the related description of the embodiments of the present disclosure, which will not be repeated here.
[0105] Step 707a, render the object data of the loading objects according to the display level of the loading objects in the loading data, to obtain the target map element.
[0106] In the embodiments of the present disclosure, the HLOD technology can be used to render different display levels.
[0107] Specifically, in the embodiments of the present disclosure, the loading object can be an object or a group of objects, and based on this, the HLOD technology can render one or more 3D models to an appropriate level of detail according to the current display level, reduce the display of unnecessary levels of detail, and obtain efficient rendering operations.
[0108] As shown in FIG. 7, Figure 7b FIG. 7 is a schematic diagram of rendering different display levels according to the embodiments of the present disclosure. As shown in FIG. 7, Figure 7b the embodiments of the present disclosure can use the HLOD technology to render different display levels of the same loading object. Specifically, when the block where the user is located is close to the loading object in FIG. 7 (such as 100 m), the display level of the loading object is obtained as a detailed model display (the right loading object schematic diagram), and the corresponding simplified model is a false display of the loading object (the left loading object schematic diagram); when the block where the user is located is far away from the loading object in FIG. 7 (such as 1000 m), the display level of the loading object is obtained as a simplified model display (the left loading object schematic diagram), at this time, the loading object is far away from the user, and there is no need to use resources for detailed model display, and the false display of the loading object can be directly displayed; when the block where the user is located is moderate distance from the loading object in FIG. 7 (such as 200 m or 500 m), the detailed model display or the simplified model display can be performed according to the need, and as shown in FIG. 7, the comparison between the corresponding simplified model display and the detailed model display can be seen.
[0109] The LOD technology in the prior art is to render a 3D model to an appropriate level of detail, and based on this, the HLOD technology in the embodiments of the present disclosure can directly render multiple 3D models to an appropriate level of detail, thereby reducing the overall performance required during rendering.
[0110] Figure 8a FIG. 7 is a schematic diagram according to the eighth embodiment of the present disclosure.
[0111] As shown in FIG. 7, Figure 8a the loading method of the meta-universe map can include:
[0112] Step 801a, obtaining infinite map loading data of different levels of detail, wherein the infinite map loading data of different levels of detail contains the ID, display level and object data of the loading object of the block.
[0113] Step 802a, obtaining the coordinate point and configuration level information of the current position of the user, wherein the configuration level information includes a plurality of configuration information of different levels.
[0114] Step 803a, determining the block to which the current position of the user belongs according to the coordinate point.
[0115] Step 804a, determining the coordinates of the block to be loaded in the configuration information of multiple different levels according to the block to which the current position of the user belongs.
[0116] Step 805a, obtaining the ID, display level and object data of the loaded object in the block according to the coordinates of the block to be loaded.
[0117] Step 806a, determining the ID, display level and object data of all loaded objects in the block as the loading data of the block, and loading the loading data of the block.
[0118] Step 807a, rendering the object data of the loaded object according to the display level of the loaded object in the loading data, to obtain the target map element.
[0119] For the specific implementation of steps 801a-807a, please refer to the related description of the embodiments of the present disclosure, which will not be repeated here.
[0120] Step 808a, determining whether a conflict rendering event occurs in the loading data.
[0121] In the embodiments of the present disclosure, the method for determining whether a conflict rendering event occurs in the loading data can include the following steps:
[0122] Step a, determining whether there is an ID of the same loaded object in the loading data of different blocks in the loading data of the same level.
[0123] For example, Figure 8b The present disclosure provides a distribution schematic diagram of a map block. As Figure 8b , assuming that the block corresponding to the coordinates (0, 0) is the block in which the current position of the user is located, and the blocks corresponding to the coordinates (1, 0), (2, 0), (1, 1) and (2, 1) are in the same level, and a certain office building has a large area and is distributed in the blocks corresponding to the coordinates (1, 0), (2, 0), (1, 1) and (2, 1), then there will be an ID of the same loaded object in the loading data of different blocks.
[0124] Step b, if there is an ID of the same loaded object in the loading data of different blocks, determining whether the corresponding display levels of the loaded object in different blocks are the same.
[0125] Step c, if the corresponding display levels of the loaded object in different blocks are not the same, determining that the loading data sends a conflict rendering event.
[0126] In the embodiment of the present disclosure, the block where the current position of the user is located is closest to the block corresponding to the coordinate (1, 0), and based on this, the display level of the office building in the block corresponding to the coordinate (1, 0) is the detailed model, and the distance of the block corresponding to the coordinates (2, 0), (1, 1), and (2, 1) is farther, and the display level of the office building in the block corresponding to the coordinates (2, 0), (1, 1), and (2, 1) is the simple model. Therefore, if the corresponding display levels of the loaded objects in different blocks are different, and at this time the same loaded object needs to be displayed in the detailed model and the simple model at the same time, it is not possible to determine which display level is used to render the loaded object, and based on this, the loading data sending conflict rendering event is determined.
[0127] In step 809a, if it is determined that the sending conflict rendering event occurs, the loaded object in the loading data of the conflict level is determined, and the object data of the loaded object is rendered according to the priority of the display level of the loaded object.
[0128] In the embodiment of the present disclosure, the method of rendering the object data of the loaded object according to the priority of the display level of the loaded object can include rendering the object data of the loaded object according to the display level with the highest priority among the display levels of the loaded object.
[0129] In the embodiment of the present disclosure, the priority of the detailed model display level is higher than the priority of the simple model display level, that is, when the same loaded object needs to be displayed in the detailed model and the simple model at the same time, the object data of the loaded object is rendered using the detailed model display.
[0130] In the embodiment, if it is determined that the sending conflict rendering event occurs, the loaded object in the loading data of the conflict level is determined, and the object data of the loaded object is rendered according to the priority of the display level of the loaded object, thereby solving the conflict rendering event that occurs when rendering the loading data of each level, so that the loading data of each level can be successfully rendered.
[0131] Figure 9 is a schematic diagram according to the ninth embodiment of the present disclosure.
[0132] As shown in Figure 9 The loading device 900 of the meta-universe map can include an acquisition module 901, a determination module 902, and a loading module 903.
[0133] The acquisition module 901 is configured to acquire a coordinate point of a current position of a user and configuration level information, and the configuration level information includes first configuration information of a plurality of different levels;
[0134] The determination module 902 is configured to determine a block to which the current position of the user belongs according to the coordinate point.
[0135] The loading module 903 is configured to acquire loading data according to the configuration information of different levels of the block to which the current position of the user belongs, and load the loading data.
[0136] It should be noted that the foregoing description of the loading method for the meta universe map also applies to this embodiment, and the embodiment will not be described again.
[0137] The loading device for the meta universe map in the embodiment of the present disclosure acquires loading data from the configuration information of different levels in the block configuration level information to which the current position of the user belongs, so that the loading data far away from the current position of the user can be acquired according to the configuration level information, which is suitable for the infinitely expanding scene in a large world. Meanwhile, all the buildings and other required loading objects in the scene can be included in the loading data, so as to render the loading data to achieve the display effect of an infinite map, thereby improving the display effect.
[0138] In one embodiment of the present disclosure, the foregoing device is further configured to:
[0139] acquire infinite map loading data of different fineness, the infinite map loading data of different fineness containing IDs, display levels and object data of loading objects of a block, wherein the block contains at least one loading object, and the loading object includes one object or a group of objects.
[0140] In one embodiment of the present disclosure, the loading module 903 is specifically configured to:
[0141] determine coordinates of a block that needs to be loaded from the configuration information of different levels according to the block to which the current position of the user belongs;
[0142] acquire loading data of the block according to the coordinates of the block that needs to be loaded, and load the loading data of the block.
[0143] In one embodiment of the present disclosure, the foregoing loading module 903 is further configured to:
[0144] acquire IDs, display levels and object data of loading objects in each block according to the coordinates of the block that needs to be loaded;
[0145] determine the IDs, display levels and object data of all the loading objects in the block as the loading data of the block, and load the loading data of the block.
[0146] In one embodiment of the present disclosure, the foregoing device is further configured to:
[0147] unload the loaded loading data according to the block to which the current position of the user moves.
[0148] In one embodiment of the present disclosure, the foregoing device is further configured to:
[0149] determine, according to a block to which the current position moved by the user belongs, a block in the loaded data that needs to be unloaded;
[0150] unload the loaded data corresponding to the block that needs to be unloaded.
[0151] In an embodiment of the present disclosure, the apparatus is further configured to:
[0152] determine, as the block in the loaded data that needs to be unloaded, a block in the loaded data that is beyond a distance threshold from the block to which the current position moved by the user belongs.
[0153] In an embodiment of the present disclosure, the apparatus is further configured to:
[0154] render the loaded data to obtain a target map element, and display the target map element on a map display interface.
[0155] In an embodiment of the present disclosure, the apparatus is further configured to:
[0156] render object data of a loaded object in the loaded data according to a display level of the loaded object to obtain a target map element.
[0157] In an embodiment of the present disclosure, the apparatus is further configured to:
[0158] determine whether a conflict rendering event occurs in the loaded data;
[0159] if it is determined that the conflict rendering event is sent, determine a loaded object that causes the conflict in the loaded data of a conflict level, and render object data of the loaded object according to a priority of a display level of the loaded object.
[0160] In an embodiment of the present disclosure, the apparatus is further configured to:
[0161] determine whether an ID of a same loaded object exists in loaded data of different blocks in the same level of the loaded data;
[0162] if the ID of the same loaded object exists in the loaded data of the different blocks, determine whether display levels corresponding to the loaded object in the different blocks are the same;
[0163] if the display levels corresponding to the loaded object in the different blocks are not the same, determine that the loaded data sends a conflict rendering event.
[0164] According to embodiments of the present disclosure, the present disclosure further provides an electronic device, a readable storage medium, and a computer program product.
[0165] Figure 10 A schematic block diagram of an example electronic device 1000 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit the implementations of the present disclosure described and / or claimed in this document.
[0166] As shown in Figure 10 The device 1000 includes a computing unit 1001 that can perform various appropriate actions and processes in accordance with a computer program stored in a read-only memory (ROM) 1002 or a computer program loaded from a storage unit 1008 into a random access memory (RAM) 1003. Various programs and data required for the operation of the device 1000 can also be stored in the RAM 1003. The computing unit 1001, the ROM 1002, and the RAM 1003 are connected to each other through a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0167] A plurality of components in the device 1000 are connected to the I / O interface 1005, including: an input unit 1006, such as a keyboard, a mouse, etc.; an output unit 1007, such as various types of displays, speakers, etc.; the storage unit 1008, such as a magnetic disk, an optical disk, etc.; and a communication unit 1009, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1009 allows the device 1000 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.
[0168] The computing unit 1001 can be various general purpose and / or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1001 performs various methods and processes described above, such as the method XXX. For example, in some embodiments, the method XXX can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 1008. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 1000 via the ROM 1002 and / or the communication unit 1009. When the computer program is loaded onto the RAM 1003 and executed by the computing unit 1001, one or more steps of the method XXX described above can be performed. Alternatively, in other embodiments, the computing unit 1001 can be configured to perform the method XXX by any other suitable means, such as by means of firmware.
[0169] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (PLD), a computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0170] Program code for carrying out methods of the present disclosure can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces the functions / operations specified in the flowcharts and / or the block diagrams. The program code can be executed entirely on a machine, partially on a machine, partially on a machine as a stand-alone software package, partially on a machine and partially on a remote machine or entirely on a remote machine or server.
[0171] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0172] To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0173] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.
[0174] The computer system can include clients and servers. This relationship can be. The servers are generally remote from the users and can be accessed via the Internet using a communication network. The relationship can be a client-server relationship over a communications network, and as such, the servers can be accessed by the clients using computer programs. The servers can be cloud servers, also known as cloud computing servers or cloud hosts, which are mainframe products in the cloud computing service system, and solve the defects of large management difficulty and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or simply "VPS").
[0175] It should be understood that the various forms of flow shown above can be reordered, added to, or have steps deleted. For example, the steps described in the present disclosure can be performed in parallel, in series, or in a different order, as long as the desired results of the technical solutions of the present disclosure can be achieved, and the present disclosure is not limited herein.
[0176] The above detailed description does not constitute a limitation on the protection scope of the present disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for loading a meta-universe map, comprising: obtaining a coordinate point of a current position of a user and configuration level information, the configuration level information including configuration information of a plurality of different levels, wherein the different levels are divided according to different resources required by visual effects; determining a block to which the user's current position belongs according to the coordinate point; obtaining loading data according to the block to which the user's current position belongs and the configuration information of the plurality of different levels, and loading the loading data; obtaining infinite map loading data of different fineness, the infinite map loading data of different fineness including IDs, display levels and object data of loading objects of a block, wherein the block includes at least one loading object, the loading object includes one object or a group of objects, and the display level is related to a distance of the loading object from the block to which the user's current position belongs.
2. The method of claim 1, wherein, The step of obtaining loading data according to the block to which the user's current position belongs and the configuration information of the plurality of different levels, and loading the loading data, comprises: determining coordinates of a block that needs to be loaded in the configuration information of the plurality of different levels according to the block to which the user's current position belongs; obtaining loading data of the block according to the coordinates of the block that needs to be loaded, and loading the loading data of the block.
3. The method of claim 2, wherein, The step of obtaining loading data of the block according to the coordinates of the block that needs to be loaded, and loading the loading data of the block, comprises: obtaining IDs, display levels and object data of loading objects in the block according to the coordinates of the block that needs to be loaded; determining the IDs, display levels and object data of all loading objects in the block as the loading data of the block, and loading the loading data of the block.
4. The method of claim 1, wherein, The method further comprises: unloading loaded loading data according to a block to which a current position to which the user moves belongs.
5. The method of claim 4, wherein, The step of unloading loaded loading data according to a block to which a current position to which the user moves belongs, comprises: determining a block that needs to be unloaded in the loaded loading data according to the block to which the current position to which the user moves belongs; unloading loading data corresponding to the block that needs to be unloaded.
6. The method of claim 5, wherein, The step of determining a block that needs to be unloaded in the loaded loading data according to the block to which the current position to which the user moves belongs, comprises: determining a block in the loaded loading data that has a distance from the block to which the current position to which the user moves belongs exceeding a distance threshold as the block that needs to be unloaded in the loaded loading data.
7. The method of claim 1, wherein, The method further comprises: rendering the loading data to obtain target map elements, and displaying the target map elements on a map display interface.
8. The method of claim 7, wherein, The step of rendering the loading data to obtain target map elements, comprises: rendering object data of a loading object of a block in the loading data according to a display level of the loading object to obtain a target map element.
9. The method of claim 8, wherein, The method further comprises: determining whether a conflict rendering event occurs in the loading data; if it is determined that the conflict rendering event occurs, determining a loading object that causes the conflict in loading data of a conflict level, and rendering object data of the loading object according to a priority of a display level of the loading object.
10. The method of claim 9, wherein, The step of determining whether a conflict rendering event occurs in the loading data, comprises: determining whether there is an ID of a same loading object in loading data of different blocks in a same level; if there is an ID of a same loading object in loading data of different blocks, determining whether corresponding display levels of the loading object in the different blocks are same; if corresponding display levels of the loading object in the different blocks are not same, determining that the loading data sends a conflict rendering event.
11. A loading device of a meta-universe map, comprising: an acquisition module configured to acquire a coordinate point of a current position of a user and configuration level information, the configuration level information comprising first configuration information of a plurality of different levels, wherein the different levels are divided according to different resources required by visual effects; a determination module configured to determine a block to which the current position of the user belongs according to the coordinate point; a loading module configured to acquire loading data according to the block to which the current position of the user belongs and the configuration information of the plurality of different levels, and load the loading data, wherein infinite map loading data of different finenesses are acquired, the infinite map loading data of different finenesses comprising an ID, a display level and object data of a loading object of a block, wherein the block comprises at least one loading object, the loading object comprising one object or a group of objects, and the display level is related to a distance of the loading object from the block to which the current position of the user belongs.
12. The apparatus of claim 11, wherein, The loading module is specifically configured to: determine coordinates of a block that needs to be loaded from the configuration information of the plurality of different levels according to the block to which the current position of the user belongs; acquire loading data of the block according to the coordinates of the block that needs to be loaded, and load the loading data of the block.
13. The apparatus of claim 12, wherein, The loading module is further configured to: acquire the ID, the display level and the object data of the loading object in the block according to the coordinates of the block that needs to be loaded; determine the ID, the display level and the object data of all loading objects in the block as the loading data of the block, and load the loading data of the block.
14. The device of claim 11, further configured to: unload loaded loading data according to a block to which a current position to which the user moves belongs.
15. The device of claim 14, further configured to: determine a block that needs to be unloaded from the loaded loading data according to a block to which a current position to which the user moves belongs; unload corresponding loading data of the block that needs to be unloaded.
16. The device of claim 15, further configured to: determine a block whose distance from the block to which the current position to which the user moves belongs exceeds a distance threshold value as the block that needs to be unloaded from the loaded loading data.
17. The device of claim 11, further configured to: render the loading data to obtain target map elements, and display the target map elements on a map display interface.
18. The device of claim 17, further configured to: render object data of a loading object of a block in the loading data according to a display level of the loading object to obtain target map elements.
19. The device of claim 18, further configured to: determine whether a conflict rendering event occurs in the loading data. If it is determined to send the conflict rendering event, it is determined to send a loading object in the loading data of the conflict level where the conflict occurs, and render object data of the loading object according to a priority of a display level of the loading object.
20. The apparatus of claim 19, further configured to: determine whether there is an ID of a same loading object in loading data of different blocks of a same level; if there is the ID of the same loading object in the loading data of the different blocks, determine whether corresponding display levels of the loading object in the different blocks are same; if the corresponding display levels of the loading object in the different blocks are not same, determine that the loading data sends a conflict rendering event.
21. An electronic device, comprising: at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-10.
22. A non-transitory computer readable storage medium having stored thereon computer instructions, wherein, the computer instructions are for causing the computer to perform the method of any one of claims 1-10.
23. A computer program product, comprising a computer program which, when executed by a processor, implements the method of any one of claims 1-10.
Citation Information
Patent Citations
Resource dynamic loading method and terminal
CN106547599A
Map rendering method and related equipment
CN110019612A
Method and system for realizing seamless loading of game map
CN111068310A