A fire three-dimensional light and shadow dynamic deduction system and method

The fire 3D light and shadow dynamic simulation system, utilizing intelligent modeling and virtual camera technology, solves the problems of high cost, low efficiency, and safety risks in fire investigation. It enables rapid and accurate fire source location and multi-channel synchronous comparison, thereby improving the reliability and evidentiary value of fire investigation.

CN123160734APending Publication Date: 2026-11-24SHANGHAI FIRE RES INST OF MEM +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611676060.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-28
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing fire investigation technologies suffer from high costs, long cycles, significant safety risks, high modeling thresholds, limited accuracy, and an inability to realistically simulate the light and shadow characteristics of fire sources and perform multi-channel synchronous comparisons.

Method used

The system employs a 3D fire lighting and dynamic simulation system. By constructing a 3D fire scene, it uses an intelligent modeling-assisted generation submodule to quickly create models. Combined with a fire-specific material library and special effects generation module, it simulates various types of fire source lighting and effects. Furthermore, it establishes a correspondence between virtual cameras and real surveillance cameras to achieve comparison from the same perspective.

Benefits of technology

It enables low-cost, rapid, and safe estimation of fire source locations, improves modeling efficiency and accuracy, ensures realistic reproduction of light and shadow features, supports multi-channel synchronous comparison, and enhances the evidentiary value and reliability of investigations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160734A_ABST
    Figure CN123160734A_ABST
Patent Text Reader

Abstract

This invention discloses a three-dimensional dynamic lighting and shadow simulation system and method for fire. The system includes: an image engine module for constructing a three-dimensional fire scene and rendering it in real time; a material resource library module for providing the image engine module with fire-specific materials organized by category; a special effects generation module for generating environmental effects and fire source / light source effects in the three-dimensional fire scene; and a virtual camera module for deploying virtual cameras corresponding to real surveillance cameras in the three-dimensional fire scene and outputting images from the virtual camera's perspective. The method includes constructing a three-dimensional fire scene, placing fire sources, deploying virtual cameras, rendering output, comparing with real surveillance video, and iteratively adjusting the fire source until it matches, thereby determining the location of the fire and verifying the cause of the fire. This invention eliminates the need for physical simulation experiments, has a low modeling threshold, realistically reproduces the dynamic lighting and shadow of the fire source, and improves the accuracy and evidentiary value of fire investigations through comparison with surveillance video from the same perspective.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of fire investigation and 3D visualization technology, specifically to a system and method for estimating the location of a fire based on 3D scene reconstruction and real-time rendering, through dynamic light and shadow simulation and comparison with a virtual camera from the same perspective. Background Technology

[0002] One of the core tasks of fire accident investigation is to identify the location and point of origin of the fire based on objective evidence such as traces left at the scene and surveillance videos. In recent years, with the popularization of urban video surveillance networks, surveillance videos of fire scenes and surrounding areas have become an important source of objective evidence in fire investigations. One important technical approach is "fire video light and shadow analysis": since the fire source itself is a high-intensity dynamic light source, it will form characteristic projections and light and shadow distributions on the surfaces of building walls, floors, furniture, and other objects during the development of the fire. By analyzing these light and shadow characteristics (shadow direction, projection length, light and shadow boundaries, etc.) recorded in the surveillance video, the location of the fire source in three-dimensional space can be deduced.

[0003] Meanwhile, 3D modeling and real-time rendering technologies have begun to be introduced into the field of fire investigation. Existing research has shown that 3D modeling of fire scenes, combined with geometric drawing algorithms for light and shadow analysis, can be used to determine the location of the fire source. This technology can replace traditional physical simulation experiments, and has the advantages of being economical, accurate, intuitive, and convenient, and can provide basic support for fire process reconstruction.

[0004] Existing technologies mainly include the following categories: (1) Physical simulation test method. Investigators placed physical light sources in a physical space that is the same as or similar to the fire scene, according to the predicted fire location, and took photos of the light and shadow effects on the spot. Then, they manually compared the photos with the images in the monitoring video. By repeatedly adjusting the position of the physical light sources, they could approximate the real fire point.

[0005] (2) 3D modeling + geometric drawing algorithm. The fire scene is modeled in 3D. Geometric drawing is performed in the model based on the projection relationship in the monitoring screen. The position of the light source is estimated by the geometric rays of the light.

[0006] (3) General-purpose 3D modeling and rendering software. Use general-purpose 3D modeling software (such as various CAD software and general-purpose 3D animation software) to build architectural models or draw directly, and then use a general-purpose rendering engine to add light sources for rendering.

[0007] (4) Fire numerical simulation software. Existing fire simulation software focuses on the numerical calculation and post-processing display of physical quantities such as combustion chemical reactions, temperature fields, and flue gas flow.

[0008] (5) There are already relevant commercial software in China. The "Firescape" software from Tianjin Fire Research Institute and the "Fire Check" software from Shenyang Fire Research Institute are both used in the field of fire investigation light and shadow simulation. The "Firescape" software mainly completes scene modeling by converting 3D real scene scanning into virtual 3D structure. This solution relies on 3D real scene scanning equipment. In the case of structural damage at the disaster site, it is difficult to accurately restore the structure and model by relying on real scene scanning data, and it is difficult to accurately restore the building structure and environment before the fire. The 3D modeling of the "Fire Check" software is mostly white model and the wall material cannot be adjusted, making it difficult to accurately reflect the diffuse reflection of the structure around the actual fire point. Neither of the above two software programs integrates weather simulation function, so they cannot restore the environmental conditions such as sunlight and visibility when the fire occurs; and neither can simulate the characteristic performance of different types of ignition sources / combustion materials in the early stage of fire (such as the differences in the brightness change range, flicker frequency, color change, etc. of lithium-ion battery thermal runaway, gas combustion, arc discharge, etc.). The characteristic dimensions of fire source special effects simulation and restoration are limited, and it cannot fully meet the simulation and comparison needs of ignition sources and initial ignition materials.

[0009] The defects and shortcomings of the aforementioned existing technologies are summarized as follows: (1) Physical simulation tests are costly, time-consuming, and have poor repeatability. Physical simulation requires finding and occupying a real space similar to the fire scene, setting up physical light sources and camera equipment, and a single test often takes several days; moreover, the real fire scene has been destroyed after the fire, and it is difficult to find a completely identical space to reproduce it. Once the estimated location needs to be corrected, the entire test must be reorganized, and it is not possible to iterate quickly. At the same time, physical tests involving open flames, combustion and explosion scenarios also pose safety risks.

[0010] (2) Geometric drawing methods rely on manual labor, have limited accuracy, and are difficult to handle complex scenes. Geometric drawing requires investigators to manually identify the projection boundaries, and the drawing error and subjective judgment components are relatively large. For complex scenes with multiple light sources, where the shape and intensity of the light sources themselves change drastically over time (such as deflagration and blast), and where there are multiple reflections and penumbra, pure geometric drawing is difficult to describe, let alone provide dynamic inference results that change over time.

[0011] (3) General-purpose 3D software has a high barrier to entry and low modeling efficiency, and is disconnected from investigation operations. Most fire investigators have backgrounds in fire protection technology and investigation operations, but are not 3D animation professionals. The learning cost of using general-purpose modeling software to build fire scene models is high. During on-site inspections, only hand-drawn sketches, line drawings, or on-site photos can be obtained. These materials cannot be directly converted into 3D models and require manual secondary modeling. It often takes several hours or even days to go from a sketch to a usable model, which seriously restricts the timeliness of the investigation. In addition, general-purpose software lacks a system of materials specific to fire sources, smoke, building materials, furniture, and equipment. Investigators need to collect and create these materials themselves, and consistency and standardization cannot be guaranteed.

[0012] (4) General-purpose rendering engines lack fire source optical characteristics and dynamic effects models specifically for fires. Different types of fire sources (open flames, gas explosions, lithium battery thermal runaway explosions, leftover cigarette butts, electrical fault flashes, fireworks displays, light flashes, etc.) vary greatly in color temperature, brightness, flicker frequency, spatial light emission patterns, and duration. However, general-purpose rendering engines only provide general light source models such as point light sources and surface light sources, which cannot realistically reproduce the characteristic light and shadow performance of the above fire sources. As a result, the rendering results are not comparable to the monitoring video footage and cannot be used for evidence comparison.

[0013] (5) The lack of virtual imaging methods corresponding to real surveillance cameras makes it impossible to directly compare the simulation results with the surveillance video. Real surveillance video is affected by imaging parameters such as camera installation location, orientation, field of view, focal length, aperture, exposure time, and ISO. The same lighting scene will present significant differences in the image under different imaging parameters. Existing technologies usually use free-viewpoint rendering during rendering, without establishing a virtual imaging model that corresponds one-to-one with the real surveillance camera. This results in inconsistencies between the rendered image and the surveillance image in terms of viewpoint and imaging characteristics. The two cannot be directly compared frame by frame or screen by screen, which weakens the evidentiary value of the analysis conclusions.

[0014] (6) Lack of means for multi-channel synchronous comparison and process results consolidation. There are often multiple surveillance cameras at the fire scene, and multiple images need to be compared at the same time to form a chain of evidence that corroborates each other; however, existing technologies mostly produce images from a single perspective, which cannot be observed simultaneously from multiple channels, and there is also a lack of means to record, export, and share the entire deduction process, which is not conducive to case review, expert consultation and case file archiving. Summary of the Invention

[0015] To address the aforementioned technical issues, this invention provides a three-dimensional dynamic light and shadow simulation system and method for fire, which can quickly construct three-dimensional fire scenes with low barriers to entry, realistically simulate the dynamic light and shadow effects of various types of fire sources, and establish a correspondence between virtual cameras and real monitoring cameras to achieve same-view comparison between simulation images and monitoring videos, thereby replacing physical simulation experiments and quickly, economically, and accurately estimating the location of the fire source.

[0016] To achieve the above objectives, the present invention adopts the following technical solution: In one embodiment of the present invention, a three-dimensional light and shadow dynamic simulation system for fire is proposed, the system comprising: The image engine module is used to construct a three-dimensional fire scene and render the three-dimensional fire scene in real time. The material resource library module, connected to the image engine module, is used to provide the image engine module with fire-specific materials organized by category. An effect generation module, connected to the image engine module, configured to generate environmental effects and fire source / light source special effects in the 3D fire scene; A virtual camera module, connected to the image engine module, configured to deploy a virtual camera corresponding to a real monitoring camera in the 3D fire scene, and output an imaging frame from the perspective of the virtual camera; The image engine module includes an intelligent building auxiliary generation submodule, which is configured to intelligently recognize hand-drawn drawings, and recognize the hand-drawn drawings as building components according to predefined recognition rules to assist in rapidly generating 3D models.

[0017] Further, the predefined recognition rules include: a closed curve is recognized as a wall, a "曰" character shape is recognized as a window, an "L"-shaped opening is recognized as a door, and a "目" character shape is recognized as a staircase; the intelligent building auxiliary generation submodule further supports automatically matching corresponding component models based on text annotations in the hand-drawn drawings.

[0018] Further, the image engine module further includes: A 3D real-time rendering engine, configured to support 4K ultra-high-definition resolution real-time rendering, wherein the rendering frame rate of a simple scene is no less than 60 fps, and the rendering frame rate of a complex scene is no less than 30 fps; the simple scene is defined as a scene where the area of the building model is ≤ 300 m² and any one of the following conditions is satisfied: there is 1 fire source and the number of virtual cameras is ≤ 4, or there are 2 fire sources and the number of virtual cameras is ≤ 2; the complex scene refers to scenes other than the simple scene; A 3D scene construction data import submodule, configured to support importing 3D model files in FBX, OBJ, GLTF and ST formats; A spatial intelligent optimization submodule, configured to automatically correct scale imbalance and unreasonable structures of the 3D model, automatically match standard components of conventional specifications according to the spatial dimensions of the 3D model, and support parameterized editing of size, material and position parameters; A CAD data import submodule, configured to support importing files in DWG format of the entire AutoCAD 2010-2023 series and JPG format, with a geometric data conversion accuracy of 1 mm; after import, CAD content is first displayed in 2D mode, and a 3D scene is automatically created through a 3D model generation operation.

[0019] Further, the material resource library module establishes a classification system according to five core material categories: fire sources, smoke, materials, furniture items and special effects, and contains materials of no less than 10 fire source types, 8 smoke types, 50 building materials, and 100 standard furniture and equipment, and supports online update and expansion of a public material library, a customized material library and a private material library.

[0020] Furthermore, the special effects generation module includes: The environmental simulation subsystem is used to integrate physical effects simulation of time, season, and weather, and supports parameterized adjustment of time, season, and weather. The fire source / light source effects simulation subsystem is used to simulate fire source types, including open flame, gas explosion, lithium battery thermal runaway deflagration, leftover cigarette butt, electrical fault flash, fireworks display, and light flashing. The size and intensity parameters of the fire source are adjustable. The fire source / light source effects simulation subsystem is implemented using a particle system, supporting real-time physical simulation of up to 1 million particles. Each fire source corresponds to a complete set of preset parameters. When switching the fire source type, the corresponding parameter set is loaded. The parameter set includes at least one of the following: particle emitter shape and emission mode, particle life cycle evolution curve, brightness change curve, and color temperature / color change curve. The acoustic simulation subsystem is used to generate acoustic effects. The sound source types include five categories: combustion, explosion, structural deformation, electrical fault and environmental noise. The frequency response range covers the entire frequency band from 20Hz to 20kHz, and the dynamic range is 30-100dB.

[0021] Furthermore, the virtual camera module supports the simultaneous deployment and management of multiple virtual cameras; its field of view is continuously adjustable within a 360° range with an adjustment accuracy of 0.1°; its spatial positioning accuracy is 0.001 meters, and its rotation accuracy is 0.01°; it supports the setting of focal length, aperture, exposure time, and ISO photography parameters; during rendering, it is based on a physical camera model and calculates at least one of the following imaging effects—field of view, distortion, depth of field, light transmission, and noise—to match the image based on the photography parameters.

[0022] Furthermore, the system also includes an interactive control unit and an output unit, wherein: The interactive control unit includes a toolbar, a material library panel, an information bar, and a minimap; the toolbar includes functions such as save, import, wall, clear, select, pan, zoom, view, virtual camera, collision, fire source, light source, and record; the information bar is used to display and adjust item attributes and scene element parameters; the minimap is used to display the location of the fire source, the location and field of view of the virtual camera, as well as the current viewpoint and line of sight. The output unit is used to record and save the simulation screen content and camera movement trajectory as a video file, and supports output via video file or web page sharing.

[0023] In one embodiment of the present invention, a method for dynamic simulation of three-dimensional light and shadow in fire is also proposed, the method comprising: Step 1: Start the system and select the scene creation method; Step 2: Construct a 3D fire scene; if the input is a hand-drawn sketch, the intelligent building auxiliary generation submodule performs intelligent recognition on the hand-drawn sketch, identifies the hand-drawn sketch as building components according to predefined recognition rules, and assists in rapidly generating a 3D model; Step 3: Perform spatial intelligent optimization on the 3D fire scene; Step 4: Set environmental parameters corresponding to the time of fire occurrence; Step 5: Place a hypothetical fire source in the 3D fire scene, and set fire source parameters; Step 6: Deploy virtual cameras corresponding to real surveillance cameras in the 3D fire scene, and set imaging parameters of the virtual cameras; Step 7: Render and output deduction images from the perspective of the virtual cameras in real time.

[0024] Further, the method further includes: Step 8: Perform light and shadow feature comparison between the deduction images and images from corresponding cameras in real surveillance videos; Step 9: Determine whether the light and shadow features of the two are consistent: if not, adjust the fire source parameters or position and re-execute Step 5 to Step 8; if yes, proceed to the next step; Step 10: Determine the current fire source position as the fire source position, and output the deduction process results.

[0025] Further, in Step 1, scene creation methods include three types: importing CAD files, selecting preset scenes from a scene library, and creating an empty scene; when importing a CAD file, the system first displays the CAD content in 2D mode, then executes a 3D model generation operation to automatically create a 3D fire scene; when selecting a preset scene from the scene library, the preset scene is selected and directly loaded according to categories such as villas, offices, and factories; when creating an empty scene, the floor plan is manually built, and furniture and furnishings are dragged in from the material resource library module.

[0026] Further, in Step 2, the predefined recognition rules include: closed curves are recognized as walls, "sun" shapes are recognized as windows, "L" shaped openings are recognized as doors, and "eye" shapes are recognized as stairs; it also supports automatically matching corresponding component models based on text annotations in the hand-drawn sketch.

[0027] Further, in Step 6, according to the installation position and orientation of the real surveillance cameras in the fire scene, the virtual cameras are deployed with a position accuracy of 0.001 meters and a rotation accuracy of 0.01°, and the virtual cameras are set according to the field of view angle, focal length, aperture, exposure time, and ISO photographic parameters of the real surveillance cameras; when there are multiple surveillance channels in the real fire scene, multiple virtual cameras are deployed and displayed simultaneously in a split-screen manner.

[0028] Furthermore, in step eight, the system's built-in player supports importing real surveillance video files in MP4, AVI, and MOV formats; the simulation timeline of the simulation screen can be set with start and end times to unify the timeline with the real surveillance video; the simulation screen and the real surveillance video are presented side-by-side by default, and the system supports adjusting the transparency of the simulation screen for overlap comparison in a paused state; the system provides distance measurement and angle measurement tools for quantitative comparison.

[0029] Furthermore, in step five, when it is speculated that the source of the fire is a lithium battery thermal runaway explosion or an electrical fault flash, a particle system with GPU hardware parallel acceleration is used to perform real-time physical simulation of 1 million particles. All particle data is stored in the GPU memory, and the simulation shader is performed in batches in parallel on the GPU in multiple threads. A layered particle strategy is used to split flame particles, smoke particles, and debris particles into different emitters. Combined with frustum culling, distance LOD, particle block staggered asynchronous update, and spatial hashing for optimization, in order to reproduce the dynamic light and shadow characteristics of instantaneous brightness and flickering.

[0030] Furthermore, between steps five and six, there is also an acoustic simulation step: the acoustic simulation subsystem generates sound effects according to five types of sound sources: combustion, explosion, structural deformation, electrical fault and environmental noise, with a frequency response range of 20Hz-20kHz and a dynamic range of 30-100dB, which is used to assist in the comparison with the audio recordings in the real monitoring video.

[0031] Furthermore, in step seven, the deduction results can be observed from multiple angles through the free viewing mode, and the observation angle can be controlled to see outdoors by switching between the activation and deactivation states of the collision icon.

[0032] In one embodiment of the present invention, a computer device is also proposed, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the above-mentioned three-dimensional light and shadow dynamic simulation method for fire.

[0033] In one embodiment of the present invention, a computer-readable storage medium is also provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the above-described three-dimensional light and shadow dynamic simulation method for fire.

[0034] Beneficial effects: 1. Replacing physical simulation tests with virtual simulations significantly reduces costs, shortens cycles, and eliminates safety risks. This invention uses 3D scene construction and real-time rendering to complete simulation tests in a computer that originally required occupying real space and arranging physical light sources. Because the rendering is performed in real time, changes in light and shadow can be seen immediately after adjusting the position or parameters of the fire source, enabling rapid iteration of simulation results and overcoming the shortcomings of physical tests, such as high cost, long cycle, non-repeatability, and safety risks associated with open flames.

[0035] 2. Multimodal intelligent assisted modeling significantly lowers the modeling threshold and improves modeling efficiency. The intelligent building auxiliary generation submodule of this invention supports intelligent recognition of hand-drawn sketches, assisting in the rapid creation of standard components such as walls, doors and windows, stairs, roofs, and columns; it is also compatible with the entire series of AutoCAD 2010-2023 DWG formats with a conversion accuracy of up to 1 mm, and is compatible with mainstream 3D formats such as FBX, OBJ, GLTF, and ST. This allows fire investigators without 3D animation skills to quickly model using sketches and drawings obtained from on-site inspections, overcoming the shortcomings of general 3D software modeling, such as high threshold, low efficiency, and disconnect from investigation operations; the spatial intelligent optimization submodule automatically corrects scale misalignment and structural inconsistencies, further ensuring the reliability of the model.

[0036] 3. A dedicated fire-related material system and a dedicated fire source optical model ensure the realism of light and shadow reproduction. The material resource library module of this invention is organized into five categories: fire source, smoke, materials, furniture and items, and special effects. It includes 10 types of fire sources, 8 types of smoke, 50 types of building materials, and 100 types of standard furniture and equipment, and supports online updates and expansion. The special effects generation module establishes parameter preset models for different fire sources such as open flames, gas explosions, lithium battery thermal runaway deflagration, leftover cigarette butts, electrical fault flashes, fireworks displays, and flashing lights. It supports adjustments to size and intensity parameters, as well as settings for color, brightness, and flashing type, and uses real-time physical simulation with 1 million particles to support dynamic performance. Compared to general rendering engines that only provide general light source models, this invention can realistically reproduce the characteristic light and shadow performance of various fire sources, making the simulation footage comparable to the monitoring footage.

[0037] 4. The virtual camera corresponds one-to-one with the real surveillance camera, enabling frame-by-frame comparison from the same viewpoint and significantly enhancing the evidentiary value of the conclusions. The virtual camera module of this invention provides spatial positioning with a positional accuracy of 0.001 meters, a rotational accuracy of 0.01°, and a field-of-view angle adjustment accuracy of 0.1°. It also supports professional photography parameter settings such as focal length, aperture, exposure time, and ISO. Based on a physical camera model, it accurately reproduces the installation status and imaging characteristics of the real surveillance camera. The resulting simulated images can be directly compared with the actual surveillance video, overcoming the shortcomings of existing technologies that use free-viewpoint output and render images that cannot be directly compared with surveillance footage.

[0038] 5. Multi-channel split-screen synchronous comparison forms a mutually corroborating chain of evidence. The system supports the simultaneous deployment and management of multiple virtual cameras, and displays each channel's image simultaneously in a split-screen manner. The mini-map synchronously displays the number, location, and field of view of the cameras. When there are multiple real monitoring channels at the fire scene, the system can simultaneously compare the light and shadow consistency of multiple channels. The results from multiple channels corroborate each other, which is more effective in eliminating accidental consistency than single-view comparison, thus improving the reliability of fire location identification.

[0039] 6. The process is visualized, can be solidified, and can be shared, facilitating review and archiving. The recording function of this invention can completely record the content of the simulation and the camera movement trajectory as a video, and supports two output methods: video file and web page sharing; the free viewing mode, combined with collision control, allows the simulation results to be examined from any angle indoors or outdoors, making the simulation process intuitive and reproducible, facilitating case review, expert consultation, and case file archiving, overcoming the shortcomings of existing technologies that lack means to solidify process results.

[0040] 7. The environmental and acoustic elements are collaboratively recreated to further approximate real fire conditions. The environmental simulation subsystem of this invention performs parametric physical simulations of time, season, and weather, which can reproduce the real ambient lighting conditions at the moment of a fire, avoiding misjudgments of light and shadow caused by differences in ambient light. The acoustic simulation subsystem covers 5 types of sound sources, the full frequency band of 20Hz-20kHz, and a dynamic range of 30-100dB, and can be compared with audio records in real surveillance videos to form supplementary evidence beyond light and shadow evidence.

[0041] 8. Supports remote sharing and collaborative investigation. Through parameter storage and system account settings, this invention allows multiple investigation entities to simultaneously view stored case parameters, annotate, discuss, and modify 3D models, achieving seamless integration of investigation stages across multiple regions and departments. The entire process is traceable, and steps can be rewound, providing technical support for the rigor of fire accident investigations. Attached Figure Description

[0042] Figure 1 This is a schematic diagram of the structure of the fire three-dimensional light and shadow dynamic simulation system of the present invention; Figure 2 This is the overall flowchart of the fire three-dimensional light and shadow dynamic simulation method of the present invention; Figure 3 This is a flowchart illustrating the branching process of the scene creation method in this invention; Figure 4 This is a flowchart of the virtual camera deployment and light and shadow comparison iteration in this invention; Figure 5 This is a schematic diagram of the software interaction interface of the system of the present invention; Figure 6 This is a schematic diagram of the interface for split-screen display of multiple virtual cameras in this invention; Figure 7 is a structural schematic diagram of the computer device of the present invention. Detailed Description of the Embodiments

[0043] The principles and spirit of the present invention will be explained in detail below with reference to several representative embodiments of the present invention.

[0044] As Figure 1 shown in the figure, the present invention proposes a dynamic fire three-dimensional light and shadow deduction system, which includes an image engine module, a material resource library module, a special effect generation module and a virtual camera module, and is equipped with an interactive control unit and an output unit. All parameters are set in the UI interface and read by the image engine module; all parameters are stored as configuration files. Among them: The image engine module is used to construct a three-dimensional fire scene and perform real-time rendering on the three-dimensional fire scene. The image engine module includes an intelligent building auxiliary generation sub-module, which is used to intelligently recognize hand-drawn images and identify the hand-drawn images as building components according to predefined recognition rules, so as to assist in quickly generating three-dimensional models.

[0045] Further, the intelligent building auxiliary generation sub-module adopts a multi-modal input recognition method to support intelligent recognition of hand-drawn images; it assists in quickly creating standard components including walls, doors and windows, stairs, roofs, columns, etc., to achieve rapid modeling. The intelligent building auxiliary generation sub-module quickly generates a simple model of the three-dimensional model with default height parameters (wall height, window height, door height, table height, etc.). The intelligent building auxiliary generation sub-module supports multiple input methods such as stylus, digital tablet, mouse, touch screen, etc.

[0046] Further, the hand-drawn image is drawn based on predefined recognition rules. The predefined recognition rules include: closed curves are recognized as walls, "Yue" characters are recognized as windows, "L"-shaped openings are recognized as doors, and "Mu" characters are recognized as stairs; in addition, the intelligent building auxiliary generation sub-module also supports automatic adaptation of dimension annotations and automatic matching of corresponding component models based on text annotations in the hand-drawn image (for example, if the text "table" is marked in a rectangle, the model of the table will be automatically matched instead of being recognized as a wall).

[0047] Further, the image engine module further includes: A three-dimensional real-time rendering engine is used to support 4K ultra-high-definition resolution real-time rendering, wherein the rendering frame rate of simple scenes is no less than 60fps, and the rendering frame rate of complex scenes is no less than 30fps; the simple scene is defined as a building model with an area ≤ 300㎡ and meeting any of the following conditions: 1 fire source and the number of virtual cameras ≤ 4, or 2 fire sources and the number of virtual cameras ≤ 2; the complex scene is any scene other than the simple scene.

[0048] The 3D scene construction data import submodule supports the import of 3D model files in formats such as FBX, OBJ, GLTF, and ST.

[0049] The spatial intelligent optimization submodule is used to automatically correct the scale misalignment and structural inconsistencies of the 3D model. It supports parametric editing of multi-dimensional parameters such as size, material, and position, and automatically matches a menu of standard components and items of conventional specifications (e.g., 24cm wall, 75cm table height) according to the spatial dimensions of the 3D model. Users can select and confirm the dimensions of components and items through the item menu. For components and items of non-standard sizes, users only need to mark the dimensions in the hand-drawn drawing, and the spatial intelligent optimization submodule will automatically adjust the 3D model according to the marked dimensions.

[0050] The CAD data import submodule supports the import of DWG and JPG format files from the entire AutoCAD series from 2010 to 2023. The geometric data conversion accuracy is 1 mm. After import, the CAD content is first displayed in 2D mode, and a 3D scene is automatically created through the 3D model generation operation.

[0051] The material resource library module, connected to the image engine module, is used to provide the image engine module with fire-specific materials organized by category. Furthermore, the resource library module establishes a classification system based on five core resource categories: fire source, smoke, materials, furniture and items, and special effects. It includes resources for no fewer than 10 types of fire sources, 8 types of smoke, 50 types of building materials, and 100 types of standard furniture and equipment. It supports online updates and expansions of the public resource library (third-party resources without copyright claims), the customized resource library (developers customize resources according to customer needs), and the private resource library. The online update server is provided and maintained by the developers, who periodically update and expand the public resource library.

[0052] Furthermore, the resource library module supports searching for resources by keyword and filtering by item category. Furniture and equipment resources include common interior furnishings such as chairs and tables, which can be directly dragged into the scene for use. The resource library module corresponds to the resource library panel in the interactive interface, through which users can perform resource retrieval and drag-and-drop operations.

[0053] The special effects generation module, connected to the image engine module, is used to generate environmental effects and fire / light source effects in the three-dimensional fire scene. Furthermore, the special effects generation module includes: The environmental simulation subsystem is used to integrate physical effects simulations of time, season, and weather, and supports parametric adjustments to time, season, and weather.

[0054] The fire source / light source effects simulation subsystem is used to simulate fire source types, including open flame, gas explosion, lithium battery thermal runaway explosion, leftover cigarette butt, electrical fault flash, fireworks display, and light flashing. The size and intensity parameters of the fire source are adjustable. The fire source / light source effects simulation subsystem is implemented using a particle system and supports real-time physical simulation of 1 million particles.

[0055] Furthermore, the entire real-time performance relies on GPU hardware parallel acceleration and multi-layered algorithm optimization. All particle data (position, velocity, lifespan, color temperature, brightness, etc.) is stored in GPU memory; the simulated shader performs multi-threaded parallel batch operations on the GPU. A layered particle strategy is adopted, with flame particles, smoke particles, and debris particles split into different emitters; in terms of algorithms, basic optimizations are performed using frustum culling and distance LOD, while particle block staggered asynchronous updates and spatial hashing are used for further optimization.

[0056] Furthermore, the fire source / light source effects simulation subsystem can display light reflection and projection effects in real time after the light source is placed, and supports setting the color, brightness, and flicker type of the light source to simulate the light performance of different types of light sources. Each fire source corresponds to a complete set of preset parameters. When switching the fire source type, the corresponding parameter set is loaded. The parameter set includes at least one of the following: particle emitter shape and emission mode, particle life cycle evolution curve, brightness change curve, and color temperature / color change curve.

[0057] Taking ordinary open flame and lithium battery thermal runaway explosion as examples, the parameters of the two are compared as shown in Table 1 below: Table 1 The acoustic simulation subsystem is used to generate acoustic effects. The sound source types include five categories: combustion, explosion, structural deformation, electrical fault and environmental noise. The frequency response range covers the entire frequency band from 20Hz to 20kHz, and the dynamic range is 30-100dB.

[0058] The virtual camera module, connected to the image engine module, is used to deploy a virtual camera corresponding to a real surveillance camera in a three-dimensional scene and output the image from the perspective of the virtual camera.

[0059] Furthermore, the virtual camera module supports the simultaneous deployment and management of multiple virtual cameras; its field of view is continuously adjustable within a 360° range with an adjustment accuracy of 0.1°; its spatial positioning accuracy is 0.001 meters, and its rotation accuracy is 0.01°; it supports the setting of professional photography parameters such as focal length, aperture, exposure time, and ISO; during rendering, it is based on a physical camera model and calculates at least one of the following imaging effects to match the image: field of view, distortion (based on lens surface adjustment), depth of field, light transmission, and noise (based on publicly available camera lens and CMOS / CCD parameters from various camera manufacturers).

[0060] Furthermore, the virtual camera module displays the viewpoints of multiple virtual cameras simultaneously on the main screen in a split-screen manner, and displays the number, location, and field of view of each virtual camera on a mini-map. For example... Figure 6 As shown, the main screen is divided into multiple view windows, labeled "Camera 1 - Living Room", "Camera 2 - Living Room", "Camera 3 - Facing the Main Door", and "Camera 4 - Doorway". Each window displays the 3D scene from the perspective of the corresponding virtual camera, and the mini-map shows the position and field of view of each virtual camera.

[0061] Furthermore, the virtual camera module also provides a virtual camera editor for setting and adjusting the parameters of the virtual camera.

[0062] Furthermore, the system also includes an interactive control unit and an output unit, wherein: The interactive control unit includes a toolbar, a material library panel, an information bar, and a minimap; the toolbar includes functions such as save, import, wall, clear, select, pan, zoom, view, virtual camera, collision, fire source, light source, and record; the information bar is used to display and adjust item attributes and scene element parameters; the minimap is used to display the location of the fire source, the location and field of view of the virtual camera, as well as the current viewpoint and line of sight.

[0063] The output unit is used to record and save the simulation screen content and camera movement trajectory as a video file, and supports output via video file or web page sharing.

[0064] like Figure 5 As shown, the main interface layout is as follows: the toolbar is at the top, the material library panel is on the left, the main view of the 3D scene is in the middle, and the information bar (including a small map) is on the right.

[0065] The following combination Figure 5 Description of each functional unit: (1) Welcome Interface Unit: When the system starts, a welcome interface is displayed, allowing users to select a scene creation method, including importing CAD files (clicking the import icon), selecting a preset scene from the scene library, and creating an empty scene. The preset scenes in the scene library are classified into categories such as villa, office, factory, and others.

[0066] (2) Manually build a unit: The user clicks the wall icon, selects the wall type, and drags it into the scene to manually build the house layout; the right information bar allows adjustment of the wall size and material, and wall parameters include length, thickness, height, and type; scene attributes can view width, area, and depth parameters. The user selects any 3D model in the scene and clicks clear to delete the 3D model. Clicking the pan icon and selecting a 3D model activates the three-axis motion controller, adjusting the position of the 3D model in the scene along the X / Y / Z coordinate axes; the pan function can be used to move the fire source, adjust the position of the virtual camera, move the wall model, and the furniture and equipment models. The user clicks the fire source / light source icon to enter the corresponding fire source / light source selection menu and parameter setting panel.

[0067] (3) Free Viewing Unit: Users can enter free viewing mode by clicking the view icon and manipulate the viewpoint to move, turn, and rise / fall in the scene using the virtual buttons in the operation area at the bottom of the screen; the map in the right information bar displays the current location and line of sight with blue dots. Users can click the zoom icon to scale the selected 3D model in three axes, which can be used to quickly adjust the wall thickness, equipment model scale, and modify the range of fire particle generation area, etc. Users can click the virtual camera icon to activate the virtual camera editor, which can create virtual cameras in the scene, adjust the position, viewpoint, and field of view (FOV) of the selected virtual camera, save multiple preset monitoring views, and switch the screen output source during simulation.

[0068] (4) Collision control unit: When the collision icon is in an inactive gray state, the view can pass through walls and doors and windows to view outdoors; when the collision is activated, the view is blocked by walls and the viewing range is limited to indoors.

[0069] (5) Video recording output unit: When the user clicks the recording icon, the current screen content and camera movement trajectory can be saved as a video file, and the video file can be output in two ways: video file sharing and web page sharing. Web page sharing is divided into video stream sharing (viewing) and configuration package sharing (the user downloads the configuration package, loads it into the local software, and can then edit it locally).

[0070] The fire 3D light and shadow dynamic simulation system runs in an executable program environment that can be installed independently.

[0071] Based on the same inventive concept, this invention also proposes a method for dynamic simulation of three-dimensional light and shadow in fire scenarios. For example... Figure 2As shown, the method includes: Step 1: Start the system and select a scene creation method.

[0072] Further, in Step 1, the scene creation methods include three types: importing CAD files, selecting preset scenes from the scene library, and creating an empty scene; when importing a CAD file, the system first displays the CAD content in 2D mode, then executes the operation of generating a 3D model to automatically create a 3D fire scene; when selecting a preset scene from the scene library, select the preset scene according to the categories of villa, office, and factory building to directly load it; when creating an empty scene, manually build the floor plan and drag furniture and furnishings from the material resource library module.

[0073] Step 2: Build a 3D fire scene; wherein, if the input is a hand-drawn sketch, the intelligent building auxiliary generation sub-module performs intelligent recognition on the hand-drawn sketch, recognizes the hand-drawn sketch as building components according to predefined recognition rules, and assists in quickly generating a 3D model.

[0074] Further, in Step 2, the predefined recognition rules include: closed curves are recognized as walls, "曰"-shaped structures are recognized as windows, "L"-shaped openings are recognized as doors, and "目"-shaped structures are recognized as stairs; it also supports automatically matching corresponding component models based on text annotations in the hand-drawn sketch.

[0075] Step 3: Perform intelligent spatial optimization on the 3D fire scene.

[0076] Step 4: Set environmental parameters corresponding to the time of fire occurrence.

[0077] Step 5: Place a hypothetical fire source in the 3D fire scene and set fire source parameters.

[0078] Further, in Step 5, when the suspected fire source is lithium battery thermal runaway deflagration or electrical fault flashover, a GPU hardware parallel accelerated particle system is used to perform real-time physical simulation of millions of particles; all particle data is stored in GPU memory, the simulation Shader performs batch operations in parallel on GPU multi-threads, and a layered particle strategy is adopted to split flame particles, smoke particles, and debris particles into different emitters, combined with view frustum culling, distance LOD, particle block interleaved asynchronous update, and spatial hashing for optimization, so as to reproduce the dynamic light and shadow characteristics of instantaneous high brightness and flickering.

[0079] Step 6: Deploy virtual cameras corresponding to real surveillance cameras in the 3D fire scene, and set imaging parameters of the virtual cameras.

[0080] Furthermore, in step six, the virtual camera is deployed with a position accuracy of 0.001 meters and a rotation accuracy of 0.01° according to the installation position and orientation of the real monitoring camera in the fire scene, and the virtual camera is set according to the field of view angle, focal length, aperture, exposure time and ISO photography parameters of the real monitoring camera; when there are multiple monitoring channels in the real fire scene, multiple virtual cameras are deployed and displayed simultaneously in a split-screen manner.

[0081] Furthermore, between steps five and six, there is also an acoustic simulation step: the acoustic simulation subsystem generates sound effects according to five types of sound sources: combustion, explosion, structural deformation, electrical fault and environmental noise, with a frequency response range of 20Hz-20kHz and a dynamic range of 30-100dB, which is used to assist in the comparison with the audio recordings in the real monitoring video.

[0082] Step 7: Render and output the simulation footage from the perspective of the virtual camera in real time.

[0083] Furthermore, in step seven, the deduction results can be observed from multiple angles through the free viewing mode, and the observation angle can be controlled to see outdoors by switching between the activation and deactivation states of the collision icon.

[0084] Furthermore, the method also includes: Step 8: Compare the light and shadow features of the simulated images with those of the corresponding cameras in the actual surveillance video; Furthermore, in step eight, the system's built-in player supports importing real surveillance video files in MP4, AVI, and MOV formats; the simulation timeline of the simulation screen can be set with start and end times to unify the timeline with the real surveillance video; the simulation screen and the real surveillance video are presented side-by-side by default, and the system supports adjusting the transparency of the simulation screen for overlap comparison in a paused state; the system provides distance measurement and angle measurement tools for quantitative comparison.

[0085] Step 9: Determine if the light and shadow characteristics of the two are consistent. If they are inconsistent, adjust the fire source parameters or position and repeat steps 5 to 8. If they are consistent, proceed to the next step. Step 10: Determine the current fire source location as the ignition source location and output the simulation results.

[0086] To provide a clearer explanation of the above-mentioned three-dimensional light and shadow dynamic simulation method for fire, the following specific embodiments are used for illustration. However, it is worth noting that these embodiments are only for better illustrating the present invention and do not constitute an improper limitation of the present invention.

[0087] Example 1: Three-dimensional dynamic simulation method for fire lighting Taking an indoor fire accident investigation as an example, it is known that there are several surveillance videos around the fire scene, and the fire origin needs to be estimated based on the light and shadow characteristics recorded in the videos. The specific steps are as follows: First, start the system to enter the welcome interface. The system displays three options: importing CAD files, scene library, and empty scene (see Figure 5 ).

[0088] Second, build a 3D scene of the fire scene. Figure 3 shows a branch flowchart of scene creation methods. The specific paths are as follows: Path A: If the fire scene is a place with existing architectural design drawings, select "Import CAD File" and import the DWG drawing. The system first displays the CAD content in 2D mode, and the user clicks "Generate 3D Model" at the bottom of the screen, and the CAD data import sub-module automatically creates a 3D scene with a 1 mm geometric conversion accuracy.

[0089] Path B: If the fire scene is a typical place such as a villa, office, or factory building, select "Scene Library" and select a preset scene from the corresponding category to load directly.

[0090] Path C: If there is no drawing of the fire scene, select "Empty Scene", click the wall icon in the toolbar, select the wall type and drag it into the scene to manually build the floor plan, set the wall parameters in the information bar (for example, length 4m, thickness 0.15m, height 2.5m, type is brick wall), and then search and drag indoor furnishings such as chairs and tables from the material library panel.

[0091] Path D: If only hand-drawn drawings are obtained from the on-site inspection, a complete 3D model of walls, doors, windows, stairs, roofs, and columns is created based on the hand-drawn drawings. Closed curves in hand-drawn drawings are identified as walls, "Yue" shapes as windows, "L"-shaped openings as doors, and "Mu" shapes as stairs; rectangles marked with the text "table" are automatically matched with table models.

[0092] After completing the above paths, proceed to the third step for model optimization.

[0093] After creating an empty scene or importing a CAD file, the user can manually edit and adjust the 3D scene through the 3D model editor.

[0094] Third, model optimization. The spatial intelligent optimization sub-module automatically corrects the model's scale imbalance and unreasonable structure, and performs parametric correction on room dimensions, wall and floor materials, and furniture positions based on on-site inspection records to make the model consistent with the real fire scene; verify parameters such as scene width, area, and depth through the information bar.

[0095] The fourth step is to set environmental conditions. The environmental simulation subsystem is used to set the time of the fire (e.g., 10 PM), season, and weather to ensure that the natural ambient lighting in the scene matches the actual conditions at the time of the fire, thus eliminating the interference of ambient light on the interpretation of light and shadow.

[0096] Step 5: Place the hypothetical fire source and light source. Click the fire source button in the toolbar to open the fire source library. Based on the type of fire source inferred from the traces at the scene (such as "electrical fault flash"), select the corresponding fire source and drag it to the hypothetical fire location. The scene will then display the corresponding burning and flashing effects. Adjust the size and intensity of the fire source in the information bar. For indoor lighting fixtures that were originally on when the fire occurred, click the light source button, select the light source type, drag it to the corresponding location, and set its color, brightness, and flashing type. Observe the light reflection and projection effects in real time. The mini-map displays the locations of the placed fire sources with icons.

[0097] Step 6: Deploy virtual cameras. Based on the installation locations and orientations of the real surveillance cameras recorded during the on-site survey, click the virtual camera icon in the toolbar and add virtual cameras one by one to the corresponding positions in the 3D scene. Position the cameras with a 0.001-meter accuracy and a 0.01-degree rotation accuracy, and set their field of view (0.1-degree accuracy), focal length, aperture, exposure time, and ISO according to the actual parameters of each real surveillance camera. The main screen displays the viewpoints of each virtual camera simultaneously in a split-screen format, and the mini-map synchronously displays the number, location, and field of view of each virtual camera.

[0098] Step 7: Real-time rendering output of the simulation footage. The 3D real-time rendering engine renders the scene in 4K resolution, outputting dynamic lighting and shadow images from the perspectives of various virtual cameras.

[0099] Step 8: Light and Shadow Feature Comparison. The simulated images are compared side-by-side with the corresponding camera footage from the actual surveillance video at the same time, verifying light and shadow features such as shadow direction, projection length and shape, position of light and dark boundaries, and brightness distribution. During the comparison, the system's built-in player supports importing actual surveillance video files in mainstream formats such as MP4, AVI, and MOV. The simulation timeline of the simulated images can be set with start and end times to align with the actual surveillance video's timeline. The simulated images and the actual surveillance video are presented side-by-side by default, and their position and size can be freely adjusted by dragging. In paused mode, the transparency of the simulated images can be adjusted, and the simulated images can be dragged to overlap with the actual surveillance video for detailed comparison. The toolbar provides distance and angle measurement tools, enabling quantitative comparison by marking the length and intersection angle of straight lines.

[0100] Step 9: Judgment and iteration. Figure 4The diagram illustrates the operational flow of virtual camera deployment and iterative light and shadow comparison. Specifically, if the light and shadow characteristics are inconsistent, the process returns to step five to adjust the spatial position of the fire source in the 3D scene, or correct its type, size, and intensity parameters, then re-render and compare again. Since rendering is performed in real time, the results of a single adjustment can be seen within seconds, and the process can be iterated repeatedly until the match is perfect. If the light and shadow characteristics of all feeds are consistent with the actual surveillance video, the process proceeds to the next step.

[0101] Step 10: Judgment and Consolidation of Results. Determine the spatial coordinates of the current fire source in the 3D scene as the location of the fire source, and combine this with other evidence such as on-site traces and physical evidence to form a chain of evidence; click the record icon in the toolbar to record and save the simulated scene content and camera movement trajectory as a video file, and output it through video file or web sharing method as a process result and supporting material for fire investigation.

[0102] Example 2: Assisted Verification of Free Viewing and Collision Control After step seven and before step eight in Example 1, the following auxiliary verification can also be performed: Click the view icon in the toolbar to enter free viewing mode. Use the virtual buttons in the control area at the bottom of the screen to move, turn, and raise / lower the view in the scene, observing the distribution of light and shadow created by the fire source from any angle. At this time, the minimap displays the current location and the direction of the line of sight with blue dots (see...). Figure 5 ).

[0103] When you need to observe the light and shadows projected through doors and windows from the outside, keep the collision icon in the toolbar in an inactive gray state, and your view can pass through walls and doors and windows to reach the outside for viewing; when you need to strictly limit the observation range to indoors and simulate the real observation conditions of a person indoors, activate the collision icon, and the view will be blocked by walls, limiting the viewing range to indoors.

[0104] Example 3: Acoustic-assisted comparison For cases where the surveillance video also records audio, after step 5 of Example 1, the acoustic simulation subsystem can be activated to generate corresponding sound effects according to five types of sound sources: combustion, explosion, structural deformation, electrical fault, and environmental noise, within a frequency response range of 20Hz-20kHz and a dynamic range of 30-100dB. This is then compared with the sound characteristics recorded in the audio recording of the actual surveillance video (such as the low-frequency impact of deflagration, the discharge sound of electrical fault, and the cracking sound of structural deformation) to verify or exclude the hypothesized type of ignition source, complementing the results of the light and shadow comparison.

[0105] Example 4: Parameter preset for lithium battery thermal runaway and deflagration ignition source When the suspected ignition source is a lithium battery thermal runaway explosion, select "lithium battery thermal runaway explosion" as the ignition source type in step five of Example 1. The system loads the preset parameters corresponding to this ignition source: The particle emitter employs a small point emitter / narrow-slit directional emitter to simulate the narrow opening of a battery pressure relief valve. The emission mode is a staged pulsed eruption: Stage 1 (0-3s) is a high-pressure, high-speed jet (momentum-dominated); Stage 2 involves pressure decay, transitioning to a buoyancy plume. The velocity field is directional, with an initial velocity of 30-120 m / s, strong axial momentum, and narrow lateral diffusion. Morphologically, it is characterized by short, high-speed jets with a slender, columnar flame.

[0106] The particle lifecycle is divided into two sets of particles: the jet flame particles have a lifecycle of 0.3-1.2s (due to high-speed motion and rapid cooling), while the splashed high-temperature solid particles (cathode material debris) have a lifecycle of up to 2-4s. The global lifecycle exhibits a clear initial burst → peak → rapid decay characteristic, with the curve shape being pulse-like.

[0107] The brightness curve rises and falls sharply: the brightness peaks the instant the particles are ejected, and then decays rapidly along the ejection path; it is extremely bright near the pressure relief port, and the brightness drops rapidly away from the nozzle; at the same time, intermittent strong light pulses are superimposed (the flickering characteristics caused by pressure pulsation).

[0108] In terms of color temperature / color, the main body of the electrolyte combustible gas jet flame is bright yellow, with incomplete combustion accompanied by a large amount of black smoke particles; lithium salt and metal oxide high-temperature particles locally exhibit characteristic pale green and pale purplish-red flame colors (characteristic spectrum of lithium element). The core color temperature of the nozzle is 1200-1900K, while the peripheral flue gas rapidly cools to below 600K.

[0109] The particle system with the above-mentioned preset parameters simulates the movement of 1 million particles in real time on the GPU, realistically reproducing the dynamic light and shadow characteristics of lithium battery thermal runaway and deflagration, such as instantaneous high brightness, flashing, jet-like flames and characteristic flame colors, making the virtual simulation screen comparable to the real lithium battery fire screen recorded in the monitoring video.

[0110] Based on the aforementioned inventive concept, such as Figure 7 As shown, the present invention also proposes a computer device 200, including a memory 210, a processor 220, and a computer program 230 stored in the memory 210 and executable on the processor 220. When the processor 220 executes the computer program 230, it implements all the steps of the aforementioned three-dimensional light and shadow dynamic simulation method for fire.

[0111] Based on the aforementioned inventive concept, the present invention also proposes a computer-readable storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, implements the steps of the aforementioned three-dimensional light and shadow dynamic simulation method for fire.

[0112] While the spirit and principles of the invention have been described with reference to several specific embodiments, it should be understood that the invention is not limited to the disclosed specific embodiments, and the division of aspects does not imply that features in these aspects cannot be combined for benefit; such division is merely for ease of description. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

[0113] Regarding the limitation of the scope of protection of this invention, those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative effort based on the technical solution of this invention are still within the scope of protection of this invention.

Claims

1. A three-dimensional light and shadow dynamic simulation system for fire, characterized in that, The system comprises: an image engine module, configured to construct a 3D fire scene and perform real-time rendering on the 3D fire scene; a material resource library module, connected to the image engine module, configured to provide fire-specific materials organized by category to the image engine module; a special effect generation module, connected to the image engine module, configured to generate environmental effects and fire source / light source special effects in the 3D fire scene; a virtual camera module, connected to the image engine module, configured to deploy a virtual camera corresponding to a real surveillance camera in the 3D fire scene, and output an imaging view from the perspective of the virtual camera; wherein the image engine module includes an intelligent building auxiliary generation submodule, which is configured to intelligently recognize hand-drawn sketches, and identify the hand-drawn sketches as building components according to predefined recognition rules to assist in rapid generation of 3D models.

2. The fire three-dimensional light and shadow dynamic simulation system according to claim 1, characterized in that, The predefined recognition rules include: closed curves are recognized as walls, "sun"-shaped figures are recognized as windows, L-shaped openings are recognized as doors, and "eye"-shaped figures are recognized as stairs; furthermore, the intelligent building auxiliary generation submodule also supports automatically matching corresponding component models based on text annotations in the hand-drawn sketches.

3. The fire three-dimensional light and shadow dynamic simulation system according to claim 1, characterized in that, The image engine module further includes: a 3D real-time rendering engine, configured to support real-time rendering at 4K ultra-high definition resolution, wherein the rendering frame rate of a simple scene is no less than 60fps, and the rendering frame rate of a complex scene is no less than 30fps; the simple scene is defined as a scene where the area of the building model is ≤300㎡ and meets any of the following conditions: 1 fire source and the number of virtual cameras ≤4, or 2 fire sources and the number of virtual cameras ≤2; the complex scene refers to scenes other than the simple scene; a 3D scene construction data import submodule, configured to support import of 3D model files in FBX, OBJ, GLTF and ST formats; a spatial intelligent optimization submodule, configured to automatically correct disproportionate scaling and unreasonable structures of the 3D model, automatically match standard components of conventional specifications according to the spatial dimensions of the 3D model, and support parametric editing of size, material and position parameters; a CAD data import submodule, configured to support import of DWG format files from the full range of AutoCAD 2010-2023 and JPG format files, with a geometric data conversion accuracy of 1 millimeter; after import, the CAD content is first displayed in 2D mode, and a 3D scene is automatically created through a 3D model generation operation.

4. The fire three-dimensional light and shadow dynamic simulation system according to claim 1, characterized in that, The material resource library module establishes a classification system according to five core material categories: fire sources, smoke, materials, furniture items and special effects, containing materials of no less than 10 fire source types, 8 smoke types, 50 building materials, and 100 standard furniture and equipment, and supports online update and expansion of public material libraries, customized material libraries and private material libraries.

5. The fire three-dimensional light and shadow dynamic simulation system according to claim 1, characterized in that, The special effect generation module includes: an environment simulation subsystem, configured to integrate physical effect simulation of time, season and weather, and support parametric adjustment of time, season and weather; The fire source / light source effects simulation subsystem is used to simulate fire source types, including open flame, gas explosion, lithium battery thermal runaway deflagration, leftover cigarette butt, electrical fault flash, fireworks display, and light flashing. The size and intensity parameters of the fire source are adjustable. The fire source / light source effects simulation subsystem is implemented using a particle system, supporting real-time physical simulation of up to 1 million particles. Each fire source corresponds to a complete set of preset parameters. When switching the fire source type, the corresponding parameter set is loaded. The parameter set includes at least one of the following: particle emitter shape and emission mode, particle life cycle evolution curve, brightness change curve, and color temperature / color change curve. The acoustic simulation subsystem is used to generate acoustic effects. The sound source types include five categories: combustion, explosion, structural deformation, electrical fault and environmental noise. The frequency response range covers the entire frequency band from 20Hz to 20kHz, and the dynamic range is 30-100dB.

6. The fire three-dimensional light and shadow dynamic simulation system according to claim 1, characterized in that, The virtual camera module supports the simultaneous deployment and management of multiple virtual cameras; its field of view is continuously adjustable within a 360° range with an adjustment accuracy of 0.1°; its spatial positioning accuracy is 0.001 meters and its rotation accuracy is 0.01°; it supports the setting of focal length, aperture, exposure time, and ISO photography parameters; during rendering, it is based on a physical camera model and calculates at least one of the following imaging effects—field of view, distortion, depth of field, light transmission, and noise—to match the image based on the photography parameters.

7. The fire three-dimensional light and shadow dynamic simulation system according to any one of claims 1-6, characterized in that, The system also includes an interactive control unit and an output unit, wherein: The interactive control unit includes a toolbar, a material library panel, an information bar, and a minimap; the toolbar includes functions such as save, import, wall, clear, select, pan, zoom, view, virtual camera, collision, fire source, light source, and record; the information bar is used to display and adjust item attributes and scene element parameters; the minimap is used to display the location of the fire source, the location and field of view of the virtual camera, as well as the current viewpoint and line of sight. The output unit is used to record and save the simulation screen content and camera movement trajectory as a video file, and supports output via video file or web page sharing.

8. A method for dynamic simulation of three-dimensional light and shadow in fire, characterized in that, The method includes: Step 1: Start the system and select the scene creation method; Step 2: Construct a 3D fire scene; if the input is a hand-drawn drawing, the intelligent building auxiliary generation submodule will intelligently recognize the hand-drawn drawing, identify it as a building component according to predefined recognition rules, and assist in quickly generating a 3D model. Step 3: Perform spatial intelligent optimization on the three-dimensional fire scene; Step 4: Set the environmental parameters corresponding to the time of the fire; Step 5: Place a hypothetical ignition source in the three-dimensional fire scene and set the ignition source parameters; Step 6: Deploy virtual cameras corresponding to real surveillance cameras in the three-dimensional fire scene and set the imaging parameters of the virtual cameras; Step 7: Render and output the simulation footage from the perspective of the virtual camera in real time.

9. The three-dimensional light and shadow dynamic simulation method for fire according to claim 8, characterized in that, The method further includes: Step 8: Compare the light and shadow features of the simulated images with those of the corresponding cameras in the actual surveillance video; Step 9: Determine whether the light and shadow characteristics of the two are consistent: if not, adjust the fire source parameters or position and re-execute Steps 5 to 8; if consistent, proceed to the next step; Step 10: Determine the current fire source position as the fire light source part, and output the deduction process results.

10. The three-dimensional light and shadow dynamic simulation method for fire according to claim 8, characterized in that, In Step 1, the scene creation methods include three types: importing CAD files, selecting preset scenarios from the scenario library, and creating an empty scenario; when importing a CAD file, the system first displays the CAD content in 2D mode, and then executes the operation of generating a 3D model to automatically create a 3D fire scene; when selecting a preset scenario from the scenario library, the preset scenario is selected and directly loaded according to the categories of villas, offices, and factory buildings; when creating an empty scenario, the floor plan is manually built, and furniture and furnishings are dragged in from the material resource library module.

11. The three-dimensional light and shadow dynamic simulation method for fire according to claim 8, characterized in that, In Step 2, the predefined recognition rules include: closed curves are recognized as walls, "Ri"-shaped patterns are recognized as windows, "L"-shaped openings are recognized as doors, and "Mu"-shaped patterns are recognized as stairs; and it also supports automatically matching corresponding component models based on the text annotations in the hand-drawn sketch.

12. The three-dimensional light and shadow dynamic simulation method for fire according to claim 8, characterized in that, In Step 6, according to the installation position and orientation of the real surveillance camera in the fire scene, the virtual camera is deployed with a position accuracy of 0.001 meters and a rotation accuracy of 0.01°, and the virtual camera is set according to the field of view angle, focal length, aperture, exposure time, and ISO photographic parameters of the real surveillance camera; when there are multiple surveillance channels in the real fire scene, multiple virtual cameras are deployed and displayed simultaneously in a split-screen manner.

13. The three-dimensional light and shadow dynamic simulation method for fire according to claim 9, characterized in that, In Step 8, the built-in player supports importing real surveillance video files in MP4, AVI, and MOV formats; the deduction timeline of the deduction screen can be set with start and end times to unify the timeline with the real surveillance video; the deduction screen and the real surveillance video screen are presented side by side by default, and support adjusting the transparency of the deduction screen in the paused state for overlapping comparison; the system provides distance measurement and angle measurement tools for quantitative comparison.

14. The three-dimensional light and shadow dynamic simulation method for fire according to claim 8, characterized in that, In Step 5, when the suspected fire source is lithium battery thermal runaway deflagration or electrical fault flashover, a GPU hardware parallel acceleration particle system is used to perform real-time physical simulation of millions of particles. All particle data is stored in the GPU memory, the simulation Shader performs parallel batch operations on GPU multi-threads, and a layered particle strategy is adopted to split flame particles, smoke particles, and debris particles into different emitters, combined with frustum culling, distance LOD, particle block interleaved asynchronous update, and spatial hash for optimization, to reproduce the dynamic light and shadow characteristics of instantaneous highlight and flickering.

15. The three-dimensional light and shadow dynamic simulation method for fire according to claim 9, characterized in that, An acoustic simulation step is further included between Step 5 and Step 6: the acoustic simulation subsystem generates sound effects according to 5 types of sound sources: combustion, explosion, structural deformation, electrical fault, and environmental noise, with a frequency response range of 20Hz-20kHz and a dynamic range of 30-100dB, for auxiliary comparison with the audio record in the real surveillance video.

16. The three-dimensional light and shadow dynamic simulation method for fire according to claim 8, characterized in that, In step seven, the simulation results can be observed from multiple angles through the free viewing mode, and the observation angle can be controlled to see outdoors by switching between the activation and deactivation states of the collision icon.

17. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the fire three-dimensional light and shadow dynamic simulation method as described in any one of claims 8-16.

18. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the fire three-dimensional light and shadow dynamic simulation method as described in any one of claims 8-16.