WO2022246659A1 - Map data loading method and apparatus, map data updating method and apparatus, device, and storage medium - Google Patents
Map data loading method and apparatus, map data updating method and apparatus, device, and storage medium Download PDFInfo
- Publication number
- WO2022246659A1 WO2022246659A1 PCT/CN2021/095867 CN2021095867W WO2022246659A1 WO 2022246659 A1 WO2022246659 A1 WO 2022246659A1 CN 2021095867 W CN2021095867 W CN 2021095867W WO 2022246659 A1 WO2022246659 A1 WO 2022246659A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data block
- map data
- map
- area
- resolution level
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
Definitions
- the present application relates to the field of computer technology, in particular to a map data loading and updating method, device, equipment and storage medium.
- map data of the complete map when loading map data, the map data of the complete map is usually obtained directly, and then the map data of the complete map is loaded. In this way, in the case of large-scale map data, due to the large amount of map data that needs to be loaded, it needs to consume a lot of computing resources and loading time when loading the above-mentioned map data, resulting in slow map data loading. , reducing the user experience.
- the purpose of the embodiments of the present application is to provide a map data loading and updating method, device, device and storage medium, so as to improve the map data loading speed.
- the specific technical scheme is as follows:
- the embodiment of the present application provides a method for loading map data, the method comprising:
- the area described by a map data block at one resolution level includes: at least two areas of the next resolution level.
- the data volumes of different map data blocks are equal.
- the obtaining the target data block used to describe the area to be loaded from the map data blocks of different resolution levels includes:
- the method also includes:
- the environmental data includes: climate data and/or astronomical data
- the loading of the target data block includes:
- the loading of the target data block and environment data includes:
- the loading of the target data block includes:
- the configuration model is superimposed on the loaded terrain.
- each map data block is: a data block after the vision is baked.
- initial map data blocks of different resolution levels are obtained in the following manner:
- the area described by the map data block of this level is divided, and the map data block used to describe each divided area is obtained as the map data of the second resolution level block, wherein the richness of detail of the area described by the map data block of the second resolution level is greater than the richness of detail of the area described by the map data block of the first resolution level;
- the embodiment of the present application provides a method for updating map data, the method comprising:
- the area described by a map data block at one resolution level includes: at least The area described by the two map data blocks;
- the resolution of the update information is adjusted according to the richness of detail corresponding to the resolution level to which the data block to be updated belongs, and the adjusted update information is used to update the data block to be updated.
- the map data block of each region includes: terrain information of the region, type information and distribution information of the scene configuration of the region;
- the update of the data block to be updated by using the adjusted update information includes:
- the adjusted update information is used to update the terrain information of the area to be updated, the type information and distribution information of the scene configuration of the area to be updated in the data block to be updated.
- the update information includes environment update information
- the environment update information includes: climate update information, and/or astronomical phenomenon update information.
- an embodiment of the present application provides a map data loading device, the device comprising:
- a location obtaining module configured to obtain a map location to be loaded with data in the scene map
- an area determining module configured to determine an area to be loaded that includes the map location in the scene map
- the first data block obtaining module is configured to obtain a target data block used to describe the area to be loaded from map data blocks of different resolution levels, wherein the resolution level to which each map data block belongs is used to reflect:
- the detail richness of the area described by the map data block increases with the increase of the resolution level, the range size of the area described by a map data block decreases, and the detail richness increases.
- the area described by a map data block of a resolution level includes : the area described by at least two map data blocks of the next resolution level;
- a data block loading module configured to load the target data block.
- the data volumes of different map data blocks are equal.
- the first data block obtaining module is specifically used for:
- the device also includes:
- An environmental data obtaining module configured to obtain environmental data of the area to be loaded at the scene time, wherein the environmental data includes: climate data and/or astronomical data;
- the data block loading module is specifically used for:
- the data block loading module is specifically used for:
- the map data block used to describe each area includes: terrain information of the area, type information and distribution information of the scene configuration in the area;
- the data block loading module is specifically used for:
- the configuration model is superimposed on the loaded terrain.
- the scene configuration includes one or more of the following configurations: vegetation, mountains, rivers, animals, deserts, and Gobi.
- each map data block is: a data block after the vision is baked.
- the device further includes an initial data block obtaining module, which is used to obtain initial map data blocks of different resolution levels in the following manner:
- the area described by the map data block of this level is divided, and the map data block used to describe each divided area is obtained as the map data of the second resolution level block, wherein the richness of detail of the area described by the map data block of the second resolution level is greater than the richness of detail of the area described by the map data block of the first resolution level;
- An update information obtaining module configured to obtain update information of an area to be updated in the scene map
- the data block updating module is configured to adjust the resolution of the update information for each data block to be updated according to the richness of detail corresponding to the resolution level to which the data block to be updated belongs, and update the to-be-updated data block with the adjusted update information. data block.
- the map data block of each region includes: terrain information of the region, type information and distribution information of the scene configuration of the region;
- the data block update module is specifically used for:
- For each data block to be updated adjust the resolution of the update information according to the richness of detail corresponding to the resolution level to which the data block to be updated belongs, and use the adjusted update information to update the data to be updated in the data block to be updated. Updating the terrain information of the area, and the type information and distribution information of the scene configuration of the area to be updated.
- the update information includes environment update information
- the environment update information includes: climate update information, and/or astronomical phenomenon update information.
- the embodiment of the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;
- the processor is configured to implement the method steps described in any one of the first aspect or the second aspect when executing the program stored in the memory.
- an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any one of the first aspect or the second aspect is implemented. The method steps described.
- the map position to be loaded in the scene map can be obtained; the area to be loaded including the map position in the scene map can be determined;
- the resolution level to which each map data block belongs is used to reflect: the detail richness of the area described by the map data block, as the resolution level increases, the size of a map data block The range size of the description area is reduced, and the richness of detail is increased.
- the area described by a map data block of a resolution level includes: the area described by at least two map data blocks of the next resolution level; and the target data block is loaded.
- the map data block used to describe the area to be loaded can be selected for loading, and there is no need to load the map data block irrelevant to the area to be loaded, thereby reducing the data volume of the loaded map data. It can be seen that, by applying the solution provided by the embodiment of the present application, the loading speed of map data can be improved.
- FIG. 2 is a schematic diagram of a map data block provided by an embodiment of the present application.
- FIG. 3 is a schematic diagram of another map data block provided by the embodiment of the present application.
- FIG. 4 is a schematic flow chart of another method for loading map data provided by the embodiment of the present application.
- FIG. 5 is a schematic flowchart of a method for obtaining a map data block provided in an embodiment of the present application
- FIG. 6 is a schematic flowchart of a method for updating map data provided by an embodiment of the present application.
- FIG. 7 is a schematic structural diagram of a map data loading device provided in an embodiment of the present application.
- FIG. 8 is a schematic structural diagram of a map data updating device provided in an embodiment of the present application.
- FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- the embodiments of the present application provide a map data loading and updating method, device, device and storage medium, which will be introduced respectively below.
- Fig. 1 is a schematic flow diagram of a method for loading map data provided by an embodiment of the present application. This method can be applied to electronic devices such as mobile phones, electronic computers, and tablet computers.
- the above-mentioned method for loading map data may include the following steps S101- S104.
- the aforementioned scene map may be a world map, a game map, a simulation map, and the like.
- the above map location is: the location of the map data to be loaded in the scene map. For example, the location of the game character on the game map.
- the position selected by the user through an external input device such as a mouse or a touch screen can be obtained as the map position to be loaded with data, or the position input by the user through an external input device can be obtained Information, based on the above location information to determine the map location to be loaded with data, the above location information may be location coordinates, location identification, etc.
- the position where the current game character is located can be obtained as the map position to be loaded with data.
- the above-mentioned map position may be used as a mark position, and an area within a preset range in the scene map may be determined as the area to be loaded.
- the above-mentioned mark position may be the center position.
- an area within a preset range centered on the map position in the scene map may be determined as the area to be loaded.
- the position of the above-mentioned logo can also be a preset position such as the upper left corner position, the lower right corner position, and the like.
- the aforementioned preset range may be a rectangular range whose side length is the first distance, a circular range whose radius is the second distance, and the like. Values of the above-mentioned first distance and second distance may be 500 meters, 1 kilometer, 10 kilometers and so on.
- the above-mentioned map position is where the current game character is located
- the mark position is the center position
- the preset range is: a circular range with a radius of 5 kilometers
- the above-mentioned area to be loaded can be: in the scene map, the current game character
- the location is the central location and the area within a radius of 5 kilometers.
- the resolution level of each map data block is used to reflect: the detail richness of the area described by the map data block. As the resolution level increases, the range of the area described by a map data block decreases and the detail richness increases
- the area described by a map data block at a resolution level includes: the area described by at least two map data blocks at a next resolution level.
- the map data block with a higher resolution level the smaller the range of the described area, and the higher the detail richness of the described area; the lower the resolution level of the map data block, the smaller the range of the described area The larger and the less detailed the area described.
- the resolution of the map data block is higher.
- the lowest resolution level includes at least one map data block, and the area described by the map data block of each resolution level may include the area described by at least two map data blocks in a higher resolution level. Different map data blocks describe different areas.
- FIG. 2 is a schematic diagram of a map data block provided by an embodiment of the present application.
- the map data blocks of the first resolution level include: map data block 1
- the map data blocks of the second resolution level include: map data blocks 2, 3...4, and the map data blocks of the third resolution level
- the data blocks include: map data blocks 5, 6...7.
- the resolution of map data block 1 is the smallest, the detail richness of the described area is the lowest, and the range is the largest
- the area described by map data block 1 includes the areas described by map data blocks 2, 3...4, and the map The area described by data block 2 includes the areas described by map data blocks 5, 6...7, and so on.
- the areas described by different map data blocks are not exactly the same, and the map data blocks that have an intersection between the described area and the above-mentioned area to be loaded can be found from the map data blocks of different resolution levels as the target data block, that is, the target
- the area described by the data block can contain part or all of the area to be loaded.
- the target data block may describe terrain information of the area to be loaded, and loading the above target data block may realize loading of a map of the area to be loaded.
- the scene time of the scene described by the map data to be loaded can be obtained;
- the map data block obtain the target data block used to describe the area to be loaded at the scene time.
- the map area is: the area in the scene map.
- map data blocks used to describe the map area at the same resolution level, and different map data blocks are used to describe the scene of the area under different time ranges . Therefore, when obtaining the target data block, in addition to obtaining the area to be loaded, you can also obtain the scene time of the scene that the expected loaded map data can describe, and then search for the map data block used to describe the area to be loaded under the above scene time , as the target data block.
- FIG. 3 is a schematic diagram of another map data block provided by an embodiment of the present application.
- each map data block corresponds to multiple data blocks, which are used to describe the same map area at different times.
- map data block 1 is used to describe the entire The world area is described.
- Map data block 1 corresponds to three map data blocks, which can be used to describe the world area from 1000 years ago, 500 years to 1000 years ago, and 500 years ago to today.
- the target data block when the map area changes at different times, the target data block can be determined by time and area, and the obtained target data block can describe the area to be loaded at the scene time, thereby improving the accuracy of the loaded map data. Accuracy.
- the time input by the user through an external input device may be obtained as the scene time.
- the time selected by the user from the preset time selection items through the input device may also be obtained as the scene time.
- the above-mentioned time selection item is: an optional time item for displaying to the user.
- the environment data of the area to be loaded at the scene time can also be obtained.
- the environmental data includes: climate data, and/or astronomical data.
- the climate data mentioned above may include seasonal data, weather data, illumination data, and the like.
- the above-mentioned astronomical data are: data about astronomical phenomena, such as data about meteor showers, data about Halley's Comet, and the like.
- the target data block and environment data can be loaded.
- the environment data of the area to be loaded at the scene time can be obtained, and the environment data can describe the environment of the area to be loaded at the scene time, and then the above target map data block and environment data are loaded, so that the loaded The data can describe the terrain and environment of the area to be loaded at the scene time, improving the accuracy of the loaded map data.
- the target data block may be loaded on the first layer, and the environment data may be loaded on the second layer; and the first layer and the second layer may be superimposed.
- the target data block can be loaded in the first layer, and the data loaded in the first layer can describe the terrain of the area to be loaded in the scene time; and the environment data can be loaded in the second layer, and the second map
- the data loaded in the layer can describe the environment of the area to be loaded at the scene time, and then superimpose the above-mentioned first layer and the second layer, so that the terrain and environment of the area to be loaded at the scene time can be loaded together, and the loaded area can be improved.
- the map data block used to describe each region may include: terrain information of the region, type information and distribution information of scene configurations in the region.
- the above scene configuration is: the configuration in the scene of this area.
- the type information of the scene configuration can represent the category of the scene configuration, and the distribution information can reflect the distribution of the scene configuration in the scene.
- the above scene configuration may include one or more of the following configurations: vegetation, mountains, rivers, animals, deserts, and Gobi.
- the terrain of the area to be loaded can be loaded according to the terrain information in the target data block; according to the type information of the scene configuration in the target data block, the configuration model of the scene configuration to be loaded can be obtained; according to the target data block In the distribution information of the scene configuration, the configuration model is superimposed on the loaded terrain.
- the terrain of the area to be loaded may be loaded, and then a configuration model consistent with the type information of the scene configuration may be obtained. Then, according to the above-mentioned distribution information, the obtained configuration model is loaded on the terrain, so that the loaded scene includes the above-mentioned scene configuration.
- the type information of the above-mentioned scene configuration indicates that the scene is configured as vegetation
- the distribution information indicates that the above-mentioned vegetation is distributed around the edge area of the scene.
- the terrain can be loaded according to the terrain information to obtain the vegetation model corresponding to the vegetation, and then the above vegetation model can be loaded in the edge area around the terrain, making the loaded scene more abundant.
- the loaded data includes terrain data and data related to scene configuration, and the loaded data is richer, which can increase the richness of the scene obtained after loading.
- the map data block only contains the type information and distribution information of the scene configuration, and does not need to contain a specific scene configuration model, which can reduce the data volume of the map data block and improve the map data loading speed.
- the map position of the map data to be loaded may be determined from the world map.
- map data block used to describe each region may include: terrain information of the region, type information and distribution information of the scene configuration in the region.
- FIG. 5 is a schematic flowchart of a method for obtaining a map data block provided in an embodiment of the present application.
- Initial map data blocks of different resolution levels can be obtained through the following methods S501-S503:
- the scene map can be divided into at least two areas, and for each divided area, a data block used to describe the area can be obtained as a map data block of the first resolution level, and the first resolution level
- a data block used to describe the area can be obtained as a map data block of the first resolution level, and the first resolution level
- the area described by the map data blocks is less detailed.
- the scene map when dividing regions, may be equally divided into a preset number of regions, and the preset number may be 2, 4, 8 and so on.
- the scene map may also be divided into multiple regions according to a preset size, which is not limited in this embodiment of the present application.
- the richness of detail of the area described by the map data block of the second resolution level is greater than the richness of detail of the area described by the map data block of the first resolution level.
- the area described by the map data block can be divided into at least two areas again, and then for each divided area, the information used to describe the area is obtained.
- the data block of is used as the map data block of the second resolution level.
- the map data blocks of the first resolution level can be updated to the map data blocks of the second resolution level, return to the above step S502, and divide the map data blocks of the second resolution level repeatedly, and obtain The map data block corresponding to the obtained area is obtained until the obtained second resolution level satisfies the preset condition.
- the aforementioned preset condition may be: the number of obtained resolution levels reaches a preset threshold of the number of levels, and the threshold of the number of levels may be 5, 7, 10, and so on.
- the above preset condition may also be that: the resolution of the obtained map data block meets the preset resolution requirement, which can be understood as that the richness of detail of the region described by the obtained map data block meets the preset requirement.
- the data volumes of different map data blocks are equal.
- the data volumes of the map data blocks of different resolution levels are equal. It can be understood that the larger the area described by the low-resolution map data block, the lower the detail richness; the smaller the area described by the high-resolution map data block, the higher the detail richness.
- each map data block is: a data block after the vision is baked.
- the map position to be loaded in the scene map can be obtained; the area to be loaded including the map position in the scene map can be determined; Describe the target data block of the area to be loaded, where the resolution level to which each map data block belongs is used to reflect: the detail richness of the area described by the map data block, as the resolution level increases, the resolution level described by a map data block The range size of the area is reduced and the richness of detail is increased.
- the area described by a map data block of a resolution level includes: the area described by at least two map data blocks of the next resolution level; and the target data block is loaded.
- the aforementioned area to be updated is: an area to be updated in the scene map, and the update information may include terrain update information of the area to be updated.
- an editing operation on an area in the currently loaded scene map may be received, the edited area is used as the area to be updated, and the terrain information of the edited area is used as the update information.
- the above scene map is a world map
- the resolution level to which each map data block belongs is used to reflect: the detail richness of the area described by the map data block. As the resolution level increases, the range of the area described by a map data block decreases and the details are rich. Increasingly, the area described by a map data block of a resolution level includes: the area described by at least two map data blocks of the next resolution level.
- a map data block that has an intersection between the described area and the above-mentioned area to be updated may be searched from the map data blocks of different resolution levels as the data block to be updated.
- the map data block on which the above-mentioned area to be updated is currently loaded can be used as the current data block, and the detail richness of the update information of the area to be updated is related to the current resolution level of the current data block.
- the corresponding richness of detail is the same.
- the update information can be filled with details, and the resolution of the update information can be adjusted up, so that the details of the updated information after the detail filling are as rich as the details to be updated.
- the detail richness corresponding to the resolution level of the update data block is the same, and then update the database to be updated by using the update information after detail filling;
- the database to be updated may be updated directly by using the update information.
- the update information when filling the update information with details, can be processed by upsampling, difference, etc.;
- processing such as down-sampling may be performed on the update information.
- the map data block of each region may include: terrain information of the region, type information and distribution information of the scene configuration of the region.
- the above update information may only include the terrain update information of the area to be updated and the type information of the scene configuration of the area to be updated, so that when updating the data block to be updated, the updated scene configuration of the area to be updated can be , calculate the distribution update information of the updated scene configuration, then adjust the resolution of the update information and distribution update information, and then use the adjusted distribution update information, and the terrain update information and category information in the update information to update the data to be updated.
- the environment change of the area to be updated in the actual world map may also be detected to obtain environment update information.
- the resolution of the update information can be adjusted according to the resolution level to which each data block to be updated belongs, and then the adjusted update information can be used to update each to-be-updated data block. Data blocks. It can be seen from this that by applying the solution provided by the embodiment of the present application, the update of each map data block used to describe the area to be updated can be implemented.
- FIG. 7 is a schematic structural diagram of a map data loading device provided in an embodiment of the present application, and the device includes:
- An area determination module 702 configured to determine an area to be loaded that includes the map location in the scene map
- the first data block obtaining module 703 is configured to obtain a target data block used to describe the area to be loaded from map data blocks of different resolution levels, wherein the resolution level to which each map data block belongs is used to reflect : The detail richness of the area described by the map data block. As the resolution level increases, the range of the area described by a map data block decreases and the detail richness increases.
- the area described by a map data block at a resolution level Including: the area described by at least two map data blocks of the next resolution level;
- the data volumes of different map data blocks are equal.
- the first data block obtaining module 703 is specifically used for:
- the device also includes:
- An environmental data obtaining module configured to obtain environmental data of the area to be loaded at the scene time, wherein the environmental data includes: climate data and/or astronomical data;
- the data block loading module 704 is specifically used for:
- the map data block used to describe each area includes: terrain information of the area, type information and distribution information of the scene configuration in the area;
- the configuration model is superimposed on the loaded terrain.
- the scene configuration includes one or more of the following configurations: vegetation, mountains, rivers, animals, deserts, and Gobi.
- the device further includes an initial data block obtaining module, which is used to obtain initial map data blocks of different resolution levels in the following manner:
- the map position to be loaded in the scene map can be obtained; the area to be loaded including the map position in the scene map can be determined; Describe the target data block of the area to be loaded, where the resolution level to which each map data block belongs is used to reflect: the detail richness of the area described by the map data block, as the resolution level increases, the resolution level described by a map data block The range size of the area is reduced and the richness of detail is increased.
- the area described by a map data block of a resolution level includes: the area described by at least two map data blocks of the next resolution level; and the target data block is loaded.
- the map data block used to describe the area to be loaded can be selected for loading, and there is no need to load the map data block irrelevant to the area to be loaded, thereby reducing the data volume of the loaded map data. It can be seen that, by applying the solutions provided by the above embodiments, the loading speed of map data can be improved.
- the map data block of each region includes: terrain information of the region, type information and distribution information of the scene configuration of the region;
- the data block updating module 803 is specifically used for:
- For each data block to be updated adjust the resolution of the update information according to the richness of detail corresponding to the resolution level to which the data block to be updated belongs, and use the adjusted update information to update the data to be updated in the data block to be updated. Updating the terrain information of the area, and the type information and distribution information of the scene configuration of the area to be updated.
- the resolution of the update information can be adjusted according to the resolution level to which each data block to be updated belongs, and then the adjusted update information can be used to update each to-be-updated data block. Data blocks. It can be seen from this that by applying the solution provided by the embodiment of the present application, the update of each map data block used to describe the area to be updated can be implemented.
- the embodiment of the present application also provides an electronic device, as shown in FIG. 9 , including a processor 901, a communication interface 902, a memory 903, and a communication bus 904. complete the mutual communication,
- the communication bus mentioned above for the electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus or the like.
- PCI Peripheral Component Interconnect
- EISA Extended Industry Standard Architecture
- the communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
- the communication interface is used for communication between the electronic device and other devices.
- the memory may include a random access memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory.
- RAM Random Access Memory
- NVM non-Volatile Memory
- the memory may also be at least one storage device located far away from the aforementioned processor.
- a computer-readable storage medium is also provided.
- a computer program is stored in the computer-readable storage medium.
- any of the above data loading methods is implemented. and/or steps of the data update method.
- the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
- the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
- the available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk (SSD)).
- SSD Solid State Disk
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
本申请涉及计算机技术领域,特别是涉及一种地图数据加载、更新方法、装置、设备及存储介质。The present application relates to the field of computer technology, in particular to a map data loading and updating method, device, equipment and storage medium.
在游戏、仿真等应用场景中,通常需要加载大规模的地图数据,从而便于用户基于所加载的地图数据进行游戏,或者获得真实感较强的仿真场景。In application scenarios such as games and simulations, it is usually necessary to load large-scale map data, so that users can play games based on the loaded map data, or obtain simulation scenes with a strong sense of reality.
相关技术中,在加载地图数据时,通常会直接获得完整地图的地图数据,然后对上述完整地图的地图数据进行加载。这样在地图数据的规模较大的情况下,由于所需要加载的地图数据的数据量较大,从而在对上述地图数据进行加载时需要消耗大量的计算资源和加载时间,导致地图数据加载速度慢,降低了用户体验。In related technologies, when loading map data, the map data of the complete map is usually obtained directly, and then the map data of the complete map is loaded. In this way, in the case of large-scale map data, due to the large amount of map data that needs to be loaded, it needs to consume a lot of computing resources and loading time when loading the above-mentioned map data, resulting in slow map data loading. , reducing the user experience.
发明内容Contents of the invention
本申请实施例的目的在于提供一种地图数据加载、更新方法、装置、设备及存储介质,以提高地图数据加载速度。具体技术方案如下:The purpose of the embodiments of the present application is to provide a map data loading and updating method, device, device and storage medium, so as to improve the map data loading speed. The specific technical scheme is as follows:
第一方面,本申请实施例提供了一种地图数据加载方法,所述方法包括:In the first aspect, the embodiment of the present application provides a method for loading map data, the method comprising:
获得场景地图中待进行数据加载的地图位置;Obtain the map location to be loaded in the scene map;
确定所述场景地图中包含所述地图位置的待加载区域;Determining the area to be loaded that includes the map location in the scene map;
从不同分辨率层级的地图数据块中,获得用于描述所述待加载区域的目标数据块,其中,每一地图数据块所属的分辨率层级用于反映:该地图数据块所描述区域的细节丰富程度,随分辨率层级升高,一个地图数据块所描述区域的范围大小减小、细节丰富程度提高,一分辨率层级的一地图数据块描述的区域包括:下一分辨率层级的至少两个地图数据块描述的区域;Obtain a target data block for describing the area to be loaded from map data blocks of different resolution levels, wherein the resolution level to which each map data block belongs is used to reflect: the details of the area described by the map data block Richness, as the resolution level increases, the range of the area described by a map data block decreases, and the detail richness increases. The area described by a map data block at one resolution level includes: at least two areas of the next resolution level. The area described by a map data block;
加载所述目标数据块。Load the target data block.
本申请的一个实施例中,不同地图数据块的数据量相等。In an embodiment of the present application, the data volumes of different map data blocks are equal.
本申请的一个实施例中,所述从不同分辨率层级的地图数据块中,获得用于描述所述待加载区域的目标数据块,包括:In an embodiment of the present application, the obtaining the target data block used to describe the area to be loaded from the map data blocks of different resolution levels includes:
获得期望待加载的地图数据所描述的场景的场景时间;Obtain the scene time of the scene described by the map data expected to be loaded;
从不同分辨率层级内对不同时间下的地图区域进行描述的地图数据块中,获得用于描述所述场景时间下所述待加载区域的目标数据块,其中,所述地图区域为:所述场景地图中的区域。Obtain a target data block used to describe the area to be loaded at the scene time from map data blocks describing map areas at different times in different resolution levels, wherein the map area is: the Regions in the scene map.
本申请的一个实施例中,所述方法还包括:In one embodiment of the present application, the method also includes:
获得所述场景时间下所述待加载区域的环境数据,其中,所述环境数据包括:气候数据、和/或天文数据;Obtaining environmental data of the area to be loaded at the scene time, wherein the environmental data includes: climate data and/or astronomical data;
所述加载所述目标数据块,包括:The loading of the target data block includes:
加载所述目标数据块和环境数据。Load the target data block and environment data.
本申请的一个实施例中,所述加载所述目标数据块和环境数据,包括:In one embodiment of the present application, the loading of the target data block and environment data includes:
在第一图层加载所述目标数据块,并在第二图层加载所述环境数据;loading the target data block on the first layer, and loading the environment data on the second layer;
叠加所述第一图层和第二图层。Overlay the first layer and the second layer.
本申请的一个实施例中,用于描述每一区域的地图数据块中包括:该区域的地形信息、该区域内场景配置的种类信息和分布信息;In one embodiment of the present application, the map data block used to describe each area includes: terrain information of the area, type information and distribution information of the scene configuration in the area;
所述加载所述目标数据块,包括:The loading of the target data block includes:
根据所述目标数据块中的地形信息,加载所述待加载区域的地形;loading the terrain of the area to be loaded according to the terrain information in the target data block;
根据所述目标数据块中场景配置的种类信息,获得待加载的场景配置的配置模型;Obtain a configuration model of the scene configuration to be loaded according to the type information of the scene configuration in the target data block;
按照所述目标数据块中场景配置的分布信息,在所加载的地形上叠加所述配置模型。According to the distribution information of the scene configuration in the target data block, the configuration model is superimposed on the loaded terrain.
本申请的一个实施例中,所述场景配置包括以下配置中的一种或多种:植被、山脉、河流、动物、沙漠、戈壁。In an embodiment of the present application, the scene configuration includes one or more of the following configurations: vegetation, mountains, rivers, animals, deserts, and Gobi.
本申请的一个实施例中,每一地图数据块为:远景烘焙后的数据块。In an embodiment of the present application, each map data block is: a data block after the vision is baked.
本申请的一个实施例中,通过以下方式得到初始的、不同分辨率层级的地图数据块:In one embodiment of the present application, initial map data blocks of different resolution levels are obtained in the following manner:
将所述场景地图划分为多个区域,获得用于描述每一划分后区域的地图数据块,作为第一分辨率层级的地图数据块;Divide the scene map into a plurality of regions, and obtain a map data block for describing each divided region as a map data block of the first resolution level;
针对每一第一分辨率层级的地图数据块,对该层级的地图数据块所描述的区域进行划分,获得用于描述每一划分后区域的地图数据块,作为第二分辨率层级的地图数据块,其中,所述第二分辨率层级的地图数据块所描述区域的细节丰富程度,大于所述第一分辨率层级的地图数据块所描述区域的细节丰富程度;For each map data block of the first resolution level, the area described by the map data block of this level is divided, and the map data block used to describe each divided area is obtained as the map data of the second resolution level block, wherein the richness of detail of the area described by the map data block of the second resolution level is greater than the richness of detail of the area described by the map data block of the first resolution level;
将所述第一分辨率层级的地图数据块更新为所述第二分辨率层级的地图数据块,返回所述针对每一第一分辨率层级的地图数据块、对该层级的地图数据块所描述的区域进行划分的步骤,直至所得到的第二分辨率层级满足预设条件。update the map data block of the first resolution level to the map data block of the second resolution level, return the map data block for each first resolution level, the map data block of the level The step of dividing the described area until the obtained second resolution level satisfies the preset condition.
第二方面,本申请实施例提供了一种地图数据更新方法,所述方法包括:In a second aspect, the embodiment of the present application provides a method for updating map data, the method comprising:
获得场景地图中待更新区域的更新信息;Obtain the update information of the area to be updated in the scene map;
从不同分辨率层级的地图数据块中,获得用于描述所述待更新区域的待更新数据块,其中,每一地图数据块所属的分辨率层级用于反映:该地图数据块所描述区域的细节丰富程度,随分辨率层级升高,一个地图数据块所描述区域的范围大小减小、细节丰富程度提高,一分辨率层级的一地图数据块描述的区域包括:下一分辨率层级的至少两个地图数据块描述的区域;Obtain a data block to be updated for describing the area to be updated from map data blocks of different resolution levels, wherein the resolution level to which each map data block belongs is used to reflect: the area described by the map data block The degree of detail richness, as the resolution level increases, the range size of the area described by a map data block decreases, and the detail richness increases. The area described by a map data block at one resolution level includes: at least The area described by the two map data blocks;
针对每一待更新数据块,按照该待更新数据块所属分辨率层级对应的细节丰富程度,调整所述更新信息的分辨率,利用调整后的更新信息更新该待更新数据块。For each data block to be updated, the resolution of the update information is adjusted according to the richness of detail corresponding to the resolution level to which the data block to be updated belongs, and the adjusted update information is used to update the data block to be updated.
本申请的一个实施例中,每一区域的地图数据块中包括:该区域的地形信息、该区域的场景配置的种类信息和分布信息;In one embodiment of the present application, the map data block of each region includes: terrain information of the region, type information and distribution information of the scene configuration of the region;
所述利用调整后的更新信息更新该待更新数据块,包括:The update of the data block to be updated by using the adjusted update information includes:
利用调整后的更新信息,更新该待更新数据块中所述待更新区域的地形信息、所述待更新区域的场景配置的种类信息和分布信息。The adjusted update information is used to update the terrain information of the area to be updated, the type information and distribution information of the scene configuration of the area to be updated in the data block to be updated.
本申请的一个实施例中,所述更新信息包括环境更新信息,所述环境更新信息包括:气候更新信息、和/或天文现象更新信息。In an embodiment of the present application, the update information includes environment update information, and the environment update information includes: climate update information, and/or astronomical phenomenon update information.
第三方面,本申请实施例提供了一种地图数据加载装置,所述装置包括:In a third aspect, an embodiment of the present application provides a map data loading device, the device comprising:
位置获得模块,用于获得场景地图中待进行数据加载的地图位置;A location obtaining module, configured to obtain a map location to be loaded with data in the scene map;
区域确定模块,用于确定所述场景地图中包含所述地图位置的待加载区域;an area determining module, configured to determine an area to be loaded that includes the map location in the scene map;
第一数据块获得模块,用于从不同分辨率层级的地图数据块中,获得用于描述所述待加载区域的目标数据块,其中,每一地图数据块所属的分辨率层级用于反映:该地图数据块所描述区域的细节丰富程度,随分辨率层级升高,一个地图数据块所描述区域的范围大小减小、细节丰富程度提高,一分辨率层级的一地图数据块描述的区域包括:下一分辨率层级的至少两个地图数据块描述的区域;The first data block obtaining module is configured to obtain a target data block used to describe the area to be loaded from map data blocks of different resolution levels, wherein the resolution level to which each map data block belongs is used to reflect: The detail richness of the area described by the map data block increases with the increase of the resolution level, the range size of the area described by a map data block decreases, and the detail richness increases. The area described by a map data block of a resolution level includes : the area described by at least two map data blocks of the next resolution level;
数据块加载模块,用于加载所述目标数据块。A data block loading module, configured to load the target data block.
本申请的一个实施例中,不同地图数据块的数据量相等。In an embodiment of the present application, the data volumes of different map data blocks are equal.
本申请的一个实施例中,所述第一数据块获得模块,具体用于:In one embodiment of the present application, the first data block obtaining module is specifically used for:
获得期望待加载的地图数据所描述的场景的场景时间;Obtain the scene time of the scene described by the map data expected to be loaded;
从不同分辨率层级内对不同时间下的地图区域进行描述的地图数据块中,获得用于描述所述场景时间下所述待加载区域的目标数据块,其中,所述地图区域为:所述场景地图中的区域。Obtain a target data block used to describe the area to be loaded at the scene time from map data blocks describing map areas at different times in different resolution levels, wherein the map area is: the Regions in the scene map.
本申请的一个实施例中,所述装置还包括:In one embodiment of the present application, the device also includes:
环境数据获得模块,用于获得所述场景时间下所述待加载区域的环境数据,其中,所述环境数据包括:气候数据、和/或天文数据;An environmental data obtaining module, configured to obtain environmental data of the area to be loaded at the scene time, wherein the environmental data includes: climate data and/or astronomical data;
所述数据块加载模块,具体用于:The data block loading module is specifically used for:
加载所述目标数据块和环境数据。Load the target data block and environment data.
本申请的一个实施例中,所述数据块加载模块,具体用于:In one embodiment of the present application, the data block loading module is specifically used for:
在第一图层加载所述目标数据块,并在第二图层加载所述环境数据;loading the target data block on the first layer, and loading the environment data on the second layer;
叠加所述第一图层和第二图层。Overlay the first layer and the second layer.
本申请的一个实施例中,用于描述每一区域的地图数据块中包括:该区域的地形信息、该区域内场景配置的种类信息和分布信息;In one embodiment of the present application, the map data block used to describe each area includes: terrain information of the area, type information and distribution information of the scene configuration in the area;
所述数据块加载模块,具体用于:The data block loading module is specifically used for:
根据所述目标数据块中的地形信息,加载所述待加载区域的地形;loading the terrain of the area to be loaded according to the terrain information in the target data block;
根据所述目标数据块中场景配置的种类信息,获得待加载的场景配置的配置模型;Obtain a configuration model of the scene configuration to be loaded according to the type information of the scene configuration in the target data block;
按照所述目标数据块中场景配置的分布信息,在所加载的地形上叠加所述配置模型。According to the distribution information of the scene configuration in the target data block, the configuration model is superimposed on the loaded terrain.
本申请的一个实施例中,所述场景配置包括以下配置中的一种或多种:植被、山脉、河流、动物、沙漠、戈壁。In an embodiment of the present application, the scene configuration includes one or more of the following configurations: vegetation, mountains, rivers, animals, deserts, and Gobi.
本申请的一个实施例中,每一地图数据块为:远景烘焙后的数据块。In an embodiment of the present application, each map data block is: a data block after the vision is baked.
本申请的一个实施例中,所述装置还包括初始数据块获得模块,用于通过以下方式得到初始的、不同分辨率层级的地图数据块:In one embodiment of the present application, the device further includes an initial data block obtaining module, which is used to obtain initial map data blocks of different resolution levels in the following manner:
将所述场景地图划分为多个区域,获得用于描述每一划分后区域的地图数据块,作为第一分辨率层级的地图数据块;Divide the scene map into a plurality of regions, and obtain a map data block for describing each divided region as a map data block of the first resolution level;
针对每一第一分辨率层级的地图数据块,对该层级的地图数据块所描述的区域进行划 分,获得用于描述每一划分后区域的地图数据块,作为第二分辨率层级的地图数据块,其中,所述第二分辨率层级的地图数据块所描述区域的细节丰富程度,大于所述第一分辨率层级的地图数据块所描述区域的细节丰富程度;For each map data block of the first resolution level, the area described by the map data block of this level is divided, and the map data block used to describe each divided area is obtained as the map data of the second resolution level block, wherein the richness of detail of the area described by the map data block of the second resolution level is greater than the richness of detail of the area described by the map data block of the first resolution level;
将所述第一分辨率层级的地图数据块更新为所述第二分辨率层级的地图数据块,返回所述针对每一第一分辨率层级的地图数据块、对该层级的地图数据块所描述的区域进行划分的步骤,直至所得到的第二分辨率层级满足预设条件。update the map data block of the first resolution level to the map data block of the second resolution level, return the map data block for each first resolution level, the map data block of the level The step of dividing the described area until the obtained second resolution level satisfies the preset condition.
第四方面,本申请实施例提供了一种地图数据更新装置,所述装置包括:In a fourth aspect, the embodiment of the present application provides a device for updating map data, the device comprising:
更新信息获得模块,用于获得场景地图中待更新区域的更新信息;An update information obtaining module, configured to obtain update information of an area to be updated in the scene map;
第二数据块获得模块,用于从不同分辨率层级的地图数据块中,获得用于描述所述待更新区域的待更新数据块,其中,每一地图数据块所属的分辨率层级用于反映:该地图数据块所描述区域的细节丰富程度,随分辨率层级升高,一个地图数据块所描述区域的范围大小减小、细节丰富程度提高,一分辨率层级的一地图数据块描述的区域包括:下一分辨率层级的至少两个地图数据块描述的区域;The second data block obtaining module is configured to obtain a data block to be updated for describing the area to be updated from map data blocks of different resolution levels, wherein the resolution level to which each map data block belongs is used to reflect : The detail richness of the area described by the map data block. As the resolution level increases, the range of the area described by a map data block decreases and the detail richness increases. The area described by a map data block at a resolution level Including: the area described by at least two map data blocks of the next resolution level;
数据块更新模块,用于针对每一待更新数据块,按照该待更新数据块所属分辨率层级对应的细节丰富程度,调整所述更新信息的分辨率,利用调整后的更新信息更新该待更新数据块。The data block updating module is configured to adjust the resolution of the update information for each data block to be updated according to the richness of detail corresponding to the resolution level to which the data block to be updated belongs, and update the to-be-updated data block with the adjusted update information. data block.
本申请的一个实施例中,每一区域的地图数据块中包括:该区域的地形信息、该区域的场景配置的种类信息和分布信息;In one embodiment of the present application, the map data block of each region includes: terrain information of the region, type information and distribution information of the scene configuration of the region;
所述数据块更新模块,具体用于:The data block update module is specifically used for:
针对每一待更新数据块,按照该待更新数据块所属分辨率层级对应的细节丰富程度,调整所述更新信息的分辨率,利用调整后的更新信息,更新该待更新数据块中所述待更新区域的地形信息、所述待更新区域的场景配置的种类信息和分布信息。For each data block to be updated, adjust the resolution of the update information according to the richness of detail corresponding to the resolution level to which the data block to be updated belongs, and use the adjusted update information to update the data to be updated in the data block to be updated. Updating the terrain information of the area, and the type information and distribution information of the scene configuration of the area to be updated.
本申请的一个实施例中,所述更新信息包括环境更新信息,所述环境更新信息包括:气候更新信息、和/或天文现象更新信息。In an embodiment of the present application, the update information includes environment update information, and the environment update information includes: climate update information, and/or astronomical phenomenon update information.
第五方面,本申请实施例提供了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;In the fifth aspect, the embodiment of the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;
存储器,用于存放计算机程序;memory for storing computer programs;
处理器,用于执行存储器上所存放的程序时,实现第一方面或第二方面任一所述的方法步骤。The processor is configured to implement the method steps described in any one of the first aspect or the second aspect when executing the program stored in the memory.
第六方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现第一方面或第二方面任一所述的方法步骤。In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any one of the first aspect or the second aspect is implemented. The method steps described.
本申请实施例提供的地图数据加载方案中,可以获得场景地图中待进行数据加载的地图位置;确定场景地图中包含地图位置的待加载区域;从不同分辨率层级的地图数据块中,获得用于描述待加载区域的目标数据块,其中,每一地图数据块所属的分辨率层级用于反映:该地图数据块所描述区域的细节丰富程度,随分辨率层级升高,一个地图数据块所描述区域的范围大小减小、细节丰富程度提高,一分辨率层级的一地图数据块描述的区域包 括:下一分辨率层级的至少两个地图数据块描述的区域;加载目标数据块。这样在加载地图数据时,可以选择用于描述待加载区域的地图数据块进行加载,无需加载与待加载区域无关的地图数据块,从而可以减小所加载的地图数据的数据量。由此可见,应用本申请实施例提供的方案,可以提高地图数据加载速度。In the map data loading solution provided by the embodiment of the present application, the map position to be loaded in the scene map can be obtained; the area to be loaded including the map position in the scene map can be determined; In describing the target data block of the area to be loaded, the resolution level to which each map data block belongs is used to reflect: the detail richness of the area described by the map data block, as the resolution level increases, the size of a map data block The range size of the description area is reduced, and the richness of detail is increased. The area described by a map data block of a resolution level includes: the area described by at least two map data blocks of the next resolution level; and the target data block is loaded. In this way, when the map data is loaded, the map data block used to describe the area to be loaded can be selected for loading, and there is no need to load the map data block irrelevant to the area to be loaded, thereby reducing the data volume of the loaded map data. It can be seen that, by applying the solution provided by the embodiment of the present application, the loading speed of map data can be improved.
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的实施例。In order to more clearly illustrate the technical solutions of the embodiments of the present application and the prior art, the following briefly introduces the accompanying drawings required in the embodiments and the prior art. Obviously, the accompanying drawings in the following description are only the present invention. For some embodiments of the application, those skilled in the art can also obtain other embodiments according to these drawings without creative effort.
图1为本申请实施例提供的一种地图数据加载方法的流程示意图;FIG. 1 is a schematic flow diagram of a method for loading map data provided in an embodiment of the present application;
图2为本申请实施例提供的一种地图数据块的示意图;FIG. 2 is a schematic diagram of a map data block provided by an embodiment of the present application;
图3为本申请实施例提供的另一种地图数据块的示意图;FIG. 3 is a schematic diagram of another map data block provided by the embodiment of the present application;
图4为本申请实施例提供的另一种地图数据加载方法的流程示意图;FIG. 4 is a schematic flow chart of another method for loading map data provided by the embodiment of the present application;
图5为本申请实施例提供的一种地图数据块获得方法的流程示意图;FIG. 5 is a schematic flowchart of a method for obtaining a map data block provided in an embodiment of the present application;
图6为本申请实施例提供的一种地图数据更新方法的流程示意图;FIG. 6 is a schematic flowchart of a method for updating map data provided by an embodiment of the present application;
图7为本申请实施例提供的一种地图数据加载装置的结构示意图;FIG. 7 is a schematic structural diagram of a map data loading device provided in an embodiment of the present application;
图8为本申请实施例提供的一种地图数据更新装置的结构示意图;FIG. 8 is a schematic structural diagram of a map data updating device provided in an embodiment of the present application;
图9为本申请实施例提供的一种电子设备的结构示意图。FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员基于本申请所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution, and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and examples. Apparently, the described embodiments are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art based on this application belong to the scope of protection of this application.
为提高地图数据加载速度,本申请实施例提供了一种地图数据加载、更新方法、装置、设备及存储介质,下面分别进行介绍。In order to improve the map data loading speed, the embodiments of the present application provide a map data loading and updating method, device, device and storage medium, which will be introduced respectively below.
参见图1,图1为本申请实施例提供的一种地图数据加载方法的流程示意图,该方法可以应用于手机、电子计算机、平板电脑等电子设备,上述地图数据加载方法可以包括如下步骤S101-S104。Referring to Fig. 1, Fig. 1 is a schematic flow diagram of a method for loading map data provided by an embodiment of the present application. This method can be applied to electronic devices such as mobile phones, electronic computers, and tablet computers. The above-mentioned method for loading map data may include the following steps S101- S104.
S101,获得场景地图中待进行数据加载的地图位置。S101. Obtain a map position in the scene map where data loading is to be performed.
其中,上述场景地图可以是世界地图、游戏地图、仿真地图等。Wherein, the aforementioned scene map may be a world map, a game map, a simulation map, and the like.
上述地图位置为:场景地图中待加载地图数据的位置。例如,游戏地图中游戏角色所处的位置。The above map location is: the location of the map data to be loaded in the scene map. For example, the location of the game character on the game map.
本申请的一个实施例中,在获得地图位置时,可以获得用户通过鼠标、触摸屏等外部输入设备点击选中的位置,作为待进行数据加载的地图位置,或者可以获得用户通过外部输入设备输入的位置信息,基于上述位置信息确定待进行数据加载的地图位置,上述位置信息可以是位置坐标、位置标识等。In one embodiment of the present application, when obtaining the map position, the position selected by the user through an external input device such as a mouse or a touch screen can be obtained as the map position to be loaded with data, or the position input by the user through an external input device can be obtained Information, based on the above location information to determine the map location to be loaded with data, the above location information may be location coordinates, location identification, etc.
本申请的一个实施例中,在上述场景地图为游戏地图的情况下,可以获得当前游戏角 色所在的位置,作为待进行数据加载的地图位置。In one embodiment of the present application, in the case where the above-mentioned scene map is a game map, the position where the current game character is located can be obtained as the map position to be loaded with data.
S102,确定场景地图中包含地图位置的待加载区域。S102. Determine a region to be loaded including a map location in the scene map.
具体的,可以以上述地图位置为标志位置,确定场景地图中预设范围的区域,作为待加载区域。Specifically, the above-mentioned map position may be used as a mark position, and an area within a preset range in the scene map may be determined as the area to be loaded.
其中,上述标志位置可以是中心位置。例如,可以确定场景地图中以地图位置为中心位置、预设范围的区域,作为待加载区域。除此之外,上述标志位置还可以是左上角位置、右下角位置等预设的位置。Wherein, the above-mentioned mark position may be the center position. For example, an area within a preset range centered on the map position in the scene map may be determined as the area to be loaded. In addition, the position of the above-mentioned logo can also be a preset position such as the upper left corner position, the lower right corner position, and the like.
上述预设范围可以是边长为第一距离的矩形范围、半径为第二距离的圆形范围等。上述第一距离、第二距离的取值可以是500米、1公里、10公里等。The aforementioned preset range may be a rectangular range whose side length is the first distance, a circular range whose radius is the second distance, and the like. Values of the above-mentioned first distance and second distance may be 500 meters, 1 kilometer, 10 kilometers and so on.
例如,假设上述地图位置为当前游戏角色所在的位置,标志位置为中心位置,预设范围为:半径为5公里的圆形范围,则上述待加载区域可以是:场景地图中,以当前游戏角色所在的位置为中心位置、周围半径5公里内的区域。For example, assuming that the above-mentioned map position is where the current game character is located, the mark position is the center position, and the preset range is: a circular range with a radius of 5 kilometers, then the above-mentioned area to be loaded can be: in the scene map, the current game character The location is the central location and the area within a radius of 5 kilometers.
S103,从不同分辨率层级的地图数据块中,获得用于描述待加载区域的目标数据块。S103. Obtain a target data block used to describe the area to be loaded from map data blocks of different resolution levels.
其中,上述地图数据块可以用于描述场景地图中区域的地形信息,如该区域的高度、地质等信息。Wherein, the above-mentioned map data block may be used to describe the terrain information of the area in the scene map, such as the height, geology and other information of the area.
每一地图数据块所属的分辨率层级用于反映:该地图数据块所描述区域的细节丰富程度,随分辨率层级升高,一个地图数据块所描述区域的范围大小减小、细节丰富程度提高,一分辨率层级的一地图数据块描述的区域包括:下一分辨率层级的至少两个地图数据块描述的区域。The resolution level of each map data block is used to reflect: the detail richness of the area described by the map data block. As the resolution level increases, the range of the area described by a map data block decreases and the detail richness increases The area described by a map data block at a resolution level includes: the area described by at least two map data blocks at a next resolution level.
所属分辨率层级越高的地图数据块,所描述的区域的范围大小越小,并且所描述区域的细节丰富程度越高;所属分辨率层级越低的地图数据块,所描述的区域的范围大小越大,并且所描述区域的细节丰富程度越低。The map data block with a higher resolution level, the smaller the range of the described area, and the higher the detail richness of the described area; the lower the resolution level of the map data block, the smaller the range of the described area The larger and the less detailed the area described.
在地图数据块所描述的区域的细节丰富程度越高的情况下,可以理解为该地图数据块的分辨率越高。In the case that the region described by the map data block has a higher level of detail, it can be understood that the resolution of the map data block is higher.
最低的分辨率层级中包括至少一个地图数据块,每一分辨率层级的地图数据块所描述的区域,可以包括高一级的分辨率层级中至少两个地图数据块所描述的区域。不同地图数据块所描述的区域不同。The lowest resolution level includes at least one map data block, and the area described by the map data block of each resolution level may include the area described by at least two map data blocks in a higher resolution level. Different map data blocks describe different areas.
参见图2,图2为本申请实施例提供的一种地图数据块的示意图。如图2所示,第一分辨率层级的地图数据块包括:地图数据块1,第二分辨率层级的地图数据块包括:地图数据块2、3……4,第三分辨率层级的地图数据块包括:地图数据块5、6……7。其中地图数据块1的分辨率最小,所描述的区域的细节丰富程度最低、范围大小最大,且地图数据块1所描述的区域包括地图数据块2、3……4所描述的区域,而地图数据块2所描述的区域包括地图数据块5、6……7所描述的区域,以此类推。Referring to FIG. 2 , FIG. 2 is a schematic diagram of a map data block provided by an embodiment of the present application. As shown in Figure 2, the map data blocks of the first resolution level include: map data block 1, the map data blocks of the second resolution level include: map data blocks 2, 3...4, and the map data blocks of the third resolution level The data blocks include: map data blocks 5, 6...7. Among them, the resolution of map data block 1 is the smallest, the detail richness of the described area is the lowest, and the range is the largest, and the area described by map data block 1 includes the areas described by map data blocks 2, 3...4, and the map The area described by data block 2 includes the areas described by map data blocks 5, 6...7, and so on.
具体的,不同地图数据块所描述的区域不完全相同,可以从不同分辨率层级的地图数据块中,查找所描述区域与上述待加载区域存在交集的地图数据块,作为目标数据块,即目标数据块所描述的区域,可以包含部分或全部的待加载区域。Specifically, the areas described by different map data blocks are not exactly the same, and the map data blocks that have an intersection between the described area and the above-mentioned area to be loaded can be found from the map data blocks of different resolution levels as the target data block, that is, the target The area described by the data block can contain part or all of the area to be loaded.
S104,加载目标数据块。S104, load the target data block.
具体的,目标数据块可以描述待加载区域的地形信息,加载上述目标数据块,可以实现加载待加载区域的地图。Specifically, the target data block may describe terrain information of the area to be loaded, and loading the above target data block may realize loading of a map of the area to be loaded.
上述实施例提供的地图数据加载方案中,可以获得场景地图中待进行数据加载的地图位置;确定场景地图中包含地图位置的待加载区域;从不同分辨率层级的地图数据块中,获得用于描述待加载区域的目标数据块,其中,每一地图数据块所属的分辨率层级用于反映:该地图数据块所描述区域的细节丰富程度,随分辨率层级升高,一个地图数据块所描述区域的范围大小减小、细节丰富程度提高,一分辨率层级的一地图数据块描述的区域包括:下一分辨率层级的至少两个地图数据块描述的区域;加载目标数据块。这样在加载地图数据时,可以选择用于描述待加载区域的地图数据块进行加载,无需加载与待加载区域无关的地图数据块,从而可以减小所加载的地图数据的数据量。由此可见,应用上述实施例提供的方案,可以提高地图数据加载速度。In the map data loading solution provided by the above embodiments, the map position to be loaded in the scene map can be obtained; the area to be loaded including the map position in the scene map can be determined; Describe the target data block of the area to be loaded, where the resolution level to which each map data block belongs is used to reflect: the detail richness of the area described by the map data block, as the resolution level increases, the resolution level described by a map data block The range size of the area is reduced and the richness of detail is increased. The area described by a map data block of a resolution level includes: the area described by at least two map data blocks of the next resolution level; and the target data block is loaded. In this way, when the map data is loaded, the map data blocks used to describe the area to be loaded can be selected for loading, and there is no need to load map data blocks unrelated to the area to be loaded, thereby reducing the data volume of the loaded map data. It can be seen that, by applying the solutions provided by the above embodiments, the loading speed of map data can be improved.
本申请的一个实施例中,在上述步骤S103获得目标数据块时,可以获得期望待加载的地图数据所描述的场景的场景时间;从不同分辨率层级内对不同时间下的地图区域进行描述的地图数据块中,获得用于描述场景时间下待加载区域的目标数据块。In one embodiment of the present application, when the target data block is obtained in the above step S103, the scene time of the scene described by the map data to be loaded can be obtained; In the map data block, obtain the target data block used to describe the area to be loaded at the scene time.
其中,地图区域为:场景地图中的区域。Wherein, the map area is: the area in the scene map.
具体的,针对场景地图中的每一地图区域,同一分辨率层级下可以存在用于描述该地图区域的多个地图数据块,不同的地图数据块用于描述不同时间范围下的该区域的场景。因此在获得目标数据块时,除了获得待加载区域外,还可以获得期望所加载的地图数据所能够描述的场景的场景时间,然后查找用于描述上述场景时间下、待加载区域的地图数据块,作为目标数据块。Specifically, for each map area in the scene map, there may be multiple map data blocks used to describe the map area at the same resolution level, and different map data blocks are used to describe the scene of the area under different time ranges . Therefore, when obtaining the target data block, in addition to obtaining the area to be loaded, you can also obtain the scene time of the scene that the expected loaded map data can describe, and then search for the map data block used to describe the area to be loaded under the above scene time , as the target data block.
参见图3,图3为本申请实施例提供的另一种地图数据块的示意图。如图3所示,每一地图数据块对应于多个数据块,分别用于对不同时间下、相同地图区域进行描述,例如,假设上述场景地图为世界地图,地图数据块1用于对整个世界区域进行描述,地图数据块1对应于3个地图数据块,可以分别用于描述1000年前、500年~1000年前、500年前~当今的世界区域。Referring to FIG. 3 , FIG. 3 is a schematic diagram of another map data block provided by an embodiment of the present application. As shown in Figure 3, each map data block corresponds to multiple data blocks, which are used to describe the same map area at different times. For example, assuming the above scene map is a world map, map data block 1 is used to describe the entire The world area is described. Map data block 1 corresponds to three map data blocks, which can be used to describe the world area from 1000 years ago, 500 years to 1000 years ago, and 500 years ago to today.
上述方案中,在不同时间下地图区域发生变化的情况下,可以通过时间和区域确定目标数据块,所获得的目标数据块能够描述场景时间下的待加载区域,从而提高所加载的地图数据的准确度。In the above solution, when the map area changes at different times, the target data block can be determined by time and area, and the obtained target data block can describe the area to be loaded at the scene time, thereby improving the accuracy of the loaded map data. Accuracy.
本申请的一个实施例中,在获得场景时间时,可以获得用户通过外部输入设备输入的时间,作为场景时间。In an embodiment of the present application, when obtaining the scene time, the time input by the user through an external input device may be obtained as the scene time.
除此之外,也可以获得用户通过输入设备从预设的时间选择项中选中的时间,作为场景时间。其中,上述时间选择项为:用于向用户展示的、可供选择的时间项。In addition, the time selected by the user from the preset time selection items through the input device may also be obtained as the scene time. Wherein, the above-mentioned time selection item is: an optional time item for displaying to the user.
本申请的一个实施例中,还可以获得场景时间下待加载区域的环境数据。In an embodiment of the present application, the environment data of the area to be loaded at the scene time can also be obtained.
其中,环境数据包括:气候数据、和/或天文数据。Wherein, the environmental data includes: climate data, and/or astronomical data.
上述气候数据可以包括季节数据、天气数据、光照数据等。上述天文数据为:关于天文现象的数据,如关于流星雨的数据、关于哈雷彗星的数据等。The climate data mentioned above may include seasonal data, weather data, illumination data, and the like. The above-mentioned astronomical data are: data about astronomical phenomena, such as data about meteor showers, data about Halley's Comet, and the like.
这样在加载目标数据块时,可以加载目标数据块和环境数据。In this way, when loading the target data block, the target data block and environment data can be loaded.
具体的,在确定场景时间后,可以获得该场景时间下待加载区域的环境数据,该环境数据可以描述场景时间下待加载区域的环境,然后加载上述目标地图数据块和环境数据,从而所加载的数据能够描述场景时间下待加载区域的地形和环境,提高所加载的地图数据的准确度。Specifically, after the scene time is determined, the environment data of the area to be loaded at the scene time can be obtained, and the environment data can describe the environment of the area to be loaded at the scene time, and then the above target map data block and environment data are loaded, so that the loaded The data can describe the terrain and environment of the area to be loaded at the scene time, improving the accuracy of the loaded map data.
本申请的一个实施例中,可以在第一图层加载目标数据块,并在第二图层加载环境数据;叠加第一图层和第二图层。In an embodiment of the present application, the target data block may be loaded on the first layer, and the environment data may be loaded on the second layer; and the first layer and the second layer may be superimposed.
具体的,可以在第一图层中加载目标数据块,该第一图层所加载的数据能够描述场景时间下待加载区域的地形;并在第二图层中加载环境数据,该第二图层所加载的数据能够描述场景时间下待加载区域的环境,然后叠加上述第一图层和第二图层,从而能够将场景时间下待加载区域的地形和环境加载在一起,提高所加载的数据的显示效果。Specifically, the target data block can be loaded in the first layer, and the data loaded in the first layer can describe the terrain of the area to be loaded in the scene time; and the environment data can be loaded in the second layer, and the second map The data loaded in the layer can describe the environment of the area to be loaded at the scene time, and then superimpose the above-mentioned first layer and the second layer, so that the terrain and environment of the area to be loaded at the scene time can be loaded together, and the loaded area can be improved. The display effect of the data.
本申请的一个实施例中,用于描述每一区域的地图数据块中可以包括:该区域的地形信息、该区域内场景配置的种类信息和分布信息。In an embodiment of the present application, the map data block used to describe each region may include: terrain information of the region, type information and distribution information of scene configurations in the region.
其中,上述场景配置为:该区域的场景中的配置。场景配置的种类信息可以表征场景配置的类别,分布信息可以反映场景配置在场景中的分布。Wherein, the above scene configuration is: the configuration in the scene of this area. The type information of the scene configuration can represent the category of the scene configuration, and the distribution information can reflect the distribution of the scene configuration in the scene.
本申请的一个实施例中,上述场景配置可以包括以下配置中的一种或多种:植被、山脉、河流、动物、沙漠、戈壁。In an embodiment of the present application, the above scene configuration may include one or more of the following configurations: vegetation, mountains, rivers, animals, deserts, and Gobi.
这样在加载目标数据块时,可以根据目标数据块中的地形信息,加载待加载区域的地形;根据目标数据块中场景配置的种类信息,获得待加载的场景配置的配置模型;按照目标数据块中场景配置的分布信息,在所加载的地形上叠加配置模型。In this way, when loading the target data block, the terrain of the area to be loaded can be loaded according to the terrain information in the target data block; according to the type information of the scene configuration in the target data block, the configuration model of the scene configuration to be loaded can be obtained; according to the target data block In the distribution information of the scene configuration, the configuration model is superimposed on the loaded terrain.
具体的,可以加载待加载区域的地形,然后获得与场景配置的种类信息一致的配置模型。然后按照上述分布信息,将所获得的配置模型加载在地形上,使得加载后的场景中包含上述场景配置。Specifically, the terrain of the area to be loaded may be loaded, and then a configuration model consistent with the type information of the scene configuration may be obtained. Then, according to the above-mentioned distribution information, the obtained configuration model is loaded on the terrain, so that the loaded scene includes the above-mentioned scene configuration.
例如,假设上述场景配置的种类信息表征该场景配置为植被,分布信息表征上述植被分布在场景四周的边缘区域。则可以根据地形信息加载地形,获得植被对应的植被模型,然后将上述植被模型加载在地形四周的边缘区域,使得加载后的场景更加丰富。For example, it is assumed that the type information of the above-mentioned scene configuration indicates that the scene is configured as vegetation, and the distribution information indicates that the above-mentioned vegetation is distributed around the edge area of the scene. Then the terrain can be loaded according to the terrain information to obtain the vegetation model corresponding to the vegetation, and then the above vegetation model can be loaded in the edge area around the terrain, making the loaded scene more abundant.
上述方案中,一方面,所加载的数据包括地形数据和场景配置相关的数据,加载的数据更加丰富,可以提高加载后得到的场景的丰富程度。另一方面,地图数据块中仅包含场景配置的种类信息和分布信息,无需包含具体的场景配置模型,可以减小地图数据块的数据量,提高地图数据加载速度。In the above solution, on the one hand, the loaded data includes terrain data and data related to scene configuration, and the loaded data is richer, which can increase the richness of the scene obtained after loading. On the other hand, the map data block only contains the type information and distribution information of the scene configuration, and does not need to contain a specific scene configuration model, which can reduce the data volume of the map data block and improve the map data loading speed.
本申请的一个实施例中,在获得配置模型时,可以从预先建立的模型库中,查找与目标数据块中场景配置的种类信息相匹配的模型,作为配置模型。In an embodiment of the present application, when obtaining the configuration model, a model that matches the type information of the scene configuration in the target data block may be searched from a pre-established model library as the configuration model.
参见图4,图4为本申请实施例提供的另一种地图数据加载方法的流程示意图,该方法包括如下步骤S401-S406。Referring to FIG. 4 , FIG. 4 is a schematic flow chart of another method for loading map data provided by an embodiment of the present application. The method includes the following steps S401 - S406 .
S401,获得世界地图中待进行数据加载的地图位置。S401. Obtain a map position in the world map where data loading is to be performed.
具体的,可以从世界地图中,确定待加载的地图数据的地图位置。Specifically, the map position of the map data to be loaded may be determined from the world map.
S402,确定世界地图中包含地图位置的待加载区域。S402. Determine a region to be loaded in the world map that includes a map location.
具体的,可以以上述地图位置为标志位置,确定场景地图中预设范围的区域,作为待 加载区域。Specifically, the above-mentioned map position can be used as the mark position to determine the area of the preset range in the scene map as the area to be loaded.
S403,获得期望待加载的地图数据所描述的场景的场景时间。S403. Obtain the scene time of the scene described by the map data expected to be loaded.
S404,从不同分辨率层级内对不同时间下的地图区域进行描述的地图数据块中,获得用于描述场景时间下待加载区域的目标数据块。S404. Obtain a target data block used to describe the area to be loaded at the scene time from the map data blocks describing map areas at different times in different resolution levels.
其中,用于描述每一区域的地图数据块中可以包括:该区域的地形信息、该区域内场景配置的种类信息和分布信息。Wherein, the map data block used to describe each region may include: terrain information of the region, type information and distribution information of the scene configuration in the region.
S405,获得场景时间下待加载区域的环境数据。S405. Obtain the environment data of the area to be loaded at the scene time.
其中,上述环境数据包括气候数据和天文数据。Wherein, the above environmental data includes climate data and astronomical data.
S406,加载所获得的目标数据块和环境数据。S406. Load the obtained target data block and environment data.
具体的,可以根据目标数据块中的地形信息,在第一图层中加载待加载区域的地形;根据目标数据块中场景配置的种类信息,获得待加载的场景配置的配置模型;按照目标数据块中场景配置的分布信息,在所加载的地形上叠加配置模型。并在第二图层中加载环境数据,然后叠加上述第一图层和第二图层,使得叠加后的图层能够反映场景时间下待加载区域的地形、天文现象、气候、配置等信息。Specifically, according to the terrain information in the target data block, the terrain of the area to be loaded can be loaded in the first layer; according to the type information of the scene configuration in the target data block, the configuration model of the scene configuration to be loaded can be obtained; according to the target data The distribution information of the scene configuration in the block, and the configuration model is superimposed on the loaded terrain. And load the environmental data in the second layer, and then superimpose the first layer and the second layer above, so that the superimposed layer can reflect the terrain, astronomical phenomenon, climate, configuration and other information of the area to be loaded at the scene time.
参见图5,图5为本申请实施例提供的一种地图数据块获得方法的流程示意图,可以通过以下方式S501-S503得到初始的、不同分辨率层级的地图数据块:Referring to FIG. 5, FIG. 5 is a schematic flowchart of a method for obtaining a map data block provided in an embodiment of the present application. Initial map data blocks of different resolution levels can be obtained through the following methods S501-S503:
S501,将场景地图划分为多个区域,获得用于描述每一划分后区域的地图数据块,作为第一分辨率层级的地图数据块。S501. Divide the scene map into multiple regions, and obtain a map data block used to describe each divided region as a map data block of the first resolution level.
具体的,可以将场景地图划分为至少两个区域,针对划分后的每一区域,可以获得用于描述该区域的数据块,作为第一分辨率层级的地图数据块,该第一分辨率层级的地图数据块所描述的区域的细节丰富程度较低。Specifically, the scene map can be divided into at least two areas, and for each divided area, a data block used to describe the area can be obtained as a map data block of the first resolution level, and the first resolution level The area described by the map data blocks is less detailed.
本申请的一个实施例中,在划分区域时,可以将场景地图平均划分为预设数量个区域,上述预设数量可以是2个、4个、8个等。也可以按照预设大小,将场景地图划分为多个区域等,本申请实施例并不对此进行限定。In an embodiment of the present application, when dividing regions, the scene map may be equally divided into a preset number of regions, and the preset number may be 2, 4, 8 and so on. The scene map may also be divided into multiple regions according to a preset size, which is not limited in this embodiment of the present application.
S502,针对每一第一分辨率层级的地图数据块,对该层级的地图数据块所描述的区域进行划分,获得用于描述每一划分后区域的地图数据块,作为第二分辨率层级的地图数据块。S502. For each map data block of the first resolution level, divide the area described by the map data block of the level, and obtain the map data block used to describe each divided area as the second resolution level Map data block.
其中,第二分辨率层级的地图数据块所描述区域的细节丰富程度,大于第一分辨率层级的地图数据块所描述区域的细节丰富程度。Wherein, the richness of detail of the area described by the map data block of the second resolution level is greater than the richness of detail of the area described by the map data block of the first resolution level.
具体的,针对每一属于第一分辨率层级的地图数据块,可以将该地图数据块所描述的区域再次划分为至少两个区域,然后针对每一划分后的区域,获得用于描述该区域的数据块,作为第二分辨率层级的地图数据块。Specifically, for each map data block belonging to the first resolution level, the area described by the map data block can be divided into at least two areas again, and then for each divided area, the information used to describe the area is obtained. The data block of is used as the map data block of the second resolution level.
S503,将第一分辨率层级的地图数据块更新为第二分辨率层级的地图数据块,返回S502,直至所得到的第二分辨率层级满足预设条件。S503, update the map data block of the first resolution level to the map data block of the second resolution level, return to S502, until the obtained second resolution level satisfies the preset condition.
具体的,可以将第一分辨率层级的地图数据块更新为第二分辨率层级的地图数据块,返回上述步骤S502,重复对第二分辨率层级的地图数据块进行划分,获得每次划分后所得区域对应的地图数据块,直至所得到的第二分辨率层级满足预设条件。Specifically, the map data blocks of the first resolution level can be updated to the map data blocks of the second resolution level, return to the above step S502, and divide the map data blocks of the second resolution level repeatedly, and obtain The map data block corresponding to the obtained area is obtained until the obtained second resolution level satisfies the preset condition.
其中,上述预设条件可以是:所得到的分辨率层级的层级数量达到预设的层级数量阈值,上述层级数量阈值可以是5、7、10等。Wherein, the aforementioned preset condition may be: the number of obtained resolution levels reaches a preset threshold of the number of levels, and the threshold of the number of levels may be 5, 7, 10, and so on.
上述预设条件也可以是:所得到的地图数据块的分辨率达到预设的分辨率要求,可以理解为,所得到的地图数据块所描述区域的细节丰富程度达到预设的程度要求。The above preset condition may also be that: the resolution of the obtained map data block meets the preset resolution requirement, which can be understood as that the richness of detail of the region described by the obtained map data block meets the preset requirement.
本申请的一个实施例中,不同地图数据块的数据量相等。In an embodiment of the present application, the data volumes of different map data blocks are equal.
具体的,同一分辨率层级的地图数据块的数据量相等。同一分辨率层级的地图数据块所描述的区域的细节丰富程度相同,并且所描述区域的大小相等;Specifically, the data volumes of the map data blocks of the same resolution level are equal. The areas described by the map data blocks of the same resolution level have the same degree of detail and the same size of the described areas;
并且,不同分辨率层级的地图数据块的数据量相等。可以理解为,低分辨率层级的地图数据块所描述的区域的范围越大、细节丰富程度越低;高分辨率层级的地图数据块所描述的区域的范围越小、细节丰富程度越高。Moreover, the data volumes of the map data blocks of different resolution levels are equal. It can be understood that the larger the area described by the low-resolution map data block, the lower the detail richness; the smaller the area described by the high-resolution map data block, the higher the detail richness.
这样保证不同地图数据块的数据量相等,可以提高存储地图数据块的便捷性。In this way, the data volumes of different map data blocks are guaranteed to be equal, and the convenience of storing map data blocks can be improved.
本申请的一个实施例中,每一地图数据块为:远景烘焙后的数据块。In an embodiment of the present application, each map data block is: a data block after the vision is baked.
具体的,不同分辨率层级的地图数据块均为经过远景烘焙处理后的数据块,这样在加载上述数据块时,无需再次进行烘焙,从而提高数据加载效率。Specifically, the map data blocks of different resolution levels are all data blocks after the vision baking process, so that when the above data blocks are loaded, there is no need to bake again, thereby improving the data loading efficiency.
本申请的一个实施例中,在加载目标数据块时,可以利用GPU(Graphics Processing Unit,图形处理器)网格细分技术,对目标数据块进行加载。这样可以对目标数据块中的地图数据进行网格化细分,提高所加载数据的精度。尤其是在对地形信息和材质信息进行加载时,可以使得加载后的地图数据的精度达到0.1厘米/像素,提高显示效果。In one embodiment of the present application, when loading the target data block, the GPU (Graphics Processing Unit, graphics processor) grid subdivision technology may be used to load the target data block. In this way, the map data in the target data block can be meshed and subdivided to improve the accuracy of the loaded data. Especially when loading terrain information and material information, the accuracy of the loaded map data can reach 0.1 cm/pixel, which improves the display effect.
上述实施例提供的地图数据加载方案中,可以获得场景地图中待进行数据加载的地图位置;确定场景地图中包含地图位置的待加载区域;从不同分辨率层级的地图数据块中,获得用于描述待加载区域的目标数据块,其中,每一地图数据块所属的分辨率层级用于反映:该地图数据块所描述区域的细节丰富程度,随分辨率层级升高,一个地图数据块所描述区域的范围大小减小、细节丰富程度提高,一分辨率层级的一地图数据块描述的区域包括:下一分辨率层级的至少两个地图数据块描述的区域;加载目标数据块。这样在加载地图数据时,可以选择用于描述待加载区域的地图数据块进行加载,无需加载与待加载区域无关的地图数据块,从而可以减小所加载的地图数据的数据量。由此可见,应用上述实施例提供的方案,可以提高地图数据加载速度。In the map data loading solution provided by the above embodiments, the map position to be loaded in the scene map can be obtained; the area to be loaded including the map position in the scene map can be determined; Describe the target data block of the area to be loaded, where the resolution level to which each map data block belongs is used to reflect: the detail richness of the area described by the map data block, as the resolution level increases, the resolution level described by a map data block The range size of the area is reduced and the richness of detail is increased. The area described by a map data block of a resolution level includes: the area described by at least two map data blocks of the next resolution level; and the target data block is loaded. In this way, when the map data is loaded, the map data block used to describe the area to be loaded can be selected for loading, and there is no need to load the map data block irrelevant to the area to be loaded, thereby reducing the data volume of the loaded map data. It can be seen that, by applying the solutions provided by the above embodiments, the loading speed of map data can be improved.
与上述地图数据记载方案相对应地,本申请实施例还提供了一种地图数据更新方法,该方法可以应用于手机、电子计算机、平板电脑等电子设备,下面对上述方法进行详细介绍。Corresponding to the above map data recording scheme, the embodiment of the present application also provides a map data update method, which can be applied to electronic devices such as mobile phones, electronic computers, and tablet computers. The above method will be described in detail below.
参见图6,图6为本申请实施例提供的一种地图数据更新方法的流程示意图,该方法可以包括如下步骤S601-S603。Referring to FIG. 6 , FIG. 6 is a schematic flowchart of a method for updating map data provided by an embodiment of the present application, and the method may include the following steps S601-S603.
S601,获得场景地图中待更新区域的更新信息。S601. Obtain update information of an area to be updated in the scene map.
其中,上述待更新区域为:场景地图中需要更新的区域,更新信息可以包括待更新区域的地形更新信息。Wherein, the aforementioned area to be updated is: an area to be updated in the scene map, and the update information may include terrain update information of the area to be updated.
本申请的一个实施例中,可以接收对当前加载的场景地图中的区域的编辑操作,将所编辑的区域作为待更新区域,并将编辑后该区域的地形信息作为更新信息。In one embodiment of the present application, an editing operation on an area in the currently loaded scene map may be received, the edited area is used as the area to be updated, and the terrain information of the edited area is used as the update information.
除此之外,在上述场景地图为世界地图的情况下,也可以检测实际的世界地图中地形发生变动的区域,作为场景地图中的待更新区域,然后获得实际的世界地图中地形变动信息,作为待更新区域的更新信息。In addition, when the above scene map is a world map, it is also possible to detect the area where the terrain changes in the actual world map as the area to be updated in the scene map, and then obtain the terrain change information in the actual world map, As the update information of the area to be updated.
S602,从不同分辨率层级的地图数据块中,获得用于描述待更新区域的待更新数据块。S602. Obtain a data block to be updated for describing an area to be updated from map data blocks of different resolution levels.
其中,每一地图数据块所属的分辨率层级用于反映:该地图数据块所描述区域的细节丰富程度,随分辨率层级升高,一个地图数据块所描述区域的范围大小减小、细节丰富程度提高,一分辨率层级的一地图数据块描述的区域包括:下一分辨率层级的至少两个地图数据块描述的区域。Among them, the resolution level to which each map data block belongs is used to reflect: the detail richness of the area described by the map data block. As the resolution level increases, the range of the area described by a map data block decreases and the details are rich. Increasingly, the area described by a map data block of a resolution level includes: the area described by at least two map data blocks of the next resolution level.
具体的,可以从不同分辨率层级的地图数据块中,查找所描述区域与上述待更新区域存在交集的地图数据块,作为待更新数据块。Specifically, a map data block that has an intersection between the described area and the above-mentioned area to be updated may be searched from the map data blocks of different resolution levels as the data block to be updated.
S603,针对每一待更新数据块,按照该待更新数据块所属分辨率层级对应的细节丰富程度,调整更新信息的分辨率,利用调整后的更新信息更新该待更新数据块。S603. For each data block to be updated, adjust the resolution of the update information according to the richness of detail corresponding to the resolution level to which the data block to be updated belongs, and update the data block to be updated with the adjusted update information.
本申请的一个实施例中,可以将当前加载上述待更新区域所基于的地图数据块,作为当前数据块,待更新区域的更新信息的细节丰富程度,与该当前数据块所在的当前分辨率层级对应的细节丰富程度相同。In an embodiment of the present application, the map data block on which the above-mentioned area to be updated is currently loaded can be used as the current data block, and the detail richness of the update information of the area to be updated is related to the current resolution level of the current data block. The corresponding richness of detail is the same.
在待更新数据块的分辨率层级高于当前分辨率层级的情况下,可以对更新信息进行细节填充,实现对更新信息分辨率的上调,使得细节填充后的更新信息的细节丰富程度,与待更新数据块的分辨率层级对应的细节丰富程度一致,然后利用细节填充后的更新信息对该待更新数据库进行更新;When the resolution level of the data block to be updated is higher than the current resolution level, the update information can be filled with details, and the resolution of the update information can be adjusted up, so that the details of the updated information after the detail filling are as rich as the details to be updated. The detail richness corresponding to the resolution level of the update data block is the same, and then update the database to be updated by using the update information after detail filling;
在待更新数据块的分辨率层级低于当前分辨率层级的情况下,可以对更新信息进行抽样,实现对更新信息分辨率的下调,使得抽样后的更新信息的细节丰富程度,与待更新数据块的分辨率层级对应的细节丰富程度一致,然后利用抽样后的更新信息对该待更新数据库进行更新;When the resolution level of the data block to be updated is lower than the current resolution level, the update information can be sampled to lower the resolution of the update information, so that the detail richness of the updated information after sampling is the same as that of the data to be updated. The richness of detail corresponding to the resolution level of the block is consistent, and then the database to be updated is updated by using the updated information after sampling;
在待更新数据块的分辨率层级为当前分辨率层级的情况下,可以直接利用更新信息对该待更新数据库进行更新。In the case that the resolution level of the data block to be updated is the current resolution level, the database to be updated may be updated directly by using the update information.
本申请的一个实施例中,在对更新信息进行细节填充时,可以对更新信息进行上采样、差值等处理;In an embodiment of the present application, when filling the update information with details, the update information can be processed by upsampling, difference, etc.;
在对更新信息进行抽样时,可以对更新信息进行下采样等处理。When sampling the update information, processing such as down-sampling may be performed on the update information.
本申请的一个实施例中,每一区域的地图数据块中可以包括:该区域的地形信息、该区域的场景配置的种类信息和分布信息。In an embodiment of the present application, the map data block of each region may include: terrain information of the region, type information and distribution information of the scene configuration of the region.
这样在更新数据块时,可以利用调整后的更新信息,更新该待更新数据块中待更新区域的地形信息、待更新区域的场景配置的种类信息和分布信息。In this way, when the data block is updated, the adjusted update information can be used to update the terrain information of the area to be updated, the type information and distribution information of the scene configuration of the area to be updated in the data block to be updated.
具体的,一种情况下,上述更新信息中可以包括待更新区域的地形更新信息、待更新区域的场景配置的种类信息和分布信息,这样在更新待更新数据块时,可以直接对更新信息进行分辨率调整,然后利用调整后更新信息中的地形更新信息、种类信息和分布信息,直接更新待更新数据块中待更新区域的地形信息、待更新区域的场景配置的种类信息和分布信息。Specifically, in one case, the above update information may include terrain update information of the area to be updated, type information and distribution information of the scene configuration of the area to be updated, so that when updating the data block to be updated, the update information can be directly Resolution adjustment, and then use the terrain update information, category information and distribution information in the updated update information to directly update the terrain information of the area to be updated in the data block to be updated, the category information and distribution information of the scene configuration of the area to be updated.
另一种情况下,上述更新信息中可以仅包括待更新区域的地形更新信息、待更新区域的场景配置的种类信息,这样在更新待更新数据块时,可以根据待更新区域所更新的场景配置,计算得到更新后场景配置的分布更新信息,然后对更新信息和分布更新信息进行分辨率调整,然后利用调整后的分布更新信息、以及更新信息中的地形更新信息、种类信息,更新待更新数据块中待更新区域的地形信息、待更新区域的场景配置的种类信息和分布信息。In another case, the above update information may only include the terrain update information of the area to be updated and the type information of the scene configuration of the area to be updated, so that when updating the data block to be updated, the updated scene configuration of the area to be updated can be , calculate the distribution update information of the updated scene configuration, then adjust the resolution of the update information and distribution update information, and then use the adjusted distribution update information, and the terrain update information and category information in the update information to update the data to be updated The terrain information of the area to be updated in the block, the type information and distribution information of the scene configuration of the area to be updated.
本申请的一个实施例中,上述更新信息还可以包括环境更新信息,环境更新信息包括:气候更新信息、和/或天文现象更新信息。In an embodiment of the present application, the above update information may further include environment update information, and the environment update information includes: climate update information, and/or astronomical phenomenon update information.
本申请的一个实施例中,可以接收对当前加载的场景地图中区域的环境的编辑操作,包括对气候、和/或天文现象的编辑操作,得到环境更新信息。In an embodiment of the present application, an editing operation on the environment of the area in the currently loaded scene map may be received, including editing operations on climate and/or astronomical phenomena, and environment update information may be obtained.
除此之外,在上述场景地图为世界地图的情况下,也可以检测实际的世界地图中待更新区域的环境变动,得到环境更新信息。In addition, in the case that the above scene map is a world map, the environment change of the area to be updated in the actual world map may also be detected to obtain environment update information.
上述实施例提供的地图更新方案中,在得到更新信息后,可以按照各个待更新数据块所属的分辨率层级,分别对该更新信息进行分辨率调整,然后利用调整后的更新信息更新各个待更新数据块,由此可见,应用本申请实施例提供的方案,可以实现对用于描述待更新区域的各个地图数据块的更新。In the map update solution provided by the above embodiments, after obtaining the update information, the resolution of the update information can be adjusted according to the resolution level to which each data block to be updated belongs, and then the adjusted update information can be used to update each to-be-updated data block. Data blocks. It can be seen from this that by applying the solution provided by the embodiment of the present application, the update of each map data block used to describe the area to be updated can be implemented.
参见图7,图7为本申请实施例提供的一种地图数据加载装置的结构示意图,所述装置包括:Referring to FIG. 7, FIG. 7 is a schematic structural diagram of a map data loading device provided in an embodiment of the present application, and the device includes:
位置获得模块701,用于获得场景地图中待进行数据加载的地图位置;The
区域确定模块702,用于确定所述场景地图中包含所述地图位置的待加载区域;An
第一数据块获得模块703,用于从不同分辨率层级的地图数据块中,获得用于描述所述待加载区域的目标数据块,其中,每一地图数据块所属的分辨率层级用于反映:该地图数据块所描述区域的细节丰富程度,随分辨率层级升高,一个地图数据块所描述区域的范围大小减小、细节丰富程度提高,一分辨率层级的一地图数据块描述的区域包括:下一分辨率层级的至少两个地图数据块描述的区域;The first data
数据块加载模块704,用于加载所述目标数据块。A data
本申请的一个实施例中,不同地图数据块的数据量相等。In an embodiment of the present application, the data volumes of different map data blocks are equal.
本申请的一个实施例中,所述第一数据块获得模块703,具体用于:In an embodiment of the present application, the first data
获得期望待加载的地图数据所描述的场景的场景时间;Obtain the scene time of the scene described by the map data expected to be loaded;
从不同分辨率层级内对不同时间下的地图区域进行描述的地图数据块中,获得用于描述所述场景时间下所述待加载区域的目标数据块,其中,所述地图区域为:所述场景地图中的区域。Obtain a target data block used to describe the area to be loaded at the scene time from map data blocks describing map areas at different times in different resolution levels, wherein the map area is: the Regions in the scene map.
本申请的一个实施例中,所述装置还包括:In one embodiment of the present application, the device also includes:
环境数据获得模块,用于获得所述场景时间下所述待加载区域的环境数据,其中,所述环境数据包括:气候数据、和/或天文数据;An environmental data obtaining module, configured to obtain environmental data of the area to be loaded at the scene time, wherein the environmental data includes: climate data and/or astronomical data;
所述数据块加载模块704,具体用于:The data
加载所述目标数据块和环境数据。Load the target data block and environment data.
本申请的一个实施例中,所述数据块加载模块704,具体用于:In an embodiment of the present application, the data
在第一图层加载所述目标数据块,并在第二图层加载所述环境数据;loading the target data block on the first layer, and loading the environment data on the second layer;
叠加所述第一图层和第二图层。Overlay the first layer and the second layer.
本申请的一个实施例中,用于描述每一区域的地图数据块中包括:该区域的地形信息、该区域内场景配置的种类信息和分布信息;In one embodiment of the present application, the map data block used to describe each area includes: terrain information of the area, type information and distribution information of the scene configuration in the area;
所述数据块加载模块704,具体用于:The data
根据所述目标数据块中的地形信息,加载所述待加载区域的地形;loading the terrain of the area to be loaded according to the terrain information in the target data block;
根据所述目标数据块中场景配置的种类信息,获得待加载的场景配置的配置模型;Obtain a configuration model of the scene configuration to be loaded according to the type information of the scene configuration in the target data block;
按照所述目标数据块中场景配置的分布信息,在所加载的地形上叠加所述配置模型。According to the distribution information of the scene configuration in the target data block, the configuration model is superimposed on the loaded terrain.
本申请的一个实施例中,所述场景配置包括以下配置中的一种或多种:植被、山脉、河流、动物、沙漠、戈壁。In an embodiment of the present application, the scene configuration includes one or more of the following configurations: vegetation, mountains, rivers, animals, deserts, and Gobi.
本申请的一个实施例中,每一地图数据块为:远景烘焙后的数据块。In an embodiment of the present application, each map data block is: a data block after the vision is baked.
本申请的一个实施例中,所述装置还包括初始数据块获得模块,用于通过以下方式得到初始的、不同分辨率层级的地图数据块:In one embodiment of the present application, the device further includes an initial data block obtaining module, which is used to obtain initial map data blocks of different resolution levels in the following manner:
将所述场景地图划分为多个区域,获得用于描述每一划分后区域的地图数据块,作为第一分辨率层级的地图数据块;Divide the scene map into a plurality of regions, and obtain a map data block for describing each divided region as a map data block of the first resolution level;
针对每一第一分辨率层级的地图数据块,对该层级的地图数据块所描述的区域进行划分,获得用于描述每一划分后区域的地图数据块,作为第二分辨率层级的地图数据块,其中,所述第二分辨率层级的地图数据块所描述区域的细节丰富程度,大于所述第一分辨率层级的地图数据块所描述区域的细节丰富程度;For each map data block of the first resolution level, the area described by the map data block of this level is divided, and the map data block used to describe each divided area is obtained as the map data of the second resolution level block, wherein the richness of detail of the area described by the map data block of the second resolution level is greater than the richness of detail of the area described by the map data block of the first resolution level;
将所述第一分辨率层级的地图数据块更新为所述第二分辨率层级的地图数据块,返回所述针对每一第一分辨率层级的地图数据块、对该层级的地图数据块所描述的区域进行划分的步骤,直至所得到的第二分辨率层级满足预设条件。update the map data block of the first resolution level to the map data block of the second resolution level, return the map data block for each first resolution level, the map data block of the level The step of dividing the described area until the obtained second resolution level satisfies the preset condition.
上述实施例提供的地图数据加载方案中,可以获得场景地图中待进行数据加载的地图位置;确定场景地图中包含地图位置的待加载区域;从不同分辨率层级的地图数据块中,获得用于描述待加载区域的目标数据块,其中,每一地图数据块所属的分辨率层级用于反映:该地图数据块所描述区域的细节丰富程度,随分辨率层级升高,一个地图数据块所描述区域的范围大小减小、细节丰富程度提高,一分辨率层级的一地图数据块描述的区域包括:下一分辨率层级的至少两个地图数据块描述的区域;加载目标数据块。这样在加载地图数据时,可以选择用于描述待加载区域的地图数据块进行加载,无需加载与待加载区域无关的地图数据块,从而可以减小所加载的地图数据的数据量。由此可见,应用上述实施例提供的方案,可以提高地图数据加载速度。In the map data loading solution provided by the above embodiments, the map position to be loaded in the scene map can be obtained; the area to be loaded including the map position in the scene map can be determined; Describe the target data block of the area to be loaded, where the resolution level to which each map data block belongs is used to reflect: the detail richness of the area described by the map data block, as the resolution level increases, the resolution level described by a map data block The range size of the area is reduced and the richness of detail is increased. The area described by a map data block of a resolution level includes: the area described by at least two map data blocks of the next resolution level; and the target data block is loaded. In this way, when the map data is loaded, the map data block used to describe the area to be loaded can be selected for loading, and there is no need to load the map data block irrelevant to the area to be loaded, thereby reducing the data volume of the loaded map data. It can be seen that, by applying the solutions provided by the above embodiments, the loading speed of map data can be improved.
参见图8,图8为本申请实施例提供的一种地图数据更新装置的结构示意图,所述装置包括:Referring to FIG. 8, FIG. 8 is a schematic structural diagram of a map data updating device provided in an embodiment of the present application, and the device includes:
更新信息获得模块801,用于获得场景地图中待更新区域的更新信息;An update
第二数据块获得模块802,用于从不同分辨率层级的地图数据块中,获得用于描述所述待更新区域的待更新数据块,其中,每一地图数据块所属的分辨率层级用于反映:该地 图数据块所描述区域的细节丰富程度,随分辨率层级升高,一个地图数据块所描述区域的范围大小减小、细节丰富程度提高,一分辨率层级的一地图数据块描述的区域包括:下一分辨率层级的至少两个地图数据块描述的区域;The second data
数据块更新模块803,用于针对每一待更新数据块,按照该待更新数据块所属分辨率层级对应的细节丰富程度,调整所述更新信息的分辨率,利用调整后的更新信息更新该待更新数据块。The data block
本申请的一个实施例中,每一区域的地图数据块中包括:该区域的地形信息、该区域的场景配置的种类信息和分布信息;In one embodiment of the present application, the map data block of each region includes: terrain information of the region, type information and distribution information of the scene configuration of the region;
所述数据块更新模块803,具体用于:The data block updating
针对每一待更新数据块,按照该待更新数据块所属分辨率层级对应的细节丰富程度,调整所述更新信息的分辨率,利用调整后的更新信息,更新该待更新数据块中所述待更新区域的地形信息、所述待更新区域的场景配置的种类信息和分布信息。For each data block to be updated, adjust the resolution of the update information according to the richness of detail corresponding to the resolution level to which the data block to be updated belongs, and use the adjusted update information to update the data to be updated in the data block to be updated. Updating the terrain information of the area, and the type information and distribution information of the scene configuration of the area to be updated.
本申请的一个实施例中,所述更新信息包括环境更新信息,所述环境更新信息包括:气候更新信息、和/或天文现象更新信息。In an embodiment of the present application, the update information includes environment update information, and the environment update information includes: climate update information, and/or astronomical phenomenon update information.
上述实施例提供的地图更新方案中,在得到更新信息后,可以按照各个待更新数据块所属的分辨率层级,分别对该更新信息进行分辨率调整,然后利用调整后的更新信息更新各个待更新数据块,由此可见,应用本申请实施例提供的方案,可以实现对用于描述待更新区域的各个地图数据块的更新。In the map update solution provided by the above embodiments, after obtaining the update information, the resolution of the update information can be adjusted according to the resolution level to which each data block to be updated belongs, and then the adjusted update information can be used to update each to-be-updated data block. Data blocks. It can be seen from this that by applying the solution provided by the embodiment of the present application, the update of each map data block used to describe the area to be updated can be implemented.
本申请实施例还提供了一种电子设备,如图9所示,包括处理器901、通信接口902、存储器903和通信总线904,其中,处理器901,通信接口902,存储器903通过通信总线904完成相互间的通信,The embodiment of the present application also provides an electronic device, as shown in FIG. 9 , including a
存储器903,用于存放计算机程序;
处理器901,用于执行存储器903上所存放的程序时,实现上述数据加载方法和/或数据更新方法。The
上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned above for the electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the electronic device and other devices.
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include a random access memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located far away from the aforementioned processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processor, DSP), a dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
在本申请提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一数据加载方法和/或数据更新方法的步骤。In yet another embodiment provided by the present application, a computer-readable storage medium is also provided. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, any of the above data loading methods is implemented. and/or steps of the data update method.
在本申请提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一数据加载方法和/或数据更新方法。In yet another embodiment provided by the present application, a computer program product containing instructions is also provided, which when run on a computer causes the computer to execute any data loading method and/or data updating method in the above embodiments.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk (SSD)).
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, 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 that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例、电子设备实施例、计算机可读存储介质实施例、计算机程序产品实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for apparatus embodiments, electronic device embodiments, computer-readable storage medium embodiments, and computer program product embodiments, since they are basically similar to method embodiments, the description is relatively simple. For relevant information, refer to method embodiments Part of the description is sufficient.
以上所述仅为本申请的较佳实施例,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application are included within the protection scope of this application.
Claims (26)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2021/095867 WO2022246659A1 (en) | 2021-05-25 | 2021-05-25 | Map data loading method and apparatus, map data updating method and apparatus, device, and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2021/095867 WO2022246659A1 (en) | 2021-05-25 | 2021-05-25 | Map data loading method and apparatus, map data updating method and apparatus, device, and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022246659A1 true WO2022246659A1 (en) | 2022-12-01 |
Family
ID=84229300
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/095867 Ceased WO2022246659A1 (en) | 2021-05-25 | 2021-05-25 | Map data loading method and apparatus, map data updating method and apparatus, device, and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2022246659A1 (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8122341B1 (en) * | 2006-06-17 | 2012-02-21 | Google Inc. | Sharing geographical information between users |
| CN105046734A (en) * | 2015-08-31 | 2015-11-11 | 中国科学院遥感与数字地球研究所 | Method and system for dynamically generating and updating grid tile pyramid |
| CN106547599A (en) * | 2016-11-24 | 2017-03-29 | 腾讯科技(深圳)有限公司 | A kind of method and terminal of resource dynamic load |
| CN110442393A (en) * | 2019-07-17 | 2019-11-12 | 高新兴科技集团股份有限公司 | Map dynamic loading method, computer storage medium and electronic equipment |
-
2021
- 2021-05-25 WO PCT/CN2021/095867 patent/WO2022246659A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8122341B1 (en) * | 2006-06-17 | 2012-02-21 | Google Inc. | Sharing geographical information between users |
| CN105046734A (en) * | 2015-08-31 | 2015-11-11 | 中国科学院遥感与数字地球研究所 | Method and system for dynamically generating and updating grid tile pyramid |
| CN106547599A (en) * | 2016-11-24 | 2017-03-29 | 腾讯科技(深圳)有限公司 | A kind of method and terminal of resource dynamic load |
| CN110442393A (en) * | 2019-07-17 | 2019-11-12 | 高新兴科技集团股份有限公司 | Map dynamic loading method, computer storage medium and electronic equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10667082B2 (en) | Method and apparatus for determining index grids of geo-fence | |
| CN114297206B (en) | Refined efficient dynamic tile map service publishing method, medium and electronic equipment | |
| US9436712B2 (en) | Data migration framework | |
| US10474340B2 (en) | Providing graphical indication of label boundaries in digital maps | |
| US9552129B2 (en) | Interactive visual representation of points of interest data | |
| US9235906B2 (en) | Scalable processing for associating geometries with map tiles | |
| WO2022089018A1 (en) | Method and apparatus for slicing three-dimensional vector data of three-dimensional vector map, and electronic device | |
| US20150348512A1 (en) | Method and apparatus for representing a device's traversal along a route | |
| WO2021174946A1 (en) | Visualization method, system, computer device, and storage medium | |
| EP2965229A1 (en) | Automatic alignment of a multi-dimensional layout | |
| US9292189B2 (en) | Techniques to display location-based information | |
| US10147162B2 (en) | Method and system for recognizing POI outside map screen | |
| CN111858613B (en) | Service data retrieval method | |
| US20200057770A1 (en) | Visualizing changes in a multi-dimensional dataset using three-dimensional cubes | |
| US20190130625A1 (en) | Expression Interpretation Engine for Computer Map Visualizations | |
| CN115935060A (en) | Screen method and device for network point layout positions and computer equipment | |
| US20240393928A1 (en) | Generating aggregate data geospatial grid cells for encoding in vector tiles | |
| KR101136660B1 (en) | Integrated registering and displaying method of position based contents on map | |
| CN118079378A (en) | Scene generation method, device, medium, equipment and program product | |
| WO2022246659A1 (en) | Map data loading method and apparatus, map data updating method and apparatus, device, and storage medium | |
| US11423587B2 (en) | Freeform gradient style blending | |
| CN110110015B (en) | Information point data processing method, processing device and computer readable storage medium | |
| CN114663567B (en) | A method, device and electronic equipment for drawing surface texture | |
| CN112784551A (en) | Method, device and equipment for realizing cell and picture adaptation | |
| CN111309988A (en) | Character string retrieval method and device based on coding and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21942244 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 21942244 Country of ref document: EP Kind code of ref document: A1 |