An automated rendering method, system, medium and product for a building block model

By parsing the block model file to obtain material and 3D information, dividing it into logical blocks and generating a virtual camera array and light source matrix, and combining it with multi-resolution rendering, the problems of resource waste and low efficiency in the rendering of large-scale block models are solved, achieving efficient, realistic and visually coherent rendering effects.

CN120672924BActive Publication Date: 2026-01-09BEIJING COINCIDENCE TENON & TENON CULTURE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510790831.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-13
Publication Date
2026-01-09
Estimated Expiration
2045-06-13

AI Technical Summary

Technical Problem

Existing technologies waste computing resources and are inefficient when rendering large-scale block models, making it difficult to meet the needs of real-time or fast rendering.

Method used

By parsing the block model file to obtain material and 3D information, it is divided into multiple logical blocks, generating a virtual camera array and light source matrix, and then combining multi-resolution rendering, priority rendering, and splicing the block results.

Benefits of technology

It reduces the waste of computing resources, improves rendering efficiency and image quality, and ensures the realism and visual consistency of the rendering results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120672924B_ABST
    Figure CN120672924B_ABST
Patent Text Reader

Abstract

The application provides an automatic rendering method, system, medium and product of a building block model, aiming to solve the problems of low efficiency and high resource occupation in large-scale building block model rendering. The method comprises the following steps: dividing the model into logical blocks; generating a virtual camera array and a virtual light source matrix based on the blocks; performing multi-resolution rendering on each block according to the priority of the view angle region; and finally splicing the rendering result. Through the block processing and differential multi-resolution rendering, the method effectively reduces the consumption of computing resources, significantly improves the rendering efficiency, and at the same time guarantees the image quality of the rendering of complex building block models.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of digital cultural creativity, and in particular to an automatic rendering method and system for a building block model, a medium and a product. BACKGROUND

[0002] Building block models are widely used in education, design and display, and their three-dimensional modeling and rendering require efficient computing methods to generate high-quality images to meet design verification and display requirements. In particular, in large-scale building block models, due to the large number of parts and complex structure, rendering efficiency and image quality become the focus of the technical field.

[0003] Related technologies usually use a global rendering method to render all parts of a building block model. The geometric data and material data of the model are loaded into the rendering engine as a whole, and then a rendered image is generated through global calculation of lighting, material reflection and camera position.

[0004] The global rendering method has the problems of waste of computing resources and low efficiency when processing large-scale building block models, as it needs to load all model data for unified calculation. SUMMARY

[0005] To solve the above technical problems and defects, the purpose of the present application is to provide an automatic rendering method, system, medium and product for a building block model, which can reduce the waste of computing resources and improve the rendering efficiency and image quality.

[0006] In a first aspect, an automatic rendering method for a building block model is provided, which includes: parsing a building block model file to obtain material information and three-dimensional model information of the building block model; dividing the building block model into a plurality of logical blocks according to the three-dimensional model information, wherein each logical block corresponds to an independent area or structural unit of the building block model; generating a virtual camera array for the logical blocks based on the three-dimensional model information, wherein the virtual camera array is used to capture geometric information of the logical blocks from multiple perspectives; generating a virtual light source matrix based on the material information and the three-dimensional model information, in combination with the virtual camera array, wherein the virtual light source matrix is composed of a plurality of virtual light sources; performing multi-resolution rendering on the logical blocks according to their priorities, wherein the priorities are determined according to the current perspective area; and splicing the rendering results of each logical block to obtain a complete rendering result of the building block model.

[0007] By adopting the technical scheme, the material information and the model three-dimensional information are first parsed to obtain the material information and the model three-dimensional information, which provides basic data for subsequent processing. Based on the model three-dimensional information, logical blocks are divided, and the complex model can be disassembled into independent processing units. A virtual camera array is generated to capture geometric information, and a virtual light source matrix is provided to provide lighting. The combination of the two can realistically simulate the appearance and light and shadow effect of the building block model. According to the priority, multi-resolution rendering is performed to balance the rendering quality and resource consumption. Finally, the rendering results of the blocks are spliced, so that the automatic rendering process of the building block model is efficient and accurate, and the complete rendering result can be quickly and high-quality generated, and the rendering efficiency and effect are improved.

[0008] Optionally, in some embodiments, according to the model three-dimensional information, the building block model is divided into a plurality of logical blocks, specifically comprising: based on the model three-dimensional information, extracting key structural features of the building block model, the key structural features including size, connection relationship and part dense area; according to the key structural features, the building block model is divided into a plurality of logical blocks, and the logical blocks correspond to an independent area or a structural unit in the building block model respectively.

[0009] By adopting the technical scheme, according to the model three-dimensional information, key structural features such as size, connection relationship and part dense area are extracted, which are important basis for dividing logical blocks. Based on the key structural features, logical blocks are divided, which can ensure that each block corresponds to an independent area or a structural unit of the building block model, so that the block is more reasonable and scientific. This division method facilitates subsequent fine processing of different blocks, such as more accurate capture of geometric information and setting of lighting, which helps to improve the accuracy of rendering and make the rendering result better restore the real structure and appearance of the building block model.

[0010] Optionally, in some embodiments, after the virtual camera array of the logical block is generated based on the model three-dimensional information, the method further comprises: dynamically adjusting the camera parameters of the virtual camera array based on the model three-dimensional information of the logical block, the camera parameters including focal point position, angle of view range and camera angle; setting the virtual camera array according to the camera parameters; capturing the geometric information of the logical block through the virtual camera array, the geometric information including edge, curved surface and joint gap detail features, and refraction and reflection characteristics of high reflection material and transparent material area.

[0011] By adopting the technical scheme, after the virtual camera array is generated, the camera parameters such as the focal point position, the visual angle range and the camera angle are dynamically adjusted based on the model three-dimensional information of the logical block, so that the camera array can more accurately capture the geometric information. After the camera parameters are reasonably set, the virtual camera array can obtain the detail features such as edges and curved surfaces, and the refraction and reflection characteristics of special materials. These rich and accurate geometric information provides sufficient data support for subsequent rendering, so that the rendered building block model is more realistic in details, and the realism and visual effect of the model are greatly improved.

[0012] Optionally, in some embodiments, after the virtual light source matrix is generated based on the material information and the model three-dimensional information in combination with the virtual camera array, the method further includes: dynamically adjusting light source parameters of the virtual light source matrix based on the geometric information and the material information, the light source parameters including the intensity, direction and color of each virtual light source; setting the virtual light source matrix according to the light source parameters, so that the virtual light source matrix can simulate the influence of a real light environment on the logical block; and providing simulated light for the logical block through the virtual light source matrix, the simulated light being used to drive the rendering process of the logical block.

[0013] By adopting the technical scheme, after the virtual light source matrix is generated, the light source parameters including the intensity, direction and color are dynamically adjusted based on the geometric information and the material information. Reasonable light source parameter setting can make the virtual light source matrix simulate a real light environment. Providing simulated light for the logical block to drive the rendering process can make the rendering result more consistent with the actual situation under the light, present a more natural light and shadow effect, make the rendering of the building block model more realistic in light performance, and enhance the quality and credibility of the overall rendering effect.

[0014] Optionally, in some embodiments, the multi-resolution rendering of the logical block based on the priority of the logical block specifically includes: determining the priority of the logical block through a primary visual angle area and a secondary visual angle area, the primary visual angle area and the secondary visual angle area being used to express the display importance of the logical block in a current visual angle, the primary visual angle area being high priority, and the secondary visual angle area being low priority; rendering the logical block with the high priority into high resolution in combination with the geometric information; and rendering the logical block with the low priority into medium or low resolution, so as to reduce resource occupation.

[0015] By adopting the technical scheme, the logical block priority is determined through the primary and secondary view angle regions, and regions with different display importance are distinguished. The high-priority block is rendered as high resolution and the low-priority block is rendered as medium or low resolution in combination with the geometric information, so that the primary view angle region is ensured to be rendered with high quality, and the secondary view angle region is reduced in resource occupation. The multi-resolution rendering strategy meets the visual demand of the user on the key region, optimizes the resource utilization, effectively improves the rendering efficiency, and reduces the system resource consumption without significantly affecting the main visual effect.

[0016] Optionally, in some embodiments, after the multi-resolution rendering of the logical blocks based on the priority of the logical blocks, the method further includes: performing material mapping on the logical blocks according to the material information to obtain a material mapping result; dynamically adjusting the material mapping result according to the geometric information; rendering the adjusted material mapping result to obtain a material rendering result; and combining the material rendering result with the multi-resolution rendering result to obtain the rendering result of the logical blocks.

[0017] By adopting the technical scheme, after the multi-resolution rendering, material mapping is performed according to the material information, and the mapping result is dynamically adjusted in combination with the geometric information. The adjusted result is rendered, and the material rendering result is combined with the multi-resolution rendering result. This process can make the material performance of the block model more realistic, make the presentation of different materials on the model more accurate, further enhance the realism of the model, enrich the details and texture of the rendering result, and make the final rendering result more realistic and delicate in material performance.

[0018] Optionally, in some embodiments, the rendering result of each logical block is spliced to obtain the complete rendering result of the block model, specifically including: determining the relative position and orientation of each logical block in the current view angle region of the block model based on the model three-dimensional information of the block model; projecting the rendering result of each logical block into a common two-dimensional image plane or three-dimensional view space according to the current view angle region; aligning the rendering result of each logical block in the common two-dimensional image plane or three-dimensional view space according to the relative position of the logical block and the geometric information; performing smoothing processing on the boundary region between the aligned logical blocks based on the material information and the geometric information, so as to fuse the rendering result of each logical block and reduce the visibility of the splicing gap; and synthesizing the rendering result of each logical block after the smoothing processing to finally obtain the complete rendering result of the block model.

[0019] By adopting the technical solutions, the logical block relative positions and orientations are determined based on the model three-dimensional information, the rendering results are projected to a common plane or space and then sorted and aligned, so that the rendering results of each block are accurate in spatial layout. Then, the boundary region is smoothed based on the material and geometric information, the visibility of the splicing gap is reduced, and finally the complete rendering result is obtained. This splicing method can make the rendering result of the building block model more coherent and natural in vision, avoid obvious splicing traces, improve the overall visual effect, and make the appearance of the rendered building block model more complete and real.

[0020] In a second aspect, the embodiments of the present application provide an automatic rendering system of a building block model, comprising: one or more processors and a memory; the memory is coupled to the one or more processors, and the memory is configured to store computer program codes, the computer program codes comprising computer instructions, and the one or more processors are configured to invoke the computer instructions to enable the electronic device to perform the method described in the first aspect or the second aspect and any possible implementation manner of the first aspect or the second aspect.

[0021] In a third aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on the electronic device, cause the electronic device to perform the method described in the first aspect or the second aspect and any possible implementation manner of the first aspect or the second aspect.

[0022] In a fourth aspect, the present application provides a computer program product comprising instructions, which, when executed on the electronic device, cause the electronic device to perform the method described in the first aspect or the second aspect and any possible implementation manner of the first aspect or the second aspect.

[0023] It can be understood that the automatic rendering system of a building block model provided in the second aspect, the storage medium provided in the third aspect, and the computer program product provided in the fourth aspect are all used to execute the method provided in the present application. Therefore, the beneficial effects that can be achieved are referred to the beneficial effects in the corresponding method, which will not be repeated here.

[0024] The one or more technical solutions provided in the present application have at least the following technical effects or advantages:

[0025] 1. By adopting the above technical solution, the material and three-dimensional information is obtained by analyzing the building block model file to provide basic data for rendering. Based on the three-dimensional information, logical blocks are divided, complex models are disassembled into independent units to reduce the processing complexity. A virtual camera array and a light source matrix are generated to capture geometric information and simulate real light, respectively, and the combination of the two improves the realism of the model. Multi-resolution rendering balances quality and resource consumption, and finally the block results are spliced. These technical features cooperate with each other to make the rendering process efficient and accurate, reduce the waste of computing resources, improve the rendering efficiency and image quality, and provide a comprehensive and optimized solution for building block rendering.

[0026] 2. By adopting the above technical solution, the logical block priority is determined according to the primary and secondary viewing angle regions to distinguish the display importance. High-priority blocks are rendered at high resolution based on geometric information to ensure clear and delicate key areas, and low-priority blocks are rendered at low resolution to reduce resource occupation. This strategy dynamically adjusts the rendering precision, optimizes resource allocation while ensuring user visual demand for key areas, avoids unnecessary computational overhead, and makes the system achieve efficient rendering under limited resources, improving overall rendering efficiency and resource utilization.

[0027] 3. By adopting the above technical solution, the relative position and orientation of the blocks are determined based on three-dimensional information, the rendering results are projected into a common space and sorted and aligned to ensure the accuracy of the space layout. The boundary area is smoothed, and the visibility of the splicing gap is reduced using material and geometric information. This splicing method makes the rendering results of each block naturally integrated, eliminates visual discontinuity, improves the overall visual coherence and realism, and makes the rendered building block model complete and natural, enhancing the quality and effect of the rendering result. BRIEF DESCRIPTION OF DRAWINGS

[0028] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and serve to explain the principles of the present application. It is apparent that the drawings described below are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor. In the drawings:

[0029] Figure 1 is a flowchart of an automatic rendering method of a building block model according to an embodiment of the present application;

[0030] Figure 2 is another flowchart of an automatic rendering method of a building block model according to an embodiment of the present application;

[0031] Figure 3 is a schematic diagram of an entity device structure of an automatic rendering system of a building block model according to an embodiment of the present application. DETAILED DESCRIPTION

[0032] The terminology used in the following description of the embodiments herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the description of the embodiments herein and the appended claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It also will be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0033] Hereinafter, the terms "first", "second", "third", etc. are used to describe various constituents only for the purpose of distinguishing one constituent from another and do not imply a relative importance or a specified ordering, unless otherwise indicated by the context. Thus, the features defined by "first", "second", etc. can include one or more of the features, and the description of the embodiments of the present application herein, unless otherwise specified, the meaning of "a plurality of" is two or more.

[0034] It should also be noted that, unless otherwise explicitly specified and limited, the terms "set", "connected", and "connection" used in the embodiments of the present application should be given a broad interpretation. For example, "connected" can be fixedly connected, or detachably connected, or integrally connected; can be mechanically connected, or electrically connected; can be directly connected, or indirectly connected through an intermediate medium; can be internal communication of two elements; can be wired communication connection, or wireless communication connection. For those skilled in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. The embodiments of the present application are described in detail as follows.

[0035] As an important three-dimensional form of expression, the building block model is widely used in the fields of education, design and display. In order to meet the needs of design verification and high-quality display, efficient and high-quality three-dimensional modeling and rendering of building block models is the core task in this field. Especially when dealing with large-scale building block models containing a large number of parts and complex structures, how to effectively balance the rendering efficiency and image quality has become the focus and difficulty in the current technical field.

[0036] The related art usually adopts a whole rendering mode to globally render all parts of the building block model. In this mode, all geometric data and material data of the model need to be loaded into the rendering engine at one time, and unified lighting, material reflection and camera position calculation are performed to finally generate a rendered image.

[0037] However, the inherent shortcomings of this overall rendering method become increasingly prominent when faced with large-scale building block models. Due to the need to load and process all model data, the system has the problem of high memory occupation. At the same time, indiscriminate unified calculation on all areas of the model causes waste of computing resources, especially when the user only focuses on specific areas or details of the model. These factors combined result in low efficiency of the overall rendering method in processing large-scale building block models, making it difficult to meet the needs of real-time or fast rendering.

[0038] Therefore, how to design an automatic rendering method for building block models that can effectively improve rendering efficiency and image quality while reducing waste of computing resources is a technical problem that needs to be solved in the field.

[0039] The present application is proposed to solve the above problems in the related art, aiming to provide a new automatic rendering method for building block models, which realizes efficient and high-quality rendering of complex building block models through a series of technical means.

[0040] As shown in Figure 1 , it is a flowchart of an automatic rendering method for building block models according to an embodiment of the present application. The automatic rendering method for building block models according to an embodiment of the present application will be described in detail below with reference to Figure 1 , which can be applied to an automatic rendering system for building block models (hereinafter referred to as the system). The method comprises the following steps:

[0041] 101. Parsing the building block model file to obtain the material information and three-dimensional model information of the building block model;

[0042] In the face of building block model files obtained from CAD, a parsing program specially adapted to the CAD file format will be started. Common CAD file formats such as DWG, DXF, etc. store model information in vector data form, and the data structure is complex and contains rich engineering design details, which is significantly different from conventional modeling files.

[0043] Considering the complexity and diversity of CAD file formats, as well as the possible data non-standardization, information loss or non-standard usage caused by different software versions and user habits, the parsing program of the present application has the following robustness processing capabilities:

[0044] Firstly, the system supports the parsing of multiple common CAD file formats and their different versions, through built-in or dynamically loaded parsing modules to adapt to the reading and understanding of different file structures. When reading the header information of the file, not only the file version and encoding are identified, but also possible non-standard header markers or custom data blocks are detected and adapted.

[0045] When traversing layers and extracting information, the system employs flexible matching and recognition strategies. In addition to relying on preset layer naming rules (such as "red parts layer"), the system also considers the attributes and quantity of geometric entities contained within a layer, as well as possible layer description information, to make a comprehensive judgment. For example, even if the layer naming is not standardized, if a layer contains a large number of entities with the red attribute, the system can infer that the layer may be related to the red building blocks.

[0046] For extracting material information, the system not only scans standard attribute blocks or annotations, but also examines graphic attributes directly associated with geometric entities, such as color, line type, and fill mode, and uses these graphic attributes as supplementary or inferential material information. When a file lacks explicit material annotations, the system can infer materials based on color, layer, or preset rules; for example, it can assign a certain material to entities of a specific color or located on a specific layer by default.

[0047] In terms of 3D information extraction from the model, the system incorporates data verification and fault tolerance mechanisms when parsing lines, regions, and 3D entities. For potential issues such as incomplete geometric data closure, topological errors, or coordinate anomalies, the system attempts automatic repair or approximation; for example, it automatically closes minute gaps or ignores non-compliant entities. For complex or non-standard entity types, the system attempts to decompose them into basic geometric primitives for processing.

[0048] In addition, the system can record potential problems or uncertainties encountered during the parsing process and selectively provide feedback to the user, allowing the user to manually confirm or correct the information, thereby further improving the accuracy of the extraction.

[0049] Through the above multi-layered robustness processing, the system can more effectively cope with various complex situations in CAD files in practical applications, thereby more accurately extracting the material information and 3D information of the block model, providing a reliable data foundation for the subsequent rendering process.

[0050] 102. Based on the three-dimensional information of the model, the building block model is divided into multiple logical blocks, each of which corresponds to an independent region or structural unit of the building block model;

[0051] After acquiring the 3D information of the block model, the system divides the block model into multiple logical blocks. The system first extracts key structural features of the block model based on the 3D information, including dimensions, connection relationships, and densely populated areas of parts.

[0052] For a car model built from blocks of different sizes, the system identifies the size information of different parts such as the body, wheels, and lights. The body is the main structure of the model and has a larger size. The wheels are relatively smaller but are numerous and distributed in specific locations on the body. The lights are even smaller but play an important role in the appearance of the model as decorative and functional identifiers.

[0053] In terms of connection analysis, the system determines whether the blocks are connected through insertion, buckling, or other means. For example, the connection between the wheels and the body of the car model is usually through insertion. The system identifies this connection and treats the wheels as an independent logical block because their rotation and lighting effects need to be considered separately when rendering. The blocks of the body are tightly connected through buckling and can be divided into a larger logical block for processing.

[0054] Part-intensive areas are also important criteria for dividing logical blocks. In the head part of the car model, there may be many detailed parts such as the air intake grille and logo. These part-intensive areas require more detailed processing. The system will divide these areas into logical blocks separately to improve resolution and highlight details in subsequent rendering.

[0055] Based on these key structural features, the system divides the block model into multiple logical blocks. Each logical block corresponds to an independent area or structural unit in the block model, ensuring the rationality and independence of the blocks. This division allows the system to operate on each block independently in subsequent processing, such as setting different rendering parameters for different blocks or capturing and rendering blocks from different perspectives, improving the flexibility and efficiency of rendering processing and ensuring that the rendering results accurately represent the structure and details of the block model.

[0056] 103、Based on the model three-dimensional information, a virtual camera array of the logical blocks is generated, and the virtual camera array is used to capture geometric information of the logical blocks from multiple perspectives;

[0057] After completing the logical division of the block model, the system generates a virtual camera array based on the model three-dimensional information of each logical block. The system first determines the layout range and approximate number of the camera array based on the shape, size, and spatial position of the logical blocks.

[0058] After determining the layout range, the system accurately calculates the position and angle of each virtual camera. The system considers the key parts and feature surfaces of the logical blocks to ensure that the cameras can cover these areas from different perspectives.

[0059] When setting the camera parameters, the system adjusts the focus position, view angle range, and camera angle according to the characteristics of the logical blocks. Through reasonable layout and parameter setting, the virtual camera array generated by the system can capture geometric information of the logical blocks from multiple angles. These virtual cameras can simulate the shooting effect of real cameras, obtain the details of the edges, curved surfaces, and joint gaps of the logical blocks, and accurately simulate the refraction and reflection characteristics of special material areas. These rich geometric information provides sufficient data support for the subsequent rendering process, making the rendered block model achieve a high level in terms of details and realism.

[0060] 104. Based on the material information and the model three-dimensional information, a virtual light source matrix is generated in combination with the virtual camera array, the virtual light source matrix being composed of a plurality of virtual light sources;

[0061] After generating the virtual camera array, the system begins to construct the virtual light source matrix. The construction of the virtual light source matrix needs to consider the reflection and refraction characteristics of the material to the light, the spatial structure of the model, and the shooting angle of the camera, in order to simulate the lighting effect closest to the real scene.

[0062] The system first determines the type and approximate distribution of the virtual light sources according to the overall shape and use scene of the block model. For example, for a block castle model simulating a daytime outdoor scene, the system will preferentially set a strong directional main light source to simulate sunlight, and at the same time, arrange some weak ambient light around the castle to simulate the light reflected by the sky. For a block model of an indoor scene, the system will set multiple point light sources or area light sources of different colors and intensities to simulate the indoor lighting effect.

[0063] After determining the type and distribution of the light sources, the system adjusts the parameters of each virtual light source according to the material information and the model three-dimensional information. For block parts with high-reflective materials, such as metal decorative parts, the system will enhance the intensity of the main light source and adjust the light source direction to produce a noticeable highlight reflection effect on the part surface; for transparent block materials, the system will increase auxiliary light sources to accurately simulate the refraction phenomenon when light penetrates from different angles.

[0064] The system also optimizes the layout of the virtual light sources in combination with the view angle information of the virtual camera array. In order to avoid the presence of dark or overly bright shadows within the camera view angle, the system dynamically adjusts the position and intensity of the light sources. Through this multi-dimensional information processing method, the virtual light source matrix generated by the system can accurately simulate the real lighting environment, providing ideal lighting conditions for the subsequent rendering process, making the rendered block model more realistic and natural in light and shadow performance.

[0065] 105、According to the priority of the logical blocks, the logical blocks are rendered with multi-resolution, and the priority is determined according to the current perspective area;

[0066] After the virtual light source matrix is constructed, the system enters a multi-resolution rendering stage. According to the priority of the logical blocks, the system uses different rendering resolutions for different blocks, optimizes resource utilization, and improves rendering efficiency while ensuring the rendering quality of key areas.

[0067] The system first determines the display importance of the logical blocks and the priority of each block by algorithm according to the current perspective area. For example, when the perspective focuses on the main tower part of the building block castle model, the logical blocks related to the main tower are determined to be high priority; and the blocks such as the city wall and the tower in the distance behind the castle are divided into low priority. The system dynamically adjusts the priority of the blocks by analyzing the focal point position, perspective range, and the proportion of each logical block in the picture, etc. When the perspective is turned to observe the side of the castle, the side wall block which was originally low priority is promoted to high priority, and the priority of the main tower block is correspondingly reduced.

[0068] For high-priority logical blocks, the system uses high-resolution rendering combined with previously obtained geometric information. For low-priority blocks, the system uses low-resolution rendering to appropriately reduce the number of polygons and texture accuracy. The system simplifies the detail processing under the premise of ensuring the correctness of the overall outline and general structure, which not only saves a lot of computing resources, but also does not significantly affect the overall visual effect.

[0069] During the rendering process, the system also monitors the rendering progress and resource occupation of each block. When it is found that a high-priority block consumes too many resources, which may affect the overall rendering efficiency, the system will dynamically adjust its resolution according to the actual situation to find the best balance between quality and efficiency. Through this multi-resolution rendering strategy based on priority, the system can efficiently complete the rendering task of the building block model and present a rendering result with focus and good visual effect under limited computing resources.

[0070] 106、The rendering results of each logical block are spliced to obtain the complete rendering result of the building block model.

[0071] After the multi-resolution rendering of each logical block is completed, the system enters the final splicing stage to integrate the scattered block rendering results into a complete building block model rendering picture. This process requires the system to accurately handle the position relationship and boundary fusion between blocks to ensure the integrity and visual coherence of the final rendering result.

[0072] The system first determines the relative positions and orientations of the logical blocks in the current view area based on the model three-dimensional information of the block model. Then, the system projects the rendering results of the blocks into a common two-dimensional image plane or three-dimensional view space. For simple block models, the projection can be performed into a two-dimensional image plane for splicing; and for complex models that need to show three-dimensional effects, the projection is performed into a three-dimensional view space, which facilitates subsequent processing of the spatial occlusion relationship between the blocks.

[0073] In the common plane or space, the system sorts and aligns the rendering results according to the relative positions of the logical blocks and the previously obtained geometric information. The system determines which blocks are in the front and which blocks are in the back, and arranges the rendering results in the correct spatial order. At the same time, the system uses the geometric boundary information of the blocks to accurately align the blocks, ensuring the structural continuity at the splicing position.

[0074] By using the block model automatic rendering method provided in the above embodiments of the present application, through multi-step cooperation, resource waste is effectively reduced, and rendering efficiency and image quality are improved. First, the block model file is parsed to accurately extract the material and three-dimensional information, laying a data foundation for subsequent processing. Then, logical blocks are divided, and the complex model is decomposed into independent units to reduce the range of invalid calculations. A virtual camera array and a virtual light source matrix are generated, the former captures geometric details from multiple angles, and the latter simulates real light to provide a guarantee for high-quality rendering. Based on the view area, the priority of the blocks is determined, and multi-resolution rendering is implemented, with high-priority fine rendering and low-priority simplified processing to achieve reasonable resource allocation. Finally, after projection, sorting and alignment, and boundary fusion, the rendering results of the blocks are spliced to eliminate splicing defects. The whole scheme is closely linked, avoiding resource waste, greatly improving rendering efficiency, and ensuring that the block model rendering image is detailed, natural in light and shadow, and visually coherent.

[0075] In the above embodiments, based on the logical blocks, the system obtains the rendering result of the complete block model by block rendering and splicing. In actual application, the system may encounter a situation where the splicing edges are not smooth during the splicing process of the block rendering results, resulting in a decrease in the rendering effect of the overall block model. In some embodiments, the system can use smoothing processing to eliminate the splicing gaps between the blocks.

[0076] The following describes an automatic rendering method for a block model according to an embodiment of the present application, Figure 2 The following describes an automatic rendering method for a block model according to an embodiment of the present application, Figure 2 FIG. 4 is another flowchart of an automatic rendering method for a block model according to an embodiment of the present application. The specific description is as follows:

[0077] 201, parse the block model file to obtain the material information and model three-dimensional information of the block model;

[0078] Step 201 and Figure 1 Step 101 in the illustrated embodiment is similar and can be found in the description of the relevant steps, which will not be repeated here.

[0079] 202. Based on the three-dimensional information of the model, extract the key structural features of the building block model, including size, connection relationship and dense parts area;

[0080] After obtaining the three-dimensional information of the block model, the system extracts key structural features.

[0081] In terms of size feature extraction, the system determines the length, width, height, and other dimensional information of each part of the model by calculating the boundary coordinate range of each part. This dimensional information not only reflects the size proportions of each part of the block model, but also provides an important reference for subsequent logical block division.

[0082] Extracting connectivity is a crucial step in key structural feature analysis. The system determines the connections between different parts of the block model by detecting contact points and connection methods. For blocks connected by bolts, glue, or other methods, the system can also accurately identify their connections, ensuring that their relative positions and fixing methods are correctly rendered in subsequent rendering processes.

[0083] For identifying densely populated areas of parts, complex block models may contain numerous small parts or intricate structures, requiring special handling. The system identifies these densely populated areas by analyzing factors such as the distribution density and spatial complexity of the parts within the block model. For these densely populated areas, the system employs more refined processing strategies during subsequent logical block partitioning and rendering to ensure that the details of these areas are fully displayed.

[0084] 203. Based on the key structural features, the building block model is divided into multiple logical blocks, each of which corresponds to an independent region or structural unit in the building block model;

[0085] After extracting key structural features, the system divides the building block model into multiple logical blocks based on these features. Each logical block corresponds to an independent region or structural unit in the building block model.

[0086] The system first performs an initial division of the block model based on its size characteristics. For larger and relatively independent parts, such as walls and roofs in a house model, the system divides them into separate logical blocks. This division method facilitates independent rendering processing for each part, improving rendering efficiency. At the same time, for smaller but functionally independent parts, such as doors, windows, and furniture, the system also processes them as independent logical blocks to ensure that they are accurately rendered during the rendering process.

[0087] Connection relationships play a crucial role in logical block partitioning. The system divides interconnected parts into the same logical block based on the connection method and the degree of closeness between different parts.

[0088] The division of densely populated areas of parts requires more refined processing. The system divides these areas into one or more logical blocks based on the distribution density and spatial complexity of the parts. This division method helps improve rendering accuracy, allowing the engine's details to be fully displayed.

[0089] By logically dividing the block model according to key structural features, the system can decompose complex models into multiple relatively independent parts, making it easier to perform independent rendering and optimization on each part.

[0090] It is important to note that although these logical blocks are structurally treated as independent units, they interact with each other at the optical rendering level, such as light projection, reflection, and global illumination. Subsequent rendering and stitching steps will take these optical interdependencies into account to ensure the continuity of light and shadow and the realism of the final rendering result.

[0091] This division method not only improves rendering efficiency, but also ensures the accuracy and quality of the rendering results, enabling the final rendered image to realistically reflect the structure and appearance of the block model.

[0092] 204. Based on the three-dimensional information of the model, generate a virtual camera array for the logical blocks, wherein the virtual camera array is used to capture the geometric information of the logical blocks from multiple perspectives;

[0093] Step 204 and Figure 1 Step 103 in the illustrated embodiment is similar and can be found in the description of the relevant steps, which will not be repeated here.

[0094] 205. Based on the three-dimensional information of the model in the logical blocks, dynamically adjust the camera parameters of the virtual camera array, wherein the camera parameters include focus position, viewing angle, and camera angle;

[0095] Configure the virtual camera array based on the camera parameters;

[0096] After generating the virtual camera array, the system dynamically adjusts the camera parameters based on the logically segmented 3D model information to further optimize the capture effect of geometric information. The adjustment of each camera parameter is closely related to the structural characteristics of the segment and the rendering requirements.

[0097] Regarding focus adjustment, the system identifies key feature points or areas within logical blocks. The field of view is adjusted based on the size of the logical block and its proportion in the frame. If the logical block is small, to highlight its details, the system narrows the camera's field of view, reducing it to cover only the target and a small surrounding area to avoid interference from irrelevant background information. If the block is large and its overall shape needs to be displayed, the field of view is appropriately widened. For adjusting the camera angle, the system finds the optimal shooting angle based on the undulations and transitions of the block's surface.

[0098] After adjusting all camera parameters, the system applies these parameters to the virtual camera array, resetting the working status of each camera. This dynamically adjusted and configured virtual camera array can more accurately capture the geometric information of logically segmented blocks, providing higher-quality data for subsequent rendering and resulting in more detailed and realistic block models.

[0099] 206. The geometric information of the logical blocks is captured through the virtual camera array, including the detailed features of edges, surfaces and splicing gaps, and the refraction and reflection characteristics of highly reflective and transparent material areas;

[0100] After completing the virtual camera array parameter settings, the system officially captures the geometric information of logical blocks through the array. Considering that the logical blocks will be prioritized and rendered differently in the future, this step will adaptively adjust the level of detail in capturing geometric information based on the initial display importance of the logical blocks (e.g., a quick estimate based on their screen projection size in the initial viewpoint or their distance from the camera).

[0101] For logical blocks that are expected to be of high priority (initially judged to be of high importance), the system will give full play to the advantages of the virtual camera array in terms of multi-view and high precision, and comprehensively record various geometric details, including the length and angle of the edges, the connection relationship with adjacent surfaces, the curvature changes of each point on the surface, the light and shadow transition data, the width and depth of the splicing gaps and the edge material conditions, as well as the detailed refraction and reflection path information of light in highly reflective and transparent material areas.

[0102] For logical patches that are predicted to be low priority (preliminary judgment shows low importance), the system will adopt a faster and more simplified capture strategy, only obtaining basic geometric contours, main dimensions and key connection information, while simplifying the record or ignoring minor details, complex curvature changes or material optical properties.

[0103] Through this adaptive capture mechanism based on preliminary importance display, the system can effectively reduce the information capture overhead of non-key patches while ensuring the detail of key patch information, laying the foundation for subsequent differentiated rendering and avoiding resource waste in the early information preparation process.

[0104] 207、Based on the material information and the model three-dimensional information, a virtual light source matrix is generated in combination with the virtual camera array, the virtual light source matrix being composed of a plurality of virtual light sources;

[0105] Step 207 is similar to step 104 in the embodiment shown, and reference can be made to the description in the relevant steps, which will not be repeated here. Figure 1 The step 104 in the embodiment shown is similar, and reference can be made to the description in the relevant steps, which will not be repeated here.

[0106] 208、Based on the geometric information and the material information, the light source parameters of the virtual light source matrix are dynamically adjusted, the light source parameters including the intensity, direction and color of each virtual light source;

[0107] According to the light source parameters, the virtual light source matrix is set so that the virtual light source matrix can simulate the influence of the real lighting environment on the logical patches;

[0108] After generating the virtual light source matrix, the system dynamically adjusts the light source parameters of the virtual light source matrix based on the previously obtained logical patch geometric information and material information, so that the virtual light source matrix simulates the lighting effect closest to the real scene.

[0109] The system first analyzes the spatial structure of the logical patches according to the geometric information and determines the lighting requirements of different regions. Taking the building block ancient building model as an example, the tower of the castle, the recessed city gate hole and other different structures have different shading and reflection conditions. For the top of the tower, since it is exposed to the main light of the “virtual environment”, the system will appropriately increase the intensity of the main light source in this area, making the top brighter and highlighting its three-dimensional effect; while the city gate hole is in the shadow area, the system will increase the auxiliary light source to avoid the loss of details due to darkness inside the gate hole, and adjust the direction of the auxiliary light source to illuminate the stone texture inside the gate hole from the side.

[0110] Material information plays a crucial role in adjusting light source parameters. Different materials have different absorption, reflection, and refraction characteristics of light, and the system precisely sets the light source parameters according to the material type and properties. For the rough material of the red bricks in the block castle, the system reduces the light source intensity to prevent the surface from becoming too bright and losing texture, while adjusting the light source color to be warmer to match the color appearance of the bricks under natural light. For the metal decorative parts on the castle gate, due to their high reflectivity, the system increases the light source intensity and adjusts the light source direction to produce bright highlights and clear reflections on the metal surface, simulating the realistic effect of metal under light. For the transparent glass windows of the castle, the system adds auxiliary light sources and adjusts their color and intensity to simulate the refraction and scattering effects of light passing through the glass, giving the glass a transparent texture.

[0111] After dynamically adjusting the light source parameters, the system applies these parameters to the virtual light source matrix, resetting the working state of each virtual light source. The optimized virtual light source matrix can accurately simulate the impact of the real lighting environment on the logical blocks, providing ideal lighting conditions for the subsequent rendering process. This makes the rendered block models more realistic and natural in terms of light and shadow, enhancing the overall visual effect.

[0112] 209. The virtual light source matrix provides simulated lighting for the logical block, and the simulated lighting is used to drive the rendering process of the logical block;

[0113] Once the parameters of the virtual light source matrix are set, the system officially provides simulated lighting for the logical blocks through this matrix. This simulated lighting will drive the rendering process of the logical blocks and determine the brightness, color, and texture of the final rendered image.

[0114] Similar to the geometric information capture described above, this step, when applying simulated lighting and calculating the interaction between light rays and the logical block surface, will also employ differentiated lighting calculation strategies based on the initial display importance or determined priority of the logical blocks.

[0115] For high-priority logical blocks, the system performs more precise and complex lighting calculations, including detailed ray tracing, global lighting calculations (such as ambient occlusion and indirect lighting), accurate shadow casting calculations, and simulations of complex optical phenomena in highly reflective and transparent materials (such as multiple reflections and refraction path tracing).

[0116] For low-priority logical blocks, the system will use simplified lighting models and calculation methods, such as using approximate global illumination based on environment maps, simplified shadow maps, or only calculating direct lighting, while ignoring complex reflection, refraction, and global illumination effects.

[0117] Through this priority-based differentiated lighting calculation, the system can greatly reduce the lighting calculation amount of low-priority areas while ensuring the rendering of high-priority areas, thereby effectively reducing the overall computing resource consumption and improving the rendering efficiency.

[0118] 210、determining the priority of the logical block through the primary and secondary view angle regions, the primary and secondary view angle regions being used to express the display importance of the logical block in the current view angle, the primary view angle region being high priority, and the secondary view angle region being low priority;

[0119] When preparing to render the logical blocks, the system needs to determine the priority of each block in order to reasonably allocate computing resources, improve the overall rendering efficiency while ensuring the rendering quality of key areas. The system divides the logical blocks into primary and secondary view angle regions by analyzing the current view angle region, thereby determining the priority of each block.

[0120] The system first determines the primary view angle region of the current frame according to the shooting view angle and focus position of the camera. The display importance of the logical block in the current view angle is determined by considering one or more of the following factors:

[0121] a. Screen space projection size: according to the two-dimensional area or the number of pixels of the logical block projected onto the screen in the current view angle, the larger the area or the number, the higher the display importance;

[0122] b. Distance from the camera: according to the distance between the centroid or bounding box of the logical block and the virtual camera, the closer the distance, the higher the display importance, but this factor can be combined with other factors for judgment;

[0123] c. Structural or functional importance: according to the structural role or functional attribute of the logical block in the entire building block model, for example, the main structural part, the key connecting part or the part with special function, its display importance is higher than that of ordinary decorative parts;

[0124] d. User interaction or focus: according to the user's input (such as mouse hovering, click selection) or the system's inference of the user's visual focus area, the logical block located in the user's explicit focus area has its display importance significantly improved;

[0125] e. Visibility: according to whether the logical block is blocked by other logical blocks in the current view angle, the display importance of the logical block that is not blocked or partially blocked is higher than that of the logical block that is completely blocked.

[0126] By comprehensively evaluating the above factors, the system calculates a comprehensive display importance score for each logical block, and divides the logical blocks into different priority levels (e.g., high priority corresponding to the main view area, low priority corresponding to the secondary view area, or more detailed multi-level priority) according to the score to guide the subsequent multi-resolution rendering process.

[0127] By this way of determining the priority of logical blocks based on the main and secondary view areas, the system can highlight important parts under limited computing resources, balance rendering quality and efficiency, and present a brick model rendering result with highlighted key points and good visual effects to the user.

[0128] 211、Combine the geometric information and render the high-priority logical blocks at high resolution.

[0129] Render the low-priority logical blocks at medium-low resolution to reduce resource consumption.

[0130] After determining the priority of logical blocks, the system performs targeted multi-resolution rendering on logical blocks according to the priority difference, balances rendering quality and resource consumption, and improves overall rendering efficiency.

[0131] For high-priority logical blocks, the system uses detailed rendering strategies based on the obtained geometric information. For example, in a space model made of bricks, the rocket cabin block as the main view area has detailed features such as densely distributed lines and interfaces on its surface. The system will significantly increase the number of polygons in this block, subdivide the basic polygons in the original low-precision model, make the line edges sharper, and make the concave-convex at the interfaces more three-dimensional. At the same time, the resolution of the texture map is improved from 1024x1024 pixels to 4096x4096 pixels, making the details such as metal scratches and numbers on the surface of the rocket cabin clear and identifiable. In terms of light and shadow calculation, the system uses more complex algorithms to perform pixel-by-pixel lighting calculation on high-priority blocks, simulates the reflection and refraction of light on complex surfaces, and makes the cabin show a real metal texture under light.

[0132] For low-priority logical blocks, the system adopts a lightweight rendering strategy. Taking the distant launcher block in the space model as an example, the system will appropriately simplify its geometric structure, merge some small polygons, reduce the number of model surfaces, and reduce the computational complexity. In terms of texture processing, the system reduces the texture resolution, uses a simpler texture compression algorithm, and reduces memory usage. The light and shadow calculation also uses a relatively fast approximation algorithm, although the detail performance is not as good as that of high-priority blocks, but it can quickly present the general light and dark effect, meeting the overall picture demand. Through this differentiated rendering method, the system significantly reduces the resource consumption of low-priority blocks while ensuring high-quality rendering in the key areas of user attention, making efficient use of limited computing resources, speeding up rendering without significantly affecting the overall visual effect.

[0133] 212. According to the material information, the logical blocks are material mapped to obtain material mapping results;

[0134] After completing the multi-resolution rendering, the system performs material mapping on the logical blocks according to the material information obtained in the early stage, converts the abstract material properties into intuitive visual effects, and gives the building block model a real material appearance.

[0135] The system first identifies the material type and attribute parameters of the logical blocks. Taking the building furniture model as an example, for the wooden desktop block, the system reads the wood type (such as oak), texture pattern (straight lines), roughness, color, and other parameters in its material information. Then, the system matches the corresponding basic material template from the preset material library. If it is an oak material, it will select a template with oak texture characteristics. Then, the system will paste the material template to the surface of the block according to the geometric shape of the block. For the flat structure of the desktop, the material texture will be evenly tiled; while for the cylindrical structure of the table leg, the system will use cylindrical mapping to ensure that the texture transitions naturally on the cylindrical surface, avoiding stretching and distortion.

[0136] During the material mapping process, the system will also handle the special properties of the material. For the metal handle block with reflective properties, the system will combine the lighting information from the previous virtual light matrix to calculate the reflection direction and intensity of the light on the metal surface, presenting a clear highlight and reflection of the surrounding environment in the material mapping result. For the transparent glass material desktop ornament, the system will simulate the refraction effect of light penetration according to its refractive index and other parameters, showing the distortion of the internal structure of the ornament and the dispersion phenomenon at the edge in the material mapping result. Through accurate material mapping operations, the system gives each logical block an accurate material appearance, making each part of the building block model visually closer to the real material, enhancing the realism and texture of the overall model.

[0137] 213. According to the geometric information, the material mapping results are dynamically adjusted;

[0138] After completing the initial material mapping, the system dynamically adjusts the material mapping results based on the geometric information of logical blocks, corrects material display problems caused by complex geometric structures or changes in lighting, and further optimizes the rendering effect.

[0139] The system adjusts the material texture based on the surface curvature and unevenness of the segments. Through this geometrically based texture deformation, the material mapping of the dinosaur skin becomes more three-dimensional, realistically reproducing the rough texture of the skin.

[0140] For the joints between blocks, the system performs material transition processing based on geometric boundary information. In block building models, discontinuous material textures may occur when different wall blocks are joined. The system analyzes the geometric angles and edge shapes at the joints and uses an image fusion algorithm to blend the material textures of the two blocks within a certain range of the joint boundary, resulting in a natural transition of brick textures and colors and eliminating obvious joint marks.

[0141] Furthermore, the system dynamically adjusts the visibility of materials based on the geometric occlusion relationships of the blocks. When a block is partially occluded by other blocks, the system reduces the transparency of the occluded area's material or adjusts its color to simulate the effect of blocked light, enhancing the model's spatial depth and realism. Through dynamic adjustments based on geometric information, the system ensures that the material mapping results better match the actual shape of the logical blocks, effectively improving the realism and visual coherence of the block model's rendering.

[0142] 214. Render the adjusted material mapping result to obtain the material rendering result;

[0143] After dynamically adjusting the material mapping results, the system enters the material rendering stage, transforming the virtual material information into a realistic visual image. This process requires the system to comprehensively utilize technologies such as lighting models and shading algorithms to calculate the final color value of each pixel based on the adjusted material properties.

[0144] 215. Combine the material rendering result with the multi-resolution rendering result to obtain the rendering result of the logical block;

[0145] After completing material rendering and multi-resolution rendering separately, the system needs to fuse these two results to obtain the final rendering effect of logical blocks. This process requires the system to accurately align the spatial positions of the two results and perform weighted mixing according to their characteristics to ensure that the fused image has both rich material details and reasonable geometric structure and lighting effects.

[0146] The system first performs spatial alignment on the material rendering result and the multi-resolution rendering result. Since both results are generated based on the same logical block's geometry information, the system can use the vertex coordinates and texture mapping relationship in the geometry information to accurately map the material rendering result to the corresponding position of the multi-resolution rendering result. Taking the wall block of the building block model as an example, the system will place the brick texture, color and other information in the material rendering result to the corresponding position of the wall in the multi-resolution rendering result according to the vertex coordinates and texture mapping relationship of the wall, ensuring that the two results match completely in space.

[0147] After completing the spatial alignment, the system performs weight mixing on the two results according to the characteristics of the material and the light. For areas where the material characteristics are obvious, the system will increase the weight of the material rendering result to highlight the details and texture of the material. For example, on the surface of the brick block of the wall block, the material rendering result contains detailed information such as the texture and roughness of the brick, and the system will give this part of the result a higher weight to make the texture of the brick clearer. For areas where the light and geometry structure play a leading role, the system will increase the weight of the multi-resolution rendering result. For example, in the shadow area of the wall or the highlight area of the lighted surface, the multi-resolution rendering result contains more accurate light calculation and geometry information, and the system will give this part of the result a higher weight to make the performance of the shadow and highlight more natural.

[0148] The system also handles the transition area between the two results to ensure that the fused image is smooth and natural. In areas where the material boundary and light change dramatically, the system will use a gradual blending method to make the transition between the two results more gentle. For example, at the junction of the wall block and the window block, the system will gradually adjust the weight of the two results within a certain range to ensure that the image at the junction does not have obvious faults or discontinuities.

[0149] Through accurate spatial alignment and intelligent weight mixing, the system combines the material rendering result with the multi-resolution rendering result to obtain the final rendering result of the logical block, which retains the delicate texture of the material and presents reasonable geometry structure and light effect, laying a good foundation for subsequent whole stitching.

[0150] 216、Based on the model three-dimensional information of the building block model, determine the relative position and orientation of each logical block in the current perspective area of the building block model;

[0151] After obtaining the rendering results of all logical blocks, the system needs to determine the relative position and orientation of each block in the current perspective area based on the three-dimensional information of the building block model, to provide accurate spatial reference for subsequent projection and stitching operations.

[0152] The system first extracts the world coordinates and rotation parameters of each logical chunk from the model's three-dimensional information. For complex building block models, each logical chunk has its own local coordinate system, and the system needs to convert these local coordinate systems to the global coordinate system to determine the absolute position of each chunk in the entire model.

[0153] The system calculates the position and orientation of each logical chunk relative to the camera based on the parameters of the current viewing area. During rendering, the position, direction, and viewing range of the camera determine what the user can see. The system determines the visibility and relative position of each logical chunk in the current view based on these parameters.

[0154] The system considers the hierarchical relationship and occlusion relationship between logical chunks. In actual building block models, some chunks may partially or completely occlude other chunks. The system determines the occlusion order between chunks based on the geometric structure and spatial relationship in the model's three-dimensional information.

[0155] 217、According to the current viewing area, the rendering results of each logical chunk are projected onto a common two-dimensional image plane or three-dimensional view space;

[0156] After determining the relative position and orientation of each logical chunk, the system needs to project the rendering results of these chunks into a unified display space for subsequent composition operations. This process requires the system to select the appropriate projection method based on the parameters of the current viewing area and ensure that each chunk maintains the correct spatial relationship after projection.

[0157] The system selects a two-dimensional image plane or a three-dimensional view space as the projection target based on rendering requirements. For scenes that require the generation of final static images, the system usually selects a two-dimensional image plane as the projection target; for scenes that require real-time interaction or animation display, the system selects a three-dimensional view space for subsequent dynamic adjustments.

[0158] After determining the projection target, the system calculates the projection transformation matrix of each logical chunk based on the parameters of the current viewing area, such as camera position, direction, viewing range, etc. This matrix converts the three-dimensional world coordinates of the chunk to coordinates in the projection space. For example, in perspective projection, the system calculates the corresponding position of each chunk's vertex on the projection plane based on the camera's position and viewing range, while considering the perspective effect to make distant objects appear smaller.

[0159] The system also handles the clipping and visibility of each tile during the projection process. Since the current view region is limited, some logical tiles may completely or partially exceed the view range. The system determines the visibility of the tiles based on the relationship between the tile's bounding box and the view frustum, and clips the parts that exceed the view range. Through this clipping operation, unnecessary calculations can be reduced, improving rendering efficiency. Through accurate projection calculations and clipping processing, the system accurately projects the rendering results of each logical tile into the common display space, laying the foundation for subsequent sorting alignment and synthesis operations.

[0160] 218. In the common two-dimensional image plane or three-dimensional view space, the rendering results of the logical tiles are sorted and aligned according to the relative positions of the logical tiles and the geometric information.

[0161] After completing the projection operation, the system needs to sort and align the rendering results of each logical tile in the common display space to ensure that they present the correct spatial hierarchy and structural relationship in the final image. This process requires the system to determine the drawing order and alignment method of the tiles based on their relative positions and geometric information.

[0162] The system first determines the drawing order of the logical tiles based on their depth information. In a three-dimensional scene, depth information represents the distance of a tile relative to the camera. The system sorts the tiles in order from back to front to correctly handle occlusion relationships.

[0163] 219. Based on the material information and the geometric information, the boundary regions between the sorted and aligned logical tiles are smoothed to fuse the rendering results of each logical tile and reduce the visibility of the stitching gaps.

[0164] After completing the sorting and alignment of the logical tiles, the system needs to smooth the boundary regions between the tiles to eliminate possible stitching gaps and make the final rendering results appear more natural and continuous. This process requires the system to combine material information and geometric information to specially process the pixels in the boundary regions.

[0165] The system first analyzes the material properties of the blocks on both sides of the boundary region to determine an appropriate blending strategy. Different materials require different handling. According to the physical properties of the material (such as reflectivity, transparency, roughness, texture characteristics, etc.), a differentiated blending strategy is determined and applied to achieve a natural transition at the junction of different material types (for example, high-reflective material and matte material, transparent material and opaque material), avoiding unnatural blending effects. For example, in the building city model, the junction of the brick wall and the glass curtain wall, the system will use different blending algorithms according to the rough texture of the brick and the smooth reflective properties of the glass. For the brick part, the system will retain its texture details and perform appropriate blur processing at the boundary to make the transition with the glass curtain wall more natural; for the glass part, the system will consider its reflection and refraction properties, calculate the propagation path of the light at the boundary, and ensure that the reflected image transitions continuously at the boundary. Through this material-based blending strategy, the system can make different material blocks at the boundary exhibit a natural transition effect.

[0166] The system will use geometric information to more accurately process the boundary region, especially the shape, curvature, and detail features of the seam gap of the boundary region, to accurately control the boundary processing process. For example, in areas with sharp edges or complex curvature changes, a fine processing algorithm that can preserve geometric details such as the sharpness of corners is used to avoid detail loss or blurring. The geometry and curvature of the boundary region affect the blending effect. For example, at the corners of a building model, the boundary may exhibit a clear polyline shape. The system will analyze this geometric feature and use a more refined blending algorithm at the corners to ensure that the sharpness of the corners is preserved while eliminating the seam gap. For curved boundaries, the system will consider the curvature changes of the curved surface and increase the smoothness of the blending in areas with large curvature to avoid obvious creases. By combining geometric information, the system can more accurately process the pixels of the boundary region, making the blending effect more natural.

[0167] According to the high-frequency texture information contained in the material information, the alignment and mixing of the texture are considered during boundary blending to reduce texture misalignment or blurring and maintain the continuity of high-frequency textures.

[0168] The system also uses anti-aliasing techniques to further reduce the jagged appearance of the boundary region. During rendering, the boundary region may exhibit jagged edges due to discrete pixel representation. The system will apply anti-aliasing algorithms to super-sample or blur the boundary pixels, making the edges appear smoother. Through anti-aliasing processing, the system can improve the visual quality of the boundary region and reduce the visibility of the seam gap.

[0169] Through the above fine processing based on material information and geometric information, the challenges brought by complex geometry, heterogeneous materials and high-frequency textures in boundary fusion can be effectively solved, the natural fusion of the rendering results of each logical block is realized, and the visibility of the splicing gap is significantly reduced or eliminated, thereby improving the realism and quality of the overall rendered image.

[0170] By comprehensively utilizing material information and geometric information, the system performs fine smoothing processing on the boundary regions between the sorted and aligned logical blocks, so that the rendering results of each block can be naturally fused, and the splicing gap is almost invisible, thereby significantly improving the overall quality of the final rendered image.

[0171] 220、Combine the rendering results of each smoothed logical block to obtain the complete rendering result of the block model.

[0172] After completing the smoothing processing of all logical blocks, the system combines the rendering results of these blocks to generate a complete rendered image of the block model. This process requires the system to combine the pixel data of each block in the correct order and position, and to handle possible transparency, shadow and light interaction issues.

[0173] The system first determines the synthesis order of the logical blocks according to their depth information and occlusion relationship. Then it processes the light interaction and shadow effect between the blocks. Finally, the system performs final optimization and post-processing on the synthesized image. This includes adjusting the overall brightness, contrast and color balance, applying depth-of-field effects to highlight the focal area, adding ambient light shading to enhance the sense of depth of the scene, etc. A seamless, realistic and highly visually appealing block model image is presented, accurately reflecting the structure, material and lighting effects of the original model.

[0174] By adopting the scheme in the above embodiments of the present application, the material and three-dimensional information is first parsed from the model file, the logical blocks are divided based on key structural features to reduce processing complexity, the virtual camera array and dynamic parameters are used to accurately collect geometric information, a virtual light source matrix is generated in combination with material characteristics to ensure rendering realism, the primary and secondary viewing angles are used to determine the priority of the blocks for multi-resolution rendering, resources are focused on key areas to reduce redundant calculations. At the same time, through fine operations such as material mapping and dynamic adjustment, boundary smoothing, etc., the material realism and visual coherence are improved; finally, projection, sorting and alignment, and synthesis are performed to optimize light interaction and overall effect. This scheme enables intelligent allocation of computing resources, allowing more complex models to be processed under the same hardware, and compared with traditional methods, the rendering efficiency is improved and the image detail retention is significantly enhanced, achieving dual improvement of rendering efficiency and quality.

[0175] The method provided by the above embodiments can be executed by the automatic rendering system of the building block model, which is composed of an electronic device. The electronic device in the embodiments of the present application is described from the perspective of hardware processing. Please refer to Figure 3 FIG. 65 is a schematic diagram of an entity device structure of the automatic rendering system of the building block model in the embodiments of the present application.

[0176] It should be noted that Figure 3 The structure of the automatic rendering system of the building block model shown is only an example, and should not bring any limitation to the functions and use range of the embodiments of the present application.

[0177] As Figure 3 shown, the electronic device includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes, such as executing the method described in the above embodiments, according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage portion 308 into a random access memory (RAM) 303. Various programs and data required for system operation are also stored in the random access memory (RAM) 303. The central processing unit (CPU) 301, the read-only memory (ROM) 302, and the random access memory (RAM) 303 are connected to each other through a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0178] The following components are connected to the input / output (I / O) interface 305: an input portion 306 including an audio input device, a button switch, and the like; an output portion 307 including a display and an audio output device, an indicator, and the like; a storage portion 308 including a hard disk and the like; and a communication portion 309 including a network interface card such as a LAN (Local Area Network) card, a modem, and the like. The communication portion 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the input / output (I / O) interface 305 as necessary. A removable medium 311 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, and the like is mounted on the drive 310 as necessary, so that a computer program read therefrom is installed in the storage portion 308 as necessary.

[0179] In particular, according to embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program comprising computer instructions for performing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication section 309, and / or installed from the removable medium 311. When the computer program is executed by the central processing unit (CPU) 301, various functions defined in the present application are performed.

[0180] Note that specific examples of the computer readable storage medium can include one or more of the following: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, the computer readable storage medium can be any tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.

[0181] The flowcharts and block diagrams in the attached drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowcharts or block diagrams can represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks can sometimes be executed in the reverse order, depending upon the functionality involved.

[0182] In particular, the electronic device of the present embodiment includes a processor and a memory, the memory coupled with the one or more processors, the memory configured to store computer program code comprising computer instructions that, when invoked by the one or more processors, cause the electronic device to perform the method provided by the above-described embodiments.

[0183] As another aspect, the present application also provides a computer readable storage medium, which can be included in the electronic device described in the above embodiments, or can exist separately without being assembled into the electronic device. The storage medium carries one or more computer programs, which, when executed by a processor of the electronic device, cause the electronic device to implement the method provided in the above embodiments.

[0184] The above described and above embodiments are merely used to illustrate the technical solutions of the present application, but not to limit the present application; even though the present application has been described in detail with reference to the foregoing embodiments, those ordinarily skilled in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement to part of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0185] In the above embodiments, according to the context, the term "when" can be interpreted as meaning "if" or "after" or "in response to determining" or "in response to detecting". Similarly, according to the context, the phrase "upon determining" or "if detecting (the stated condition or event)" can be interpreted as meaning "if determining" or "in response to determining" or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)".

[0186] Those ordinarily skilled in the art can understand that all or part of the processes in the above method embodiments can be instructed by a computer program to relevant hardware to complete, and the program can be stored in a computer readable storage medium, and when the program is executed, the processes of the above method embodiments can be included. The foregoing storage medium includes: ROM or random storage memory RAM, magnetic disc or optical disc and various program code storage media.

Claims

1. A method for automated rendering of a building block model, characterized by, The method comprises the following steps: parsing a building block model file to obtain material information and three-dimensional model information of the building block model; dividing the building block model into a plurality of logical blocks according to the three-dimensional model information, wherein each logical block corresponds to an independent area or structural unit of the building block model; generating a virtual camera array of the logical blocks based on the three-dimensional model information, wherein the virtual camera array is used to capture geometric information of the logical blocks from multiple perspectives; generating a virtual light source matrix based on the material information and the three-dimensional model information, in combination with the virtual camera array, wherein the virtual light source matrix is composed of a plurality of virtual light sources; performing multi-resolution rendering on the logical blocks according to their priorities, wherein the priorities are determined according to the current perspective area; splicing the rendering results of the logical blocks to obtain a complete rendering result of the building block model; the step of dividing the building block model into a plurality of logical blocks according to the three-dimensional model information specifically comprises the following steps: extracting key structural features of the building block model based on the three-dimensional model information, wherein the key structural features include size, connection relationship and part dense area; dividing the building block model into a plurality of logical blocks according to the key structural features, wherein each logical block corresponds to an independent area or structural unit in the building block model; the step of performing multi-resolution rendering on the logical blocks according to their priorities specifically comprises the following steps: determining the priorities of the logical blocks through a primary perspective area and a secondary perspective area, wherein the primary perspective area and the secondary perspective area are used to express the display importance of the logical blocks in the current perspective, the primary perspective area has a high priority, and the secondary perspective area has a low priority; rendering the logical blocks with high priority into high resolution in combination with the geometric information; rendering the logical blocks with low priority into medium-low resolution to reduce resource occupation.

2. The method of claim 1, wherein, after the step of generating the virtual camera array of the logical blocks based on the three-dimensional model information, the method further comprises the following steps: dynamically adjusting camera parameters of the virtual camera array based on the three-dimensional model information of the logical blocks, wherein the camera parameters include focal point position, perspective range and camera angle; setting the virtual camera array according to the camera parameters; capturing the geometric information of the logical blocks through the virtual camera array, wherein the geometric information includes edge, curved surface and joint gap detail features, and refraction and reflection characteristics of high reflection material and transparent material area.

3. The method of claim 1, wherein, after the step of generating the virtual light source matrix based on the material information and the three-dimensional model information in combination with the virtual camera array, the method further comprises the following steps: dynamically adjusting light source parameters of the virtual light source matrix based on the geometric information and the material information, wherein the light source parameters include intensity, direction and color of each virtual light source; setting the virtual light source matrix according to the light source parameters, so that the virtual light source matrix can simulate the influence of the real lighting environment on the logical blocks; The virtual light source matrix provides simulated light for the logical blocks, which is used to drive a rendering process of the logical blocks.

4. The method of claim 1, wherein, After the multi-resolution rendering of the logical blocks based on the priorities of the logical blocks, the method further comprises: According to the material information, material mapping is performed on the logical blocks to obtain a material mapping result; The material mapping result is dynamically adjusted according to the geometric information; The adjusted material mapping result is rendered to obtain a material rendering result; The material rendering result is combined with the multi-resolution rendering result to obtain a rendering result of the logical blocks.

5. The method of claim 1, wherein, The rendering results of the logical blocks are spliced to obtain a complete rendering result of the building block model, specifically comprising: Based on the model three-dimensional information of the building block model, the relative positions and orientations of the logical blocks in a current perspective region of the building block model are determined; According to the current perspective region, the rendering results of the logical blocks are projected into a common two-dimensional image plane or three-dimensional view space; In the common two-dimensional image plane or three-dimensional view space, the rendering results of the logical blocks are sorted and aligned according to the relative positions of the logical blocks and the geometric information; Based on the material information and the geometric information, the boundary regions between the sorted and aligned logical blocks are smoothed to fuse the rendering results of the logical blocks and reduce the visibility of the splicing gaps; The rendering results of the smoothed logical blocks are synthesized to finally obtain a complete rendering result of the building block model.

6. An automated rendering system, comprising: comprises one or more processors and a memory; The memory is coupled to the one or more processors, and the memory is configured to store computer program codes, the computer program codes comprising computer instructions, and the one or more processors are configured to invoke the computer instructions to enable the automated rendering system to perform the method of any one of claims 1-5.

7. A computer readable storage medium storing computer instructions, characterized in that, When the computer instructions are run on the automated rendering system, the automated rendering system is enabled to perform the method of any one of claims 1-5.

8. A computer program product, characterised in that, When the computer program product is run on the automated rendering system, the automated rendering system is enabled to perform the method of any one of claims 1-5.

Citation Information

Patent Citations

  • Fusion method for meta cosmic space and cloud rendering

    CN117611472A

  • BIM model plane cutting analysis method based on Cesium

    CN119720360A