Three-dimensional earth grid tile and three-dimensional earth model loading display method and related device

By employing OpenGL and assimp to render three-dimensional earth models, the method overcomes compatibility issues with WebGL, enabling efficient and cross-platform display of three-dimensional earth images.

CN119131215APending Publication Date: 2024-12-13北京傲星科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411166179.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

Current methods for loading and displaying three-dimensional earth images using WebGL are restricted by operating systems and browsers, requiring specific plug-ins and JavaScript processing, which limits compatibility and efficiency.

Method used

Utilizing the open graphics library OpenGL and model reading library assimp to render and display three-dimensional earth grid tiles and models, independent of operating systems and browsers, without the need for additional plug-ins.

Benefits of technology

Enables seamless and efficient loading and display of three-dimensional earth images across various terminal devices, improving rendering speed and performance, and reducing development time and costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119131215A_ABST
    Figure CN119131215A_ABST
Patent Text Reader

Abstract

The invention provides a three-dimensional earth grid tile and three-dimensional earth model loading and displaying method and related devices, and the method comprises the steps: loading a plurality of three-dimensional earth grid tiles, rendering the plurality of three-dimensional earth grid tiles to a window through an open graphics library OpenGL, and obtaining a three-dimensional earth graph, i.e., rendering the three-dimensional earth grid tiles through the OpenGL, and an extra browser plug-in does not need to be installed. A three-dimensional earth model is obtained, the three-dimensional earth model is read through the model reading library assimp, the three-dimensional earth model is rendered to a window body, and in other words, the assimp which is not limited by an operation system is used for loading the three-dimensional earth model. A three-dimensional earth image formed on the basis of the three-dimensional earth model and the three-dimensional earth graph is displayed by a window subsequently, and the loading display of the three-dimensional earth model and the three-dimensional earth graph is not limited by an operating system and a browser. Finally, the three-dimensional earth image can be simply and conveniently loaded and displayed on various terminal devices by using the method provided by the invention.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of three-dimensional image display, and in particular to a method for loading and displaying three-dimensional earth grid tiles and three-dimensional earth models and related devices. Background Art

[0002] At present, with the development of computer technology, satellite remote sensing technology, global positioning technology, broadband network technology and other related technologies, the application areas of three-dimensional earth images have been greatly expanded. For example, three-dimensional earth images can be applied to economic fields or management fields.

[0003] The current loading and display of 3D earth images is mainly based on the 3D drawing protocol (Web Graphics Library, WebGL). WebGL is a 3D drawing standard and an instant 3D drawing application programming interface (Application Programming Interface, API) for the World Wide Web, which can provide hardware 3D accelerated rendering for HTML5 Canvas.

[0004] However, WebGL loading and displaying 3D earth images is achieved by using browser plug-ins. Therefore, for each combination of different operating systems and browsers, you need to download the corresponding specific plug-in. For a specific operating system and a specific browser running on a terminal device, there may not be a corresponding version of the plug-in, which means that the 3D earth image cannot be loaded and displayed. Summary of the invention

[0005] In view of this, the purpose of the present application is to provide a method and related device for loading and displaying three-dimensional earth grid tiles and three-dimensional earth models, which can realize the loading and display of three-dimensional earth images without being restricted by operating systems and browsers.

[0006] The present application provides a method for loading and displaying a three-dimensional earth grid tile and a three-dimensional earth model, the method comprising:

[0007] Load multiple 3D earth grid tiles, use the open graphics library OpenGL to render multiple 3D earth grid tiles to the form, and obtain 3D earth graphics;

[0008] A three-dimensional earth model is obtained, the three-dimensional earth model is read by using a model reading library assimp, the three-dimensional earth model is rendered to the window, and a three-dimensional earth image composed of the three-dimensional earth model and the three-dimensional earth graphic is displayed by using the window.

[0009] Optionally, rendering the three-dimensional earth model to the window includes:

[0010] The three-dimensional earth model is rendered to the window using the open graphics library OpenGL.

[0011] Optionally, the method further comprises:

[0012] In response to a user's display operation on the three-dimensional earth image, the display operation includes a display demand;

[0013] A three-dimensional earth image that meets the display requirement is displayed according to the display operation.

[0014] Optionally, the using the window to display the three-dimensional earth image formed by the three-dimensional earth model and the three-dimensional earth graphic comprises:

[0015] The latitude and longitude coordinates of the three-dimensional earth model are matched with the pixel coordinates of the three-dimensional earth graphic to obtain a three-dimensional earth image, and the three-dimensional earth image is displayed using the window.

[0016] Optionally, before rendering the plurality of three-dimensional earth grid tiles to the window using the open graphics library OpenGL, the method further comprises:

[0017] Setting a maximum display level and a minimum display level of a plurality of the three-dimensional earth grid tiles;

[0018] The method of rendering a plurality of three-dimensional earth grid tiles to a form using an open graphics library OpenGL comprises:

[0019] According to the highest display level and the minimum display level of the three-dimensional earth grid tiles, the three-dimensional earth grid tiles are rendered into a window using the open graphics library OpenGL.

[0020] Optionally, the three-dimensional earth model is used to load multiple layers of three-dimensional earth grid tiles.

[0021] The present application provides a loading and display device for a three-dimensional earth grid tile and a three-dimensional earth model, the device comprising:

[0022] The first loading unit is used to load a plurality of three-dimensional earth grid tiles, and render the plurality of three-dimensional earth grid tiles to a window using an open graphics library OpenGL to obtain a three-dimensional earth graphic;

[0023] The second loading unit is used to obtain a three-dimensional earth model, read the three-dimensional earth model using a model reading library assimp, render the three-dimensional earth model to the window, and use the window to display a three-dimensional earth image based on the three-dimensional earth model and the three-dimensional earth graphic.

[0024] The present application provides a loading and display device for three-dimensional earth grid tiles and three-dimensional earth models, the device comprising: a processor and a memory;

[0025] The memory is used to store instructions;

[0026] The processor is used to execute the instructions in the memory to perform the method as described above.

[0027] The present application provides a computer-readable medium, comprising instructions, which, when executed on a computer, enable the computer to execute the method described above.

[0028] The present application provides a computer program product, including a computer program. When the computer program is run on a computer device, the computer device is enabled to execute the method as described above.

[0029] The present application provides a method for loading and displaying a three-dimensional earth grid tile and a three-dimensional earth model, the method comprising: loading a plurality of three-dimensional earth grid tiles, rendering a plurality of three-dimensional earth grid tiles to a form using an open graphics library OpenGL, obtaining a three-dimensional earth graphic, that is, rendering the three-dimensional earth grid tile by OpenGL, and realizing the display of the three-dimensional earth graphic, without installing an additional browser plug-in. Obtaining a three-dimensional earth model, reading the three-dimensional earth model using the model reading library assimp, rendering the three-dimensional earth model to a form, that is, loading the three-dimensional earth model using assimp which is not restricted by the operating system. Subsequently, a three-dimensional earth image based on the three-dimensional earth model and the three-dimensional earth graphic is displayed using a form. Since the loading and display of the three-dimensional earth model and the three-dimensional earth graphic are not restricted by the operating system and the browser, it is finally realized that the method provided by the present application can be used to simply and conveniently load and display the three-dimensional earth image on a variety of terminal devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The above and other features, advantages and aspects of the embodiments of the present application will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0031] Figure 1 A schematic flow chart of a method for loading and displaying a three-dimensional earth grid tile and a three-dimensional earth model provided in an embodiment of the present application is shown;

[0032] Figure 2 A schematic structural diagram of a device for loading and displaying a three-dimensional earth grid tile and a three-dimensional earth model provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0033] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.

[0034] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0035] It should be noted that the concepts such as "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0036] It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0037] The loading and rendering of the 3D earth image is mainly based on the 3D drawing protocol (Web Graphics Library, WebGL). WebGL is a 3D drawing standard and an instant 3D drawing application programming interface (Application Programming Interface, API) for the World Wide Web. This drawing technology standard allows JavaScript and OPenGL ES2.0 to be combined together to provide hardware 3D accelerated rendering for HTML5 Canvas.

[0038] However, there are many technical difficulties in using WebGL to load three-dimensional earth images.

[0039] 1.3D mathematics and graphics programming: Understanding and applying 3D mathematics and graphics programming concepts, such as matrix transformation, projection, lighting, and shading, are essential for developing WebGL applications. This requires developers to have in-depth knowledge of graphics programming.

[0040] 2. Performance optimization: WebGL applications usually need to process a large amount of graphics data, so performance optimization is an important challenge. Developers need to pay attention to the efficiency of the drawing loop, reduce the GPU burden, use appropriate data structures, etc.

[0041] 3. Cross-browser compatibility: Different browsers have different support and performance for WebGL, so it is a challenge to ensure that the application runs properly on various mainstream browsers. Browser-specific optimization and adjustments are usually required.

[0042] 4. Complexity: Creating complex 3D scenes and effects may require a lot of code and complex shader programs. This may lead to code complexity and maintenance difficulties.

[0043] 5. Shader programming: Shader programming is a key part of WebGL development, but for many developers, writing and debugging shader code can be challenging because they are executed on the GPU.

[0044] 6. Graphics resources: Creating high-quality 3D models, textures, and materials is a challenge that requires the use of professional tools and skills, or reliance on external resources.

[0045] 7. Complex interactivity: Implementing complex user interactions, physics effects, and animations may require a lot of programming work to ensure that the interactive experience is smooth and responsive.

[0046] 8. Mobile device optimization: Running WebGL applications on mobile devices requires special optimization because these devices usually have limited computing and graphics capabilities.

[0047] 9. Security: WebGL applications may be affected by security risks such as cross-domain issues in WebGL and potential vulnerabilities in WebGL shaders, so you need to pay attention to security issues.

[0048] In addition, WebGL loads and displays three-dimensional earth images using browser plug-ins. Therefore, for each combination of different operating systems and browsers, a corresponding specific plug-in needs to be downloaded. For a specific operating system and a specific browser running on a terminal device, there may not be a corresponding version of the plug-in, that is, it is not possible to load and display a three-dimensional earth image. In addition, the call to the graphics application program interface on the operating system does not follow an open standard, which may cause problems when loading and displaying a three-dimensional earth image. In addition, OpenGL ES2.0 relies 100% on JavaScript. Its use of JavaScript to process the scene drawing of the application is subject to varying degrees of restrictions due to the computing bottleneck of JavaScript. In other words, JavaScript cannot be used efficiently to process the data of the three-dimensional earth model. If the computing power of the GPU is used for processing, it will inevitably occupy too many GPU resources, making it impossible to better coordinate other effects.

[0049] Based on this, the present application provides a method for loading and displaying a three-dimensional earth grid tile and a three-dimensional earth model, the method comprising: loading multiple three-dimensional earth grid tiles, using the open graphics library OpenGL to render multiple three-dimensional earth grid tiles to a form, obtaining a three-dimensional earth graphic, that is, rendering the three-dimensional earth grid tile through OpenGL to realize the display of the three-dimensional earth graphic, without installing an additional browser plug-in. Obtain a three-dimensional earth model, read the three-dimensional earth model using the model reading library assimp, render the three-dimensional earth model to a form, that is, load the three-dimensional earth model using assimp that is not restricted by the operating system. Subsequently, a three-dimensional earth image based on the three-dimensional earth model and the three-dimensional earth graphic is displayed using a form. Since the loading and display of the three-dimensional earth model and the three-dimensional earth graphic are not restricted by the operating system and the browser, it is finally realized that the method provided by the present application can be used to simply and conveniently load and display the three-dimensional earth image on a variety of terminal devices.

[0050] In order to better understand the technical solution and technical effects of the present application, specific embodiments will be described in detail below with reference to the accompanying drawings.

[0051] See also Figure 1 , which is a flow chart of a method for loading and displaying a three-dimensional earth grid tile and a three-dimensional earth model provided in an embodiment of the present application.

[0052] The loading and displaying of the three-dimensional earth image includes the loading and rendering of the three-dimensional earth grid tiles and the loading and rendering of the three-dimensional earth model.

[0053] The method for loading and displaying three-dimensional earth grid tiles and three-dimensional earth models provided in this embodiment includes the following steps:

[0054] S101, loading a plurality of three-dimensional earth grid tiles, and rendering the plurality of three-dimensional earth grid tiles to a window using an open graphics library OpenGL to obtain a three-dimensional earth graphic.

[0055] In the embodiment of the present application, the three-dimensional earth grid tile is a slice file of earth image within a certain map range and including a series of scales. The tile server can store multiple three-dimensional earth grid tiles.

[0056] The 3D earth grid tiles can be organized according to the pyramid structure, and each 3D earth grid tile can be uniquely marked by level, row and column number. When panning and zooming the earth image, the required 3D earth grid tiles can be calculated according to the pyramid rules, and multiple 3D earth grid tiles can be obtained and spliced ​​from the tile server.

[0057] In an embodiment of the present application, multiple three-dimensional earth grid tiles can be loaded. Specifically, multiple three-dimensional earth grid tiles can be loaded from a tile server, and the multiple three-dimensional earth grid tiles can be rendered to a window using the Open Graphics Library (OpenGL) to obtain a three-dimensional earth graphic.

[0058] Open Graphics Library is a cross-language, cross-platform application programming interface (API) for rendering 2D and 3D vector graphics. The interface consists of nearly 350 different function calls, which are used to draw simple graphics to more complex three-dimensional scenes. OpenGL is an open three-dimensional graphics software package that is independent of the window system and operating system. Programs developed based on it can be easily ported between various platforms. OpenGL can be closely interfaced with visual C++ to facilitate the implementation of relevant calculations and graphics algorithms, and to ensure the correctness and reliability of the algorithms. In other words, using OpenGL to render multiple three-dimensional earth grid tiles to a form has the advantages of ease of use and high efficiency.

[0059] In practical applications, when using OpenGL to render multiple three-dimensional earth grid tiles to a window, the following rendering operations may be specifically performed.

[0060] 1. Modeling: OpenGL can provide basic drawing functions for points, lines, and polygons, as well as drawing functions for complex three-dimensional objects, complex curves, and surfaces. Three-dimensional objects include spheres, cones, polyhedrons, and teapots.

[0061] 2. Transformation: OpenGL transformations include basic transformations and projection transformations. Basic transformations include translation, rotation, and mirroring. Projection transformations include parallel projection (also known as orthographic projection) and perspective projection. OpenGL's transformation method is helpful in reducing the running time of the algorithm and improving the display speed of three-dimensional earth graphics.

[0062] 3. Color mode setting: There are two color modes in OpenGL: RGBA mode and color index (ColorIndex).

[0063] 4. Lighting and material settings: OpenGL light includes emitted light, ambient light, diffuse light and specular light. Material is represented by light reflectivity. The color of the object in the scene that is finally reflected to the human eye is the color formed by multiplying the red, green and blue components of the light with the reflectivity of the red, green and blue components of the material.

[0064] 5. Texture Mapping. The OpenGL texture mapping function can be used to express the surface details of objects very realistically.

[0065] 6. Bitmap display and image enhancement. In addition to basic copying and pixel reading and writing, bitmap display and image enhancement operations also improve special image effect processing such as blending, antialiasing and fog. The above special image effect processing operations can make the simulated object more realistic and enhance the effect of 3D earth graphics presentation.

[0066] 7. Double Buffering: Double buffering refers to the foreground buffer and the background buffer. In short, the background buffer calculates the scene and generates the picture, and the foreground buffer displays the picture drawn by the background buffer.

[0067] That is to say, the rendering operation based on OpenGL may include the above-mentioned multiple operations. Therefore, after the rendering is completed to obtain the three-dimensional earth graphic, the user's graphic adjustment operation on the three-dimensional earth graphic may be received, and the graphic adjustment operation includes zooming in, zooming out and adjusting the viewing angle. The three-dimensional earth graphic is adjusted according to the graphic adjustment operation to meet the needs of the user.

[0068] In an embodiment of the present application, after loading and obtaining a plurality of three-dimensional earth grid tiles, the highest display level and the minimum display level of the plurality of three-dimensional earth grid tiles can be set, and the level refers to the level of the three-dimensional earth grid tiles, and different levels have different resolutions. After setting the highest display level and the minimum display level of the plurality of three-dimensional earth grid tiles, the plurality of three-dimensional earth grid tiles can be rendered to a window according to the highest display level and the minimum display level of the plurality of three-dimensional earth grid tiles and using OpenGL.

[0069] S102, obtaining a three-dimensional earth model, using a model reading library assimp to read the three-dimensional earth model, rendering the three-dimensional earth model to a window, and using the window to display a three-dimensional earth image composed of the three-dimensional earth model and the three-dimensional earth graphic.

[0070] In the embodiment of the present application, the three-dimensional earth model is a virtual earth model constructed by computer software. The three-dimensional earth model can load multiple layers of three-dimensional earth grid tiles to display a three-dimensional earth image.

[0071] The three-dimensional earth model can be obtained, that is, the data of the three-dimensional earth model is initialized, so as to facilitate the subsequent rendering of the three-dimensional earth model.

[0072] The 3D earth model is read using the Open Asset Import Library (assimp). Assimp is a library that loads various 3D file formats into a shared memory format. Assimp is used to load and process geometric scenes from various 3D data formats. It supports the import of more than 40 file formats and the export of multiple file formats. Assimp provides APIs for C and C++. Assimp also has various bindings with other languages ​​(C#, Java, Python, Delphi, D). Assimp can run on Android and iOS-based operating systems, which means that Assimp is not restricted by the operating system.

[0073] In practical applications, before using assimp to read the three-dimensional earth model, assimp can be initialized so that assimp can read the three-dimensional earth model smoothly.

[0074] After using assimp to read the 3D earth model, assimp can also be used to perform model adjustment operations on the 3D earth model, and can receive model adjustment operations of the user on the 3D earth model, and the model adjustment operations include functional operations provided by assimp. The 3D earth model is adjusted according to the model adjustment operations to meet the needs of the user.

[0075] Specifically, assimp provides functions such as generating normal and tangent space, triangulation, vertex cache position optimization, deleting degenerate primitives and duplicate vertices, sorting by primitive type, merging redundant materials, converting to indexed meshes, calculating normals or tangents / bitangents, and converting from right-handed to left-handed coordinate systems.

[0076] After assimp reads the 3D earth model, the 3D earth model can be added to a form so that the form can be used to display a 3D earth image based on the 3D earth model and the 3D earth graphics.

[0077] Specifically, since OpenGL has the advantages of not being restricted by the operating system and having high efficiency, OpenGL can also be used to render the three-dimensional earth model to the window, thereby accelerating the rendering speed of the three-dimensional earth model.

[0078] In practical applications, when constructing a three-dimensional earth image based on a three-dimensional earth model and a three-dimensional earth graphic, the longitude and latitude coordinates of the three-dimensional earth model and the pixel coordinates of the three-dimensional earth graphic can be matched first, so that the three-dimensional earth grid tiles can be correctly loaded into the three-dimensional earth model and a three-dimensional earth image with higher accuracy can be obtained, so that the three-dimensional earth image can be smoothly displayed using a form.

[0079] In the embodiment of the present application, after the three-dimensional earth image is displayed in the form, a display operation of the user on the three-dimensional earth image may be received, and the display operation includes the display requirements of the user, and the display requirements include, for example, zooming in display, zooming out display, and adjusting the viewing angle display. Therefore, in response to the user's display operation on the three-dimensional earth image, a three-dimensional earth image that meets the user's display requirements may be displayed in the form according to the display operation.

[0080] It can be seen that the loading and display method of the three-dimensional earth grid tile and the three-dimensional earth model provided by the embodiment of the present application uses OpenGL and assimp to load and display the three-dimensional earth grid tile and the three-dimensional earth model, which can quickly integrate the three-dimensional earth image, improve the rendering speed and performance of the three-dimensional earth grid tile and the three-dimensional earth model, and the running performance is much better than the WebGL method, giving users a better and smoother three-dimensional effect experience, and the development time is better than using WenGL for development, saving a lot of manpower and material costs. In other words, because the open standard OpenGL library is used for rendering, the corresponding assimp also has a common version for the operating system, and there is no need to install additional browser plug-ins, and it does not rely on JavaScript scripts, which can realize fast, efficient, simple, convenient, and not restricted by the operating system and browser. Loading and display of three-dimensional earth images.

[0081] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0082] In some embodiments, the server can communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0083] The names of the messages or information exchanged between multiple devices in the embodiments of the present application are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0084] Although operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order.Multitasking and parallel processing may be advantageous under certain circumstances.

[0085] It should be understood that the various steps described in the method implementation of the present application can be performed in different orders and / or performed in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this respect.

[0086] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0087] Based on the method for loading and displaying a three-dimensional earth grid tile and a three-dimensional earth model provided in the above embodiment, the embodiment of the present application also provides a device for loading and displaying a three-dimensional earth grid tile and a three-dimensional earth model, and its working principle is described in detail below in conjunction with the accompanying drawings.

[0088] See also Figure 2, which is a structural schematic diagram of a loading and display device for a three-dimensional earth grid tile and a three-dimensional earth model provided in an embodiment of the present application.

[0089] The loading and display device 200 for three-dimensional earth grid tiles and three-dimensional earth models provided in this embodiment includes:

[0090] The first loading unit 210 is used to load a plurality of three-dimensional earth grid tiles, and render the plurality of three-dimensional earth grid tiles to a window using an open graphics library OpenGL to obtain a three-dimensional earth graphic;

[0091] The second loading unit 220 is used to obtain a three-dimensional earth model, read the three-dimensional earth model using a model reading library assimp, render the three-dimensional earth model to the window, and use the window to display a three-dimensional earth image based on the three-dimensional earth model and the three-dimensional earth graphic.

[0092] In some embodiments, the second loading unit 220 is used to:

[0093] The three-dimensional earth model is rendered to the window using the open graphics library OpenGL.

[0094] In some embodiments, the device further comprises a display unit, the display unit being configured to:

[0095] In response to a user's display operation on the three-dimensional earth image, the display operation includes a display demand;

[0096] A three-dimensional earth image that meets the display requirement is displayed according to the display operation.

[0097] In some embodiments, the second loading unit 220 is used to:

[0098] The latitude and longitude coordinates of the three-dimensional earth model are matched with the pixel coordinates of the three-dimensional earth graphic to obtain a three-dimensional earth image, and the three-dimensional earth image is displayed using the window.

[0099] In some embodiments, before the first loading unit 210 renders a plurality of three-dimensional earth grid tiles to the window using the open graphics library OpenGL, the apparatus further includes: a setting unit, the setting unit being configured to:

[0100] Setting a maximum display level and a minimum display level of a plurality of the three-dimensional earth grid tiles;

[0101] The first loading unit 210 is used to:

[0102] According to the highest display level and the minimum display level of the three-dimensional earth grid tiles, the three-dimensional earth grid tiles are rendered into a window using the open graphics library OpenGL.

[0103] In some embodiments, the three-dimensional earth model is used to load multiple layers of three-dimensional earth grid tiles.

[0104] The units involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of a unit does not, in some cases, constitute a limitation on the unit itself.

[0105] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0106] Based on the method for loading and displaying a three-dimensional earth grid tile and a three-dimensional earth model provided in the above embodiment, the embodiment of the present application further provides a device for loading and displaying a three-dimensional earth grid tile and a three-dimensional earth model, and the device for loading and displaying a three-dimensional earth grid tile and a three-dimensional earth model includes:

[0107] The processor and the memory may be one or more processors. In some embodiments of the present application, the processor and the memory may be connected via a bus or other means.

[0108] The memory may include a read-only memory and a random access memory, and provides instructions and data to the processor. A portion of the memory may also include an NVRAM. The memory stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, wherein the operating instructions may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic services and processing hardware-based tasks.

[0109] The processor controls the operation of the terminal device and may also be referred to as a CPU.

[0110] The method disclosed in the above embodiment of the present application can be applied to a processor or implemented by a processor. The processor can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor can be combined to perform. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0111] The embodiment of the present application also provides a computer-readable medium for storing program code, where the program code is used to execute any one of the methods of the aforementioned embodiments.

[0112] It should be noted that the computer-readable medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0113] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0114] The present application also provides a computer program product. When the computer program product is run on a computer device, the computer device executes any one of the methods of the foregoing embodiments.

[0115] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the method of the embodiment of the present application are executed.

[0116] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

[0117] Although several specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present application. Certain features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination.

[0118] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. A method for loading and displaying a three-dimensional earth grid tile and a three-dimensional earth model, characterized in that: The method comprises: Load multiple 3D earth grid tiles, use the open graphics library OpenGL to render multiple 3D earth grid tiles to the form, and obtain 3D earth graphics; A three-dimensional earth model is obtained, the three-dimensional earth model is read by using a model reading library assimp, the three-dimensional earth model is rendered to the window, and a three-dimensional earth image composed of the three-dimensional earth model and the three-dimensional earth graphic is displayed by using the window.

2. The method according to claim 1, characterized in that The rendering of the three-dimensional earth model to the window comprises: The three-dimensional earth model is rendered to the window using the open graphics library OpenGL.

3. The method according to claim 2, characterized in that The method further comprises: In response to a user's display operation on the three-dimensional earth image, the display operation includes a display demand; A three-dimensional earth image that meets the display requirement is displayed according to the display operation.

4. The method according to claim 2, characterized in that: The using the window to display the three-dimensional earth image based on the three-dimensional earth model and the three-dimensional earth graphic comprises: The latitude and longitude coordinates of the three-dimensional earth model are matched with the pixel coordinates of the three-dimensional earth graphic to obtain a three-dimensional earth image, and the three-dimensional earth image is displayed using the window.

5. The method according to claim 1, characterized in that Before rendering a plurality of three-dimensional earth grid tiles to a window using an open graphics library OpenGL, the method further comprises: Setting a maximum display level and a minimum display level of a plurality of the three-dimensional earth grid tiles; The method of rendering a plurality of three-dimensional earth grid tiles to a form using an open graphics library OpenGL comprises: According to the highest display level and the minimum display level of the three-dimensional earth grid tiles, the three-dimensional earth grid tiles are rendered into a window using the open graphics library OpenGL.

6. The method according to any one of claims 1 to 5, characterized in that: The three-dimensional earth model is used to load multiple layers of three-dimensional earth grid tiles.

7. A loading and display device for three-dimensional earth grid tiles and three-dimensional earth models, characterized in that: The device comprises: The first loading unit is used to load a plurality of three-dimensional earth grid tiles, and render the plurality of three-dimensional earth grid tiles to a window using an open graphics library OpenGL to obtain a three-dimensional earth graphic; The second loading unit is used to obtain a three-dimensional earth model, read the three-dimensional earth model using a model reading library assimp, render the three-dimensional earth model to the window, and use the window to display a three-dimensional earth image based on the three-dimensional earth model and the three-dimensional earth graphic.

8. A loading and display device for three-dimensional earth grid tiles and three-dimensional earth models, characterized in that: The device comprises: a processor and a memory; The memory is used to store instructions; The processor is used to execute the instructions in the memory to perform the method according to any one of claims 1 to 6.

9. A computer-readable medium, characterized in that The method comprises instructions which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed on a computer device, the computer device is caused to execute the method according to any one of claims 1 to 6.