Rendering method and system based on high-precision map

Through the three-level filtering method, visible elements in high-precision maps are quickly filtered out, which solves the problem of high-precision map rendering performance and realizes the need for efficient rendering of complex map scenes.

CN118747784APending Publication Date: 2024-10-08ZHIDAO NETWORK TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410913784.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

As the scale of map data expands, the large amount of data in the high-precision map rendering process causes performance problems, making it difficult to efficiently render complex map scenes.

Method used

A three-level filtering method is adopted, including coarse filtering, secondary filtering and fine filtering. Through the intersection judgment and coordinate transformation of the frustum and tile data, visible elements are quickly filtered out, reducing the processing volume and improving rendering efficiency.

Benefits of technology

It effectively reduces the processing volume of invisible elements, improves rendering efficiency and performance, and is suitable for processing large-scale map data and quickly rendering complex map scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747784A_ABST
    Figure CN118747784A_ABST
Patent Text Reader

Abstract

The invention provides a rendering method and system based on a high-precision map. The method comprises the following steps: calling a model file corresponding to a current scene model according to map position information of a current viewpoint; performing visibility filtering on all elements in the current scene model by adopting a preset visibility detection algorithm through combining a data structure in the model file with a view cone of the current viewpoint, and labeling the filtered visible elements; according to the marked visible elements, a scene entering the view field range of the view cone of the current viewpoint is rendered; wherein the step of filtering the visibility of all the elements in the current scene model by adopting the preset visibility detection algorithm comprises the step of filtering by adopting a three-stage filtering mode to obtain visible elements, and the three-stage filtering mode comprises coarse filtering, secondary filtering and fine filtering. According to the method, a three-stage filtering method of tile segmentation is introduced, visible elements are efficiently filtered out, the processing amount is reduced, and the rendering efficiency and performance are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer network technology, and in particular to a rendering method and system based on high-precision maps. Background Art

[0002] High definition maps (HD) can provide a large amount of accurate and semantically rich data to help users understand the real situation of the surrounding environment at a finer scale. Its accuracy is better than that of ordinary navigation maps, reaching the centimeter level; it expresses richer environmental elements, can provide advanced driver assistance systems with beyond-line-of-sight environmental perception capabilities, reduce the computing power burden of real-time perception and improve the accuracy of perception results. On the one hand, the HD map's accurate expression of static objects and lane-level connectivity relationships can achieve stable and high-precision positioning results; on the other hand, the prior information it provides will also reduce the difficulty of the prediction and regulation modules in the autonomous driving algorithm.

[0003] As an essential component for most advanced assisted / autonomous driving, the rendering process of high-precision maps is usually: based on the extracted high-precision vector format data, software is used to perform symbolic rendering of different types of objects. The road surface, lane lines, sidewalks, zebra crossings, and central dividers are rendered separately. Traffic lights, cameras, and POI points are represented on the map using customized icons. Buildings are rendered with 3D effects using vector drawing technology. Other objects are expressed symbolically on the map based on the attribute information and geometric information of the primitives by adjusting the color, line width, size, etc. In the process of map expression, the high-quality and high-precision display of primitives should be ensured based on the principles of readability, balance, hierarchy, and aesthetics. Road names and POI points are annotated according to the fields that users are concerned about. The display of different levels of layers is controlled by setting the scale to ensure the friendliness of the user experience and the aesthetics of the map display.

[0004] However, as the scale of map data expands and develops, the number of elements that need to be rendered increases, and the large amount of data causes major performance problems. Summary of the invention

[0005] In order to solve the above technical defects, the embodiments of the present application provide a rendering method and system based on high-precision maps.

[0006] The first embodiment of the present application provides a rendering method based on a high-precision map, the method comprising the following steps:

[0007] According to the map location information of the current viewpoint, call the model file corresponding to the current scene model;

[0008] Through the data structure in the model file and the view cone of the current viewpoint, a preset visibility detection algorithm is used to filter the visibility of all elements inside the current scene model, and the filtered visible elements are marked;

[0009] Rendering the scene within the viewing frustum of the current viewpoint according to the marked visible elements;

[0010] Among them, using a preset visibility detection algorithm to perform visibility filtering on all elements inside the current scene model includes: using a three-level filtering method to filter to obtain visible elements, the three-level filtering method includes coarse filtering, secondary filtering and fine filtering; the coarse filtering is to directly remove the tile data outside the viewing cone to obtain the total tile data; the secondary filtering is to judge the tile visibility by judging whether the total bounding box containing the total tile data intersects with the viewing cone, and obtain the secondary filtered tile data after filtering the total tile data; the fine filtering is to perform visibility detection on the secondary filtered tile data to obtain the final visible elements.

[0011] In one possible implementation, the tile data outside the viewing cone is directly eliminated in the coarse filtering, and obtaining the total tile data includes: calculating the longitude and latitude of four points where the viewing cone and the terrain intersect, and the four points constitute a total bounding box; calculating the tile data contained in the total bounding box to obtain the total tile data; pulling the total tile data into the first cache area.

[0012] In one possible implementation manner, the total bounding box is a bounding box parallel to the coordinate axis.

[0013] In one possible implementation, the secondary filtering determines tile visibility by determining whether the total bounding box containing the total tile data intersects with the viewing cone, including: traversing the total tile data after coarse filtering, determining whether the bounding box of each tile element intersects with the total bounding box, if so, placing the tile element in the second buffer area, if not, deleting it; all tile elements in the second buffer area constitute the secondary filtered tile data.

[0014] In one possible implementation, the visibility detection of the secondary filtered tile data in the fine filtering includes: traversing the secondary filtered tile data in the second buffer area, performing coordinate transformation on the secondary filtered tile data, converting the world coordinates into NDC coordinates, and obtaining normalized tile element coordinates; for each tile element coordinate, determining whether each component of its coordinate is in the range of [-1,1], if at least one component is in the range, placing the tile element in the third buffer, and deleting it if all components are not in the range; all tile elements in the third buffer constitute the final visible element.

[0015] In one possible implementation manner, the first cache area, the second cache area, and the third cache area are all LRU caches.

[0016] In one possible implementation manner, the data structure in the model file includes an octree, a quadtree, and a grid.

[0017] A second aspect of the present application provides a rendering system based on a high-precision map, the system comprising:

[0018] A model calling module, which is configured to call a model file corresponding to the current scene model according to the map position information of the current viewpoint;

[0019] A visibility filtering module is configured to perform visibility filtering on all elements in the current scene model by combining the data structure in the model file with the view cone of the current viewpoint, and to use a preset visibility detection algorithm, and to mark the filtered visible elements; wherein the visibility filtering on all elements in the current scene model by using the preset visibility detection algorithm includes: filtering to obtain visible elements by a three-level filtering method, wherein the three-level filtering method includes coarse filtering, secondary filtering and fine filtering; the coarse filtering is to directly remove tile data outside the view cone to obtain total tile data; the secondary filtering is to determine tile visibility by determining whether the total bounding box containing the total tile data intersects with the view cone, and to obtain secondary filtered tile data after filtering the total tile data; the fine filtering is to perform visibility detection on the secondary filtered tile data to obtain the final visible elements;

[0020] A rendering module is configured to render the scene within the visual cone field of the current viewpoint according to the marked visible elements.

[0021] The third aspect of the present application also provides an electronic device, comprising: at least one processor and a memory storing a computer program; when the computer program is read and executed by the processor, the electronic device executes the above optimization method.

[0022] The fourth aspect of the present application also provides a readable storage medium storing a computer program. When the computer program is read and executed by an electronic device, the electronic device executes the above optimization method.

[0023] The rendering method and system based on high-precision maps provided in the embodiments of the present application introduce a three-level filtering method of tile segmentation, and combine the three levels of filtering of coarse filtering, secondary filtering and fine filtering to efficiently filter out visible elements; by filtering at different levels, invisible elements can be quickly excluded, the processing amount can be reduced, and the rendering efficiency and performance can be improved. The method of the present invention is also suitable for processing large-scale map data and can effectively cope with complex map rendering requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 Schematic diagram of the cone model.

[0025] Figure 2 The present invention is a flowchart of a high-precision map-based rendering method according to an embodiment of the present invention.

[0026] Figure 3 FIG. 4 is an exemplary diagram of a rendering process according to an embodiment of the present invention.

[0027] Figure 4 The figure is a schematic diagram of the structure of a high-precision map-based rendering system according to an embodiment of the present invention.

[0028] Figure 5 FIG. 1 is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to make the technical solutions and advantages in the embodiments of the present application more clearly understood, the exemplary embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than an exhaustive list of all the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0030] The viewing frustum is a model that simulates the visible space area of ​​the camera, and its boundary consists of 6 planes, such as Figure 1 As shown in the figure, the left, right, top and bottom planes correspond to the boundaries of the screen, while the near plane and far plane limit the closest and farthest distances of visible objects in the scene. Only some models within the frustum are visible. Therefore, for large scenes, only a small part of the model within the field of view is visible, and most of the other scenes are invisible. Eliminating the models outside the frustum can avoid resource consumption in subsequent stages of the rendering pipeline and improve rendering efficiency.

[0031] There are two traditional frustum culling algorithms. The first is to perform perspective projection on both the nodes and the frustum, and perform clipping in the perspective clipping coordinate system. This method is more suitable for axis aligned bounding boxes (AABBs), because in this case only two AABBs need to be detected, and only six comparison operations are required in total. However, the disadvantage of this method is that the eight vertices of the AABB must be multiplied by the view and projection matrices, and the amount of calculation for coordinate system conversion is very large; another method is to detect the bounding box and the six planes of the frustum, first perform a fast rejection / acceptance test, and if the test fails, directly perform an accurate intersection test between the bounding box and the frustum.

[0032] The overall idea of ​​the frustum culling algorithm is to test each plane in turn. If it can be directly excluded, stop testing. If it intersects, mark it as intersecting. When all six planes are tested, if they are completely inside the frustum, stop detecting child nodes. If they intersect, continue detecting child nodes. That is, by performing an intersection test on the data structure where the element is located, determine whether the element is inside the frustum. If the element intersects with the frustum, add it to the rendering list. Otherwise, skip the element directly and do not render it.

[0033] The scene tree (octree, quadtree) structure is generally used to manage scene relationships. The scene tree consists of root nodes, intermediate nodes, and leaf nodes, where each scene tree contains only one root node, multiple intermediate nodes, and leaf nodes. The leaf node contains the data information of the geometric primitives, and the root node and intermediate node are responsible for the construction of the tree hierarchy and the realization of other functions, such as the spatial transformation of the node, the display of the node, and the determination of the node position.

[0034] However, the solution of directly pulling data from a certain area and performing frustum culling to render visible elements has little impact on performance when processing small amounts of data; when the amount of data is large, it will cause obvious lag or greater processing complexity.

[0035] Therefore, the present invention proposes a rendering method based on high-precision maps, such as Figure 2 As shown, the method includes:

[0036] Step 210: Call the model file corresponding to the current scene model according to the map position information of the current viewpoint;

[0037] Step 220: Using the data structure in the model file and the view frustum of the current viewpoint, a preset visibility detection algorithm is used to filter visibility of all elements inside the current scene model, and the filtered visible elements are marked;

[0038] Step 230: Render the scene within the visual frustum of the current viewpoint according to the marked visible elements;

[0039] Among them, in step 220, a preset visibility detection algorithm is used to perform visibility filtering on all elements inside the current scene model, including: using a three-level filtering method to filter to obtain visible elements, the three-level filtering method includes coarse filtering, secondary filtering and fine filtering; the coarse filtering is to directly remove the tile data outside the viewing cone to obtain the total tile data; the secondary filtering is to determine the tile visibility by determining whether the total bounding box containing the total tile data intersects with the viewing cone, and obtain the secondary filtered tile data after filtering the total tile data; the fine filtering is to perform visibility detection on the secondary filtered tile data to obtain the final visible elements.

[0040] The method starts at step 210. In step 210, the model file corresponding to the current scene model is called according to the map position information of the current viewpoint.

[0041] According to an embodiment of the present invention, viewpoints, i.e., points where the camera roams, pre-store scene models corresponding to each viewpoint, and each scene model corresponds to a model file, wherein the data structure in the model file may be an octree, a quadtree, or a grid.

[0042] A quadtree is a tree-like data structure with four sub-blocks on each node. It is often used for the analysis and classification of two-dimensional spatial data; it divides the data into four quadrants. The data range can be square, rectangular or any other shape. An octree is a tree-like data structure used to describe three-dimensional space. Each node of an octree represents a volume element of a cube. Each node has eight child nodes. The volume elements represented by the eight child nodes added together equal the volume of the parent node.

[0043] Then, step 220 is executed. In step 220, a preset visibility detection algorithm is used to perform visibility filtering on all elements inside the current scene model through the data structure in the model file combined with the viewing cone of the current viewpoint, and the filtered visible elements are marked; the preset visibility detection algorithm is used to perform visibility filtering on all elements inside the current scene model, including: using a three-level filtering method to filter to obtain visible elements, and the three-level filtering method includes coarse filtering, secondary filtering and fine filtering; the coarse filtering is to directly remove the tile data outside the viewing cone to obtain the total tile data; the secondary filtering is to judge the tile visibility by judging whether the total bounding box containing the total tile data intersects with the viewing cone, and obtain the secondary filtered tile data after filtering the total tile data; the fine filtering is to perform visibility detection on the secondary filtered tile data to obtain the final visible elements.

[0044] According to an embodiment of the present invention, a common traditional algorithm for quickly filtering out visible elements in a large amount of data is a frustum culling algorithm. However, this method still has certain bottlenecks for scene rendering with a large amount of data, because a large number of elements still need to be tested for intersection. The present invention adopts a three-level filtering method to filter out visible elements, which occupies less memory and is highly efficient.

[0045] This embodiment proposes a three-level filtering method. This filtering method first performs a coarse filtering to directly remove the tile data outside the view frustum; then performs a secondary filtering to determine the tile visibility by determining whether the bounding box of the tile intersects with the view frustum; and finally performs a fine filtering to further detect the visibility of the objects in the tile. This three-level filtering method can effectively improve the filtering efficiency and avoid the performance consumption caused by directly traversing the objects in each tile.

[0046] Specifically, the process of primary filtering, i.e., coarse filtering, includes: first, calculating the longitude and latitude of the four points where the viewing cone and the terrain intersect. These four points constitute a bounding box, which can be defined as a total bounding box. Bounding boxes are divided into AABB bounding boxes, directional bounding boxes, spherical bounding boxes, etc.; bounding boxes are arranged according to the coordinate axes of the coordinate system, which are called bounding boxes arranged according to coordinate axes (AABB). In order to distinguish AABB from the general case, an arbitrary bounding box is called a directional bounding box (OBB). It is simpler to check the intersection of objects with AABB than with OBB. In order to improve efficiency, this embodiment uses a bounding box (box1) parallel to the coordinate axis, i.e., an AABB bounding box.

[0047] Then calculate the tiles contained in the total bounding box (box1); pull these tile data and put them into the first cache area. The first cache area is the LRU cache. The LRU (Least Recently Used) algorithm is a common cache data elimination algorithm. Its principle is: if a piece of data has not been accessed recently, it is considered to have the lowest probability of being accessed in the future. When the specified space is exhausted and new data needs to be placed, the data that has not been accessed for the longest time will be eliminated first. LRU can effectively protect data that is accessed more frequently, and has a significant effect on improving the hit rate of hot data.

[0048] Furthermore, when the client needs to obtain tile data, if the tile data does not exist in the first cache area, it will first search in the disk; if it does not exist in the disk, it will obtain the data from the network. This caching method can effectively reduce the overhead of network transmission and disk reading, and improve data acquisition speed and rendering efficiency.

[0049] The secondary filtering process includes: traversing the tile elements in the first buffer, determining whether the bounding box (box2) of each element intersects with the total bounding box box1, if so, placing the tile element in the second buffer; if not, deleting it; all tile elements in the second buffer constitute the secondary filtering tile data. In this case, the intersection judgment only requires a two-dimensional axis-aligned bounding box intersection judgment, so it is very fast.

[0050] It should be noted that the methods of calculating the longitude and latitude of the four points where the view frustum and the terrain intersect, calculating the tiles contained in the total bounding box (box1), and calculating the bounding box (box2) of each tile element are all existing technologies and will not be described in detail here.

[0051] The process of three-level filtering, i.e., fine filtering, includes: first, it is necessary to traverse all tile elements in the second buffer, perform coordinate transformation on them, and convert the world coordinates into NDC coordinates, that is, multiply them with the MVP matrix to obtain normalized tile element coordinates; then, for each tile element, determine whether each component of its coordinate is in the range of [-1, 1]. If one is in, the element is placed in the third buffer. All tile elements in the third buffer constitute the final visible elements. Since the filtering process only requires simple coordinate judgment, the calculation speed is very fast.

[0052] Based on the MVP matrix of the camera, a point in the world space coordinate system can be mapped to the Normalized Device Coordinate (NDC). The NDC coordinate ignores the z component and is a two-dimensional plane coordinate. For example, based on the virtual world space coordinate system, the MVP matrix corresponding to the coordinate point is constructed, and the inverse matrix of the MVP matrix is ​​obtained. The coordinate point is transformed through the MVP inverse matrix to obtain the world space coordinate corresponding to the coordinate point in the virtual space coordinate system.

[0053] It should be noted that the second cache area and the third cache area are also LRU caches. Of course, they can also be other caches, such as LFU cache, W-TinyLFU cache, etc.

[0054] Finally, step 230 is executed. In step 230, the scene within the field of view of the viewing cone of the current viewpoint is rendered according to the marked visible elements.

[0055] According to an embodiment of the present invention, rendering is mainly composed of rendering leaves and rendering elements. Rendering elements can solve the problem of model occlusion in the scene. The rendering order of the node cluster model is determined by the rendering sequence number of the rendering element, so as to realize the accurate rendering of the data model. A rendering tree is required to realize the sequential rendering function, and the rendering elements and rendering leaves are managed by the rendering tree. For scene rendering without special requirements, transparent body rendering elements are rarely needed, and only need to be drawn by the rendering function of the rendering leaf. However, when some models in the rendered scene are occluded by other models, it is necessary to sort the data in the rendering station. Therefore, this embodiment establishes a new branch rendering element to realize this complex rendering sequence processing. The model sequential rendering mechanism is realized by a model loading algorithm based on the rendering element.

[0056] The steps of the rendering element-based model loading algorithm are as follows: first, determine the position of the current rendering element in the rendering tree, and temporarily insert a new rendering state at this position; for transparent rendering elements, this rendering state will set an Alpha detection attribute to eliminate pixels with an Alpha component of 0 in the drawing result; traverse all child rendering elements, among which the rendering elements with rendering sequence numbers less than 0 will perform drawing; traverse all rendering leaves saved by the rendering element, execute the rendering leaf rendering scene function to realize the drawing of the scene; traverse all state nodes saved by the current rendering element, and obtain the rendering leaf objects therein, and execute the rendering scene function of the rendering leaf objects; traverse all child rendering elements, among which the rendering elements with rendering sequence numbers greater than 0 will perform drawing. Figure 3 FIG. 4 is an exemplary diagram of a rendering process according to an embodiment of the present invention.

[0057] Furthermore, in practical applications, in order to enhance the reusability of the cache, you can choose to keep the cache of the previous frame, that is, do not delete the cache of the previous frame. Since there are a large number of repeated elements between the current frame and the previous frame, when rendering the current frame, you can read data from the cache of the previous frame first, thereby reducing the number of times data is obtained from the disk or network and improving the rendering speed. This approach can not only improve rendering efficiency, but also reduce resource waste and improve the overall performance of the system.

[0058] The present invention introduces a three-level filtering method of tile segmentation, combining three levels of filtering: coarse filtering, secondary filtering, and fine filtering, to efficiently filter out visible elements. By filtering at different levels, invisible elements can be quickly excluded, the amount of processing can be reduced, and rendering efficiency and performance can be improved. The method of the present invention is also suitable for processing large-scale map data and can effectively cope with complex map rendering requirements. The present invention can be applied in autonomous driving to quickly render high-precision map data within a certain range around the car.

[0059] The embodiment of the present invention further provides a rendering system based on a high-precision map, which can execute the various steps of the optimization method described above. Figure 4 To describe the system.

[0060] like Figure 4 As shown, the system includes: a model calling module 410 , a visibility filtering module 420 and a rendering module 430 .

[0061] The model calling module 410 is configured to call the model file corresponding to the current scene model according to the map position information of the current viewpoint;

[0062] The visibility filtering module 420 is configured to perform visibility filtering on all elements inside the current scene model by combining the data structure in the model file with the view cone of the current viewpoint, and to use a preset visibility detection algorithm, and to mark the filtered visible elements; wherein the visibility filtering on all elements inside the current scene model by using a preset visibility detection algorithm includes: filtering to obtain visible elements by a three-level filtering method, wherein the three-level filtering method includes coarse filtering, secondary filtering, and fine filtering; the coarse filtering is to directly remove tile data outside the view cone to obtain total tile data; the secondary filtering is to determine tile visibility by determining whether the total bounding box containing the total tile data intersects with the view cone, and to obtain secondary filtered tile data after filtering the total tile data; the fine filtering is to perform visibility detection on the secondary filtered tile data to obtain the final visible elements;

[0063] The rendering module 430 is configured to render the scene within the viewing frustum of the current viewpoint according to the marked visible elements.

[0064] As a preferred embodiment of the present invention, the tile data outside the view frustum is directly removed in the coarse filtering in the visibility filtering module 420, and obtaining the total tile data includes: calculating the longitude and latitude of the four points where the view frustum and the terrain intersect, and the four points constitute a total bounding box; calculating the tile data contained in the total bounding box to obtain the total tile data; pulling the total tile data into the first buffer area. The total bounding box is a bounding box parallel to the coordinate axis.

[0065] As a preferred embodiment of the present invention, the secondary filtering in the visibility filtering module 420 determines tile visibility by determining whether the total bounding box containing the total tile data intersects with the viewing cone, including: traversing the total tile data after coarse filtering, determining whether the bounding box of each tile element intersects with the total bounding box, if so, placing the tile element in the second cache area, if not, deleting it; all tile elements in the second cache area constitute the secondary filtered tile data.

[0066] As a preferred embodiment of the present invention, the visibility detection of the secondary filtered tile data in the fine filtering in the visibility filtering module 420 includes: traversing the secondary filtered tile data in the second buffer area, performing coordinate transformation on it, converting the world coordinates into NDC coordinates, and obtaining normalized tile element coordinates; for each tile element coordinate, determining whether each component of its coordinate is in the range of [-1,1], if at least one component is in, placing the tile element in the third buffer, and deleting it if all components are not in the third buffer; all tile elements in the third buffer constitute the final visible element.

[0067] As a preferred embodiment of the present invention, the first cache area, the second cache area, and the third cache area in the visibility filtering module 420 are all LRU caches.

[0068] As a preferred embodiment of the present invention, the data structure in the model file includes an octree, a quadtree, and a grid.

[0069] For the undescribed parts of the high-precision map-based rendering system according to an embodiment of the present invention, please refer to the above detailed description of the method embodiment.

[0070] The method of the present invention can be executed in an electronic device. The electronic device can be any device with storage and computing capabilities, which can be implemented as a server, a workstation, etc., or as a personal computer such as a desktop computer or a notebook computer, or as a terminal device such as a mobile phone, a tablet computer, a smart wearable device, an Internet of Things device, but is not limited thereto.

[0071] Figure 5 Schematic diagram of an electronic device according to an embodiment of the present invention is shown. Figure 5As shown, the electronic device may include: a processor 510, a memory 520, an input / output interface 530, a communication interface 540 and a bus 550. The processor 510, the memory 520, the input / output interface 530 and the communication interface 540 are connected to each other through the bus 550. The processor 510 can be implemented by a general CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc., for executing related programs to implement the technical solutions provided in the embodiments of this specification. The memory 520 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage devices, dynamic storage devices, etc. The memory 520 can store operating systems and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 520 and are called and executed by the processor 510. The input / output interface 530 is used to connect the input / output module to implement information input and output. The input / output / module can be configured as a component in an electronic device (not shown in the figure), or it can be externally connected to an electronic device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc. The communication interface 540 is used to connect a communication module (not shown in the figure) to realize communication interaction between this electronic device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or through a wireless mode (such as mobile network, WIFI, Bluetooth, etc.). The bus 550 includes a channel to transmit information between various components of the electronic device (such as a processor 510, a memory 520, an input / output interface 530, and a communication interface 540).

[0072] The embodiment of the present invention also provides a non-transitory readable storage medium, which stores instructions, and the instructions are used to make the electronic device perform a method according to an embodiment of the present invention. The readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be a computer-readable instruction, a data structure, a module of a program, or other data. Examples of readable storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape disk storage, etc.

[0073] In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with examples of the present invention. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages ​​can be utilized to implement the content of the present invention described herein, and the above description of specific languages ​​is for disclosing preferred embodiments of the present invention.

[0074] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0075] Similarly, it should be understood that in order to simplify the present disclosure and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following intention: the claimed invention requires more features than the features clearly recorded in each claim. Those skilled in the art should understand that the modules or units or components of the devices in the examples disclosed herein can be arranged in the devices described in the embodiment, or alternatively can be located in one or more devices different from the devices in the example. The modules in the aforementioned examples can be combined into one module or can be divided into multiple submodules in addition.

[0076] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0077] In addition, it will be appreciated by those skilled in the art that, although some embodiments described herein include certain features included in other embodiments rather than other features, the combination of features of different embodiments is meant to be within the scope of the present invention and to form different embodiments. In addition, some of the embodiments described herein are described as a combination of methods or method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor with necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein of the device embodiment are examples of devices that are used to implement the functions performed by the elements for the purpose of implementing the invention.

[0078] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved, and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.

[0079] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is primarily selected for readability and instructional purposes, rather than for explaining or limiting the subject matter of the present invention.

[0080] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A rendering method based on high-precision maps, characterized in that: include: According to the map location information of the current viewpoint, call the model file corresponding to the current scene model; Through the data structure in the model file and the view cone of the current viewpoint, a preset visibility detection algorithm is used to filter the visibility of all elements inside the current scene model, and the filtered visible elements are marked; Rendering the scene within the viewing frustum of the current viewpoint according to the marked visible elements; Among them, using a preset visibility detection algorithm to perform visibility filtering on all elements inside the current scene model includes: using a three-level filtering method to filter to obtain visible elements, the three-level filtering method includes coarse filtering, secondary filtering and fine filtering; the coarse filtering is to directly remove the tile data outside the viewing cone to obtain the total tile data; the secondary filtering is to judge the tile visibility by judging whether the total bounding box containing the total tile data intersects with the viewing cone, and obtain the secondary filtered tile data after filtering the total tile data; the fine filtering is to perform visibility detection on the secondary filtered tile data to obtain the final visible elements.

2. The rendering method based on high-precision map according to claim 1, characterized in that: In the coarse filtering, tile data outside the viewing cone is directly eliminated, and obtaining the total tile data includes: calculating the longitude and latitude of four points where the viewing cone and the terrain intersect, and the four points constitute a total bounding box; calculating the tile data contained in the total bounding box to obtain the total tile data; pulling the total tile data into the first buffer area.

3. The rendering method based on high-precision map according to claim 2, characterized in that: The total bounding box is a bounding box parallel to the coordinate axis.

4. A rendering method based on a high-precision map according to claim 2 or 3, characterized in that: The secondary filtering determines tile visibility by determining whether the total bounding box containing the total tile data intersects with the viewing cone, including: traversing the total tile data after coarse filtering, determining whether the bounding box of each tile element intersects with the total bounding box, if so, placing the tile element in the second buffer area, if not, deleting it; all tile elements in the second buffer area constitute the secondary filtered tile data.

5. The rendering method based on high-precision map according to claim 4, characterized in that: The visibility detection of the secondary filtered tile data in the fine filtering includes: traversing the secondary filtered tile data in the second buffer area, performing coordinate transformation on it, converting the world coordinates into NDC coordinates, and obtaining normalized tile element coordinates; for each tile element coordinate, judging whether each component of its coordinate is in the range of [-1,1], if at least one component is in, then the tile element is placed in the third buffer, if all components are not in, then the tile element is deleted; all tile elements in the third buffer constitute the final visible element.

6. The rendering method based on high-precision map according to claim 5, characterized in that: The first cache area, the second cache area, and the third cache area are all LRU caches.

7. The rendering method based on high-precision map according to claim 1, characterized in that: The data structures in the model file include an octree, a quadtree, and a grid.

8. A rendering system based on high-precision maps, characterized in that: include: A model calling module, which is configured to call a model file corresponding to the current scene model according to the map position information of the current viewpoint; A visibility filtering module is configured to perform visibility filtering on all elements in the current scene model by combining the data structure in the model file with the view cone of the current viewpoint, and to use a preset visibility detection algorithm, and to mark the filtered visible elements; wherein the visibility filtering on all elements in the current scene model by using the preset visibility detection algorithm includes: filtering to obtain visible elements by a three-level filtering method, wherein the three-level filtering method includes coarse filtering, secondary filtering and fine filtering; the coarse filtering is to directly remove tile data outside the view cone to obtain total tile data; the secondary filtering is to determine tile visibility by determining whether the total bounding box containing the total tile data intersects with the view cone, and to obtain secondary filtered tile data after filtering the total tile data; the fine filtering is to perform visibility detection on the secondary filtered tile data to obtain the final visible elements; The rendering module is configured to render the scene within the viewing frustum of the current viewpoint according to the marked visible elements.

9. An electronic device, characterized in that: include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that A computer program is stored thereon; the computer program is executed by a processor to implement the method according to any one of claims 1 to 7.