A method and apparatus for generating room daylighting levels for a building model
By simulating sunlight sources to obtain the elevation and azimuth angles of individual rooms in a building model, and combining this with the geometric information of the facade and interior to calculate the light intensity, the daylighting of each room is generated. This solves the problem of insufficient sunlight analysis for individual rooms and improves the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING 51WORLD DIGITAL TWIN TECH CO LTD
- Filing Date
- 2024-12-31
- Publication Date
- 2026-06-30
AI Technical Summary
Existing technologies lack methods for analyzing the sunlight conditions of individual rooms in a building model, resulting in users being unable to understand the lighting levels in their rooms and leading to a poor user experience.
By simulating sunlight, the elevation and azimuth angles of the room under test are obtained. Combined with the exterior facade information of the building model and the interior geometry information of the room, the actual light intensity of each pixel is determined, and the daylighting of the room is generated, including the calculation of actual and theoretical light intensity.
It enables the determination of daylight intensity in any room at any time, meeting users' needs to understand the daylight conditions in their rooms and improving the user experience.
Smart Images

Figure CN122312469A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of digital twin technology, and in particular to a method and apparatus for generating room daylighting in a building model. Background Technology
[0002] In current 3D digital scenarios, the analysis of sunlight conditions in building models is always performed on a 2D or 3D basis, using the building outline or model as the unit. There is a lack of specific methods for analyzing the sunlight conditions of individual rooms within the building model. This prevents users from using the building model to analyze the sunlight conditions of individual rooms, thus hindering their understanding of the room's lighting levels and resulting in a poor user experience.
[0003] Therefore, how to analyze the sunlight conditions of individual rooms in a building model has become a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0004] The purpose of this disclosure is to provide a method and apparatus for generating daylight intensity of individual rooms in a building model, so as to analyze the sunlight conditions of individual rooms in the building model, thereby meeting the user's need to understand the daylight intensity of the rooms and improving the user experience.
[0005] In a first aspect, embodiments of this disclosure provide a method for generating daylighting levels in a room of a building model, the method comprising:
[0006] Obtain the elevation angle and azimuth angle of the room to be tested in the model of the building under test when the simulated sunlight shines on it at the first time; where the first time is any time when the simulated sunlight shines on the room to be tested.
[0007] Based on the elevation angle and azimuth angle, as well as the exterior facade information of the building model under test and the interior geometry information of the household under test, the actual illumination intensity of each first pixel is determined; where the first pixel is the pixel on the interior surface of the household under test that is illuminated by the simulated sunlight source at the first time.
[0008] Based on the indoor geometric information of the room to be tested, the actual light intensity of each second pixel is determined; wherein, the second pixel is the pixel on the indoor surface of the room to be tested that cannot be illuminated by the simulated sunlight source at the first time.
[0009] Obtain the theoretical illumination intensity of each first pixel and each second pixel;
[0010] Based on the actual and theoretical light intensities of all first pixels, and the actual and theoretical light intensities of all second pixels, the daylight intensity of the room under test at the first moment is generated.
[0011] Optionally, obtain the elevation angle and azimuth angle of the room to be tested in the model of the building under test, simulating the illumination of the building under test by the sunlight source at the first moment, including:
[0012] Obtain the latitude and longitude information corresponding to the building model to be tested;
[0013] Based on the latitude and longitude information corresponding to the model of the building under test and the pre-stored data on the solar motion, the elevation angle and azimuth angle of the room under test in the model of the building under test are obtained in the first time when the simulated solar light source illuminates the room under test.
[0014] Optionally, based on the elevation and azimuth angles, as well as the exterior facade information of the building model and the interior geometry information of the unit to be measured, the actual illumination intensity of each first pixel is determined, including:
[0015] The intensity of the simulated solar light source and the initial incident direction of the light rays illuminating the room under test are determined based on the elevation angle and azimuth angle.
[0016] Based on the light source intensity and initial incident direction, as well as the exterior facade information of the building model under test and the interior geometry information of the room under test, the actual illumination intensity of each first pixel is determined by the forward ray tracing algorithm and the ray reflection and refraction algorithm.
[0017] Optionally, based on the indoor geometry of the room to be tested, the actual illumination intensity of each second pixel is determined, including:
[0018] Based on the indoor geometric information of the room to be tested, the actual illumination intensity of each second pixel is determined by the ray tracing algorithm.
[0019] Optionally, obtain the theoretical illumination intensity of each first pixel and each second pixel, including:
[0020] Based on the elevation angle and azimuth angle, calculate the maximum illumination intensity of each first pixel and each second pixel when they are fully illuminated by the simulated solar light source.
[0021] The maximum illumination intensity of each first pixel is determined to be the theoretical illumination intensity of the corresponding first pixel, and the maximum illumination intensity of each second pixel is determined to be the theoretical illumination intensity of the corresponding second pixel.
[0022] Optionally, based on the actual and theoretical illuminance of all first pixels and the actual and theoretical illuminance of all second pixels, the daylight intensity of the room under test at the first moment is generated, including:
[0023] The actual illumination intensity of the room to be tested is determined based on the actual illumination intensity of all first pixels and all second pixels.
[0024] Based on the theoretical illumination intensity of all first pixels and the theoretical illumination intensity of all second pixels, the theoretical illumination intensity of the room to be tested is determined.
[0025] Based on the actual and theoretical light intensity of the room under test, the daylight intensity of the room under test is generated at the first moment.
[0026] Optionally, the method further includes:
[0027] The ambient light level of the room under test is rendered and displayed using the preset colors corresponding to the actual light intensity of each first pixel and the actual light intensity of each second pixel at the first moment.
[0028] Secondly, embodiments of this disclosure provide a device for generating daylight intensity of rooms in a building model, the device comprising:
[0029] The first acquisition module is used to acquire the elevation angle and azimuth angle of the room to be tested in the model of the building under test when the simulated sunlight shines on it at a first time; wherein, the first time is any time when the simulated sunlight shines on the room to be tested.
[0030] The first determining module is used to determine the actual illumination intensity of each first pixel based on the elevation angle and azimuth angle, as well as the exterior facade information of the building model to be measured and the interior geometric information of the household to be measured; wherein, the first pixel is the pixel on the interior surface of the household to be measured that is illuminated by the simulated sunlight source at the first time.
[0031] The second determining module is used to determine the actual light intensity of each second pixel based on the indoor geometric information of the room to be tested; wherein, the second pixel is the pixel on the indoor surface of the room to be tested that cannot be illuminated by the simulated sunlight source at the first time.
[0032] The second acquisition module is used to acquire the theoretical illumination intensity of each first pixel and each second pixel;
[0033] The generation module is used to generate the daylight intensity of the room under test at the first moment based on the actual and theoretical light intensities of all first pixels and the actual and theoretical light intensities of all second pixels.
[0034] Optionally, the first acquisition module is used to acquire the elevation angle and azimuth angle of the room to be tested in the model of the building under test illuminated by the simulated solar light source at the first moment. Specifically, the first acquisition module is used for:
[0035] Obtain the latitude and longitude information corresponding to the building model to be tested;
[0036] Based on the latitude and longitude information corresponding to the model of the building under test and the pre-stored data on the solar motion, the elevation angle and azimuth angle of the room under test in the model of the building under test are obtained in the first time when the simulated solar light source illuminates the room under test.
[0037] Optionally, the first determining module is used to determine the actual illumination intensity of each first pixel based on the elevation angle and azimuth angle, as well as the exterior facade information of the building model to be measured and the interior geometric information of the unit to be measured. Specifically, the first determining module is used to:
[0038] The intensity of the simulated solar light source and the initial incident direction of the light rays illuminating the room under test are determined based on the elevation angle and azimuth angle.
[0039] Based on the light source intensity and initial incident direction, as well as the exterior facade information of the building model under test and the interior geometry information of the room under test, the actual illumination intensity of each first pixel is determined by the forward ray tracing algorithm and the ray reflection and refraction algorithm.
[0040] Optionally, the second determining module is used to determine the actual illumination intensity of each second pixel based on the indoor geometric information of the room to be tested. Specifically, the second determining module is used to:
[0041] Based on the indoor geometric information of the room to be tested, the actual illumination intensity of each second pixel is determined by the ray tracing algorithm.
[0042] Optionally, the second acquisition module is used to acquire the theoretical illumination intensity of each first pixel and each second pixel, specifically: the second acquisition module is used to:
[0043] Based on the elevation angle and azimuth angle, calculate the maximum illumination intensity of each first pixel and each second pixel when they are fully illuminated by the simulated solar light source.
[0044] The maximum illumination intensity of each first pixel is determined to be the theoretical illumination intensity of the corresponding first pixel, and the maximum illumination intensity of each second pixel is determined to be the theoretical illumination intensity of the corresponding second pixel.
[0045] Optionally, the generation module is used to generate the daylight intensity of the room under test at the first moment based on the actual and theoretical light intensities of all first pixels and the actual and theoretical light intensities of all second pixels. Specifically, the generation module is used to:
[0046] The actual illumination intensity of the room to be tested is determined based on the actual illumination intensity of all first pixels and all second pixels.
[0047] Based on the theoretical illumination intensity of all first pixels and the theoretical illumination intensity of all second pixels, the theoretical illumination intensity of the room to be tested is determined.
[0048] Based on the actual and theoretical light intensity of the room under test, the daylight intensity of the room under test is generated at the first moment.
[0049] Optionally, the device may also include:
[0050] The rendering module is used to render and display the ambient light level of the room under test at the first moment, using the preset colors corresponding to the actual light intensity of each first pixel and the actual light intensity of each second pixel.
[0051] Thirdly, embodiments of this disclosure provide an electronic device, including a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program stored in the memory, and when the computer program is executed, it implements the method of the first aspect described above.
[0052] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing a computer program that, when executed, implements the method described in the first aspect.
[0053] The method and apparatus for generating daylight intensity of a room in a building model provided in this disclosure can simulate a scenario where sunlight illuminates a building model under test by simulating a solar light source. Then, the elevation angle and azimuth angle of the simulated solar light source illuminating the room under test in the building model can be obtained. Subsequently, based on these elevation and azimuth angles, as well as the exterior facade information of the building model and the interior geometry information of the room under test, the actual illumination intensity of the first pixel that can be illuminated by the simulated solar light source and the second pixel that cannot be illuminated by the simulated solar light source can be determined. Then, based on the actual and theoretical illumination intensities of all first pixels, and the actual and theoretical illumination intensities of all second pixels, the daylight intensity of the room under test at a first-time moment can be generated.
[0054] As can be seen, by applying the method for generating room daylight intensity for building models provided in this disclosure to a digital twin scenario, the daylight intensity of any room at any time can be determined through this method, thereby meeting the user's need to understand the daylight intensity of any room and providing a better user experience. Attached Figure Description
[0055] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0056] Figure 1 A schematic diagram of a light-collecting analysis system provided in an embodiment of this disclosure is shown;
[0057] Figure 2A schematic flowchart of a method for generating room daylighting in a building model, provided by an embodiment of this disclosure, is shown.
[0058] Figure 3 This illustration shows an application scenario provided by an embodiment of the present disclosure;
[0059] Figure 4 This illustration shows another application scenario provided by an embodiment of the present disclosure;
[0060] Figure 5 A structural block diagram of a room daylight generation device for a building model provided in this disclosure is shown.
[0061] Figure 6 A structural block diagram of an electronic device provided in an embodiment of this disclosure is shown;
[0062] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this disclosure is shown. Detailed Implementation
[0063] The present disclosure will be further described in detail below with reference to the accompanying drawings and embodiments. Through these descriptions, the features and advantages of the present disclosure will become clearer and more apparent.
[0064] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments. Although various aspects of embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated otherwise.
[0065] Furthermore, the technical features involved in the different embodiments of this disclosure described below can be combined with each other as long as they do not conflict with each other.
[0066] The digital 3D scene described in this disclosure refers to a highly realistic terrain environment used in various simulation, visualization, and game development applications. The digital 3D scene integrates graphics rendering technology to achieve the desired visual effects and interactivity, and has the following core characteristics:
[0067] Realistic terrain simulation: Digital 3D scenes include terrain generated from real-world data such as satellite imagery and topographic survey data. Terrain features include mountains, valleys, plains, and rivers to present a realistic feel of natural terrain.
[0068] Dynamic environmental elements: Environmental elements in digital 3D scenes, such as weather, lighting, and seasonal changes, are dynamic. For example, simulating day and night cycles, cloud movement, rain erosion, and seasonal vegetation changes, these elements can respond to user interactions in real time.
[0069] Advanced graphics effects: Utilizes graphics technologies such as ray tracing, physically-based rendering (PBR), high dynamic range imaging (HDR), and shadow mapping to provide visual detail and depth.
[0070] Interactivity and explorability: Users can freely move within the digital 3D scene, exploring different terrains and environments. Various interaction methods are supported, including walking, driving, or flying modes.
[0071] Ecosystem simulation: The digital 3D scene includes simulations of plant and animal ecosystems. The behavior of animals and the growth of vegetation are based on real-world models and data.
[0072] Customizability: Digital 3D scenes offer customizability, allowing users to adjust terrain, vegetation, environmental conditions, etc., according to specific needs, making them suitable for customized simulation requirements.
[0073] Application areas:
[0074] - Education and training: Can be used for educational purposes in geography, environmental science, and military training.
[0075] - Game Development: Provides game developers with rich and realistic environments to enhance the immersive experience of games.
[0076] - Urban planning and landscape design: Helping designers and planners visualize new building projects or landscape renovations.
[0077] - Film and television production: Providing high-quality background scenes for film and television production.
[0078] Digital 3D scenes involve various building models, typically organized by building unit. A single building usually comprises multiple floors, and each floor contains multiple apartments. Currently, solar radiation analysis of building models is usually performed on the entire building model or its outline, using 2D or 3D methods, but lacks analysis of individual apartments. This prevents users from using the building model to analyze the solar radiation of individual apartments, thus hindering their understanding of the lighting conditions in each apartment and resulting in a poor user experience.
[0079] To meet users' needs for understanding the lighting conditions of individual rooms and to improve the user experience of using building models, this disclosure provides a method and apparatus for generating room lighting levels in building models.
[0080] The following detailed description, in conjunction with the accompanying drawings, of the method and apparatus for generating room daylight intensity for building models provided in this disclosure through specific embodiments and application scenarios, illustrates these methods in detail.
[0081] The method for generating room daylighting in building models provided in this disclosure can be applied to... Figure 1 The lighting analysis system shown. For example... Figure 1 As shown, the daylight analysis system may include: a ray tracing subsystem, a semantic data processing subsystem, a solar light source evolution simulation subsystem, and a daylight intensity generation subsystem. It should be noted that the daylight analysis system provided in this disclosure may also include other subsystems, such as a rendering subsystem, etc., and this disclosure does not impose any limitations on this.
[0082] Optionally, the ray tracing subsystem can be used to calculate the ray irradiation range of a simulated sunlight source in a digital twin scene (or digital 3D scene) based on a graphics processing unit (GPU), as well as physical quantities related to the simulated sunlight source irradiation.
[0083] For example, the ray tracing subsystem can combine forward ray tracing algorithms, backward ray tracing algorithms, and ray reflection and refraction algorithms to calculate the actual illumination intensity of pixels on the interior surface of a room in a building model in a digital twin scene.
[0084] Optionally, the semantic subsystem can be used to describe and store the geospatial three-dimensional geometric information of the building model, the facade information of the building model, and the interior geometric information of the rooms in the building model in the digital twin scenario.
[0085] For example, the semantic subsystem can describe and store the geospatial three-dimensional geometric information of building models with buildings as units based on binary structured documents, so that information such as the bottom, facade, top, floor height, and number of floors of the building can be semantically described and used in the geometric calculation of the building model.
[0086] For example, the semantic subsystem can also be used to describe and store the facade information of building models at the building unit level, so that model objects on the exterior of the building that affect lighting are semantically described for use in lighting calculations, etc. For example, facade information may include the geographical information of windows, the geographical information of balconies, and the light transmission information of windows, etc.
[0087] For example, the semantic subsystem can also be used to describe and store the interior geometry information of rooms in a building model. This interior geometry information can be used to calculate the daylighting of rooms. For example, the interior geometry information may include floor and room information, interior wall information, etc.
[0088] Optionally, the solar light source evolution simulation subsystem can be used to simulate a digital twin scenario of solar illumination and calculate solar motion information such as the movement of the direct sunlight point, the apparent motion of the sun, the noon solar altitude, and the variation of day and night length. For example, the Earth's surface can be divided into equally sized grids, such as a 5° x 5° latitude and longitude grid. Then, based on these grids, the aforementioned solar motion information can be calculated. Within the same grid (e.g., within the same latitude and longitude grid), the solar motion pattern is the same; that is, the solar motion information within the same grid is identical. By simulating the sun's motion, the motion information of the simulated solar light source can be determined. In other words, the aforementioned solar motion information can be used as the motion information for the simulated solar light source.
[0089] Furthermore, the solar light source evolution simulation subsystem can calculate the elevation and azimuth angles of the simulated solar light source at different times based on the operational information of the simulated solar light source and the latitude and longitude information corresponding to the building model. This information can then be used to calculate the daylight intensity of the rooms in the building model. Alternatively, the solar light source evolution simulation subsystem can calculate the elevation and azimuth angles of the simulated solar light source at different times for different latitude and longitude information based on the operational information of the simulated solar light source. Then, it can construct a mapping relationship between latitude and longitude information, elevation angle, and azimuth angle. In this way, the data can be directly called upon during the daylight intensity calculation process, making it simpler and more efficient.
[0090] Alternatively, the solar light source evolution simulation subsystem can also store the aforementioned simulated solar light source operation information, as well as the mapping relationships between latitude and longitude, altitude angle, and azimuth angle, as solar motion law data for use in daylight calculation. It should be understood that the solar motion law data may also include other solar motion-related information, and this disclosure does not impose any limitations on this.
[0091] Optionally, the daylight generation subsystem is used to generate the daylight of any room in the building model.
[0092] It should be noted that the various subsystems of the above-described lighting analysis system can be deployed on the same server or terminal device, or they can be deployed on different servers or terminal devices. This disclosure does not impose any limitations on this. The specific functions or roles of each subsystem can be found in the following embodiments, which will not be detailed here.
[0093] Furthermore, the method for generating daylight intensity is the same for any room in any building model within a digital twin scenario. Therefore, the following embodiments use any room in any building model as an example to illustrate the method for generating daylight intensity of a room in a building model provided in this disclosure. Hereinafter, the aforementioned building model will be referred to as the building model to be tested, and the aforementioned room will be referred to as the room to be tested.
[0094] See Figure 2 , Figure 2 This is a flowchart illustrating a method for generating room daylight levels in a building model, provided by an embodiment of this disclosure. This method can be applied to terminal devices, servers, or other devices with data processing and image processing capabilities, and this disclosure does not impose any limitations thereon. The following description uses a server as an example to illustrate an embodiment of this disclosure. Figure 1 Each of the subsystems shown can be deployed on this server. For example... Figure 2 As shown, the method may include the following steps:
[0095] Step S101: Obtain the elevation angle and azimuth angle of the room to be tested in the model of the building under test when the simulated sunlight source illuminates the room under test at the first time.
[0096] The first time is any time when the simulated sunlight shines on the room under test.
[0097] Based on the foregoing, the solar light source evolution simulation subsystem can calculate the elevation and azimuth angles of the simulated solar light source at different times based on the operational information of the simulated solar light source and the latitude and longitude information corresponding to the building model. Alternatively, the solar light source evolution simulation subsystem can also calculate the elevation and azimuth angles of the simulated solar light source at different times for different latitude and longitude information based on the operational information of the simulated solar light source, and then construct the mapping relationship between latitude and longitude information, elevation angle, and azimuth angle. Alternatively, the solar light source evolution simulation subsystem can also store the operational information of the simulated solar light source, as well as the mapping relationship between latitude and longitude information, elevation angle, and azimuth angle, as solar motion law data.
[0098] Based on this, in an optional embodiment of this disclosure, when the server obtains the elevation angle and azimuth angle of the room to be tested in the model of the building under test under simulated sunlight illumination at the first time, it can first obtain the latitude and longitude information corresponding to the model of the building under test, and then obtain the elevation angle and azimuth angle of the room to be tested under simulated sunlight illumination at the first time based on the latitude and longitude information corresponding to the model of the building under test and the pre-stored solar motion law data.
[0099] Optionally, the server can use the solar light source evolution law simulation subsystem to calculate the elevation angle and azimuth angle of the simulated solar light source illuminating the room under test at the first moment, based on the latitude and longitude information corresponding to the model of the building under test and the operation information of the simulated solar light source.
[0100] Optionally, the server can also read the elevation angle and azimuth angle corresponding to the latitude and longitude information of the building model under test from the pre-stored solar motion data, and use them as the simulated solar light source to illuminate the elevation angle and azimuth angle of the room under test at the first moment.
[0101] Step S102: Based on the height angle and azimuth angle of the simulated sunlight illuminating the room under test, as well as the exterior facade information of the building model under test and the interior geometric information of the room under test, determine the actual illumination intensity of each first pixel.
[0102] Here, the first pixel refers to the pixel on the indoor surface of the room under test that is illuminated by the simulated sunlight source at the first moment. That is, at the first moment, all pixels on the indoor surface of the room under test that can be illuminated by the simulated sunlight source are the first pixel.
[0103] In an optional embodiment of this disclosure, when the server executes step S102, it can determine the light intensity of the simulated sunlight source and the initial incident direction of the light rays illuminating the room under test based on the height angle and azimuth angle of the simulated sunlight source illuminating the room under test at a first moment. Then, based on the light intensity of the simulated sunlight source, the initial incident direction of the light rays illuminating the room under test, the exterior facade information of the building model under test, and the interior geometry information of the room under test, the actual illumination intensity of each first pixel is determined through a ray forward tracing algorithm and a ray reflection and refraction algorithm.
[0104] Optionally, in some scenarios, the building model under test may be occluded by other nearby building models. In this case, when determining the actual illumination intensity of each first pixel, in addition to considering the facade information of the building model under test and the interior geometric information of the room under test, it is also necessary to combine the geospatial three-dimensional geometric information of the building model under test to determine the actual illumination intensity of each first pixel.
[0105] The algorithm uses a forward ray tracing method to track the light rays illuminating the room under test along the initial incident direction of the simulated sunlight source. Then, based on the exterior facade information of the building model under test, such as the geographical information of windows and balconies, the light transmittance of windows and curtains, the intersection point and transmission of the light rays with the exterior facade of the room under test are determined. Based on the interior geometry information of the room under test, such as the interior wall information (including the surface materials of walls, floors, ceilings, windows, doors, etc.), the refraction and reflection of the light rays after they enter the room are determined. Combining the light reflection and refraction algorithm, the attenuation change of the light source intensity of the simulated sunlight source is calculated. Finally, the actual illumination intensity of each first pixel on the interior surface of the room under test is calculated.
[0106] Step S103: Based on the indoor geometric information of the room to be tested, determine the actual illumination intensity of each second pixel.
[0107] The second pixel refers to the pixel on the interior surface of the room under test that is not illuminated by the simulated sunlight source at the first moment. That is, at the first moment, all pixels on the interior surface of the room under test that are not illuminated by the simulated sunlight source are the second pixel.
[0108] In an optional embodiment of this disclosure, when the server executes step S103, it can determine the pixels (i.e., the second pixels) on the indoor surface of the room to be tested that are completely blocked and cannot be illuminated by the simulated sunlight source based on the indoor geometric information of the room to be tested, such as the geographical information and surface material information of the walls, ceilings, windows, doors, furniture, etc., through a ray tracing algorithm. Then, the server can determine the actual light intensity of each second pixel as zero.
[0109] Step S104: Obtain the theoretical illumination intensity of each first pixel and each second pixel.
[0110] Ideally, it is assumed that every pixel on the interior surface of the room under test is fully illuminated by the simulated sunlight source, that is, every pixel on the interior surface of the room under test can receive the simulated sunlight source at its maximum intensity. Subsequently, the illumination intensity of the simulated sunlight source received by each pixel at its maximum intensity is recorded as the maximum illumination intensity received by the corresponding pixel. In this disclosure, the maximum illumination intensity received by each pixel on the interior surface of the room under test is determined as the theoretical illumination intensity of the corresponding pixel.
[0111] Based on this, when the server executes step S104, it can first obtain the maximum illumination intensity of each first pixel and the maximum illumination intensity of each second pixel, then determine the maximum illumination intensity of each first pixel as the theoretical illumination intensity of the corresponding first pixel, and determine the maximum illumination intensity of each second pixel as the theoretical illumination intensity of the corresponding second pixel.
[0112] Optionally, the server can calculate the maximum illuminance of each first pixel based on the simulated elevation and azimuth angles of sunlight illuminating the room under test in the first instant. Similarly, the server can also calculate the maximum illuminance of each second pixel based on the simulated elevation and azimuth angles of sunlight illuminating the room under test in the first instant.
[0113] Step S105: Based on the actual and theoretical light intensity of all first pixels and the actual and theoretical light intensity of all second pixels, generate the daylight intensity of the room to be tested at the first moment.
[0114] After obtaining the actual and theoretical illuminance of all first pixels, as well as the actual and theoretical illuminance of all second pixels, the server can determine the actual illuminance of the room to be tested based on the actual illuminance of all first pixels and the actual illuminance of all second pixels; and, based on the theoretical illuminance of all first pixels and the theoretical illuminance of all second pixels, determine the theoretical illuminance of the room to be tested; then, based on the actual and theoretical illuminance of the room to be tested, the server can generate the daylight intensity of the room to be tested at the first moment.
[0115] As can be seen from the foregoing, since each second pixel cannot be illuminated by the simulated sunlight source, the actual illumination intensity of each second pixel is zero. Based on this, the server can optionally determine the actual illumination intensity of the room to be tested according to the following formula (1).
[0116]
[0117] In formula (1), a represents the actual light intensity of the room to be tested. P represents the actual illumination intensity of the first pixel p1 on the indoor surface of the room under test. affected This represents the set of pixels that represent the first pixel.
[0118] Optionally, the server can determine the theoretical light intensity of the room to be tested according to the following formula (2).
[0119]
[0120] In formula (2), b represents the theoretical illuminance of the room to be measured, and L max L represents the theoretical illumination intensity of any pixel p2 on the indoor surface of the room under test; that is, the theoretical illumination intensity of each first pixel and the theoretical illumination intensity of each second pixel are both L. max P all P represents the set of pixels on the interior surface of the room to be tested, i.e., P all This represents the set of pixels consisting of all first pixels and all second pixels.
[0121] Optionally, the server can generate the daylight intensity of the room to be tested at the first moment according to the following formula (3).
[0122]
[0123] In formula (3), I represents the daylight intensity of the room under test at the first time, a represents the actual light intensity of the room under test, and b represents the theoretical light intensity of the room under test.
[0124] After calculating and generating the daylight intensity of the test room at the first moment, this daylight intensity can be used to measure the lighting conditions of the test room at that moment. The higher the daylight intensity, the larger the area of the test room that can be illuminated by the simulated sunlight source at the first moment, and correspondingly, the better the lighting conditions of the actual room corresponding to the test room.
[0125] In an optional embodiment of this disclosure, the server may also render the daylight intensity of the user's room using different colors. For example, as shown... Figure 3 As shown, the server can use preset colors (which can be denoted as the first color) corresponding to the actual light intensity of each first pixel and the actual light intensity of each second pixel to render and display each pixel on the actual inner surface of the room under test, so as to render and display the light intensity of the room under test at the first moment.
[0126] It should be noted that, Figures 2 to 3 Taking the daylight intensity of a room at a specific moment as an example, this paper explains the method for generating room daylight intensity for building models. In practical use, it can be achieved through... Figures 2 to 3 The method shown generates the daylight intensity of any room in any building model at any time.
[0127] For example, it can be based on the above Figures 2 to 3 This method generates the daylight intensity of each room in all building models within any digital twin scene at various times of the day. After generating the daylight intensity of each room in all building models within the digital twin scene, different colors can be used to render the daylight intensity of each room to showcase the lighting conditions of each room.
[0128] For example, such as Figure 4 As shown, the lighting duration of each household can be calculated based on the lighting level of each household throughout the day. Then, the corresponding household is rendered and displayed using a preset color (which can be denoted as the second color) that corresponds to each lighting duration, so as to show the lighting conditions of the corresponding household.
[0129] The method for generating daylight intensity of a room in a building model provided in this disclosure can simulate a scenario where sunlight illuminates the building model under test by simulating a solar light source. Then, the elevation angle and azimuth angle of the simulated solar light source illuminating the room under test in the building model can be obtained. Subsequently, based on these elevation and azimuth angles, as well as the exterior facade information of the building model and the interior geometry information of the room under test, the actual illumination intensity of the first pixel that can be illuminated by the simulated solar light source and the second pixel that cannot be illuminated by the simulated solar light source can be determined. Then, based on the actual and theoretical illumination intensities of all first pixels, and the actual and theoretical illumination intensities of all second pixels, the daylight intensity of the room under test at a first-time moment can be generated.
[0130] As can be seen, by applying the method for generating room daylight intensity for building models provided in this disclosure to a digital twin scenario, the daylight intensity of any room at any time can be determined through this method, thereby meeting the user's need to understand the daylight intensity of any room and providing a better user experience.
[0131] It is understood that the above embodiments are merely examples, and modifications can be made to the above embodiments in actual implementation. Those skilled in the art will understand that any modifications to the above embodiments that do not require creative effort fall within the protection scope of this disclosure, and will not be described in detail in the embodiments.
[0132] All the above-mentioned optional technical solutions can be referenced or combined with each other to form optional embodiments of this disclosure, and will not be described in detail here.
[0133] Based on the same inventive concept, this disclosure also provides a device for generating room daylight intensity for building models. Since the principle of the device for generating room daylight intensity for building models is similar to that of the aforementioned method for generating room daylight intensity for building models, the implementation of the device for generating room daylight intensity for building models can refer to the implementation of the aforementioned method for generating room daylight intensity for building models, and the repeated parts will not be described again.
[0134] See Figure 5 , Figure 5 This is a structural block diagram of a room daylight generation device for a building model, provided as an embodiment of the present disclosure. Figure 5 As shown, the room daylighting generation device 500 for building models may include: a first acquisition module 501, a first determination module 502, a second determination module 503, a second acquisition module 504, and a generation module 505. Among them,
[0135] The first acquisition module 501 is used to acquire the elevation angle and azimuth angle of the room to be tested in the model of the building under test when the simulated sunlight source illuminates the room to be tested at a first time; wherein, the first time is any time when the simulated sunlight source illuminates the room to be tested.
[0136] The first determining module 502 is used to determine the actual illumination intensity of each first pixel based on the elevation angle and azimuth angle, as well as the facade information of the building model to be measured and the interior geometric information of the room to be measured; wherein, the first pixel is the pixel on the interior surface of the room to be measured that is illuminated by the simulated sunlight source at the first time.
[0137] The second determining module 503 is used to determine the actual light intensity of each second pixel based on the indoor geometric information of the room to be tested; wherein, the second pixel is a pixel on the indoor surface of the room to be tested that cannot be illuminated by the simulated sunlight source at the first time.
[0138] The second acquisition module 504 is used to acquire the theoretical illumination intensity of each first pixel and each second pixel.
[0139] The generation module 505 is used to generate the daylight intensity of the room under test at the first moment based on the actual and theoretical light intensity of all first pixels and the actual and theoretical light intensity of all second pixels.
[0140] Optionally, the first acquisition module 501 is used to acquire the elevation angle and azimuth angle of the room to be tested in the model of the building under test illuminated by the simulated sunlight source at the first time. Specifically, the first acquisition module 501 is used for:
[0141] Obtain the latitude and longitude information corresponding to the building model to be tested;
[0142] Based on the latitude and longitude information corresponding to the model of the building under test and the pre-stored data on the solar motion, the elevation angle and azimuth angle of the room under test in the model of the building under test are obtained in the first time when the simulated solar light source illuminates the room under test.
[0143] Optionally, the first determining module 502 is used to determine the actual illumination intensity of each first pixel based on the elevation angle and azimuth angle, as well as the exterior facade information of the building model to be measured and the interior geometric information of the unit to be measured. Specifically, the first determining module 502 is used to:
[0144] The intensity of the simulated solar light source and the initial incident direction of the light rays illuminating the room under test are determined based on the elevation angle and azimuth angle.
[0145] Based on the light source intensity and initial incident direction, as well as the exterior facade information of the building model under test and the interior geometry information of the room under test, the actual illumination intensity of each first pixel is determined by the forward ray tracing algorithm and the ray reflection and refraction algorithm.
[0146] Optionally, the second determining module 503 is used to determine the actual illumination intensity of each second pixel based on the indoor geometric information of the room to be tested. Specifically, the second determining module 503 is used to:
[0147] Based on the indoor geometric information of the room to be tested, the actual illumination intensity of each second pixel is determined by the ray tracing algorithm.
[0148] Optionally, the second acquisition module 504 is used to acquire the theoretical illumination intensity of each first pixel and each second pixel, specifically: the second acquisition module 504 is used to:
[0149] Based on the elevation angle and azimuth angle, calculate the maximum illumination intensity of each first pixel and each second pixel when they are fully illuminated by the simulated solar light source.
[0150] The maximum illumination intensity of each first pixel is determined to be the theoretical illumination intensity of the corresponding first pixel, and the maximum illumination intensity of each second pixel is determined to be the theoretical illumination intensity of the corresponding second pixel.
[0151] Optionally, the generation module 505 is used to generate the daylight intensity of the room under test at the first moment based on the actual and theoretical light intensities of all first pixels and the actual and theoretical light intensities of all second pixels. Specifically, the generation module 505 is used to:
[0152] The actual illumination intensity of the room to be tested is determined based on the actual illumination intensity of all first pixels and all second pixels.
[0153] Based on the theoretical illumination intensity of all first pixels and the theoretical illumination intensity of all second pixels, the theoretical illumination intensity of the room to be tested is determined.
[0154] Based on the actual and theoretical light intensity of the room under test, the daylight intensity of the room under test is generated at the first moment.
[0155] Optionally, the device may also include:
[0156] The rendering module is used to render and display the ambient light level of the room under test at the first moment, using the preset colors corresponding to the actual light intensity of each first pixel and the actual light intensity of each second pixel.
[0157] The daylight generation device for a building model provided in this disclosure can simulate a scenario where sunlight illuminates the building model under test by simulating a solar light source. Then, it can obtain the elevation angle and azimuth angle of the simulated solar light source illuminating the room under test within the building model. Subsequently, based on these elevation and azimuth angles, as well as the exterior facade information of the building model and the interior geometry information of the room under test, the actual illumination intensity of the first pixel that can be illuminated by the simulated solar light source and the second pixel that cannot be illuminated by the simulated solar light source can be determined. Then, based on the actual and theoretical illumination intensities of all first pixels, and the actual and theoretical illumination intensities of all second pixels, the daylight intensity of the room under test at a first-time moment can be generated.
[0158] As can be seen, by applying the room daylight generation device for building models provided in this disclosure to a digital twin scenario, the daylight of any room at any time can be determined through this device, thereby meeting the user's need to understand the daylight of any room and providing a better user experience.
[0159] This disclosure also provides an electronic device, see [link to relevant documentation] Figure 6 , Figure 6 This is a structural block diagram of an electronic device provided in an embodiment of this disclosure. Figure 6 As shown, the electronic device 600 may include a processor 601, a memory 602, and a program or instructions stored in the memory 602 and executable on the processor 601. When the program or instructions are executed by the processor 601, they implement the various processes of the above-described embodiment of the method for generating room daylight intensity for building models, and achieve the same technical effects. To avoid repetition, they will not be described again here. It should be noted that the electronic devices in the embodiments of this disclosure include mobile electronic devices and non-mobile electronic devices.
[0160] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this disclosure.
[0161] The electronic device 700 includes, but is not limited to, components such as: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, and processor 710.
[0162] Those skilled in the art will understand that the electronic device 700 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 710 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 7The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0163] It should be understood that, in this embodiment of the disclosure, the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The GPU 7041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, joysticks, etc., which will not be described in detail here. The memory 709 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understandable that the aforementioned modem processor may not be integrated into the processor 710.
[0164] This disclosure also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the various processes of the above-described method for generating room daylight intensity for building models, and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0165] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0166] This disclosure also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described method for generating room daylight intensity for building models, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0167] It should be understood that the chip mentioned in the embodiments of this disclosure may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0168] This disclosure is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0169] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0170] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0171] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device and system embodiments are relatively simple in description because they are fundamentally similar to the method embodiments; relevant parts can be referred to the descriptions of the method embodiments. In this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "upper," "lower," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are used only for the convenience of describing this disclosure and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this disclosure. Unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium; and they can refer to the internal communication between two components. Those skilled in the art can understand the specific meaning of the above terms in this disclosure according to the specific circumstances. It should be noted that, without conflict, the embodiments and features in the embodiments of this disclosure can be combined with each other. This disclosure is not limited to any single aspect, nor to any single embodiment, nor to any combination and / or substitution of these aspects and / or embodiments. Moreover, each aspect and / or embodiment of this disclosure can be used alone or in combination with one or more other aspects and / or embodiments thereof.
[0172] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this disclosure, and not to limit them. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this disclosure, and they should all be covered within the scope of the claims and specification of this disclosure.
Claims
1. A method for generating daylighting levels in rooms of a building model, characterized in that, The method includes: Obtain the elevation angle and azimuth angle of the room to be tested in the model of the building under test when the simulated sunlight source illuminates it at the first time; the first time is any time when the simulated sunlight source illuminates the room to be tested. Based on the elevation angle and azimuth angle, as well as the exterior facade information of the building model to be tested and the interior geometry information of the household to be tested, the actual illumination intensity of each first pixel is determined; the first pixel is the pixel on the interior surface of the household to be tested that is illuminated by the simulated sunlight source at the first time. Based on the indoor geometric information, the actual light intensity of each second pixel is determined; the second pixel is the pixel on the indoor surface of the room to be tested that cannot be illuminated by the simulated sunlight source at the first time. Obtain the theoretical illumination intensity of each first pixel and each second pixel; Based on the actual and theoretical light intensities of all first pixels, and the actual and theoretical light intensities of all second pixels, the daylight intensity of the room under test at the first time is generated.
2. The method of claim 1, wherein, Obtain the elevation and azimuth angles of the tested household room in the model of the building under test, based on the simulated sunlight source illuminating the building at the first moment, including: Obtain the latitude and longitude information corresponding to the building model to be tested; Based on the latitude and longitude information and pre-stored solar motion data, the elevation angle and azimuth angle of the room to be tested in the model of the building under test illuminated by the simulated solar light source at the first moment are obtained.
3. The method of claim 1, wherein, Based on the elevation angle and azimuth angle, as well as the exterior facade information of the building model under test and the interior geometry information of the apartment under test, the actual illumination intensity of each first pixel is determined, including: The intensity of the simulated solar light source and the initial incident direction of the light illuminating the room under test are determined based on the elevation angle and azimuth angle. Based on the light source intensity and the initial incident direction, as well as the exterior facade information of the building model under test and the interior geometry information of the room under test, the actual illumination intensity of each first pixel is determined by the forward ray tracing algorithm and the ray reflection and refraction algorithm.
4. The method of claim 1, wherein, Based on the indoor geometric information, the actual illumination intensity of each second pixel is determined, including: Based on the indoor geometric information, the actual illumination intensity of each second pixel is determined using a ray tracing algorithm.
5. The method of claim 1, wherein, Obtain the theoretical illumination intensity of each first pixel and each second pixel, including: Based on the elevation angle and azimuth angle, calculate the maximum light intensity of each first pixel and each second pixel when they are fully illuminated by the simulated sunlight source. The maximum illumination intensity of each first pixel is determined to be the theoretical illumination intensity of the corresponding first pixel, and the maximum illumination intensity of each second pixel is determined to be the theoretical illumination intensity of the corresponding second pixel.
6. The method of claim 1, wherein, Based on the actual and theoretical illumination intensities of all first pixels, and the actual and theoretical illumination intensities of all second pixels, the daylight intensity of the room under test at the first time is generated, including: The actual illumination intensity of the room to be tested is determined based on the actual illumination intensity of all first pixels and the actual illumination intensity of all second pixels. The theoretical illumination intensity of the room to be tested is determined based on the theoretical illumination intensity of all first pixels and all second pixels. Based on the actual light intensity and the theoretical light intensity of the room to be tested, the daylight intensity of the room to be tested at the first time is generated.
7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: The ambient light level of the room under test at the first time is rendered and displayed using preset colors corresponding to the actual light intensity of each first pixel and the actual light intensity of each second pixel.
8. A device for generating daylight intensity of a room in a building model, characterized in that, The device includes: The first acquisition module is used to acquire the elevation angle and azimuth angle of the room to be tested in the model of the building under test when the simulated sunlight source illuminates the room to be tested at a first time; the first time is any time when the simulated sunlight source illuminates the room to be tested. The first determining module is used to determine the actual illumination intensity of each first pixel based on the elevation angle and azimuth angle, as well as the exterior facade information of the building model to be tested and the interior geometry information of the household to be tested; the first pixel is the pixel on the interior surface of the household to be tested that is illuminated by the simulated sunlight source at the first time. The second determining module is used to determine the actual light intensity of each second pixel based on the indoor geometric information; the second pixel is a pixel on the indoor surface of the room to be tested that cannot be illuminated by the simulated sunlight source at the first time. The second acquisition module is used to acquire the theoretical illumination intensity of each first pixel and each second pixel; The generation module is used to generate the daylight intensity of the room under test at the first time based on the actual and theoretical light intensity of all first pixels and the actual and theoretical light intensity of all second pixels.
9. An electronic device, characterized in that, The electronic device includes: Memory, used to store computer programs; A processor for executing a computer program stored in the memory, wherein when the computer program is executed, it implements the method described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the method described in any one of claims 1 to 7.