Laser & Optoelectronics Progress, Volume. 58, Issue 4, 0410005(2021)

Indoor Smoke Visualization Based on the Improved Ray-Casting Algorithm

Ying Liu1、*, Houjun Lu2, and Daofang Chang1
Author Affiliations
  • 1Logistics Science and Engineering Research Institute, Shanghai Maritime University, Shanghai 201306, China
  • 2School of Logistics Engineering, Shanghai Maritime University, Shanghai 201306, China
  • show less

    The traditional ray-casting algorithm demonstrates a range of drawbacks, such as large consumption of computing resources and a low draw speed, when drawing vast smoke data in a three-dimensional (3D) scene. Thus, a visualization method of indoor smoke based on the improved ray-casting algorithm is proposed. First, the 3D data field is divided into uniform blocks of data according to the uniform size, neutral positions of the incident and emission points are calculated when the ray travels through the blocks, and the sampling frequency is adjusted with the help of the distance ratio between the point of sight and midpoint to spot the resampling point. For sampling points at different levels, different interpolation strategies are followed by classifying the resampling points in the rays. Finally, a picture-synthesis algorithm is adopted to complete the mapping of the sampling sight data in each ray, realizing the rendering effect of indoor smoke. Experimental results show that the method is workable and effective. Compared with the existing ray-casting algorithm, the improved one considerably reduces the computing effort of resampling and linear interpolation in the rendering process on the premise of guaranteeing the authenticity and stability of the images. Moreover, the frame rate can stably maintain 75 frame·s -1, which can satisfy the real-time rendering requirements of smoke in different indoor scenes.

    Tools

    Get Citation

    Copy Citation Text

    Ying Liu, Houjun Lu, Daofang Chang. Indoor Smoke Visualization Based on the Improved Ray-Casting Algorithm[J]. Laser & Optoelectronics Progress, 2021, 58(4): 0410005

    Download Citation

    EndNote(RIS)BibTexPlain Text
    Save article for my favorites
    Paper Information

    Category: Image Processing

    Received: Jun. 29, 2020

    Accepted: Aug. 3, 2020

    Published Online: Feb. 25, 2021

    The Author Email: Liu Ying (ahthly0830@163.com)

    DOI:10.3788/LOP202158.0410005

    Topics