Three-dimensional city information model rendering method and device, electronic equipment, storage medium and product
By acquiring the semantic priority and view distance information of 3D objects, a rendering strategy is determined, prioritizing the rendering of important objects. This solves the problems of wasted rendering performance and latency in existing technologies, and improves rendering smoothness and interactive experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-18
- Publication Date
- 2026-03-31
AI Technical Summary
Existing web-based 3D rendering engines cannot distinguish between important business objects and ordinary objects, resulting in delayed rendering of critical objects. All objects are rendered with the same precision at the same view distance, causing performance waste and rendering stutters, which affects the real-time interactive experience.
By obtaining the semantic priority and target viewing distance of the 3D object to be rendered, the object rendering strategy is determined, prioritizing the high-precision rendering of important objects, eliminating invisible objects, and dynamically adjusting the rendering strategy to improve smoothness.
It achieves high-precision rendering of important objects, reduces resource waste, and improves rendering smoothness and real-time interactive experience.
Smart Images

Figure CN121767528A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a method, apparatus, electronic device, storage medium and product for rendering a three-dimensional city information model. Background Technology
[0002] In recent years, technological background:
[0003] 3D city information models are widely used in smart cities, digital twins, industrial parks and other scenarios. 3D city information models include a variety of objects such as buildings, roads, equipment, terrain, underground pipelines and so on, and their data scale is huge (from several GB to hundreds of GB).
[0004] In related technologies, existing web-based 3D rendering engines often employ a Level of Detail (LOD) mechanism based on view distance (i.e., using a low-precision model for distant views and a high-precision model for close views) to render 3D city information models. However, the above approach has the following shortcomings: 1. It cannot distinguish between important business objects and ordinary objects, which may lead to delayed rendering of critical objects; 2. All visible objects are rendered with the same precision at the same view distance, resulting in wasted performance; 3. Large-scale data loading processes are time-consuming and rendering stutters, affecting the real-time interactive experience. Summary of the Invention
[0005] This application provides a method, apparatus, electronic device, storage medium, and product for rendering three-dimensional city information models, which can prioritize high-precision rendering of important objects, reduce resource waste, and improve rendering smoothness.
[0006] According to one aspect of this application, a method for rendering a three-dimensional city information model is provided, the method comprising:
[0007] In response to the triggering of a 3D city information model rendering event, a set of 3D objects to be rendered is obtained; wherein, the set of 3D objects to be rendered contains at least one 3D object to be rendered.
[0008] The semantic priority and target view distance of each 3D object in the set of 3D objects to be rendered are determined respectively; wherein, the target view distance is the distance from the rendering position of the 3D object to be rendered to the current observation point;
[0009] For each 3D object in the set of 3D objects to be rendered, an object rendering strategy is determined based on the semantic priority and target view distance of the 3D object to be rendered, and the 3D object to be rendered is rendered based on the object rendering strategy to generate a 3D city information model.
[0010] According to one aspect of this application, a three-dimensional city information model rendering apparatus is provided, the apparatus comprising:
[0011] The module for obtaining a set of 3D objects to be rendered is used to obtain a set of 3D objects to be rendered in response to the triggering of a 3D city information model rendering event; wherein, the set of 3D objects to be rendered contains at least one 3D object to be rendered.
[0012] The target view distance acquisition module is used to determine the semantic priority and target view distance of each 3D object to be rendered in the set of 3D objects to be rendered; wherein, the target view distance is the distance from the rendering position corresponding to the 3D object to be rendered to the current observation point;
[0013] The object rendering strategy determination module is used to determine the object rendering strategy for each 3D object in the set of 3D objects to be rendered, based on the semantic priority and the target viewing distance of the 3D object to be rendered, and to render the 3D object to be rendered based on the object rendering strategy to generate a 3D city information model.
[0014] According to another aspect of this application, an electronic device is provided, the electronic device comprising:
[0015] At least one processor; and
[0016] A memory that is communicatively connected to at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by at least one processor, such that the at least one processor is able to execute the three-dimensional city information model rendering method of any embodiment of the present application.
[0018] According to another aspect of this application, a computer-readable storage medium is provided, which stores computer instructions for causing a processor to execute and implement the three-dimensional city information model rendering method of any embodiment of this application.
[0019] According to another aspect of this application, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the three-dimensional city information model rendering method of any embodiment of this application.
[0020] The 3D city information model rendering scheme provided in this application embodiment, in response to the triggering of a 3D city information model rendering event, acquires a set of 3D objects to be rendered; wherein the set of 3D objects to be rendered contains at least one 3D object to be rendered; the semantic priority and target viewing distance of each 3D object to be rendered in the set of 3D objects to be rendered are determined respectively; wherein the target viewing distance is the distance from the rendering position corresponding to the 3D object to be rendered to the current observation point; for each 3D object to be rendered in the set of 3D objects to be rendered, an object rendering strategy is determined according to the semantic priority and target viewing distance of the 3D object to be rendered, and the 3D object to be rendered is rendered based on the object rendering strategy to generate a 3D city information model. This scheme can determine the object rendering strategy of the 3D objects to be rendered based on the semantic priority and viewing distance information of the 3D objects to be rendered, prioritizing high-precision rendering of important objects, reducing resource waste, and improving rendering smoothness.
[0021] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this application, nor is it intended to limit the scope of this application. Other features of this application will become readily apparent from the following description. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 A flowchart illustrating a three-dimensional city information model rendering method provided in this application embodiment;
[0024] Figure 2 A schematic diagram of the structure of a three-dimensional city information model rendering device provided in an embodiment of this application;
[0025] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0026] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first," "second," "third," "fourth," "actual," "preset," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0028] Figure 1 This is a flowchart illustrating a method for rendering a 3D city information model, provided in an embodiment of this application. This embodiment is applicable to rendering 3D city information models. The method can be executed by a 3D city information model rendering device, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0029] S110. In response to the triggering of a 3D city information model rendering event, obtain a set of 3D objects to be rendered; wherein the set of 3D objects to be rendered contains at least one 3D object to be rendered.
[0030] In this embodiment, when a 3D city information model rendering instruction is received, it is determined that a 3D city information model rendering event has been triggered. In response to the triggering of the 3D city information model rendering event, a set of 3D objects to be rendered is retrieved from a 3D city object database. This set of 3D objects contains at least one 3D object to be rendered, and each 3D object in the set can be a 3D object selected from the 3D city object database. For example, the 3D objects to be rendered can include various types of objects such as buildings, roads, equipment, terrain, and underground pipelines. This embodiment does not limit the type or number of 3D objects to be rendered.
[0031] S120. Determine the semantic priority and target viewing distance of each 3D object in the set of 3D objects to be rendered; wherein, the target viewing distance is the distance from the rendering position of the 3D object to be rendered to the current observation point.
[0032] In this embodiment, for each 3D object in the set of 3D objects to be rendered, the semantic priority and target viewing distance of the 3D object are determined. For example, the semantic priority dynamically added by the user according to business needs can be directly obtained, or the current 3D city information model rendering scene can be analyzed, and the semantic priority of each 3D object to be rendered can be determined based on the analysis results. For instance, if the application scenario of the current 3D city information model to be rendered is building distribution rendering, then the semantic priority of buildings is higher than that of roads, equipment, and terrain. The rendering position corresponding to the 3D object to be rendered is determined, the distance between the rendering position and the current observation point is calculated, and this distance is used as the target viewing distance. The current observation point is the position of the virtual camera used to observe the 3D city information model to be rendered, and the current observation point can be dynamically changed according to the user's change of the viewing angle of the 3D city information model in the 3D city information model rendering platform.
[0033] S130. For each 3D object in the set of 3D objects to be rendered, determine the object rendering strategy according to the semantic priority and the target viewing distance corresponding to the 3D object to be rendered, and render the 3D object to be rendered based on the object rendering strategy to generate a 3D city information model.
[0034] In this embodiment, for each 3D object in the set of objects to be rendered, a rendering strategy is determined based on its semantic priority and target viewing distance. The rendering strategy includes rendering parameters such as the rendering order, level of detail, and texture resolution of the 3D objects. Higher semantic priority and smaller target viewing distance correspond to a higher rendering order, more level of detail, and higher texture resolution. Based on the rendering strategy for each 3D object in the set, the corresponding 3D object is rendered to generate a 3D city information model.
[0035] Optionally, determining the object rendering strategy based on the semantic priority and the target view distance corresponding to the 3D object to be rendered includes: determining the view distance priority based on the target view distance corresponding to the 3D object to be rendered; determining the comprehensive priority based on the semantic priority and the view distance priority; and determining the object rendering strategy corresponding to the 3D object to be rendered based on the comprehensive priority. The advantage of this setup is that the comprehensive priority of each 3D object to be rendered can be accurately determined using both semantic priority and target view distance, and then the corresponding object rendering strategy can be accurately determined based on the comprehensive priority.
[0036] For example, the view distance priority is determined based on the target view distance corresponding to the 3D object to be rendered, wherein the smaller the target view distance, the higher the view distance priority. For example, a pre-defined mapping relationship between view distance and priority can be obtained, and the view distance priority corresponding to the 3D object to be rendered can be determined based on the target view distance and the mapping relationship. A comprehensive priority is determined based on semantic priority and view distance priority; for example, the sum of semantic priority and view distance priority can be directly used as the comprehensive priority. Optionally, determining the comprehensive priority based on the semantic priority and the view distance priority includes: determining the semantic weight corresponding to the semantic priority and the view distance weight corresponding to the view distance priority; calculating a first product of the semantic priority and the semantic weight, and a second product of the view distance priority and the view distance weight, and using the sum of the first product and the second product as the comprehensive priority. For example, the semantic weight corresponding to the semantic priority and the view distance weight corresponding to the view distance priority are obtained, wherein the semantic weight and the view distance weight can be manually input, and the sum of the semantic weight and the view distance weight is 1. It should be noted that the embodiments of this application do not limit the magnitude relationship between the semantic weight and the view distance weight. The first product of semantic priority and semantic weight, and the second product of view distance priority and view distance weight are calculated, and the sum of the first and second products is used as the overall priority. In other words, the weighted sum of semantic priority and view distance priority is used as the overall priority. Based on the overall priority, the object rendering strategy corresponding to the 3D object to be rendered is determined; where a higher overall priority corresponds to a earlier rendering order, more detail, and higher texture resolution; a lower overall priority corresponds to a later rendering order, less detail, and lower texture resolution.
[0037] The 3D city information model rendering method provided in this application embodiment, in response to the triggering of a 3D city information model rendering event, obtains a set of 3D objects to be rendered; wherein the set of 3D objects to be rendered contains at least one 3D object to be rendered; the semantic priority and target viewing distance of each 3D object to be rendered in the set of 3D objects to be rendered are determined respectively; wherein the target viewing distance is the distance from the rendering position corresponding to the 3D object to be rendered to the current observation point; for each 3D object to be rendered in the set of 3D objects to be rendered, an object rendering strategy is determined according to the semantic priority and target viewing distance of the 3D object to be rendered, and the 3D object to be rendered is rendered based on the object rendering strategy to generate a 3D city information model. This solution can determine the object rendering strategy of the 3D objects to be rendered based on the semantic priority and viewing distance information of the 3D objects to be rendered, prioritizing high-precision rendering of important objects, reducing resource waste, and improving rendering smoothness.
[0038] In some embodiments, before determining the semantic priority and target viewing distance of each 3D object in the set of 3D objects to be rendered, the method further includes: determining invisible objects relative to the current observation point from the set of 3D objects to be rendered, and removing the invisible objects from the set of 3D objects to be rendered. Since each 3D object to be rendered corresponds to a different rendering position, and each 3D object in the set of 3D objects to be rendered is not fully visible from the current observation point, based on the rendering position of each object to be rendered and the current observation point, invisible objects relative to the current observation point are determined from the set of 3D objects to be rendered using a view frustum clipping technique, and these invisible objects are removed from the set of 3D objects to be rendered. This effectively improves the rendering efficiency of the 3D city information model and avoids resource waste.
[0039] Optionally, based on the rendering position of each object to be rendered and the current viewpoint, a portion of the visible objects relative to the current viewpoint are determined from the set of 3D objects to be rendered using view frustum clipping technology, and the visible area of the portion of the visible objects is determined. Based on the ratio of the visible area to the total area of the portion of the visible objects, the corresponding overall priority is reduced; the larger the ratio, the greater the reduction in overall priority.
[0040] In some embodiments, during the rendering of the 3D object to be rendered based on the object rendering strategy, the method further includes: real-time monitoring of whether the current observation point has changed; if so, re-determining the new target viewing distance of the 3D object to be rendered, and updating the object rendering strategy based on the new target viewing distance. The advantage of this configuration is that the object rendering strategy for each 3D object to be rendered can be dynamically adjusted based on changes in the viewing angle of the 3D city information model. Since users can adjust the viewing angle of the 3D city information model as needed for different business requirements, during the rendering of the 3D object to be rendered based on the object rendering strategy, real-time monitoring of whether the current observation point has changed is possible. If so, the new target viewing distance of the 3D object to be rendered is re-determined based on the updated current observation point, and the object rendering strategy is updated based on the new target viewing distance and the corresponding semantic priority. Then, the 3D object to be rendered is rendered based on the updated object rendering strategy. Optionally, before re-determining the new target viewing distance of the 3D object to be rendered based on the updated current viewpoint, it is also possible to determine whether the 3D object to be rendered is a visible object based on the updated current viewpoint. If it is, the new target viewing distance of the 3D object to be rendered is re-determined based on the updated current viewpoint; otherwise, the 3D object to be rendered can be removed.
[0041] In some embodiments, the process of rendering the 3D object to be rendered based on the object rendering strategy further includes: when a comprehensive priority adjustment instruction driven by a business event is received, adjusting the comprehensive priority corresponding to the 3D object to be rendered, and updating the object rendering strategy based on the adjusted comprehensive priority; wherein, the comprehensive priority is a priority determined based on the semantic priority and the target view distance, and the comprehensive priority is used to determine the object rendering strategy. The advantage of this setting is that the object rendering strategy can be changed in real time based on business events to meet user needs. For example, when an alarm event of a 3D object to be rendered is detected to be triggered, it is necessary to prioritize rendering that object. At this time, it is determined that a comprehensive priority adjustment instruction driven by a business event has been received. In response to receiving the comprehensive priority adjustment instruction driven by a business event, the comprehensive priority corresponding to the 3D object to be rendered is adjusted, such as increasing the comprehensive priority corresponding to the 3D object to be rendered, and the object rendering strategy is updated according to the adjusted comprehensive priority, so that the 3D object to be rendered is rendered based on the updated object rendering strategy.
[0042] Figure 2 This is a schematic diagram of a three-dimensional city information model rendering device provided in an embodiment of this application. This device can execute the three-dimensional city information model rendering method provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects for executing the method. Figure 2 As shown, the device includes:
[0043] The module 210 for obtaining a set of three-dimensional objects to be rendered is used to obtain a set of three-dimensional objects to be rendered in response to the triggering of a three-dimensional city information model rendering event; wherein, the set of three-dimensional objects to be rendered contains at least one three-dimensional object to be rendered.
[0044] The target view distance acquisition module 220 is used to determine the semantic priority and target view distance of each 3D object to be rendered in the set of 3D objects to be rendered; wherein, the target view distance is the distance from the rendering position corresponding to the 3D object to be rendered to the current observation point;
[0045] The object rendering strategy determination module 230 is used to determine an object rendering strategy for each 3D object in the set of 3D objects to be rendered, based on the semantic priority and the target viewing distance of the 3D object to be rendered, and to render the 3D object to be rendered based on the object rendering strategy to generate a 3D city information model.
[0046] Optional, the object rendering strategy determination module includes:
[0047] A view distance priority determination unit is used to determine the view distance priority based on the target view distance corresponding to the 3D object to be rendered.
[0048] The object rendering strategy determination unit is used to determine a comprehensive priority based on the semantic priority and the view distance priority, and to determine the object rendering strategy corresponding to the 3D object to be rendered based on the comprehensive priority.
[0049] Optionally, an object rendering strategy determination unit is used for:
[0050] Determine the semantic weights corresponding to the semantic priorities and the view distance weights corresponding to the view distance priorities;
[0051] Calculate the first product of the semantic priority and the semantic weight, and the second product of the view distance priority and the view distance weight, and use the sum of the first product and the second product as the comprehensive priority.
[0052] Optional, also includes:
[0053] The invisible object culling module is used to determine invisible objects relative to the current observation point from the set of 3D objects to be rendered before determining the semantic priority and target viewing distance of each 3D object in the set of 3D objects to be rendered, and to remove the invisible objects from the set of 3D objects to be rendered.
[0054] Optional, also includes:
[0055] The first object rendering strategy update module is used to monitor in real time whether the current observation point has changed during the rendering of the 3D object to be rendered based on the object rendering strategy. If so, the new target viewing distance of the 3D object to be rendered is re-determined, and the object rendering strategy is updated based on the new target viewing distance.
[0056] Optionally, the first object rendering strategy update module is used for:
[0057] During the rendering of the 3D object to be rendered based on the object rendering strategy, when a comprehensive priority adjustment instruction based on business event is received, the comprehensive priority corresponding to the 3D object to be rendered is adjusted, and the object rendering strategy is updated based on the adjusted comprehensive priority; wherein, the comprehensive priority is a priority determined based on the semantic priority and the target view distance, and the comprehensive priority is used to determine the object rendering strategy.
[0058] The three-dimensional city information model rendering device provided in this application embodiment can execute the three-dimensional city information model rendering method provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects of the execution method.
[0059] Figure 3A schematic diagram of an electronic device 10, which can be used to implement embodiments of this application, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the application described and / or claimed herein.
[0060] like Figure 3 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0061] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of monitors, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0062] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as 3D city information model rendering methods.
[0063] In some embodiments, the 3D city information model rendering method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the 3D city information model rendering method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the 3D city information model rendering method by any other suitable means (e.g., by means of firmware).
[0064] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0065] Computer programs used to implement the methods of this application may be written in any combination of one or more programming languages. These computer programs may be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable 3D city information model rendering apparatus, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0066] In the context of this application, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0067] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0068] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0069] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0070] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the three-dimensional city information model rendering method provided in any embodiment of this application.
[0071] In implementing the computer program product, computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof. Programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone 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 remote computers, the remote computer can 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 it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0072] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this application can be executed in parallel, sequentially, or in different orders, as long as the desired information of the technical solution of this application can be achieved, and this is not limited herein.
[0073] The specific embodiments described above do not constitute a limitation on the scope of protection of this application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A method for rendering a three-dimensional city information model, characterized in that, The method includes: In response to the triggering of a 3D city information model rendering event, a set of 3D objects to be rendered is obtained; wherein, the set of 3D objects to be rendered contains at least one 3D object to be rendered. The semantic priority and target view distance of each 3D object in the set of 3D objects to be rendered are determined respectively; wherein, the target view distance is the distance from the rendering position of the 3D object to be rendered to the current observation point; For each 3D object in the set of 3D objects to be rendered, an object rendering strategy is determined based on the semantic priority and target view distance of the 3D object to be rendered, and the 3D object to be rendered is rendered based on the object rendering strategy to generate a 3D city information model.
2. The method according to claim 1, characterized in that, Determine the object rendering strategy based on the semantic priority corresponding to the 3D object to be rendered and the target view distance, including: Determine the view distance priority based on the target view distance corresponding to the 3D object to be rendered; A comprehensive priority is determined based on the semantic priority and the view distance priority, and an object rendering strategy corresponding to the 3D object to be rendered is determined based on the comprehensive priority.
3. The method according to claim 1, characterized in that, Determining the overall priority based on the semantic priority and the view distance priority includes: Determine the semantic weights corresponding to the semantic priorities and the view distance weights corresponding to the view distance priorities; Calculate the first product of the semantic priority and the semantic weight, and the second product of the view distance priority and the view distance weight, and use the sum of the first product and the second product as the comprehensive priority.
4. The method according to claim 1, characterized in that, Before determining the semantic priority and target view distance of each 3D object in the set of 3D objects to be rendered, the method further includes: Identify invisible objects relative to the current viewpoint from the set of 3D objects to be rendered, and remove the invisible objects from the set of 3D objects to be rendered.
5. The method according to claim 1, characterized in that, The process of rendering the 3D object to be rendered based on the object rendering strategy also includes: The system monitors in real time whether the current observation point has changed. If so, it redetermines the new target view distance of the 3D object to be rendered and updates the object rendering strategy based on the new target view distance.
6. The method according to claim 1, characterized in that, The process of rendering the 3D object to be rendered based on the object rendering strategy also includes: When a business event-driven comprehensive priority adjustment instruction is received, the comprehensive priority corresponding to the 3D object to be rendered is adjusted, and the object rendering strategy is updated based on the adjusted comprehensive priority; wherein, the comprehensive priority is a priority determined based on the semantic priority and the target view distance, and the comprehensive priority is used to determine the object rendering strategy.
7. A three-dimensional city information model rendering device, characterized in that, include: The module for obtaining a set of 3D objects to be rendered is used to obtain a set of 3D objects to be rendered in response to the triggering of a 3D city information model rendering event; wherein, the set of 3D objects to be rendered contains at least one 3D object to be rendered. The target view distance acquisition module is used to determine the semantic priority and target view distance of each 3D object to be rendered in the set of 3D objects to be rendered; wherein, the target view distance is the distance from the rendering position corresponding to the 3D object to be rendered to the current observation point; The object rendering strategy determination module is used to determine the object rendering strategy for each 3D object in the set of 3D objects to be rendered, based on the semantic priority and the target viewing distance of the 3D object to be rendered, and to render the 3D object to be rendered based on the object rendering strategy to generate a 3D city information model.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the three-dimensional city information model rendering method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the three-dimensional city information model rendering method according to any one of claims 1-6.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the three-dimensional city information model rendering method according to any one of claims 1-6.