Method, device, electronic device and storage medium for visualizing three-dimensional scene

By building a multi-precision three-dimensional model and a generative model library, combined with visual construction tools to configure scenes, the problems of low scene construction efficiency and high rendering cost in the visualization of 3D models in smart parks are solved, and efficient three-dimensional scene construction and rendering are achieved.

CN114092645BActive Publication Date: 2025-04-29CHINA CONSTRUCTION BANK
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111390001.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-22
Publication Date
2025-04-29
Estimated Expiration
2041-11-22

AI Technical Summary

Technical Problem

In the prior art, the visualization of smart park 3D models lacks an effective 3D scene building platform, resulting in low efficiency in scene model configuration, invisible process, slow feedback of results, and rendering consumes a lot of computing power and time.

Method used

By obtaining the material information of the target scene, multiple three-dimensional models corresponding to the real objects of the target scene are constructed. Each model has multiple accuracy levels, and a model library is generated. The three-dimensional model in the model library is called through visual construction tools, and the accuracy level of the model is configured according to the location of the target scene to generate a three-dimensional scene.

Benefits of technology

The visual construction of three-dimensional scenes is realized, the scene configuration efficiency is improved, the computing power and time consumed in rendering is reduced, and the productivity of the park is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114092645B_ABST
    Figure CN114092645B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, device, electronic device and readable storage medium for visually building a three-dimensional scene, which can be applied to the field of three-dimensional modeling technology, the financial field or other fields. The method includes: obtaining material information of a target scene, constructing multiple three-dimensional models corresponding to the physical object of the target scene based on the material information, each three-dimensional model has multiple accuracy levels; generating a model library based on the constructed multiple three-dimensional models; calling the three-dimensional model in the model library through a visual construction tool, and configuring the three-dimensional model according to the physical position of the target scene to generate a three-dimensional scene of the target scene, wherein when generating the three-dimensional scene of the target scene, the accuracy level of the three-dimensional model is configured according to the position of the three-dimensional model in the three-dimensional scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of three-dimensional modeling, and more specifically to a method, device, electronic device and readable storage medium for visually building a three-dimensional scene. Background Art

[0002] With the development of technologies such as the Internet of Things, big data, and AI, smart park management is constantly moving towards automation and intelligence. Smart park 3D visualization is based on the collected data of the smart park for global visualization of the park, and it has many advantages: it can quickly collect the big data of the building 3D model in the smart park itself, and express it in a simple and easy-to-understand visual modeling method, which can double the work efficiency and effectively improve the productivity of the park. However, the visualization of the 3D model of the smart park in the relevant technology is based on WebGL technology for rendering and display, lacking an effective 3D scene building platform for the rapid construction of the park 3D scene. In addition, the spatial coordinate point configuration of the scene model can only be performed through scripts. The problem of this method is that the configuration of the scene model is inefficient, the configuration process is not visible, the configuration results cannot be quickly fed back, the configuration adjustment process is slow, and after the configuration is completed, when the 3D scene of the smart park is formed, it is necessary to call the 3D rendering engine for visualization to verify the configuration result. The rendering process requires a lot of computing power and takes a long time. Summary of the invention

[0003] In view of the above problems, the present disclosure provides a method, device, electronic device and readable storage medium for visually constructing a three-dimensional scene, which can effectively solve the problems existing in the related technology that the visual configuration cannot be achieved, and the large amount of computing power and long rendering time are consumed when generating a three-dimensional scene.

[0004] According to a first aspect of the present disclosure, a method for visually building a three-dimensional scene is provided, comprising: acquiring material information of a target scene, constructing a plurality of three-dimensional models corresponding to a physical object of the target scene based on the material information, each of the three-dimensional models having a plurality of accuracy levels; generating a model library based on the constructed plurality of three-dimensional models; calling the three-dimensional models in the model library through a visual building tool, and configuring the three-dimensional models according to the physical position of the target scene, to generate a three-dimensional scene of the target scene, wherein, when generating the three-dimensional scene of the target scene, the accuracy level of the three-dimensional model is configured according to the position of the three-dimensional model in the three-dimensional scene.

[0005] In some embodiments of the present disclosure, the acquiring of material information of a target scene and constructing a plurality of three-dimensional models corresponding to the physical objects of the target scene based on the material information includes: constructing a coarse model based on the material information, the coarse model corresponding to the physical objects of the target scene; and refining the coarse model to generate a three-dimensional model with multiple levels of accuracy.

[0006] In some embodiments of the present disclosure, after constructing multiple three-dimensional models corresponding to the real objects of the target scene based on the material information, the visualization construction method also includes: creating a UV map according to different accuracy levels of the three-dimensional models, the size and coordinates of the UV map corresponding to the accuracy level of the three-dimensional model; performing lighting effect processing on the UV map to obtain multi-angle lighting effects of the UV map.

[0007] In some embodiments of the present disclosure, the performing lighting effect processing on the UV map to obtain multi-angle lighting effects of the UV map includes: surrounding the three-dimensional model, irradiating the three-dimensional model with material lights in sequence and evenly from N directions, the material lights having material lighting parameters; obtaining the original lighting effect map of the UV map corresponding to each of the N directions, generating a lighting effect map library, the original lighting effect map in each direction having a map lighting effect intensity; generating multi-angle lighting effects of the UV map according to the mapping relationship between the material lighting parameters and the lighting effect intensity.

[0008] In some embodiments of the present disclosure, the material lighting parameters include at least one of a preset lighting direction, a preset lighting position, a preset lighting quantity, and a preset lighting intensity.

[0009] In some embodiments of the present disclosure, calling the three-dimensional model in the model library through a visualization building tool, and configuring the three-dimensional model according to the physical position of the target scene to generate a three-dimensional scene of the target scene includes: calling the three-dimensional model with the lowest accuracy level through a visualization building tool; obtaining the scene lighting preset parameters and observation points in the visualization building tool; adjusting the accuracy level and the original light effect map of the three-dimensional model based on the scene lighting preset parameters, and generating a three-dimensional scene of the target scene.

[0010] In some embodiments of the present disclosure, the scene light preset parameters include at least one of scene light direction, scene light position, scene light quantity and scene light intensity.

[0011] In some embodiments of the present disclosure, adjusting the accuracy level of the three-dimensional model and the original light map based on the scene lighting preset parameters and generating a three-dimensional scene of the target scene includes: obtaining the distance between each three-dimensional model and the observation point, adjusting the accuracy level of the three-dimensional model according to the distance, and the accuracy level of the three-dimensional model decreases as the distance increases; obtaining the scene lighting preset parameters, calling the light map of the three-dimensional model in the light map library, and processing to generate a final light map, wherein the material lighting parameters of the original light map correspond to the scene lighting preset parameters; fusing the final light map with the three-dimensional model after adjusting the accuracy level to generate a three-dimensional scene of the target scene.

[0012] In some embodiments of the present disclosure, obtaining the scene lighting preset parameters, calling the light map of the three-dimensional model in the light map library, and processing to generate the final light map include: obtaining the scene lighting direction and the number of scene lights for each of the three-dimensional models in the visualization building tool; calling the original light map in the light map library with the preset lighting direction corresponding to the scene lighting direction; processing the original light map according to the scene lighting direction and the number of scene lights to generate the final light map.

[0013] In some embodiments of the present disclosure, the processing of the original light map according to the scene light direction and the number of scene lights to generate a final light map includes: calculating the weight of the original light map according to the angle between the preset light direction in the light map library and the scene light direction; and generating a final light map for the scene light direction according to the weight calculation of the original light maps for different preset light directions.

[0014] In some embodiments of the present disclosure, the material information includes at least one of the shape, size, appearance color, material, and texture information of the physical object in the target scene.

[0015] In some embodiments of the present disclosure, after constructing multiple three-dimensional models corresponding to the physical objects of the target scene based on the material information, the visualization construction method also includes generating a preview icon for each of the three-dimensional models, and the preview icon has a mapping relationship with the three-dimensional model.

[0016] According to a second aspect of an embodiment of the present disclosure, a visual construction device for a three-dimensional scene is provided, comprising: a model construction module, configured to obtain material information of a target scene, and construct a plurality of three-dimensional models corresponding to a physical object of the target scene based on the material information, each of the three-dimensional models having a plurality of accuracy levels; a model library construction module, configured to form a model library based on the constructed plurality of three-dimensional models; and a three-dimensional scene construction module, configured to call the three-dimensional models in the model library through a visual construction tool, and configure the three-dimensional models according to the physical position of the target scene, to generate a three-dimensional scene of the target scene, wherein, when generating the three-dimensional scene of the target scene, the accuracy level of the three-dimensional model is configured according to the position of the three-dimensional model in the three-dimensional scene.

[0017] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: one or more processors; a storage device for storing executable instructions, wherein when the executable instructions are executed by the processor, the visualization construction method described above is implemented.

[0018] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which executable instructions are stored. When the instructions are executed by a processor, the visualization construction method described above is implemented.

[0019] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the visual construction method described above is implemented.

[0020] According to the embodiments of the present disclosure, during the three-dimensional scene construction process, multiple accuracy levels of the three-dimensional model are set, and during the visualization construction process, the accuracy level of the three-dimensional model is configured according to the position of the three-dimensional model in the three-dimensional scene. On the one hand, the visualization construction of the three-dimensional scene is achieved, and on the other hand, the problem of long rendering time caused by the need to perform rendering to generate the three-dimensional scene can be effectively solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0022] Figure 1 A schematic diagram schematically shows a system architecture to which the visual construction method of the embodiment of the present disclosure can be applied;

[0023] Figure 2 A flowchart of a visualization construction method according to an embodiment of the present disclosure is schematically shown;

[0024] Figure 3A flowchart of generating three-dimensional models at multiple accuracy levels according to a visualization construction method according to an embodiment of the present disclosure is schematically shown;

[0025] Figure 4a A flowchart of the visualization construction method according to an embodiment of the present disclosure after multiple three-dimensional models are constructed is schematically shown;

[0026] Figure 4b A schematic diagram of performing light effect processing on a UV map according to a visualization construction method according to an embodiment of the present disclosure is schematically shown;

[0027] Figure 4c A flowchart of performing light effect processing on a UV map in a visualization construction method according to an embodiment of the present disclosure is schematically shown;

[0028] Figure 5 The specific flow chart of the visualization construction method in operation S230 according to an embodiment of the present disclosure is schematically shown;

[0029] Figure 6a A specific flow chart of generating a three-dimensional scene of a target scene by a visualization construction method according to an embodiment of the present disclosure is schematically shown;

[0030] Figure 6b A schematic diagram schematically shows a method for obtaining a distance from a three-dimensional model to an observation point according to a visualization construction method according to an embodiment of the present disclosure;

[0031] Figures 7a to 7c A schematic diagram schematically shows a three-dimensional scene generated by the visualization construction method according to an embodiment of the present disclosure;

[0032] Figure 8 The structure block diagram of the visualization construction device according to the embodiment of the present disclosure is schematically shown;

[0033] Fig. 9 A block diagram of an electronic device suitable for implementing a method for visually constructing a three-dimensional scene according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0034] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0035] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0036] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0037] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0038] In the embodiments of the present disclosure, the term "UV map" refers to a planar representation of a 3D model surface for easy wrapping of textures, U and V refer to the horizontal and vertical axes of 2D space, as X, Y, and Z are used in 3D space. The process of creating a UV map is called UV unwrapping, and the UV map is a 2D image wrapped around each surface of a 3D model.

[0039] An embodiment of the present disclosure provides a method for visually building a three-dimensional scene, the method comprising: acquiring material information of a target scene, constructing multiple three-dimensional models corresponding to the physical objects of the target scene based on the material information, each three-dimensional model having multiple accuracy levels; generating a model library based on the constructed multiple three-dimensional models; calling the three-dimensional models in the model library through a visual building tool, and configuring the three-dimensional models according to the physical positions of the target scene to generate a three-dimensional scene of the target scene, wherein, when generating the three-dimensional scene of the target scene, the accuracy level of the three-dimensional model is configured according to the position of the three-dimensional model in the three-dimensional scene.

[0040] According to the embodiments of the present disclosure, during the three-dimensional scene construction process, multiple accuracy levels of the three-dimensional model are set, and during the visualization construction process, the accuracy level of the three-dimensional model is configured according to the position of the three-dimensional model in the three-dimensional scene. On the one hand, the visualization construction of the three-dimensional scene is achieved, and on the other hand, the problem of long rendering time caused by the need to perform rendering to generate the three-dimensional scene can be effectively solved.

[0041] Figure 1 The following is a schematic diagram showing a system architecture to which the method for visually constructing a three-dimensional scene according to an embodiment of the present disclosure can be applied. Figure 1 What is shown is only an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios. It should be noted that the visualization construction method and visualization construction device of the three-dimensional scene provided by the embodiments of the present disclosure can be used in the field of three-dimensional modeling technology and related aspects of the financial field, and can also be used in any field other than the financial field. The visualization construction method and visualization construction device of the three-dimensional scene provided by the embodiments of the present disclosure do not limit the application field.

[0042] like Figure 1 As shown, an exemplary system architecture 100 to which the visualization construction method of a three-dimensional scene can be applied may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0043] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as 3D modeling clients, remote control client applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

[0044] The terminal devices 101, 102, 103 may be various electronic devices having display screens and supporting functions such as three-dimensional modeling, web browsing, and remote control, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0045] The server 105 may be a server that provides various services, such as a background management server (for example only) that provides support for information or text input by users using terminal devices 101, 102, and 103. The background management server may analyze the text or information received from the user, and feed back the processing result (for example, whether the information input by the user is correct, etc.) to the terminal device. For another example, a control center server that executes remote control instructions sent by terminal devices 101, 102, and 103 may process the control instructions received from the user to achieve remote control of other devices or apparatuses.

[0046] It should be noted that the visualization construction method of the three-dimensional scene provided in the embodiment of the present disclosure can generally be performed by the terminal device 101, 102, 103 or the server 105. Accordingly, the visualization construction device of the three-dimensional scene provided in the embodiment of the present disclosure can generally be set in the terminal device 101, 102, 103 or the server 105. The visualization construction method of the three-dimensional scene provided in the embodiment of the present disclosure can also be performed by a server or server cluster that is different from the server 105 and can communicate with the terminal device 101, 102, 103 and / or the server 105. Accordingly, the visualization construction device of the three-dimensional scene provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal device 101, 102, 103 and / or the server 105.

[0047] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0048] The following will be passed Figures 2 to 7c A method for visually constructing a three-dimensional scene in a disclosed embodiment is described in detail.

[0049] Figure 2 The flowchart of the visualization construction method according to the embodiment of the present disclosure is schematically shown. Figure 2 As described above, the visualization construction method 200 of the three-dimensional scene according to the embodiment of the present disclosure includes operations S210 to S230.

[0050] In operation S210, material information of a target scene is acquired, and a plurality of three-dimensional models corresponding to physical objects of the target scene are constructed based on the material information, each of the three-dimensional models having a plurality of accuracy levels.

[0051] In the embodiments of the present disclosure, the target scene is the actual area where a three-dimensional scene needs to be generated. In the target scene, there are various infrastructures, such as buildings, power facilities, roads, lighting devices, monitoring devices, communication devices, etc. When generating the three-dimensional scene of the target scene, it is necessary to first model the various infrastructures in the target scene to ensure that the generated three-dimensional scene has a high degree of similarity with the actual scene.

[0052] The material information of the target scene includes at least one of the shape, size, appearance color, material, and texture information of the physical object in the target scene. For example, if there is a high-rise building in the target scene, the shape, size, appearance, and material texture information of the high-rise building can be obtained, and a three-dimensional model of the high-rise building can be generated based on the collected and obtained material information. The three-dimensional model is proportional to the actual high-rise building and has the same or highly similar appearance structure. In an embodiment of the present disclosure, a three-dimensional model is constructed for the physical object in the target scene, and each physical object corresponds to a three-dimensional model. For example, if there are 5 different buildings in the target scene, 5 three-dimensional models are formed for these 5 buildings. For another example, the target scene also includes an electric power facility and several lighting devices. If the several lighting devices are the same, a three-dimensional model of the electric power facility can be constructed, and a three-dimensional model of the lighting device can be constructed. In an embodiment of the present disclosure, the acquisition of material information can be manually acquired or extracted from an existing database. In addition, the material information can also include other content to ensure the true display effect of the formed three-dimensional model.

[0053] In the embodiments of the present disclosure, each 3D model has multiple accuracy levels. For example, the constructed 3D model of a certain high-rise building has 5 accuracy levels, namely L0, L1, L2, L3, and L4. Among them, L0 has the lowest accuracy and is the default accuracy. The model under this accuracy is relatively simple and has fewer details; L4 has the highest accuracy, the most complex model, the most details, and is closest to the real object.

[0054] In an embodiment of the present disclosure, after constructing multiple three-dimensional models corresponding to the physical objects of the target scene based on the material information, the visualization construction method further includes generating a preview icon for each three-dimensional model, and the preview icon has a mapping relationship with the three-dimensional model. When generating the three-dimensional scene described later, the three-dimensional model corresponding to the preview icon can be called by dragging or clicking to select the preview icon, so as to realize quick calling.

[0055] In operation S220, a model library is generated based on the constructed plurality of three-dimensional models.

[0056] In the embodiments of the present disclosure, multiple three-dimensional models are constructed based on the physical objects in the target scene. If there are multiple identical physical objects in the target scene, a three-dimensional model can be constructed for the identical physical objects. If the physical objects are different, a three-dimensional model is constructed for each physical object, and each three-dimensional model has multiple levels of accuracy. By generating a model library, the three-dimensional models corresponding to all the physical objects in the target scene are placed in the model library, which facilitates the calling of the three-dimensional model in the subsequent process of generating the three-dimensional scene.

[0057] In the embodiments of the present disclosure, different model libraries can be constructed according to different target scenes. When generating a three-dimensional scene, the three-dimensional model in the target scene can be obtained more quickly, thereby further improving the efficiency of generating the three-dimensional scene.

[0058] In operation S230, a three-dimensional model in a model library is called through a visualization building tool, and the three-dimensional model is configured according to the physical position of the target scene to generate a three-dimensional scene of the target scene. When generating the three-dimensional scene of the target scene, the accuracy level of the three-dimensional model is configured according to the position of the three-dimensional model in the three-dimensional scene.

[0059] In the embodiments of the present disclosure, a three-dimensional model in a model library is called through a visual construction tool to perform a visual construction of a three-dimensional scene. The construction process of the three-dimensional scene can be intuitively observed. Compared with the related art, the spatial coordinate point configuration of the scene model is intelligently performed through a script, which has a more intuitive and vivid effect.

[0060] When constructing a three-dimensional model, each three-dimensional model has a different level of accuracy. The highest level of accuracy has a display effect close to the real object, and the generated three-dimensional scene is more realistic. However, if all three-dimensional models with the highest accuracy level are called when generating a three-dimensional scene, on the one hand, the amount of data transmission will increase and the generation speed will be reduced. On the other hand, different positions in the three-dimensional scene require different accuracy levels for the three-dimensional model. Therefore, when generating a three-dimensional scene of a target scene, the embodiment of the present disclosure configures the accuracy level of the three-dimensional model according to the position of the three-dimensional model in the three-dimensional scene. For example, a three-dimensional model at a position relatively close to the observation point adopts a higher level of accuracy, while a three-dimensional model at a position relatively far from the observation point adopts a lower level of accuracy, so that the three-dimensional scene can be generated faster without affecting the real display effect of the three-dimensional scene.

[0061] Figure 3 The flowchart of generating three-dimensional models at multiple accuracy levels according to the visual construction method of an embodiment of the present disclosure is schematically shown.

[0062] like Figure 3 As shown, the process 300 of acquiring material information of a target scene and constructing a plurality of three-dimensional models corresponding to physical objects of the target scene based on the material information includes operations S310 to S320.

[0063] In operation S310, a rough model is constructed based on material information, and the rough model corresponds to a physical object of a target scene.

[0064] In the embodiment of the present disclosure, a rough model corresponding to the physical object of the target scene is first constructed based on the material information, which can improve the speed of model construction, and the computing power required to construct the rough model is smaller, which saves more computing power. In addition, constructing the rough model paves the way for subsequent refined processing.

[0065] In operation S320, the rough model is refined to generate a three-dimensional model with multiple accuracy levels.

[0066] In an embodiment of the present disclosure, the rough model is refined, and the refinement may be, for example, obtaining a more detailed texture or obtaining a map with a higher resolution.

[0067] 3D models of multiple precision levels have the same preview icon. When calling the same 3D model, the 3D model with the lowest precision level is called first to improve efficiency.

[0068] Figure 4a The flowchart of the visualization construction method according to the embodiment of the present disclosure after constructing multiple three-dimensional models is schematically shown. Figure 4b The schematic diagram schematically shows the light effect processing of the UV map according to the visualization construction method of the embodiment of the present disclosure. Figure 4c The flowchart of the visual construction method according to the embodiment of the present disclosure in performing light effect processing on the UV map is schematically shown.

[0069] In the embodiments of the present disclosure, Figure 4a As shown, after constructing multiple three-dimensional models corresponding to the physical objects of the target scene based on the material information, the process 400 further includes operations S410 to S420.

[0070] In operation S410, a UV map is created according to different precision levels of the three-dimensional model, and the size and coordinates of the UV map correspond to the precision level of the three-dimensional model.

[0071] For example, the 3D models corresponding to the same physical object have multiple precision levels, and it is necessary to create a UV map according to each precision level. That is, the UV map coordinates of the 3D models of each precision level are expanded so that each 3D model of each precision level has the UV map size and coordinates corresponding to the precision level. When calling a 3D model, different UV maps and coordinates are called according to the different precision levels of the called 3D model to meet the precision level requirements of the 3D models at different locations.

[0072] In operation S420, light effect processing is performed on the UV map to obtain multi-angle light effects of the UV map.

[0073] In a three-dimensional scene, the display effect of the three-dimensional model is determined by the texture and lighting effects (including lighting and shadow effects). When forming a three-dimensional scene, real-time lighting effect rendering requires a lot of computer hardware resources. In the embodiments of the present disclosure, in order to avoid wasting lighting effect resources, the model UV texture can be processed with lighting effects to improve the realism of the display effect of the three-dimensional model in the three-dimensional scene.

[0074] like Figure 4b and 4c As shown, the specific operation process of operation S420 includes operation S421 to operation S423.

[0075] In operation S421, material lights are uniformly illuminated on the three-dimensional model from N directions in sequence around the three-dimensional model, where the material lights have material light parameters.

[0076] like Figure 4b As shown, the three-dimensional model is illuminated in different directions around the three-dimensional model, and the material light is used for illumination, and the material light has material light parameters.

[0077] In an embodiment of the present disclosure, the material light parameter includes at least one of a preset light direction, a preset light position, a preset light quantity, and a preset light intensity. For example, if the light direction of the material light parameter is different, the light effect map of the UV map obtained is also different.

[0078] According to different material lighting parameters, the light is diffusely reflected or reflected on the surface of the UV map, thereby having different light effects. In the related art, the UV map of the model is generally processed once for light effects, and the light effects are only processed from a specific angle. Due to the single angle, it does not conform to the actual situation in most cases, resulting in unrealistic display effects of the actual three-dimensional model, affecting the display. In an embodiment of the present disclosure, the three-dimensional model is illuminated in different directions around the three-dimensional model, and the light effect map of the UV map in different directions can be obtained. Therefore, in the process of forming a three-dimensional scene, the light effect map at different angles can be called according to the actual light intensity in the three-dimensional scene, so that the display effect is more realistic. In this embodiment, the angle difference between two adjacent directions in N directions is 360 / N degrees. For example, if N is 8, the angle between the two adjacent directions is 45 degrees, and the three-dimensional model is evenly illuminated from 8 directions of the three-dimensional model. In other embodiments of the present disclosure, in order to improve the authenticity of the display effect, N can take a larger value, or, in the case of taking into account the construction speed and display effect of the three-dimensional scene, the value of N is appropriately reduced.

[0079] In operation S422, an original light effect map of a UV map corresponding to each direction in N directions is obtained to generate a light effect map library, wherein the original light effect map in each direction has a map light effect intensity.

[0080] In the embodiments of the present disclosure, after the material light is irradiated, the UV map corresponding to each direction has a different original light effect map, and the original light effect maps in N directions and the sound field light effect map library are obtained. In the subsequent three-dimensional scene generation process, the original light effect maps in different directions can be called to generate a three-dimensional scene, thereby improving the realism of the display effect. The original light effect map formed in each direction has a map light effect intensity, and each original light effect map has a mapping relationship with the map light effect intensity. After obtaining the original light effect map at a specific angle, the map light effect intensity corresponding to the original light effect map can be obtained at the same time.

[0081] In operation S423, a multi-angle lighting effect of a UV map is generated according to a mapping relationship between the material lighting parameter and the lighting effect intensity.

[0082] Adjustment of the material lighting parameters can change the intensity of the light effect. According to the mapping relationship between different material lighting parameters and light effect intensity, a multi-angle light effect of a UV map is generated, which is convenient for calling in the process of the sound field three-dimensional scene. For example, a multi-angle light effect of a UV map is generated according to the mapping relationship between the light intensity and the light effect intensity of the map. In the embodiments of the present disclosure, the material lighting parameters can be one or more.

[0083] Figure 5 The specific flow chart of the visualization construction method in operation S230 according to an embodiment of the present disclosure is schematically shown.

[0084] like Figure 5 As shown, the specific process of operation S230 may include operation S231 to operation S233.

[0085] In operation S231 , a three-dimensional model with the lowest accuracy level is called through a visual construction tool.

[0086] In an embodiment of the present disclosure, a three-dimensional scene of a target scene is built by a visual building tool. The front end of the visual building tool is configured with a model library preview panel, a model attribute panel, a scene attribute panel, and a scene operation panel. In the model library preview panel of the visual building tool, a preview icon of a three-dimensional model in the model library is loaded to display the model content in the model library in a visual manner. Through visual operations, the editing operation of the three-dimensional scene is facilitated. In the process of building a three-dimensional scene, by loading the preview icon in the model library, the three-dimensional model corresponding to the preview icon can be called. In the process of calling the three-dimensional model, the model with the lowest accuracy level of the three-dimensional model is first called, that is, the L0 level accuracy mentioned above, which can maximize the saving of computer hardware resources to improve the building efficiency.

[0087] In operation S232, scene lighting preset parameters and observation points in the visualization building tool are obtained.

[0088] In the embodiment of the present disclosure, the scene light preset parameters include at least one of the scene light direction, the scene light position, the scene light quantity and the scene light intensity. In the process of generating a three-dimensional scene, the user can adjust the scene light preset parameters according to actual needs. In addition, by obtaining the position of the observation point, a three-dimensional scene for different observation points can be generated.

[0089] In operation S233, the accuracy level of the three-dimensional model and the original light effect map are adjusted based on the scene light preset parameters, and a three-dimensional scene of the target scene is generated.

[0090] A 3D scene preview function is provided in the visualization building tool. When the preview function is activated, the visualization building tool will adjust the accuracy level and the original light effect map of the 3D model based on the scene lighting preset parameters, and generate a 3D scene of the target scene.

[0091] Figure 6a The specific flow chart of the visualization construction method according to the embodiment of the present disclosure in generating a three-dimensional scene of the target scene is schematically shown. Figure 6b The diagram schematically shows a visualization construction method according to an embodiment of the present disclosure for obtaining the distance between a three-dimensional model and an observation point.

[0092] like Figure 6a As shown, the process 600 of generating a three-dimensional scene of a target scene by a visualization construction tool includes operations S610 to S630.

[0093] In operation S610, the distance between each three-dimensional model and the observation point is obtained, and the accuracy level of the three-dimensional model is adjusted according to the distance, and the accuracy level of the three-dimensional model decreases as the distance increases.

[0094] When forming a three-dimensional scene of a target scene, it is first necessary to obtain the position of the observation point, and generate the three-dimensional scene according to the position of the observation point. In the embodiment of the present disclosure, the accuracy level of the three-dimensional model is related to the distance between the three-dimensional model and the observation point. For example, Figure 6bAs shown, the three-dimensional model is called according to the position of the physical object in the target scene, and the three-dimensional models a, b, c, d, and e are called respectively. Among them, the distance between the three-dimensional models a, b, c, d, and e and the observation point M gradually increases, that is, the distance between the three-dimensional model a and the observation point M is the smallest, and the distance between the three-dimensional model e and the observation point M is the largest. The three-dimensional model closer to the observation point M adopts a high level of precision, so as to display more details, so that the three-dimensional model has a more realistic display effect in the generated three-dimensional scene. For the three-dimensional model far from the observation point M, since it is far from the observation point, it is not necessary to display too many details, so the precision level adopted is low. In the embodiment of the present disclosure, the precision level of the three-dimensional model decreases with the increase of the spacing. After the three-dimensional models of other precision levels are called, the three-dimensional model of the original default precision level (that is, the three-dimensional model with the lowest precision L0) is deleted (except for the unadjusted one).

[0095] According to the distance between the 3D model and the observation point, the accuracy level of the called 3D model can be referred to in Table 1 below:

[0096] Table 1

[0097] Serial number Model Name Distance to the observation point Model accuracy level 1 a D(a) L4 2 b D(b) L3 3 c D(c) L2 4 d D(d) L1 5 e D(e) L0

[0098] Among them, D(a)>D(b)>D(c)>D(d)>D(e), that is, model a is closest to the observation point and has the highest accuracy level, while model e is farthest from the observation point and has the lowest accuracy level.

[0099] According to the embodiments of the present disclosure, the accuracy level of the three-dimensional model is called by the distance between the three-dimensional model and the observation point, so as to ensure the display effect of the generated three-dimensional scene, and at the same time save computer hardware resources to the greatest extent and improve efficiency. In addition, the generated three-dimensional scene does not need to be rendered, which can avoid the problem of rendering consuming computing power and time.

[0100] In operation S620, scene lighting preset parameters are obtained, an original light map of the three-dimensional model in a light map library is called, and a final light map is generated by processing, wherein the material lighting parameters of the light map correspond to the scene lighting preset parameters.

[0101] In an embodiment of the present disclosure, a scene light preset parameter is obtained, and the scene light preset parameter may be one or more of the scene light direction, scene light position, scene light quantity, and scene light intensity. When generating the final light effect map, the original light effect map of the corresponding three-dimensional model in the light effect map library is called, and the final light effect map is generated according to the original light effect map corresponding to the scene light preset parameter.

[0102] Figures 7a to 7c A schematic diagram of generating a three-dimensional scene according to the visual construction method of an embodiment of the present disclosure is schematically shown.

[0103] In an embodiment of the present disclosure, the specific steps of operation S620 are as follows:

[0104] First, obtain the scene light direction and scene light quantity of each 3D model in the visualization building tool. Figure 7a As shown in the figure, in the process of building a 3D scene, it is necessary to set the light direction and the number of lights in the 3D scene. Taking 3D model b as an example, the number of corresponding scene lights is three, and the scene light directions are L1, L2, and L3 respectively.

[0105] After obtaining the scene light direction and the number of scene lights, next, call the original light effect map with the preset light direction corresponding to the scene light direction in the light effect map library. For example, the preset light direction in the light effect map library is not completely one-to-one corresponding to the scene light direction, and you can select the original light effect map with the preset light direction closest to the scene light direction. Figure 7b As shown, the original light effect maps corresponding to the preset light directions Ls1, Ls2, and Ls3 are found in the light effect map library, where the preset light directions Ls1, Ls2, and Ls3 are closest to the scene light directions L1, L2, and L3, respectively. At the same time, the angles θ(1), θ(2), and θ(3) between Ls1 and L1, Ls2 and L2, and Ls3 and L3 are calculated respectively.

[0106] Next, the original light map is processed based on the scene light direction and the number of scene lights to generate the final light map.

[0107] In the embodiment of the present disclosure, the original light map is processed according to the scene light direction and the number of scene lights, and the final light map is generated, which includes the following two processes: First, the weight of the light map is calculated according to the angle between the preset light direction in the light map library and the scene light direction. For example, the weight index of the material light parameter for the scene light hamster is calculated by the cosine function, such as W(1)=cos(θ(1)); W(2)=cos(θ(2)); W(3)=cos(θ(3)). Then the weight index is normalized to prevent overexposure, and the result is:

[0108] w(1)=W(1) / (W(1)+W(2)+W(3));

[0109] w(2)=W(2) / (W(1)+W(2)+W(3));

[0110] w(3)=W(3) / (W(1)+W(2)+W(3));

[0111] Next, the final light map of the scene light direction is generated based on the original light map weights of different preset light directions. Figure 7cAs shown, the original light effect map of different preset light directions is assigned pixel values. Specifically, the weight value corresponding to the original light effect map of the preset light direction is multiplied by the original light effect map to generate the final light effect map. The calculation formula is as follows:

[0112] [Final light map] = w(1) × [Original light map Figure 1 ]+w(2)×[Original light effect sticker Figure 2 ]+w(3)×[Original light effect sticker Figure 3 ]

[0113] The final light effect map generated has a map light effect intensity that is the same as or similar to that of the original light effect map, thereby making the display effect of the subsequently generated three-dimensional scene more realistic.

[0114] In operation S630, the final light effect map is merged with the three-dimensional model after the precision level is adjusted to generate a three-dimensional scene of the target scene.

[0115] According to the embodiments of the present disclosure, the accuracy level of the three-dimensional model is adjusted so that the three-dimensional model at a position closer to the observation point has more details. At the same time, the final light effect map is integrated with the three-dimensional model to form a three-dimensional scene with a more realistic display effect. The generated three-dimensional scene does not need to be rendered, which can save computer hardware resources and improve the generation efficiency of the three-dimensional scene.

[0116] In the embodiment of the present disclosure, the process of obtaining the material information of the target scene is as follows: First, the numerous assets and equipment of the target scene are uniformly sorted out to form a unified asset ledger, and each asset unit is uniquely numbered for subsequent modeling, warehousing and model calling. For example, if the park contains buildings A, B, and C, they are named Building_A#, Building_B#, and Building_C# respectively; the park contains power facilities a, b, and c, which are named Electric_a, Electric_b, Electric_c, etc., respectively, to form a unified asset ledger as shown in Table 2 below.

[0117] Table 2

[0118] Serial number Asset Unit serial number 1 Building A Building_A# 2 Building B Building_B# 3 Building C Building_C# 4 Power facilitiesa Electric_a 5 Power Implementation Electric_b 6 Power facilitiesc Electric_c …… …… ……

[0119] Next, based on the unified asset ledger, three-dimensional material information is collected for each asset unit, including size, appearance color, material, texture, etc. This information will be used to assist in the modeling of the three-dimensional model of the asset unit.

[0120] In the embodiment of the present disclosure, the process of forming a model library is as follows: a 3D model is built based on the unified asset account and the 3D information of each asset unit, and a preview image of the model is rendered. The 3D model and the preview image are mapped and managed, packaged and exported to the model library to form a model library of the target scene (for example, a smart park). The model library account is as shown in Table 3:

[0121] Table 3

[0122] Serial number Asset Unit serial number Model Preview 1 Building A Building_A# Building_A#.fbx Building_A#.png 2 Building B Building_B# Building_B#.fbx Building_B#.png 3 Building C Building_C# Building_C#.fbx Building_C#.png 4 Power facilitiesa Electric_a Electric_a.fbx Electric_a.png 5 Power Implementation E1ectric_b Electric_b.fbx E1ectric_b.png 6 Power facilitiesc Electric_c Electric_c.fbx Electric_c.png …… …… …… …… ……

[0123] In the subsequent process of generating a three-dimensional scene, the three-dimensional model in the model library can be called.

[0124] In the embodiments of the present disclosure, before performing visualization construction of a three-dimensional scene, a visualization construction tool needs to be developed.

[0125] The developed visualization building tool has functions including front-end panel function, model operation function, scene view operation function, model alignment function, model editing function, scene undo function, etc., to facilitate flexible operations in the visualization building process.

[0126] In the embodiment of the present disclosure, the front panel includes the model library preview panel, model property panel, scene property panel and scene operation panel functions of the front end of the visual construction tool. Among them, the model library preview panel is loaded with preview images of all models, and all asset units in the model library can be seen in the panel. When a preview image is dragged into the three-dimensional scene in the panel, the corresponding three-dimensional model will be called from the model library to enter the three-dimensional scene; the model property panel displays the properties of the currently selected model, including the spatial coordinates (tx, ty, tz) of the model, the spatial attitude angle (rx, ry, rz), and the scaling properties (sx, sy, sz); the scene property panel displays the properties of the current park scene, including all asset units in the scene; the scene operation panel includes the import and export functions of the scene.

[0127] In the embodiments of the present disclosure, the model operation function can operate the model, such as the model moving function, the model scaling function, and the model rotating function; when a model is selected, a model operator will appear in the center of the model, and the operator has multiple states. For example, when the command key (such as the W key) is pressed, the model can be moved; when the command key (such as the E key) is pressed, the model operator can be scaled; when the command key (such as the R key) is pressed, the model can be rotated.

[0128] In the embodiments of the present disclosure, the scene view operation function can view the scene at different angles, for example, including one or more of perspective view, top view, bottom view, front view, back view, right view, and left view. By inputting different commands to switch to different views, for example, when the P key is pressed, it switches to the perspective view; when the T key is pressed, it switches to the top view; when the Y key is pressed, it switches to the bottom view; when the F key is pressed, it switches to the front view; when the B key is pressed, it switches to the back view; when the K key is pressed, it switches to the right view; when the L key is pressed, it switches to the left view.

[0129] In an embodiment of the present disclosure, the model alignment function can be that the three-dimensional model implements different alignment methods according to different rules, for example, alignment along the center: aligning all models according to the center alignment method; alignment along the minimum x: aligning all models according to the alignment method with the smallest x coordinate; alignment along the maximum x: aligning all models according to the alignment method with the largest x coordinate; alignment along the minimum y: aligning all models according to the alignment method with the smallest y coordinate; alignment along the maximum y: aligning all models according to the alignment method with the largest y coordinate; alignment along the minimum z: aligning all models according to the alignment method with the smallest z coordinate; alignment along the maximum z: aligning all models according to the alignment method with the largest z coordinate.

[0130] In the embodiments of the present disclosure, the model editing function can realize the editing of the model, for example, the copy and delete functions, so that the model in the scene can be quickly added and deleted. When the Ctrl+C key combination is pressed, a copy of the currently selected model will be copied and a new id will be given to the copy model; when the Ctrl+D key combination is pressed, the currently selected model will be deleted.

[0131] In the embodiment of the present disclosure, the scene undo function can realize undoing some erroneous operations in the scene. For example, when the Ctrl+Z key combination is pressed, the previous operation is undoed.

[0132] In an embodiment of the present disclosure, a visualization building tool is used to build a three-dimensional scene of a target scene (such as a smart park), and the asset content in Table 3 is used as an example for explanation.

[0133] Drag building A from the model library preview panel to the park scene area, activate the model movement function, and place the model of building A according to the actual position of building A; drag building B from the model library preview panel to the park scene area, activate the model movement function, and place the model of building B according to the actual position of building B; drag building C from the model library preview panel to the park scene area, activate the model movement function, and place the model of building C according to the actual position of building C; drag device a from the model library preview panel to the park scene area, activate the model movement function, and place the model of device a according to the actual position of device a; drag device b from the model library preview panel to the park scene area, activate the model movement function, and place the model of device b according to the actual position of device b; drag device c from the model library preview panel to the park scene area, activate the model movement function, and place the model of device c according to the actual position of device c.

[0134] Then, the scene file of the target scene (such as a smart park) is exported from the visualization building tool. The file contains the configuration attribute information of all models. The file content in the above case is as follows: Get the configuration attribute information of model 1, which includes the model address, model name, model 3D model file, model image, model location, model posture and model range. For other models in the target scene, the configuration attribute information of other models can be obtained in the same way as the configuration attribute information of model 1. In the embodiment of the present disclosure, the model file can be, for example, a file in fbx format, and the model picture can be a picture in png format.

[0135] Next, load each model in the 3D scene one by one according to the various information of the 3D model, such as the accuracy level, UV map, final light effect map, etc., to generate a 3D scene. For example, load model_1: the model name is Building_A#, and the model in the 3D model library is Building_A#.fbx; the spatial coordinates of the model are {tx1, ty1, tz1}, the posture information is {rx1, ry1, rz1}, and the scaling information is {sx1, sy1, sz1}. Load model_2: the model name is Building_B#, and the model in the 3D model library is Building_B#.fbx; the spatial coordinates of the model are {tx2, ty2, tz2}, the posture information is {rx2, ry2, rz2}, and the scaling information is {sx2, sy2, sz2}. Load model_3: The model name is Building_C#, and the model in the 3D model library is Building_C#.fbx; the spatial coordinates of the model are {tx3, ty3, tz3}, the posture information is {rx3, ry3, rz3}, and the scaling information is {sx3, sy3, sz3}. Load model_4: The model name is Electric_a, and the model in the 3D model library is Electric_a.fbx; the spatial coordinates of the model are {tx4, ty4, tz4}, the posture information is {rx4, ry4, rz4}, and the scaling information is {sx4, sy4, sz4}. Load model_5: The model name is Electric_b, and the model in the 3D model library is Electric_b.fbx; the spatial coordinates of the model are {tx5, ty5, tz5}, the posture information is {rx5, ry5, rz5}, and the scaling information is {sx5, sy5, sz5}. Load model_6: The model name is Electric_c, and the model in the 3D model library is Electric_c.fbx; the spatial coordinates of the model are {tx6, ty6, tz6}, the posture information is {rx6, ry6, rz6}, and the scaling information is {sx6, sy6, sz6}. In addition, the accuracy information of each model and the final light effect map and other information must be loaded to complete the construction of the 3D scene.

[0136] According to the embodiments of the present disclosure, during the three-dimensional scene construction process, multiple accuracy levels of the three-dimensional model are set, and during the visualization construction process, the accuracy level of the three-dimensional model is configured according to the position of the three-dimensional model in the three-dimensional scene. On the one hand, the visualization construction of the three-dimensional scene is achieved, and on the other hand, the problem of long rendering time caused by the need to perform rendering to generate the three-dimensional scene can be effectively solved.

[0137] Figure 8The structural block diagram of the visualization construction device according to the embodiment of the present disclosure is schematically shown.

[0138] like Figure 8 As shown, the visualization construction device 800 of the embodiment of the present disclosure includes a model construction module 810 , a model library construction module 820 and a three-dimensional scene construction module 830 .

[0139] The model building module 810 is configured to obtain material information of the target scene, and to build multiple three-dimensional models corresponding to the physical objects of the target scene based on the material information, each of which has multiple accuracy levels. In one embodiment, the model building module 810 can be used to perform the operation S210 described above, which will not be repeated here.

[0140] The model library construction module 820 is configured to form a model library based on the constructed multiple three-dimensional models. In one embodiment, the model library construction module 820 can be used to perform the operation S220 described above, which will not be described in detail here.

[0141] The three-dimensional scene building module 830 is configured to call the three-dimensional model in the model library through the visual building tool, and configure the three-dimensional model according to the physical position of the target scene to generate the three-dimensional scene of the target scene, wherein when generating the three-dimensional scene of the target scene, the accuracy level of the three-dimensional model is configured according to the position of the three-dimensional model in the three-dimensional scene. In one embodiment, the three-dimensional scene building module 830 can be used to perform the operation S230 described above, which will not be repeated here.

[0142] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging circuits, or by any one of the three implementation methods of software, hardware, and the same parts, or by a suitable combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.

[0143] For example, any multiple modules in the model construction module 810, the model library construction module 820 and the three-dimensional scene construction module 830 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the model construction module 810, the model library construction module 820 and the three-dimensional scene construction module 830 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the model construction module 810, the model library construction module 820 and the three-dimensional scene construction module 830 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be executed.

[0144] Fig. 9 A block diagram of an electronic device suitable for implementing a method for visually constructing a three-dimensional scene according to an embodiment of the present disclosure is schematically shown. Fig. 9 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0145] like Fig. 9 As shown, the electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. The processor 901 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include an onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0146] In RAM 903, various programs and data required for the operation of electronic device 900 are stored. Processor 901, ROM 902 and RAM 903 are connected to each other via bus 904. Processor 901 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 902 and / or RAM 903. It should be noted that the program can also be stored in one or more memories other than ROM 902 and RAM 903. Processor 901 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0147] According to an embodiment of the present disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to the bus 904. The electronic device 900 may further include one or more of the following components connected to the I / O interface 905: an input portion 906 including a keyboard, a mouse, etc.; an output portion 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 908 including a hard disk, etc.; and a communication portion 909 including a network interface card such as a LAN card, a modem, etc. The communication portion 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage portion 908 as needed.

[0148] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiment; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the visualization construction method of the three-dimensional scene according to the embodiment of the present disclosure is implemented.

[0149] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus, or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 902 and / or RAM 903 described above and / or one or more memories other than ROM 902 and RAM 903.

[0150] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the visualization construction method of the three-dimensional scene provided by the embodiment of the present disclosure.

[0151] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 901. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0152] In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and downloaded and installed through the communication part 909, and / or installed from a removable medium 911. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0153] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the processor 901, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0154] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

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

[0156] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0157] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A method for visualizing a three-dimensional scene, comprising: Acquire material information of a target scene, and construct multiple three-dimensional models corresponding to physical objects of the target scene based on the material information, each of the three-dimensional models having multiple accuracy levels; Creating a UV map according to different precision levels of the three-dimensional model, wherein the size and coordinates of the UV map correspond to the precision level of the three-dimensional model; Performing light effect processing on the UV map to obtain multi-angle light effects of the UV map; Generate a model library based on the constructed multiple three-dimensional models; The three-dimensional model in the model library is called by a visual construction tool, and the three-dimensional model is configured according to the physical position of the target scene to generate a three-dimensional scene of the target scene. Wherein, when generating the three-dimensional scene of the target scene, the accuracy level of the three-dimensional model is configured according to the position of the three-dimensional model in the three-dimensional scene, The performing light effect processing on the UV map to obtain the multi-angle light effect of the UV map includes: Around the three-dimensional model, material lights are uniformly irradiated on the three-dimensional model from N directions in sequence, and the material lights have material light parameters; Obtaining an original light effect map of the UV map corresponding to each direction in N directions, and generating a light effect map library, wherein the original light effect map in each direction has a map light effect intensity; The multi-angle lighting effect of the UV map is generated according to the mapping relationship between the material lighting parameters and the map lighting effect intensity.

2. The visualization construction method according to claim 1, wherein: The step of acquiring material information of a target scene and constructing a plurality of three-dimensional models corresponding to the physical objects of the target scene based on the material information comprises: Building a rough model based on the material information, wherein the rough model corresponds to a physical object in the target scene; The rough model is refined to generate a three-dimensional model with multiple accuracy levels.

3. The visualization construction method according to claim 2, wherein: The material lighting parameter includes at least one of a preset lighting direction, a preset lighting position, a preset lighting quantity and a preset lighting intensity.

4. The visualization construction method according to claim 3, wherein: The step of calling the three-dimensional model in the model library through a visual construction tool and configuring the three-dimensional model according to the physical position of the target scene to generate a three-dimensional scene of the target scene includes: Calling the three-dimensional model with the lowest accuracy level through a visual construction tool; Obtaining scene lighting preset parameters and observation points in the visualization building tool; The accuracy level of the three-dimensional model and the original light effect map are adjusted based on the scene light preset parameters, and a three-dimensional scene of the target scene is generated.

5. The visualization construction method according to claim 4, wherein: The scene light preset parameters include at least one of scene light direction, scene light position, scene light quantity and scene light intensity.

6. The visualization construction method according to claim 5, wherein: The step of adjusting the accuracy level of the three-dimensional model and the original light effect map based on the scene light preset parameters and generating a three-dimensional scene of the target scene comprises: Acquire a distance between each of the three-dimensional models and the observation point, and adjust the accuracy level of the three-dimensional model according to the distance, wherein the accuracy level of the three-dimensional model decreases as the distance increases; Acquire the scene lighting preset parameters, call the original light effect map of the three-dimensional model in the light effect map library, and process to generate a final light effect map, wherein the material lighting parameters of the original light effect map correspond to the scene lighting preset parameters; The final light effect map is merged with the three-dimensional model after adjusting the accuracy level to generate a three-dimensional scene of the target scene.

7. The visualization construction method according to claim 6, wherein: The obtaining of the preset parameters of the scene lighting, calling the original light effect map of the three-dimensional model in the light effect map library, and processing to generate the final light effect map comprises: Obtain the scene light direction and the number of scene lights of each of the three-dimensional models in the visualization building tool; Calling an original light effect map in the light effect map library with a preset light direction corresponding to the light direction of the scene; The original light map is processed according to the scene light direction and the number of scene lights to generate a final light map.

8. The visualization construction method according to claim 7, wherein: The processing of the original light effect map according to the scene light direction and the number of scene lights to generate a final light effect map comprises: Calculating the weight of the original light map according to the angle between the preset light direction in the light map library and the scene light direction; The final light map of the scene light direction is generated based on the weight calculation of the original light map of different preset light directions.

9. According to any one of claims 1 to 8, the material information comprises at least one of the shape, size, appearance color, material, and texture information of the physical object in the target scene.

10. According to any one of claims 1 to 8, after constructing multiple three-dimensional models corresponding to the physical objects of the target scene based on the material information, the visualization building method also includes generating a preview icon for each of the three-dimensional models, and the preview icon has a mapping relationship with the three-dimensional model.

11. A three-dimensional scene visualization construction device, comprising: A model building module, configured to obtain material information of a target scene, and build a plurality of three-dimensional models corresponding to the physical objects of the target scene based on the material information, each of the three-dimensional models having a plurality of accuracy levels; A UV map creation module, used to create a UV map according to different precision levels of the three-dimensional model, wherein the size and coordinates of the UV map correspond to the precision level of the three-dimensional model; A light effect processing module, used for performing light effect processing on the UV map to obtain multi-angle light effects of the UV map; A model library construction module, configured to form a model library based on the constructed multiple three-dimensional models; The three-dimensional scene building module is configured to call the three-dimensional model in the model library through a visual building tool, and configure the three-dimensional model according to the physical position of the target scene to generate a three-dimensional scene of the target scene, wherein when generating the three-dimensional scene of the target scene, the accuracy level of the three-dimensional model is configured according to the position of the three-dimensional model in the three-dimensional scene, The lighting effect processing module is also used to illuminate the three-dimensional model with material lights uniformly from N directions in sequence around the three-dimensional model, and the material lights have material lighting parameters; obtain the original lighting effect map of the UV map corresponding to each of the N directions, and generate a lighting effect map library, and the original lighting effect map in each direction has a map lighting effect intensity; generate multi-angle lighting effects of the UV map according to the mapping relationship between the material lighting parameters and the map lighting effect intensity.

12. An electronic device comprising: one or more processors; A storage device is used to store executable instructions, and when the executable instructions are executed by the processor, the visualization construction method according to any one of claims 1 to 10 is implemented.

13. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, implements the visualization construction method according to any one of claims 1 to 10.

14. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the visual construction method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Community age-friendly improvement virtual scene fast building system and constructing method thereof

    CN106815791A

  • Building three-dimensional model processing method and device, computer equipment and storage medium

    CN112184880A

  • Building information model scene rendering method and device and computer equipment

    CN112632679A