Architectural rendering method based on real-time rendering technology
Through the self-developed graphics engine and global reflection algorithm, architectural rendering with low computer requirements and rapid iteration is realized, which solves the problems of high computer requirements and manual lighting settings in the existing technology, provides concrete and realistic architectural rendering effects, and reduces the cost of Technical threshold and time cost.
Patent Information
- Application Number
- CN202010660654.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-10
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-07-10
AI Technical Summary
The existing architectural rendering technology has problems such as high computer requirements for running, manual adjustment of natural light environment and reflection, high technical requirements for designers, long drawing time, and insufficient concreteness of the architectural image.
Adopting an architectural rendering method based on real-time rendering technology, self-developed underlying graphics engine, accelerating matrix and vector operations through the SIMD instruction set, using tree-like organizational structure and global reflection algorithm to automatically calculate scene lighting, simplifying material and sky parameter settings, and outputting multiple form of rendering results.
It achieves low computer requirements, rapid iteration, automatic lighting environment texture, reduces technical threshold and time cost, meets the needs of different users, and provides a fast, easy, good and economical drawing solution.
Smart Images

Figure CN111915710B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of building rendering, and in particular relates to a building rendering method based on real-time rendering technology. Background Art
[0002] At present, in the process of architectural rendering, the existing technology is secondary development based on the game rendering engine. This method has high requirements for the computer running, and the natural light environment and reflection need to be manually adjusted. It has high requirements for the designer's skills and it is difficult to achieve the best effect. In addition, the drawing time is slow, taking 1-2 hours, and the architectural image is not concrete enough. Summary of the invention
[0003] In view of the above technical problems, the present invention is used to provide a building rendering method based on real-time rendering technology to solve the problems raised in the above background technology.
[0004] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0005] A building rendering method based on real-time rendering technology, wherein the underlying graphics engine of the building rendering method based on real-time rendering technology is self-developed, comprises the following steps:
[0006] S1, import the existing model into the VR framework;
[0007] S2, set the production range and generate intelligent light environment;
[0008] S3, adjust material parameters and sky parameters;
[0009] S4, setting the effect diagram viewpoint, animation path and 720 diagram observation point;
[0010] S5, output materials include animation, VR experience, 3D projection, master plan, high-definition renderings and mobile QR codes.
[0011] Preferably, the graphics engine is based on Windows system, C++ and OpenGL.
[0012] Preferably, the graphics engine is optimized in speed by the following strategies:
[0013] A. All floating-point operations on matrices and vectors are accelerated using SIMD (SSE2 instruction set). The matrices and vectors themselves are constructed using SIMD memory layout, aligning each component to a 128-bit memory unit. A 128-bit address can combine 4 variables, and each variable stores the first address and position number of the memory it occupies.
[0014] B. Tree organization and optimization of scene nodes. The entire scene organization structure is as follows: Node nodes are tree structures. Node nodes can mount child Node nodes and model information (space points, triangles). The entire scene has a RootNode node. Each Node node also has its own local coordinate system space transformation (4*4 matrix).
[0015] The world coordinate position of the model midpoint = the world coordinate transformation of this Node * the position of the model midpoint (1)
[0016] The world coordinate transformation of this Node = the world coordinate transformation of the parent Node * the local coordinate transformation of this Node (2)
[0017] Since the world coordinate transformation of a single Node in formula (2) depends on the world coordinate transformation of its parent node, as long as we start from the RootNode, first calculate the world coordinate transformation of the low-level nodes, and then calculate the world coordinate transformation of the high-level nodes, we can ensure that each calculation will get the correct result, and the time complexity is n, where n is the total number of nodes. For the organization of the Node tree of complex scenes, all Nodes are sorted according to the Node Level, and then their respective world coordinate transformations are calculated in order of Level size. For Nodes at the same Level, multi-threading is performed to accelerate them.
[0018] Preferably, the intelligent light environment automatically calculates scene illumination, and the reflection algorithm used for automatically calculating scene illumination is a global reflection algorithm.
[0019] Preferably, the global reflection algorithm mainly adopts the following steps to achieve the simulation of global illumination:
[0020] S1, for the lighting of each pixel in the final rendering process, the following model is used:
[0021]
[0022] S2, use "light probe" to collect illumination information. From formula (3), we can know that the illumination intensity at a certain point in space should be integrated. In actual implementation, only the low-frequency variation part of illumination is considered. Formula (3) is transformed by Fourier transform and the low-frequency part is simulated in the form of 4th-order spherical harmonics to obtain formulas 4 to 7.
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029] Where L represents the order (values range from 0 to 3), and m represents the term (values range from -L to L);
[0030] S3, light probe data is generated by a static calculation. During real-time rendering, the 8 light probes closest to the pixel are taken, and then the distance between the pixel and the light probe in the x, y, and z directions is used as the weight value to multiply the 8 probe data respectively. The result is then multiplied by whether the light probe is visible to the pixel (0 or 1) to obtain the final lighting brightness value, and then the brightness value is divided by the sum of the weights to obtain the final lighting data of the point.
[0031] Preferably, each control point of the output animation includes parameters of camera viewing angle, sunlight, environment, and image adjustment, which are controlled separately.
[0032] Preferably, the mobile phone QR code refers to a centralized display portal for projects transmitted on a mobile terminal via a QR code, which includes four major contents: project introduction, animation, 720-degree panoramic view, and rendering.
[0033] Preferably, the mobile phone QR code includes a permanent QR code and a temporary QR code.
[0034] Preferably, once the permanent QR code related options are generated, the QR code itself will not change, that is, when the project is updated in the future, the QR code will not change, but the scanned content will be updated accordingly.
[0035] Preferably, the temporary QR code is valid for 0.5-48 hours, and the validity period is specified by the user when it is generated. Each temporary QR code generated is independent of each other and has no impact on each other. The temporary QR code cannot be modified after it is generated.
[0036] The invention has the following beneficial effects: the architectural rendering realized by the above technology, the whole set of underlying engine codes are independently developed, the code is concise, the computer requirements for running are extremely low, and it can be quickly iterated. Automatically calculate the scene lighting, give the model a real lighting environment texture, so that users without basic knowledge can easily get started. Quickly output various forms of results to meet the needs of different users. Greatly reduce the technical threshold and time cost in the rendering and reporting process. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 The present invention is a flowchart of a method for architectural rendering based on real-time rendering technology according to an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] Reference Figure 1 , which is a building rendering method based on real-time rendering technology according to an embodiment of the present invention. The underlying graphics engine of the building rendering method based on real-time rendering technology is self-developed, and the specific steps are as follows:
[0040] S1, import existing models into VR framework (support Sketch Up, 3Dmax, Revit, Rhino, FBX, DAE, OBJ);
[0041] S2, set the production range and generate the intelligent light environment (the smaller the range, the more accurate it is and the less time it takes);
[0042] S3, adjust material parameters, select appropriate textures, set sky parameters (adjust sunlight position, intensity and color), and add scenes (plants, people, sketches, etc.);
[0043] S4, setting the rendering viewpoint (the viewing angle of the rendered image), animation path (multiple animation paths can be added), and 720-view observation point (the connection between the observation viewpoints indicates the jump relationship between the 720-viewpoints after the actual generation);
[0044] S5: Export animation, site plan, HD rendering, offline copy, mobile QR code (including site plan, rendering, animation, VR experience, 3D projection). You can choose to export renderings and animations in three qualities: low, medium and high.
[0045] Among them, the mobile phone QR code refers to the centralized display entrance of the project spread on the mobile terminal through the QR code, which includes four major contents: project introduction, animation, 720 panoramic view and rendering.
[0046] Specifically, the graphics engine is based on Windows system, C++ and OpenGL.
[0047] Furthermore, the graphics engine is optimized for speed through the following strategies:
[0048] A. All floating-point operations on matrices and vectors are accelerated by SIMD (SSE2 instruction set). When constructing matrices and vectors, SIMD memory layout is used. Each component is aligned to a 128-bit memory unit (a 128-bit address can combine 4 variables). Each variable stores the first address and position number of the memory occupied. For example, when defining a vector (x, y, z), first find the currently available first address of the memory and the currently free position number, and then copy the data to the address for later use. The constructed memory data layout is shown below P: (****XXXX********, ****YYYY********, ****ZZZZ********), where P represents the first address of the memory, each * or X represents a byte, **** represents the position occupied by other variables, and XXXX represents the storage position of this variable: that is, position 1. After the data is constructed in this way, it is convenient to directly perform SIMD operations later.
[0049] B. Tree organization and optimization of scene nodes. The entire scene organization structure is as follows: Node nodes are tree structures. Node nodes can mount child Node nodes and model information (spatial points, triangles). The entire scene has a RootNode node.
[0050] Each Node also has its own local coordinate space transformation (4*4 matrix).
[0051] The world coordinate position of the model midpoint = the world coordinate transformation of this Node * the position of the model midpoint (1)
[0052] The world coordinate transformation of this Node = the world coordinate transformation of the parent Node * the local coordinate transformation of this Node (2)
[0053] Since the world coordinate transformation of a single Node in formula (2) depends on the world coordinate transformation of its parent node, we only need to start from the RootNode, first calculate the world coordinate transformation of the low-level nodes, and then calculate the world coordinate transformation of the high-level nodes, so that we can ensure that each calculation will get the correct result, and the time complexity is (n) (n is the total number of nodes). For the organization of the complex scene node tree, we sort all nodes according to the node level, and then calculate their respective world coordinate transformations in order of level size. For the nodes of the same level, we accelerate them with multi-threading.
[0054] Through the above two data organization forms A and B, we have greatly improved the execution efficiency of the rendering data preparation stage (CPU process).
[0055] Specifically, the existing models include most of the modeling software on the market (Sketch Up, 3Dmax, Revit, Rhion, FBX, DAE, OBJ).
[0056] Specifically, the intelligent light environment can automatically calculate scene lighting without the need for lighting setup and without any technical barriers, allowing users with no basic knowledge to easily get started and simulate the daylight system according to time.
[0057] Specifically, the reflection algorithm used in the automatic calculation of scene illumination is a global reflection algorithm. Further, the global reflection algorithm mainly adopts the following steps to achieve the simulation of global illumination.
[0058] S1, for the lighting of each pixel in the final rendering process, the following model is used:
[0059]
[0060] S2, use "light probe" to collect lighting information: From formula (3), we can know that the light intensity at a certain point in space must be integrated, which is obviously not feasible in real-time rendering. In actual implementation, only the low-frequency changes in the lighting are considered. Formula (3) is transformed by Fourier transform and the low-frequency part is simulated in the form of 4th-order spherical harmonics (Formulas 4 to 7)
[0061]
[0062]
[0063]
[0064]
[0065]
[0066]
[0067] Where L represents the order (values range from 0 to 3), and m represents the term (values range from -L to L);
[0068] S3, light probe data is generated by a static calculation (the total number of probes is about 100,000). During real-time rendering, the 8 light probes closest to the pixel are taken, and then the distance between the pixel and the light probe in the x, y, and z directions is used as the weight value to multiply the 8 probe data respectively. The result is then multiplied by whether the light probe is visible to the pixel (0 or 1) to obtain the final lighting brightness value, and then the brightness value is divided by the sum of the weights to obtain the final lighting data of the point.
[0069] Specifically, parameters such as camera viewing angle, sunlight, environment, image adjustment, etc. of each control point of the output animation can be controlled individually.
[0070] Specifically, the mobile phone QR code refers to the centralized display entrance of the project spread on the mobile terminal through the QR code, which includes four major contents: project introduction, animation, 720 panoramic view, and rendering.
[0071] Specifically, the mobile phone QR code includes a permanent QR code and a temporary QR code. Specifically, the options related to the permanent QR code, once the permanent QR code is generated, the QR code itself will not change, that is, if the project is updated later, the QR code will not change, but the content after scanning will be updated accordingly. Specifically, the validity period of the temporary QR code is from 0.5 to 48 hours, which is specified by the user when it is generated. Each temporary QR code generated is independent of each other and has no effect on each other. The temporary QR code cannot be modified after it is generated.
[0072] The architectural rendering method implemented by the above technical solution can automatically calculate the scene lighting and give the model a real lighting environment texture, so that users without basic knowledge can easily get started. It can display the virtual design three-dimensional scene of the building in real time, achieve 3D effect, be more realistic, and quickly output various forms of results to meet the needs of different users. It greatly reduces the technical threshold and time and cost costs in the rendering and reporting process. It provides busy designers with fast, easy, good and economical drawing solutions to achieve maximum customer satisfaction in design effects.
[0073] It should be understood that the exemplary embodiments described herein are illustrative rather than restrictive. Although one or more embodiments of the present invention have been described in conjunction with the accompanying drawings, it should be understood by those skilled in the art that various changes in form and detail may be made without departing from the spirit and scope of the present invention as defined by the appended claims.
Claims
1. A building rendering method based on real-time rendering technology, characterized in that: The underlying graphics engine in this architectural rendering method based on real-time rendering technology is self-developed, and includes the following steps: S1, import the existing model into the VR framework; S2, set the production range and generate intelligent light environment; S3, adjust material parameters and sky parameters; S4, setting the effect diagram viewpoint, animation path and 720 diagram observation point; S5, output materials including animation, VR experience, 3D projection, master plan, high-definition renderings and mobile QR codes; The graphics engine is optimized for speed through the following strategies: A. All floating-point operations on matrices and vectors are accelerated by SIMD, which uses the SSE2 instruction set. The SIMD memory layout is used when constructing matrices and vectors themselves, aligning each component to a 128-bit memory unit. A 128-bit address can combine 4 variables, and each variable stores the first address and position number of the memory it occupies. B. Tree organization and optimization of scene nodes. The entire scene organization structure is as follows: Node nodes are tree structures. Node nodes can mount child Node nodes and model information. The entire scene has a RootNode node. Each Node node also has its own local coordinate system space transformation. The world coordinate position of the model midpoint = the world coordinate transformation of this Node * the position of the model midpoint (1) The world coordinate transformation of this Node = the world coordinate transformation of the parent Node * the local coordinate transformation of this Node (2) Since the world coordinate transformation of a single Node in formula (2) depends on the world coordinate transformation of its parent node, as long as we start from the RootNode, first calculate the world coordinate transformation of the low-level nodes, and then calculate the world coordinate transformation of the high-level nodes, we can ensure that each calculation will get the correct result, and the time complexity is n, where n is the total number of nodes. For the organization of the Node tree of complex scenes, all Nodes are sorted according to the Node Level, and then their respective world coordinate transformations are calculated in order of Level size. For Nodes at the same Level, multi-threading is performed to accelerate them.
2. The architectural rendering method based on real-time rendering technology according to claim 1, characterized in that: The graphics engine is based on windows system, c++ and openGL.
3. The architectural rendering method based on real-time rendering technology according to claim 1, characterized in that: The intelligent light environment automatically calculates scene illumination, and the reflection algorithm used in the automatic calculation of scene illumination is a global reflection algorithm.
4. The architectural rendering method based on real-time rendering technology according to claim 1, characterized in that: Each control point of the output animation includes parameters of camera viewing angle, sunlight, environment, and image adjustment, which are controlled separately.
5. The architectural rendering method based on real-time rendering technology according to claim 1, characterized in that: The mobile phone QR code refers to the entrance to the centralized display of projects spread on mobile terminals through QR codes, which includes four major contents: project introduction, animation, 720 panoramic view, and renderings.
6. The architectural rendering method based on real-time rendering technology according to claim 1, characterized in that: The mobile phone QR code includes permanent and temporary QR codes.
7. The architectural rendering method based on real-time rendering technology according to claim 6, characterized in that: Once the permanent QR code related options are generated, the QR code itself will no longer change. That is, when the project is updated in the future, the QR code will not change, but the scanned content will be updated accordingly.
8. The architectural rendering method based on real-time rendering technology according to claim 6, characterized in that: The temporary QR code is valid for 0.5-48 hours, and the validity period is specified by the user when it is generated. Each temporary QR code generated is independent of each other and has no impact on each other. The temporary QR code cannot be modified after it is generated.
Citation Information
Patent Citations
Rapid establishing system and method for immersive VR (virtual reality) based three-dimensional model
CN107204032A
Shadow rendering method and device, terminal and storage medium
CN109993823A
