Ray tracing simulation acceleration method and system for microstructure array models
Through the ray tracing simulation acceleration method for microstructure array models, the voxel grid and constructed solid geometry methods are used to accelerate the intersection detection of light rays and microstructure arrays, solving the problems of long simulation process and cumbersome operations in the existing technology. , achieving more efficient ray tracing simulation.
Patent Information
- Application Number
- CN202410273428.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-11
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-03-11
AI Technical Summary
In the existing technology, in the microstructure morphology and arrangement design of diffuser plates in the field of LED lighting, the simulation process is time-consuming and the operation process is cumbersome, and it is difficult for traditional methods to effectively accelerate the intersection detection of light and microstructure arrays.
A ray tracing simulation acceleration method for microstructure array models is adopted, by encoding the microstructure unit parameters into a self-built surface data structure, and using pre-generated voxel grid representation in the BVH tree, combined with the fast voxel grid The traversal method and the constructed solid geometry method are used to locate intersection points and perform ray tracing.
It effectively reduces the time for intersection detection between light and microstructure arrays, improves scene construction efficiency, simplifies the operation process, and improves the accuracy of simulation results.
Smart Images

Figure CN118114492B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of semiconductor simulation technology, and in particular to a ray tracing simulation acceleration method and system for a microstructure array model. Background Art
[0002] In order to design the microstructure morphology and arrangement of the diffuser in the field of LED (Light-Emitting Diode) lighting, it is necessary to use lighting simulation software for simulation. This process requires obtaining a simulation model through parametric modeling, while establishing a light source and a receiver, and finally checking the impact of the microstructure modeling parameters on the light distribution index on the receiver. In order to obtain more accurate results, more light rays need to be set, and this process will generate a large number of intersection calculations of rays and Brep (Boundary Representation) surfaces.
[0003] Taking the process from modeling to simulation of the diffuser plate model as an example, the general modeling and simulation process includes: modeling stage, simulation configuration stage and simulation calculation stage, etc. The existing process has problems such as long time consumption and cumbersome operation process. Summary of the invention
[0004] To solve the above problems, an embodiment of the present invention provides a ray tracing simulation acceleration method for a microstructure array model, the method comprising: inputting the modeling parameters of the microstructure base plate unit into a three-dimensional geometry engine to obtain a solid model of the base plate unit; placing each surface of the solid model into a self-built surface data structure, the self-built surface data structure comprising surface parameters and microstructure unit parameters; receiving a surface selected by a user and input microstructure unit parameters, and encoding the microstructure unit parameters in the self-built surface data structure of the selected surface; encoding the optical properties required for simulation into the surface and the microstructure units attached to the surface; placing all the surfaces and the attached microstructure units into a BVH tree; in the BVH tree, the selected surface and the microstructure unit parameters are represented by a pre-generated voxel grid; placing all rays into a scene, locating intersections by combining a fast voxel grid traversal method and a constructed solid geometry method; and tracing rays according to the intersection information.
[0005] Optionally, the surface parameters include: surface number, optical property number used by the surface, actual surface geometric description, surface bounding box and whether the surface contains a microstructure array; the microstructure unit parameters include: optical property number used by the microstructure surface, boundary shape of the microstructure on the surface, geometric description of the boundary shape, microstructure unit shape, convexity of the microstructure array, shape parameters of the microstructure unit, arrangement of the microstructure unit, input parameters required for the arrangement and an acceleration structure used to accelerate microstructure intersection.
[0006] Optionally, encoding the microstructure unit parameters in the self-built surface data structure of the selected surface includes: performing a union operation on the bounding box of the selected surface and the voxel grid bounding box and then re-inserting them into the self-built surface data structure.
[0007] Optionally, the method further comprises: generating a corresponding voxel grid according to the selected surface and the microstructure unit parameters.
[0008] Optionally, the method of combining the fast voxel grid traversal method and the method of constructing a solid geometry method to locate the intersection includes: a) checking whether the light has an intersection with the surface bounding box, and if so, entering step b; b) checking whether the light has an intersection with the voxel grid bounding box of the surface, and if so, entering step c, otherwise calculating the intersection of the light and the surface and terminating the process; c) using the fast voxel grid traversal method to quickly traverse the voxel grid, obtain the nearest voxel grid index that intersects with the light, and obtain the microstructure unit model existing in the nearest voxel for intersection detection, such as If there is an intersection, go to step d, otherwise calculate the intersection of the light and the surface and terminate the process; d) Use the constructive solid geometry method to calculate the distance t0 from the nearest intersection of the light and the surface to the origin of the light, and the distance t1, t2 from the entry and exit endpoints of the microstructure units managed in the light and voxel grid to the origin of the light; if the microstructure shape is convex, take min(t0, t1) as the distance from the final selected intersection to the origin; if the microstructure shape is concave, take max(t0, t2) as the distance from the final selected intersection to the origin.
[0009] The embodiment of the present invention provides a ray tracing simulation acceleration system for a microstructure array model, the system comprising: a solid model construction module, used to input the modeling parameters of a microstructure base plate unit into a three-dimensional geometry engine to obtain a solid model of the base plate unit; a self-built surface construction module, used to place each surface of the solid model into a self-built surface data structure, the self-built surface data structure comprising surface parameters and microstructure unit parameters; a microstructure construction module, used to receive a surface selected by a user and input microstructure unit parameters, and to encode the microstructure unit parameters in the self-built surface data structure of the selected surface; an optical property encoding module, used to encode the optical properties required for simulation into the surface and the microstructure units attached to the surface; an acceleration module, used to place all the surfaces and the attached microstructure units into a BVH tree; in the BVH tree, the selected surface and the microstructure unit parameters are represented by a pre-generated voxel grid; an intersection detection module, used to place all rays into a scene, and locate intersections by combining a fast voxel grid traversal method and a construction solid geometry method; and a tracing module, used to perform ray tracing according to the intersection information.
[0010] Optionally, the surface parameters include: surface number, optical property number used by the surface, actual surface geometric description, surface bounding box and whether the surface contains a microstructure array; the microstructure unit parameters include: optical property number used by the microstructure surface, boundary shape of the microstructure on the surface, geometric description of the boundary shape, microstructure unit shape, convexity of the microstructure array, shape parameters of the microstructure unit, arrangement of the microstructure unit, input parameters required for the arrangement and an acceleration structure used to accelerate microstructure intersection.
[0011] Optionally, the microstructure construction module is specifically used to: perform a union operation on the bounding box of the selected surface and the voxel grid bounding box and then re-insert them into the self-built surface data structure.
[0012] Optionally, the microstructure construction module is further used to generate a corresponding voxel grid according to the selected surface and the microstructure unit parameters.
[0013] Optionally, the intersection detection module is specifically used to: a) check whether the light has an intersection with the surface bounding box, and if so, proceed to step b; b) check whether the light has an intersection with the voxel grid bounding box of the surface, and if so, proceed to step c, otherwise calculate the intersection of the light and the surface and terminate the process; c) use a fast voxel grid traversal method to quickly traverse the voxel grid, obtain the nearest voxel grid index that intersects with the light, and obtain the microstructure unit model existing in the nearest voxel for intersection detection, and if there is an intersection, proceed to step c. Step d, otherwise the intersection of the light and the surface is calculated and the process is terminated; d) using the constructive solid geometry method, calculate the distance t0 from the nearest intersection of the light and the surface to the origin of the light and the distance t1, t2 from the entry and exit endpoints of the microstructure units managed in the light and voxel grid to the origin of the light; if the microstructure shape is convex, take min(t0, t1) as the distance from the origin of the final selected intersection; if the microstructure shape is concave, take max(t0, t2) as the distance from the origin of the final selected intersection.
[0014] The ray tracing simulation acceleration method and system for the microstructure array model provided in the embodiment of the present invention can uniformly set the optical properties of the microstructure, use the CSG method to avoid the time cost brought by Boolean operations to define concave and convex microstructures, and improve the efficiency of scene construction; according to the spatial distribution characteristics of the diffuser case, BVH is used to manage the surface with relatively random spatial distribution, and voxel grids are used to manage the uniformly distributed and dense microstructures. Compared with the traditional solution using a single acceleration structure, it effectively accelerates the intersection detection and reduces the time for intersection detection between the light and the microstructure array. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0016] Figure 1 A schematic flow chart of a ray tracing simulation acceleration method for a microstructure array model provided by an embodiment of the present invention;
[0017] Figure 2 A schematic diagram of the visualization effect of the voxel grid acceleration structure provided by an embodiment of the present invention;
[0018] Figure 3 A schematic diagram of a bounding box union process provided by an embodiment of the present invention;
[0019] Figure 4 A schematic diagram of the process of constructing a voxel grid-bvh hybrid acceleration structure provided by an embodiment of the present invention;
[0020] Figure 5 A schematic diagram of the visualization effect of the voxel grid acceleration structure provided by an embodiment of the present invention;
[0021] Figure 6 A schematic diagram of the structure of a ray tracing simulation acceleration system for a microstructure array model provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In order to make the above-mentioned objects, features and advantages of the present invention more clearly understood, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0023] Taking the process from modeling to simulation of the diffuser plate model as an example, the current general modeling and simulation process is as follows:
[0024] A Modeling Phase:
[0025] A1. Create microstructure units A and manually organize them into an array.
[0026] A2. Create a base plate structural unit and perform a 3D Boolean subtraction operation with the microstructure array to obtain the above model.
[0027] B simulation configuration stage:
[0028] B1. Set the physical parameters (optical properties, materials) required for optical simulation on the model surface.
[0029] B2. Establish a light source receiver and configure global simulation parameters, such as background material, light quantity and other information.
[0030] C simulation calculation stage:
[0031] C1. Extract all Brep surfaces existing in the above model, place them into BVH (Bounding Volume Hierarchy) tree space acceleration structure (a commonly used ray tracing acceleration structure in static scenes), and use the classic surface area heuristic algorithm (SAH) as the tree generation strategy.
[0032] C2. Place all rays into the scene, perform intersection detection with the acceleration structure, and perform statistical analysis on the intersection information hit on the receiver.
[0033] The above process has the following problems:
[0034] 1. There are a large number of operation steps in the modeling stage, and in step A2, the Boolean operation time will increase nonlinearly with the number of microstructures (Boolean operations rely on intersection detection between all model objects).
[0035] 2. Since a large number of Brep surfaces are generated during the modeling stage, the process of assigning optical properties to each surface (this process is necessary in optical simulation) is cumbersome.
[0036] 3. Due to the uniformity of the microstructure array distribution, using only the BVH tree acceleration structure globally cannot effectively accelerate intersection detection.
[0037] The embodiment of the present invention provides a convenient customized parameter modeling system, which is suitable for an intersection acceleration structure construction algorithm containing spatial distribution characteristics of a microjunction array model, and provides a simulation acceleration solution.
[0038] See also Figure 1 The flowchart of a ray tracing simulation acceleration method for a microstructure array model in an embodiment of the present invention is shown, and the method comprises the following steps:
[0039] S102, inputting the modeling parameters of the microstructure bottom plate unit into a three-dimensional geometry engine to obtain a solid model of the bottom plate unit.
[0040] In this embodiment, a 3D geometric kernel based on Brep description is introduced as a modeling engine, which may be, for example, the open source Open Cascade, or a commercial engine such as ACIS, Parasolid, and the like.
[0041] Specifically, the modeling parameters of the geometric body can be input into the geometric kernel to generate a closed three-dimensional entity. The microstructure base plate unit can generate a rectangular parallelepiped accordingly.
[0042] S104, placing each surface of the entity model into a self-built surface data structure. The self-built surface data structure may include surface parameters and microstructure unit parameters.
[0043] The Brep surface information of the above solid model is extracted (taking a cuboid as an example, it includes 6 surfaces) and embedded into a self-built surface data structure. The idea is to aggregate the parameter information of the microstructure on the Brep surface.
[0044] The surface parameters may include: surface number, optical property number used by the surface, true surface geometry description, bounding box of the surface, and whether the surface contains a microstructure array;
[0045] The microstructure unit parameters may include: the optical property number used on the microstructure surface, the boundary shape of the microstructure on the surface, the geometric description of the boundary shape, the shape of the microstructure unit, the concavity of the microstructure array, the shape parameters of the microstructure unit, the arrangement of the microstructure unit, the input parameters required for the arrangement, and the acceleration structure used to accelerate the intersection of the microstructure.
[0046] Exemplarily, Table 1 shows specific parameters of the self-built surface data structure.
[0047]
[0048]
[0049] Table 1
[0050] Table 1 shows various parameters of the surface and the parameters that need to be filled when the surface includes a microstructure array. In Table 1, the microstructure array is taken as an example of uniformly arranged triangular prisms.
[0051] S106, receiving a surface selected by a user and input micro-structure unit parameters, and encoding the micro-structure unit parameters in a self-built surface data structure of the selected surface.
[0052] The user selects a simulation surface, enters the microstructure parameters according to the desired specifications, and generates a complete microstructure array model through the built-in algorithm. The concavity of the microstructure here is only described by the parameter isConvex, and there is no need to perform three-dimensional Boolean subtraction or addition operations on the array and base unit. This step simplifies the creation steps of the microstructure object proposed in the above problem 1 and optimizes the Boolean operation time between a large number of objects.
[0053] The user selects a surface and inputs microstructure unit parameters, and a corresponding voxel grid can be generated according to the selected surface and microstructure unit parameters.
[0054] S108, encoding the optical properties required for simulation onto the surface and the microstructure units attached to the surface.
[0055] Since the microstructure array is considered as a whole here rather than in a form after Boolean operation, the optical properties used by all microstructures can be uniformly set here (the default value is the optical properties of the attached surface), which greatly simplifies the operation steps introduced in the above problem 2.
[0056] Since the above-mentioned microstructure construction parameters are entered into the self-built surface data structure, a voxel grid can be constructed according to the parameter content, and the microstructure array can be managed. Figure 2 A schematic diagram showing the visualization effect of the voxel grid acceleration structure is shown.
[0057] S110, placing all surfaces and attached microstructure units into a BVH tree, wherein the selected surfaces and microstructure unit parameters are represented by a pre-generated voxel grid in the BVH tree.
[0058] Exemplarily, the constructed voxel grid is placed into SimulationSurface, and the bounding box of the surface is unioned with the voxel grid bounding box and re-passed into the pBounds of SimulationSurface. Finally, all SimulationSurfaces with or without microstructures are placed into the BVH tree using the classic SAH method. Figure 3 A schematic diagram of the process of taking the union of bounding boxes is shown.
[0059] As a feasible manner, the above encoding of the microstructure unit parameters in the self-built surface data structure of the selected surface includes: performing a union operation on the bounding box of the selected surface and the bounding box of the voxel grid and then re-inserting the bounding box into the self-built surface data structure.
[0060] Figure 4 The schematic diagram of the process of constructing a voxel grid-bvh hybrid acceleration structure is shown. Figure 4 The TOPSurfacePlane shown is a microstructure attached surface, and the six surfaces of the cuboid Cuboid construct a BVH tree based on the SAH method, where the TOPSurface surface is represented by a voxel grid.
[0061] In this embodiment, BVH is used to manage surfaces with relatively random spatial distribution, and voxel grid is used to manage microstructures with uniform and dense distribution.
[0062] S112, placing all rays into the scene, and locating intersections by combining a fast voxel grid traversal method and a constructive solid geometry method.
[0063] Since the convexity of the microstructure is now described by the Boolean value isConvex entered by SimulationSurface, this step uses CSG (Constructive Solid Geomety) to calculate the correct intersection of the ray and the surface containing the microstructure. The specific process steps are as follows. Note that the fast voxel grid traversal method used in step c is more efficient than the bvh traversal form.
[0064] a) Check whether the light has an intersection with the surface bounding box, if so, proceed to step b;
[0065] b) Check whether the light has an intersection with the voxel grid bounding box of the surface. If yes, proceed to step c; otherwise, calculate the intersection of the light and the surface and terminate the process;
[0066] c) Use a fast voxel grid traversal method to quickly traverse the voxel grid, obtain the nearest voxel grid index that intersects with the light, and obtain the microstructure unit model existing in the nearest voxel for intersection detection. If there is an intersection, go to step d, otherwise calculate the intersection of the light and the surface and terminate the process;
[0067] d) Use the constructive solid geometry method to calculate the distance t0 from the nearest intersection of the light ray and the surface to the origin of the light ray, as well as the distance t1, t2 from the entry and exit endpoints of the microstructure units managed within the light ray and voxel grid to the origin of the light ray; if the microstructure shape is convex, take min(t0, t1) as the distance from the final selected intersection to the origin; if the microstructure shape is concave, take max(t0, t2) as the distance from the final selected intersection to the origin. Figure 5 A schematic diagram showing the visualization effect of the voxel grid acceleration structure is shown.
[0068] S114, performing ray tracing according to the above intersection information.
[0069] Continue to the next step of ray tracing.
[0070] The embodiment of the present invention takes into account the characteristics of actual cases in the industrial field and designs a complete workflow. Compared with the given traditional modeling process, it takes into account the demand for uniformly setting optical properties of microstructures in actual production, and uses the CSG method to avoid the time cost brought by Boolean operations to define concave and convex microstructures, thereby improving the efficiency of scene construction.
[0071] At the same time, according to the spatial distribution characteristics of the diffuser case, different geometric groups of the scene are managed using BVH and voxel grids respectively. BVH is used to manage surfaces with relatively random spatial distribution, and voxel grids are used to manage uniformly distributed and dense microstructures. Compared with the traditional solution that uses a single acceleration structure, it effectively accelerates the intersection detection and reduces the time for intersection detection between light and the microstructure array.
[0072] Figure 6 A schematic diagram of the structure of a ray tracing simulation acceleration system for a microstructure array model provided by an embodiment of the present invention is shown, and the system includes:
[0073] A solid model building module 601 is used to input the modeling parameters of the microstructure bottom plate unit into a three-dimensional geometry engine to obtain a solid model of the bottom plate unit;
[0074] A self-built surface construction module 602, used to place each surface of the entity model into a self-built surface data structure, wherein the self-built surface data structure includes surface parameters and microstructure unit parameters;
[0075] A microstructure construction module 603 is used to receive a surface selected by a user and input microstructure unit parameters, and encode the microstructure unit parameters in a self-built surface data structure of the selected surface;
[0076] An optical property encoding module 604, used to encode the optical properties required for simulation into the surface and the microstructure units attached to the surface;
[0077] The acceleration module 605 is used to place all the surfaces and the attached microstructure units into a BVH tree; the selected surface and the microstructure unit parameters in the BVH tree are represented by a pre-generated voxel grid;
[0078] The intersection detection module 606 is used to place all rays into the scene and locate the intersection points by combining the fast voxel grid traversal method and the construction solid geometry method;
[0079] The tracing module 607 is used to perform ray tracing according to the intersection information.
[0080] The ray tracing simulation acceleration system for the microstructure array model provided by the embodiment of the present invention can uniformly set the optical properties of the microstructure, use the CSG method to avoid the time cost brought by Boolean operations to define concave and convex microstructures, and improve the efficiency of scene construction; according to the spatial distribution characteristics of the diffuser case, BVH is used to manage the surface with relatively random spatial distribution, and voxel grids are used to manage the uniformly distributed and dense microstructures. Compared with the traditional solution using a single acceleration structure, it effectively accelerates the intersection detection and reduces the time for intersection detection between the light and the microstructure array.
[0081] As a feasible implementation method, the surface parameters include: surface number, optical property number used by the surface, actual surface geometric description, surface bounding box and whether the surface contains a microstructure array; the microstructure unit parameters include: optical property number used by the microstructure surface, boundary shape of the microstructure on the surface, geometric description of the boundary shape, microstructure unit shape, convexity of the microstructure array, shape parameters of the microstructure unit, arrangement of the microstructure unit, input parameters required for the arrangement and an acceleration structure for accelerating microstructure intersection.
[0082] As a feasible implementation, the microstructure construction module is specifically used to: perform a union operation on the bounding box of the selected surface and the bounding box of the voxel grid and then re-insert them into the self-built surface data structure.
[0083] As a feasible implementation manner, the microstructure construction module is further used to: generate a corresponding voxel grid according to the selected surface and the microstructure unit parameters.
[0084] As a feasible implementation, the intersection detection module is specifically used to: a) check whether the light has an intersection with the surface bounding box, and if so, proceed to step b; b) check whether the light has an intersection with the voxel grid bounding box of the surface, and if so, proceed to step c, otherwise calculate the intersection of the light and the surface and terminate the process; c) use a fast voxel grid traversal method to quickly traverse the voxel grid, obtain the nearest voxel grid index that intersects with the light, and obtain the microstructure unit model existing in the nearest voxel for intersection detection, if there is an intersection Then go to step d, otherwise calculate the intersection of the light and the surface and terminate the process; d) Use the constructive solid geometry method to calculate the distance t0 from the nearest intersection of the light and the surface to the origin of the light and the distance t1, t2 from the entry and exit endpoints of the microstructure units managed in the light and voxel grid to the origin of the light; if the microstructure shape is convex, take min(t0, t1) as the distance from the final selected intersection to the origin; if the microstructure shape is concave, take max(t0, t2) as the distance from the final selected intersection to the origin.
[0085] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the control device through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it may include the processes of the above-mentioned method embodiments, wherein the storage medium may be a memory, a disk, an optical disk, etc.
[0086] In this article, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0087] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0088] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A ray tracing simulation acceleration method for a microstructure array model, characterized in that: The method comprises: Inputting the modeling parameters of the microstructured bottom plate unit into a three-dimensional geometry engine to obtain a solid model of the bottom plate unit; Placing each surface of the solid model into a self-built surface data structure, wherein the self-built surface data structure includes surface parameters and microstructure unit parameters; Receiving a surface selected by a user and input microstructure unit parameters, and encoding the microstructure unit parameters in a self-built surface data structure of the selected surface; encoding optical properties required for simulation into the surface and the attached microstructure units on the surface; Placing all the surfaces and the attached microstructure units into a BVH tree; in the BVH tree, the selected surfaces and the microstructure unit parameters are represented by a pre-generated voxel grid; Place all rays into the scene and locate intersections using a combination of fast voxel grid traversal and constructive solid geometry methods; Performing ray tracing according to the intersection information; The surface parameters include: surface number, optical property number used by the surface, true surface geometry description, surface bounding box and whether the surface contains a microstructure array; The microstructure unit parameters include: the optical property number used on the microstructure surface, the boundary shape of the microstructure on the surface, the geometric description of the boundary shape, the shape of the microstructure unit, the concavity and convexity of the microstructure array, the shape parameters of the microstructure unit, the arrangement of the microstructure unit, the input parameters required for the arrangement, and an acceleration structure for accelerating the intersection of the microstructure.
2. The method according to claim 1, characterized in that The step of encoding the microstructure unit parameters in the self-built surface data structure of the selected surface comprises: The bounding box of the selected surface and the bounding box of the voxel grid are subjected to a union operation and then re-inserted into the self-built surface data structure.
3. The method according to claim 1, characterized in that The method further includes: generating a corresponding voxel grid according to the selected surface and the microstructure unit parameters.
4. The method according to claim 1, characterized in that The method of combining the fast voxel grid traversal method and the construction solid geometry method to locate the intersection point includes: a) Check whether the light has an intersection with the surface bounding box, if so, proceed to step b; b) Check whether the light has an intersection with the voxel grid bounding box of the surface. If yes, proceed to step c; otherwise, calculate the intersection of the light and the surface and terminate the process; c) using a fast voxel grid traversal method to quickly traverse the voxel grid, obtain the nearest voxel grid index that intersects with the ray, and obtain the microstructure unit model existing in the nearest voxel for intersection detection. If there is an intersection, proceed to step d, otherwise calculate the intersection of the ray and the surface and terminate the process; d) Use the constructive solid geometry method to calculate the distance t0 from the nearest intersection of the light ray and the surface to the origin of the light ray, as well as the distance t1, t2 from the entry and exit endpoints of the microstructure units managed within the light ray and voxel grid to the origin of the light ray; if the microstructure shape is convex, take min(t0, t1) as the distance from the final selected intersection to the origin; if the microstructure shape is concave, take max(t0, t2) as the distance from the final selected intersection to the origin.
5. A ray tracing simulation acceleration system for microstructure array models, characterized in that: The system comprises: A solid model building module, used for inputting the modeling parameters of the microstructure bottom plate unit into the three-dimensional geometry engine to obtain the solid model of the bottom plate unit; A self-built surface construction module, used to place each surface of the entity model into a self-built surface data structure, wherein the self-built surface data structure includes surface parameters and microstructure unit parameters; A microstructure construction module, used for receiving a surface selected by a user and inputting microstructure unit parameters, and encoding the microstructure unit parameters in a self-built surface data structure of the selected surface; An optical property encoding module, used for encoding the optical properties required for simulation into the surface and the microstructure units attached to the surface; An acceleration module, used for placing all the surfaces and the attached microstructure units into a BVH tree; in the BVH tree, the selected surface and the microstructure unit parameters are represented by a pre-generated voxel grid; The intersection detection module is used to place all rays into the scene and locate the intersection points by combining the fast voxel grid traversal method and the constructive solid geometry method; A tracing module, used for performing ray tracing according to the intersection information; The surface parameters include: surface number, optical property number used by the surface, true surface geometry description, surface bounding box and whether the surface contains a microstructure array; The microstructure unit parameters include: the optical property number used on the microstructure surface, the boundary shape of the microstructure on the surface, the geometric description of the boundary shape, the shape of the microstructure unit, the concavity and convexity of the microstructure array, the shape parameters of the microstructure unit, the arrangement of the microstructure unit, the input parameters required for the arrangement, and an acceleration structure for accelerating the intersection of the microstructure.
6. The system according to claim 5, characterized in that The microstructure building module is specifically used for: The bounding box of the selected surface and the bounding box of the voxel grid are subjected to a union operation and then re-inserted into the self-built surface data structure.
7. The system according to claim 5, characterized in that The microstructure construction module is further used to generate a corresponding voxel grid according to the selected surface and the microstructure unit parameters.
8. The system according to claim 5, characterized in that The intersection detection module is specifically used for: a) Check whether the light has an intersection with the surface bounding box, if so, proceed to step b; b) Check whether the light has an intersection with the voxel grid bounding box of the surface. If yes, proceed to step c; otherwise, calculate the intersection of the light and the surface and terminate the process; c) using a fast voxel grid traversal method to quickly traverse the voxel grid, obtain the nearest voxel grid index that intersects with the ray, and obtain the microstructure unit model existing in the nearest voxel for intersection detection. If there is an intersection, proceed to step d, otherwise calculate the intersection of the ray and the surface and terminate the process; d) Use the constructive solid geometry method to calculate the distance t0 from the nearest intersection of the light ray and the surface to the origin of the light ray, as well as the distance t1, t2 from the entry and exit endpoints of the microstructure units managed within the light ray and voxel grid to the origin of the light ray; if the microstructure shape is convex, take min(t0, t1) as the distance from the final selected intersection to the origin; if the microstructure shape is concave, take max(t0, t2) as the distance from the final selected intersection to the origin.
Citation Information
Patent Citations
Backlight module and liquid crystal display device
CN102192450A
Light ray tracking method and system for plate-mode non-uniform rational spline curved surface
CN110580736A
