Virtual laser scanning visualization method and device, electronic equipment and storage medium

The virtual laser scanning method simulates laser beams in a virtual space using real-world data and dynamic adjustments to create a more lifelike scanning effect, addressing the invisibility issue and enhancing video production quality.

CN120318377APending Publication Date: 2025-07-15广东精鹰传媒科技集团股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510477801.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-16
Publication Date
2025-07-15

AI Technical Summary

Technical Problem

The prior art cannot effectively capture the laser beam when the laser device scans, resulting in the film and television works being not vivid enough.

Method used

Virtual reality technology simulates the scanning process of the laser beam, and uses three-dimensional particle tools to convert the target model in real space into point forms and connect it into line segments. Combining noise adjustment line width and special effect data, simulating the dynamic scanning effect of the laser beam.

Benefits of technology

Vividly display the laser scanning process in the virtual space to enhance the visual effect and reality of film and television works.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120318377A_ABST
    Figure CN120318377A_ABST
Patent Text Reader

Abstract

The invention provides a virtual laser scanning visualization method and device, electronic equipment and a storage medium, and relates to the technical field of laser virtualization. The method comprises the steps of exporting target data; according to the target data, processing the three-dimensional data of all the target models by utilizing a preset point-line-plane three-dimensional particle tool, so that all the target models are presented in the current picture view in a point form; points of all the target models in the current picture view are connected with the position of the laser source to form a line segment; and according to a preset proportion, controlling part of line segments and corresponding points of the line segments on the target model to circularly switch between display and hiding in any time frame so as to enable the simulated laser beam to obtain a dynamic scanning effect. According to the virtual laser scanning visualization method, real space information is combined, and the laser beams generated when the laser equipment scans are simulated in the virtual space, so that more vivid and vivid film and television works are obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of laser virtual technology, and more particularly, to a virtual laser scanning visualization method, device, electronic device, and storage medium. Background Art

[0002] In reality, the laser emitted by some laser devices is invisible light. When making related film and television works, such as the usage animation of laser devices, promotional animations, etc., conventional means cannot capture the laser beam during the scanning of laser devices, resulting in the film and television works obtained being less vivid and vivid. Summary of the Invention

[0003] The purpose of the present invention is to provide a virtual laser scanning visualization method, device, electronic device, and storage medium, which combines real - space information and simulates the laser beam during the scanning of a laser device in a virtual space, thereby obtaining a more vivid and vivid film and television work.

[0004] In a first aspect, the present invention provides a virtual laser scanning visualization method, including the following steps: S1. Export target data; the target data includes the three - dimensional data of all target models in reality, the laser source position, and the camera position; S2. Based on the frame view obtained from the current camera position, according to the target data, use a preset three - dimensional particle tool for points, lines, and planes to process the three - dimensional data of all the target models, so that all the target models are presented in the current frame view in the form of points; S3. After being processed in step S2, connect the points of all the target models in the current frame view to the laser source position to form line segments; the line segments are used as simulated laser beams; S4. According to a preset ratio, control some line segments and the points corresponding to the line segments on the target models to cycle between display and hiding in any time frame, so that the simulated laser beam obtains a dynamic scanning effect.

[0005] The virtual laser scanning visualization method provided by the present invention simulates and presents the invisible laser beam in the real space in the virtual space by means of combining virtual reality, helping users obtain a more vivid and vivid film and television work.

[0006] Further, between step S3 and step S4, there is also a step: S5. Gradually adjust the line widths of all the line segments so that the simulated laser beam obtains a sense of hierarchy.

[0007] This visual effect simulates the possible intensity or diffusion changes that may occur when a real laser beam propagates in space, making the simulated laser beam more informative visually and closer to the effect of real laser scanning.

[0008] Further, the specific steps in step S5 include: S51. Add noise to all the line segments and dynamically adjust the line width of all the line segments by controlling the noise amplitude.

[0009] This dynamic noise adjustment method makes the simulated laser beam more visually hierarchical and realistic, overcoming the stiffness and unnaturalness of static line width adjustment.

[0010] Further, after step S4, there is also a step: S6. Use the points of the target model to construct the underlying layer of the model, and change the color of the points corresponding to the displayed line segments in the underlying layer of the model to the color of the displayed line segments; the color of the displayed line segments is different from the color of the points in the underlying layer of the model.

[0011] A visual association is established between the simulated laser beam and the target model, reflecting the scanning effect of the simulated laser beam on the target model and enhancing the realism of the scanning process.

[0012] Further, after step S6, there is also a step: S7. Add special effect data to all the displayed line segments and make all the displayed line segments obtain a glow effect by controlling relevant parameters.

[0013] In a second aspect, the present invention provides a virtual laser scanning visualization device, including: An export module for exporting target data; the target data includes the three-dimensional data of all target models in reality, the laser source position, and the camera position; A processing module for, based on the view of the current camera position, processing the three-dimensional data of all the target models according to the target data by using a preset three-dimensional particle tool for points, lines, and surfaces, so that all the target models are presented in the form of points in the current view; A connection module for, after being processed by the processing module, connecting the points of all the target models in the current view with the laser source position into line segments; the line segments serve as simulated laser beams; A display / hide module for, according to a preset ratio, controlling some line segments and the points corresponding to the line segments on the target model to cyclically switch between display and hide in any time frame, so that the simulated laser beam obtains a dynamic scanning effect.

[0014] The virtual laser scanning visualization device provided by the present invention solves the technical problem that in conventional means of shooting to obtain a film and television work, the laser beam cannot be displayed because it is invisible light, while the present invention simulates laser scanning in a virtual space to make the laser beam in the film and television work visible, thus more vividly presenting the laser scanning process.

[0015] Further, it further includes a first adjustment module, and the first adjustment module is used to hierarchically adjust the line widths of all the line segments so that the simulated laser beam obtains a sense of hierarchy.

[0016] Further, when the first adjustment module is used to hierarchically adjust the line widths of all the line segments so that the simulated laser beam obtains a sense of hierarchy, it performs: S51. Add noise to all the line segments and dynamically adjust the line widths of all the line segments by controlling the noise amplitude.

[0017] In a third aspect, the present invention provides an electronic device, including a processor and a memory, where the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the virtual laser scanning visualization method provided in the first aspect above are run.

[0018] In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the virtual laser scanning visualization method provided in the first aspect above are run.

[0019] As can be seen from the above, the virtual laser scanning visualization method provided by the present invention uses the data collected from reality and processes it in a virtual space, thereby generating a simulated laser beam in the virtual space and vividly displaying the scanning process of the laser device, so that the final film and television works can bring a more cool visual experience to the audience.

[0020] Other features and advantages of the present invention will be described in the subsequent specification, and part of them will become obvious from the specification, or be understood by implementing the embodiments of the present invention. The objectives and other advantages of the present invention can be realized and obtained by the structures specifically pointed out in the written specification and the drawings. Description of the Drawings

[0021] Figure 1 It is a flowchart of a virtual laser scanning visualization method provided by an embodiment of the present invention.

[0022] Figure 2 It is an effect diagram after processing the three-dimensional data of all target models by using a point-line-plane three-dimensional particle tool in an embodiment of the present invention.

[0023] Figure 3 It is an effect diagram after connecting the points of all target models in the current screen view to the laser source position into line segments in an embodiment of the present invention.

[0024] Figure 4 It is an effect diagram after hierarchically adjusting the line widths of all line segments in an embodiment of the present invention.

[0025] Figure 5 This is the dynamic scanning effect diagram of simulating a laser beam after adding noise to all line segments in the embodiment of the present invention.

[0026] Figure 6 This is the effect diagram after constructing the underlying layer of the model using the points of the target model and adding a glow effect to all displayed line segments in the embodiment of the present invention.

[0027] Figure 7 This is a schematic structural diagram of a virtual laser scanning visualization device provided in an embodiment of the present invention.

[0028] Figure 8 This is a schematic structural diagram of an electronic device provided in an embodiment of the present invention.

[0029] Label description: 100, export module; 200, processing module; 300, connection module; 400, display / hide module; 500, first adjustment module; 600, second adjustment module; 700, third adjustment module; 13, electronic device; 1301, processor; 1302, memory; 1303, communication bus. Detailed implementation manners

[0030] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Usually, the components of the embodiments of the present invention described and shown in the accompanying drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed present invention, but merely represents selected embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts fall within the protection scope of the present invention.

[0031] It should be noted that: similar reference numerals and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0032] Referring to the attached Figure 1 、attached Figure 2 、attached Figure 3 and attached Figure 5 , the present invention provides a virtual laser scanning visualization method, including the following steps: S1. Export target data; the target data includes the three-dimensional data of all target models in reality, the laser source position, and the camera position; S2. Based on the view of the current camera position, according to the target data, use the preset three-dimensional particle tool of points, lines, and surfaces to process the three-dimensional data of all target models, so that all target models are presented in the form of points in the current view; S3. After being processed in step S2, connect the points of all target models in the current view to the laser source position to form line segments; the line segments are used as simulated laser beams; S4. According to the preset ratio, control some line segments and the points corresponding to the line segments on the target models to cycle between display and hiding in any time frame, so that the simulated laser beam obtains a dynamic scanning effect.

[0033] In step S1, export the target data. The target data includes the three-dimensional data of the real model, the laser source position, and the camera position, providing a data basis for subsequent virtual laser scanning.

[0034] In step S2, based on the camera view, according to the target data, use the three-dimensional particle tool to process the three-dimensional data of all target models. All target models are presented in the form of points in the current view, facilitating the simulation of the action points of the laser scan on the object surface.

[0035] In step S3, after being processed in step S2, the points of all target models in the current view are connected to the laser source position to form line segments. The line segments are used as simulated laser beams to show the laser path and the interaction with the target models.

[0036] In step S4, according to the preset ratio, some line segments and the points corresponding to the line segments on the target models cycle between display and hiding in any time frame, and the simulated laser beam obtains a dynamic scanning effect.

[0037] As a preferred implementation, in step S1, the target data can be exported from 3D modeling software, and the exported data format can be a common format such as OBJ or FBX. In step S2, the three-dimensional particle tool can be implemented using the particle system in the graphics engine. By projecting the model vertices onto the camera view and converting them into particles, the model is made point-like. In step S3, the generation of line segments can be achieved by drawing line segments in the graphics engine, with each line segment connecting the model points and the laser source position. In step S4, the dynamic display effect can be achieved by controlling the visibility of the line segments and points through a time-driven script, and the preset ratio determines the frequency and quantity of display and hiding.

[0038] Specifically, this virtual laser scanning visualization method aims to enhance the visual effect of virtual laser scanning. In step S1, target data is exported to provide the necessary position information of the 3D model, laser source, and camera for subsequent virtual laser scanning, thereby constructing the basis of the virtual scene. In step S2, based on the camera view, the target model is processed into a point form using a 3D particle tool to facilitate simulating the action points of laser scanning on the object surface. In step S3, the points on the model and the laser source position are connected into line segments to simulate the path of the laser beam and visually display the interaction between the laser and the target model. In step S4, by presetting a ratio to cyclically display and hide some line segments and corresponding points, a dynamic scanning effect of the laser beam is simulated, overcoming the dullness of static display and more vividly presenting the laser scanning process. Thus, the technical problem that the laser scanning process cannot be displayed in the film and television works obtained by conventional means because the laser beam is invisible light is solved. In this invention, the laser scanning is simulated in the virtual space, making the laser beam in the film and television works visual, and thus more vividly presenting the laser scanning process.

[0039] In some specific embodiments, the virtual laser scanning visualization method is used to demonstrate the process of laser scanning an automobile model. First, the target data such as the 3D data of the automobile model, the laser source position, and the camera position are exported from the software. Then, the target data is imported into the visualization software. Next, the automobile model is converted into a point cloud form using a 3D particle tool, and in the camera view, the automobile model is presented in the form of points. After that, each point is connected to the set laser source position to form line segments simulating the laser beam. Finally, the preset ratio is set to 50%, and through program control, 50% of the line segments and their corresponding points are cyclically displayed and hidden in each frame, thereby simulating the dynamic effect of laser scanning and vividly demonstrating the process of laser scanning the automobile model.

[0040] It should be noted that this invention uses Adobe After Effects software (hereinafter referred to as AE software) to perform related operations, including but not limited to using a 3D particle tool (the 3D particle tool is used as a plugin in AE software), and including controlling the display and hiding of line segments, as well as adjusting the line width of line segments, adding noise, constructing the model bottom layer, coloring, and glow effects as described below.

[0041] In certain embodiments, referring to the appendix Figure 4 , there is also a step between step S3 and step S4: S5. Gradually adjust the line width of all line segments to give the simulated laser beam a sense of hierarchy.

[0042] In view of the problem that the simulated laser beam may lack visual depth and realism, a line width graded adjustment method is proposed. Specifically, the line width graded adjustment refers to assigning different line width values to the line segments according to their position or depth in three-dimensional space. As a result, the simulated laser beam is no longer a flattened effect in which all line segments have the same width, but presents a three-dimensional effect with visual depth. The adjustment of the line width can be based on the distance between the line segment and the camera. The closer the line segment is to the camera, the wider the line width can be set. Conversely, the farther the line segment is from the camera, the narrower the line width can be set. In this way, the front end of the simulated laser beam looks thick and the back end gradually becomes thinner, which is more in line with the perspective law of the human eye observing objects, thereby enhancing the realism and layering of the simulated laser beam.

[0043] Specifically, by adjusting the line width of the line segments in stages, the visual effect of the simulated laser beam is effectively improved. Without the graded adjustment of the line width, all line segments of the simulated laser beam may have the same width, causing the simulated laser beam to look flat and lack depth. The introduction of step S5 allows the line segments in the simulated laser beam to be assigned different line widths according to their spatial positions, creating a visual attenuation effect from near to far. This visual effect simulates the intensity or diffusion changes that may occur when a real laser beam propagates in space, making the simulated laser beam more visually informative and closer to the effect of real laser scanning. As a result, observers can more easily perceive the scanning path and spatial relationship of the simulated laser beam, and the visualization effect is conducive to enhancing the ability and appeal of information expression.

[0044] In some specific embodiments, the line width value can be divided into multiple levels according to the distance between the line segment and the camera. For example, three line width levels are set: close distance, medium distance and long distance. For the line segment at close distance, the thickest line width is used; for the line segment at medium distance, the medium line width is used; for the line segment at long distance, the thinnest line width is used. The distance level to which the line segment belongs can be determined based on a preset distance threshold range. Through this graded line width adjustment, the layering and depth of the simulated laser beam can be effectively expressed.

[0045] In certain embodiments, referring to Figure 5 , the specific steps in step S5 include: S51. Add noise to all line segments and dynamically adjust the line width of all line segments by controlling the noise amplitude.

[0046] Adding noise to all line segments means that for each constituent line segment of the simulated laser beam, a random variation is introduced in the line width performance. This randomness is provided by the noise, making the width of the line segment no longer constant but fluctuate within a certain range. Further, by controlling the noise amplitude to dynamically adjust the line width of all line segments, fine control over the degree of line width fluctuation is achieved. Adjusting the noise amplitude parameter directly affects the amplitude of the line width change. The larger the amplitude, the wider the fluctuation range of the line width, and vice versa. Thus, the line width of the simulated laser beam exhibits a dynamic and irregular change, more closely approximating the visual effect of a real laser beam.

[0047] Specifically, to make the simulated laser beam achieve a more natural dynamic scanning effect, the adjustment of the line width is no longer a simple linear scaling, but a random signal called noise is introduced. The noise is superimposed on the base line width of the line segment to form the final line width value. Due to the randomness of the noise, the line width of each line segment will produce subtle and irregular fluctuations around the base value. This fluctuation is real-time and dynamic, and as time goes by, the line width will continue to change. By adjusting the noise amplitude, the severity of the line width fluctuation can be controlled. A smaller amplitude produces a slight line width change, simulating a subtle laser beam jitter; a larger amplitude produces a more obvious line width change, simulating the sense of energy fluctuation during the laser beam scanning process. This dynamic noise adjustment method makes the simulated laser beam more visually layered and realistic, overcoming the stiffness and unnaturalness of static line width adjustment.

[0048] In some specific embodiments, the dynamic adjustment of the line width is achieved through a programmed approach. For example, in a graphics rendering engine, a shader program can be written to introduce a noise function when calculating the pixel color for each line segment that makes up the simulated laser beam. The input of the noise function can be time, the index of the line segment, or other parameters, and the output is a random noise value. This noise value is used to modulate the line width of the line segment, so that the width of the finally rendered line segment has a random and dynamic change. The type of noise can be selected as Perlin noise, Simplex noise, Gaussian noise, etc., and the amplitude of the noise is used as an adjustable parameter, exposed to the user interface or configuration system to adjust the dynamic effect of the simulated laser beam as needed.

[0049] In certain embodiments, referring to Appendix Figure 6 , after step S4, the following steps are further included: S6. Construct the underlying model using the points of the target model, and change the color of the points corresponding to the displayed line segments in the underlying model to the color of the displayed line segments; the color of the displayed line segments is different from the color of the points in the underlying model.

[0050] The underlying layer of the model is constructed from the point data on the surface of the target model. When the simulated laser beam is displayed, the color of the points at the corresponding positions in the underlying layer of the model is modified to the color of the laser beam. The color of the laser beam is set to be different from the color of the points in the underlying layer of the model to visually distinguish the scanning trajectory.

[0051] Specifically, to address the problem of lack of visual association, a point set covering the surface of the model is constructed using the point data of the target model as the underlying layer of the model. During the simulation of the laser beam scanning process, when the simulated laser beam projects onto the surface of the model, the intersection points of the laser beam and the underlying layer of the model are determined. Then, the color of the points at the intersection positions on the underlying layer of the model is changed to the same color as the laser beam. Since there is a difference between the color of the laser beam and the original color of the points in the underlying layer of the model, the scanning trajectory of the simulated laser beam on the surface of the model is clearly visually presented through the color change. Thus, a visual association is established between the simulated laser beam and the target model, reflecting the scanning effect of the simulated laser beam on the target model and enhancing the realism of the scanning process.

[0052] In some specific embodiments, virtual laser scanning visualization simulation is performed on a car model. First, the three-dimensional point cloud data of the car model is obtained (this three-dimensional point cloud data can be used as the top layer of the model and is displayed in blue). Then, the underlying layer of the car model is constructed based on this point cloud data. When simulating laser scanning, the laser beam is displayed as a red line segment. When the red laser beam scans the surface of the car model, the points on the underlying layer that intersect with the red laser beam are synchronously modified to red. As the scanning process progresses, a red scanning trajectory will appear on the surface of the car model, and this red scanning trajectory forms a visual echo with the red laser beam, thus vividly demonstrating the scanning process of the laser beam on the car model.

[0053] In certain embodiments, refer to Appendix Figure 6 , after step S6, the following steps are further included: S7. Add special effect data to all displayed line segments and make all displayed line segments obtain a glow effect by controlling relevant parameters.

[0054] The special effect data is added to the displayed line segments through graphics rendering technology to produce a glow effect. The relevant parameters are the attributes used to adjust the glow effect, such as glow color, glow intensity, and glow range. By controlling these parameters, the visual performance of the glow effect can be finely adjusted. The glow effect is a visual enhancement technology that simulates the luminous characteristics of a real laser beam, which makes a halo appear around the line segment, thus enhancing the brightness and prominence of the simulated laser beam visually.

[0055] Specifically, in order to make the visual effect of the simulated laser beam more vivid and realistic, after the bottom layer of the model is constructed and the color is changed in step S6, step S7 is further executed. In step S7, first, special effect data for implementing the glow effect is attached to all the displayed line segments. Then, by adjusting the parameters related to the glow effect, such as setting the glow color to the color of the laser beam and adjusting the glow intensity and glow range to appropriate values, a halo around the line segment itself is presented for the displayed line segments. Thus, the simulated laser beam becomes more prominent and eye-catching visually, closer to the effect of laser scanning in reality, enhancing the vividness and visual attractiveness of the virtual laser scanning process and solving the problem that the visual effect of the simulated laser beam is not vivid enough.

[0056] In some specific embodiments, the special effect data can be implemented using a shader program, and the shader program is configured to calculate and render the glow effect. For example, the shader program can first obtain the color information of the displayed line segment, and then generate a brighter and larger-range halo than the color of the original line segment through a blur algorithm, and superimpose the halo on the original line segment to form the glow effect. Parameters such as the glow color, intensity, and range can be set as adjustable parameters in the shader program for control and adjustment as needed. By adopting this method, the glow effect can be effectively added to the displayed line segments, enhancing the visual effect of the virtual laser scanning visualization method.

[0057] Please refer to Figure 7 , Figure 7 which is a virtual laser scanning visualization device in some embodiments of the present invention. The virtual laser scanning visualization device is integrated in the backend control device in the form of a computer program, and includes: An export module 100 for exporting target data; the target data includes the three-dimensional data of all target models in reality, the laser source position, and the camera position; A processing module 200 for processing the three-dimensional data of all target models based on the current camera position and the target data by using a preset three-dimensional particle tool of points, lines, and planes, so that all target models are presented in the form of points in the current view of the screen; A connection module 300 for connecting the points of all target models in the current view of the screen to the laser source position as line segments after being processed by the processing module; the line segments are used as simulated laser beams; A display / hide module 400 for controlling the display and hiding of some line segments and the points corresponding to the line segments on the target models to cycle back and forth at a preset ratio in any time frame, so that the simulated laser beam obtains a dynamic scanning effect.

[0058] In some embodiments, the virtual laser scanning visualization device further includes a first adjustment module 500, and the first adjustment module 500 is used to hierarchically adjust the line widths of all line segments so that the simulated laser beam obtains a sense of hierarchy.

[0059] In some embodiments, when the first adjustment module 500 is used to hierarchically adjust the line widths of all line segments so that the simulated laser beam obtains a sense of hierarchy, it performs: S51. Add noise to all line segments and dynamically adjust the line widths of all line segments by controlling the noise amplitude.

[0060] In some embodiments, the virtual laser scanning visualization device further includes a second adjustment module 600, and the second adjustment module 600 is used to construct a model bottom layer using the points of the target model and change the color of the points corresponding to the displayed line segments in the model bottom layer to the color of the displayed line segments; the color of the displayed line segments is different from the color of the points in the model bottom layer.

[0061] In some embodiments, the virtual laser scanning visualization device further includes a third adjustment module 700, and the third adjustment module 700 is used to add special effect data to all displayed line segments and make all displayed line segments obtain a glow effect by controlling relevant parameters.

[0062] Please refer to Figure 8 , Figure 8 FIG. is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. The present invention provides an electronic device 13, including: a processor 1301 and a memory 1302. The processor 1301 and the memory 1302 are interconnected and communicate with each other through a communication bus 1303 and / or other forms of connection mechanisms (not marked). The memory 1302 stores computer-readable instructions executable by the processor 1301. When the electronic device runs, the processor 1301 executes the computer-readable instructions to execute the virtual laser scanning visualization method in any optional implementation manner of the above embodiments to implement the following functions: exporting target data; the target data includes three-dimensional data of all target models in reality, the laser source position, and the camera position; based on the picture view obtained from the current camera position, according to the target data, using a preset three-dimensional particle tool for points, lines, and surfaces, process the three-dimensional data of all target models so that all target models are presented in the form of points in the current picture view; after the above processing, connect the points of all target models in the current picture view to the laser source position to form line segments; the line segments serve as simulated laser beams; according to a preset ratio, control some line segments and the points corresponding to the line segments on the target models to cycle between display and hiding in any time frame, so that the simulated laser beam obtains a dynamic scanning effect.

[0063] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it executes the virtual laser scanning visualization method in any optional implementation manner of the above embodiment to implement the following functions: exporting target data; the target data includes three-dimensional data of all target models in reality, the laser source position, and the camera position; based on the view obtained from the current camera position, according to the target data, using a preset three-dimensional particle tool for points, lines, and planes to process the three-dimensional data of all target models, so that all target models are presented in the form of points in the current view; after the above processing, connect the points of all target models in the current view to the laser source position to form line segments; the line segments are used as simulated laser beams; according to a preset ratio, control some of the line segments and the points corresponding to the line segments on the target models to cycle between display and hiding in any time frame, so that the simulated laser beams obtain a dynamic scanning effect.

[0064] Among them, the computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, abbreviated as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, abbreviated as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, abbreviated as EPROM), programmable read-only memory (Programmable Red-Only Memory, abbreviated as PROM), read-only memory (Read-Only Memory, abbreviated as ROM), magnetic memory, flash memory, a magnetic disk, or an optical disc.

[0065] In the embodiments provided by the present invention, it should be understood that the disclosed device and method can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection can be through some communication interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical, or other form.

[0066] In addition, the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or distributed across multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0067] Furthermore, in each embodiment of the present invention, the various functional modules may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.

[0068] In this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.

[0069] The above description is only for the embodiments of the present invention and is not intended to limit the protection scope of the present invention. For those skilled in the art, the present invention may have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A virtual laser scanning visualization method, characterized in that, It includes the following steps: S1. Export the target data; the target data includes the 3D data of all target models in reality, the laser source position, and the camera position; S2. Based on the view of the current camera position, according to the target data, use a preset 3D particle tool for points, lines, and planes to process the 3D data of all the target models, so that all the target models are presented in the form of points in the current view; S3. After being processed in step S2, connect the points of all the target models in the current view to the laser source position to form line segments; the line segments are used as simulated laser beams; S4. According to a preset ratio, control some line segments and the corresponding points of the line segments on the target models to cycle between display and hiding in any time frame, so that the simulated laser beam obtains a dynamic scanning effect.

2. The virtual laser scanning visualization method according to claim 1, characterized in that There is also a step between step S3 and step S4: S5. Gradually adjust the line widths of all the line segments to give the simulated laser beam a sense of hierarchy.

3. The virtual laser scanning visualization method according to claim 2, characterized in that The specific steps in step S5 include: S51. Add noise to all the line segments and dynamically adjust the line widths of all the line segments by controlling the noise amplitude.

4. The virtual laser scanning visualization method according to claim 1, wherein After step S4, there is also a step: S6. Use the points of the target models to construct the model bottom layer, and change the color of the points corresponding to the displayed line segments in the model bottom layer to the color of the displayed line segments; the color of the displayed line segments is different from the color of the points in the model bottom layer.

5. The virtual laser scanning visualization method according to claim 4, characterized in that, After step S6, there is also a step: S7. Add special effect data to all the displayed line segments and make all the displayed line segments obtain a glow effect by controlling relevant parameters.

6. A virtual laser scanning visualization device, characterized in that, It includes: An export module for exporting the target data; The target data includes the 3D data of all target models in reality, the laser source position, and the camera position; A processing module for, based on the view of the current camera position, according to the target data, using a preset 3D particle tool for points, lines, and planes to process the 3D data of all the target models, so that all the target models are presented in the form of points in the current view; A connection module for, after being processed by the processing module, connecting the points of all the target models in the current view to the laser source position to form line segments; the line segments are used as simulated laser beams; A display / hiding module for, according to a preset ratio, controlling some line segments and the corresponding points of the line segments on the target models to cycle between display and hiding in any time frame, so that the simulated laser beam obtains a dynamic scanning effect.

7. The virtual laser scanning visualization device according to claim 6, characterized in that, It also includes a first adjustment module for gradually adjusting the line widths of all the line segments to give the simulated laser beam a sense of hierarchy.

8. The virtual laser scanning visualization device according to claim 7, wherein, When the first adjustment module is used to gradually adjust the line widths of all the line segments to give the simulated laser beam a sense of hierarchy, it executes: S51. Add noise to all the line segments and dynamically adjust the line widths of all the line segments by controlling the noise amplitude.

9. An electronic device, characterized in that, It includes a processor and a memory, and the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the virtual laser scanning visualization method according to any one of claims 1-5 are run.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the steps in the virtual laser scanning visualization method according to any one of claims 1-5 are run.