CN114332406A - Display method for simulating real-time illumination of cultural relic 3D scanning model - Google Patents

Display method for simulating real-time illumination of cultural relic 3D scanning model Download PDF

Info

Publication number
CN114332406A
CN114332406A CN202111321137.3A CN202111321137A CN114332406A CN 114332406 A CN114332406 A CN 114332406A CN 202111321137 A CN202111321137 A CN 202111321137A CN 114332406 A CN114332406 A CN 114332406A
Authority
CN
China
Prior art keywords
illumination
display
model
grid body
real
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111321137.3A
Other languages
Chinese (zh)
Inventor
谈迎光
马杰
赵玺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Yinxiang Qiantu Cultural Technology Co ltd
Original Assignee
Jiangsu Yinxiang Qiantu Cultural Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Yinxiang Qiantu Cultural Technology Co ltd filed Critical Jiangsu Yinxiang Qiantu Cultural Technology Co ltd
Priority to CN202111321137.3A priority Critical patent/CN114332406A/en
Publication of CN114332406A publication Critical patent/CN114332406A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

The invention discloses a display method for simulating real-time illumination of a 3D scanning model of a cultural relic, which belongs to the technical field of cultural relic display, and comprises the steps of three-dimensionally scanning the cultural relic, analyzing a three-dimensional model file obtained by scanning to obtain an ultra-high definition triangular grid body, analyzing the grid body, splitting the grid body into hierarchical clusters, analyzing a rendering precision coefficient according to a model picture proportion, calculating the triangular proxy object triangular surface display precision of the model according to the precision coefficient, quantizing according to the vertex positions of the grid bodies of the hierarchical clusters, calculating an illumination mapping on the proxy grid body, calculating and obtaining a mapping according to an illumination display engine, and then superposing the mapping file on a display model to obtain the model for rendering real-time illumination display, wherein the model has the advantages of illumination real-time display, high-efficiency clear display, high-speed display and high-definition, Flexible switching connection and improved working efficiency.

Description

Display method for simulating real-time illumination of cultural relic 3D scanning model
Technical Field
The invention relates to the technical field of cultural relic display, in particular to a display method for simulating real-time illumination of a 3D scanning model of a cultural relic.
Background
With the continuous improvement of the level of people, people gradually raise the attention to the cultural living standard, and places such as museums become important components of the cultural life of the common people. Museums are an industry which develops rapidly in recent years, and are gradually receiving more attention under the encouragement of national policies and local policies and the increasing demand of people for cultural life, and the definition of museums is continuously updated due to social development and technological progress. The most important thing in each part of museum exhibition is the exhibition of cultural relics, but cultural relics usually need strict preservation conditions, and the exhibition generally needs to be arranged in a protective showcase, and in addition, the cultural relics are exhibited in an image-text exhibition and multimedia exhibition mode, but a multimedia exhibition cultural relic model has no good exhibition effect temporarily, and the conventional mode is to pre-render sequence frame pictures, so that the exhibition effect is relatively rigid, and people can not feel real.
In an actual museum, original cultural relics are often required to be displayed, and the cultural relics are usually placed in a protective showcase or the image-text information contents of the cultural relics are printed on a display board for presentation in the conventional mode; and some museums display cultural relics by means of combining multimedia, but the conventional multimedia model display only realizes static image-text content, or the display effect is poor due to the fact that a pre-rendered panoramic frame is used for model display, so that the cultural relics are visible.
Therefore, it is needed to provide a display method for simulating real-time illumination of a 3D scanning model of a cultural relic, which aims to solve the above problems.
Disclosure of Invention
Aiming at the defects in the prior art, the embodiment of the invention aims to provide a display method for simulating real-time illumination of a 3D scanning model of a cultural relic, so as to solve the problems in the background art.
In order to achieve the purpose, the invention provides the following technical scheme:
a display method for simulating real-time illumination of a 3D scanning model of a cultural relic comprises the following steps:
s1, three-dimensional scanning is carried out on the cultural relics to obtain a three-dimensional model file;
s2, importing the three-dimensional model file into a display engine system, analyzing to obtain an ultra-high definition triangular grid body, analyzing the grid body during importing, and splitting the grid body into hierarchical clusters formed by triangular groups;
s3, display engine system: analyzing a rendering precision coefficient according to the proportion of the model picture, and calculating the triangular face display precision of the triangular proxy object of the model according to the precision coefficient;
s4, calculation of display precision: carrying out quantization processing according to the vertex position of the grid body of the hierarchical cluster;
s5, generation of proxy grids: the proxy triangle percentage represents that a certain percentage of triangles are extracted from the original grid body to generate a proxy grid body;
s6, calculating an illumination map on the proxy grid body, wherein the illumination map calculation comprises directional light source calculation, point light source calculation, light gathering source calculation and sky light calculation, and dynamically calculating illumination in real time, and rendering diffuse reflection and indirect high light reflection with set reflection times;
s7, in the global illumination calculation process, the light source for diffuse reflection on the surface of the cultural relic selects the color of the surface, the illumination with the color is reflected on the nearby surface, and the grid body in the scene forms indirect shadow by preventing indirect illumination;
s8, after a map is obtained through calculation according to the illumination display engine, the map file is superposed on the display model, and a model for rendering real-time illumination display is obtained;
s9, in the display process, the display engine judges the display condition in real time, dynamically switches the agent model cluster detail level and the illumination map with corresponding precision in the running process according to the camera view, and repeats the steps S6, S7 and S8.
As a further aspect of the present invention, the three-dimensional model file includes model point cloud data and map data.
As a further aspect of the present invention, the step size quantized in S4 is defined as a power of two, and the size of the step size is determined by the position and scale precision attributes and the requirements of each grid body separately.
As a further aspect of the present invention, the details of the mesh remaining after the original mesh is extracted are proportional to the value of the percentage.
As a further scheme of the present invention, the percentage in S5 ranges from 0 to 100%.
As a further aspect of the present invention, the number of proxy grids in S5 is greater than or equal to 2000.
As a further aspect of the present invention, the illumination needs to be calculated by light source, light beam, Lightmass, illumination function and cascaded shadow map.
In summary, compared with the prior art, the embodiment of the invention has the following beneficial effects:
according to the invention, the display effect of the three-dimensional scanning model of the cultural relic is optimized through the optimization of the digital interaction model display method, so that the three-dimensional scanning model of the cultural relic is efficiently and clearly displayed under the condition that the real cultural relic is inconvenient to display, the display condition is judged in real time through the display engine, the detail level of the agent model cluster is flexibly switched, the high efficiency and the clarity of the three-dimensional display of the cultural relic can be maintained in the interaction experience process, and the effects of real-time illumination display, efficient and clear display, flexible switching connection and improvement of the working efficiency are achieved.
To more clearly illustrate the structural features and effects of the present invention, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
Drawings
FIG. 1 is a flow chart of an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Specific implementations of the present invention are described in detail below with reference to specific embodiments.
In an embodiment of the present invention, referring to fig. 1, the display method for simulating real-time illumination of a 3D scanning model of a cultural relic comprises the following steps:
s1, three-dimensional scanning is carried out on the cultural relics to obtain a three-dimensional model file;
s2, importing the three-dimensional model file into a display engine system, analyzing to obtain an ultra-high definition triangular grid body, analyzing the grid body during importing, and splitting the grid body into hierarchical clusters formed by triangular groups;
s3, display engine system: analyzing a rendering precision coefficient according to the proportion of the model picture, and calculating the triangular face display precision of the triangular proxy object of the model according to the precision coefficient;
s4, calculation of display precision: carrying out quantization processing according to the vertex position of the grid body of the hierarchical cluster;
s5, generation of proxy grids: the proxy triangle percentage represents that a certain percentage of triangles are extracted from the original grid body to generate a proxy grid body;
s6, calculating an illumination map on the proxy grid body, wherein the illumination map calculation comprises directional light source calculation, point light source calculation, light gathering source calculation and sky light calculation, and dynamically calculating illumination in real time, and rendering diffuse reflection and indirect high light reflection with set reflection times;
s7, in the global illumination calculation process, the light source for diffuse reflection on the surface of the cultural relic selects the color of the surface, the illumination with the color is reflected on the nearby surface, and the grid body in the scene forms indirect shadow by preventing indirect illumination;
s8, after a map is obtained through calculation according to the illumination display engine, the map file is superposed on the display model, and a model for rendering real-time illumination display is obtained;
s9, in the display process, the display engine judges the display condition in real time, dynamically switches the agent model cluster detail level and the illumination map with corresponding precision in the running process according to the camera view, and repeats the steps S6, S7 and S8.
In the embodiment, a worker scans cultural relics by using a high-precision three-dimensional scanner to obtain a three-dimensional model file, wherein the three-dimensional model file comprises model point cloud data and map data; importing the three-dimensional model file into a display engine system, analyzing to obtain an ultra-high definition triangular grid body, analyzing the grid body during importing, and splitting the grid body into hierarchical clusters formed by triangular groups; analyzing a rendering precision coefficient according to the proportion of the model picture, and calculating the triangular face display precision of the triangular proxy object of the model according to the precision coefficient; carrying out quantization processing according to the vertex position of the grid bodies of the hierarchical cluster, wherein in the quantization processing process, the quantization step length is set as a power of two, and the size of the step length is independently determined according to the position and proportion precision attributes and the requirements of each grid body; the proxy triangle percentage represents that a certain percentage of triangles are extracted from the original grid body to generate a proxy grid body, wherein the percentage value range is 0-100%, the details of the grid body left after the original grid body is extracted are in direct proportion to the percentage value, namely the larger the percentage is, the more the details of the original grid body are kept, and the number of the proxy grid bodies is not less than 2000 no matter the percentage of the proxy grid bodies; calculating the illumination map on the proxy grid body;
the illumination map calculation comprises directional light source calculation, point light source calculation, light gathering source calculation and sky light calculation, illumination is dynamically calculated in real time, and diffuse reflection and indirect high light reflection of set reflection times are rendered, wherein the directional light source is mainly used as a basic outdoor light source or any light source which needs to present light emitted from a far place or a near-infinity place. The point light source is a light source like a traditional 'bulb', emits light from a single point to all directions, the light gathering source also emits light outwards from a single point, but the light rays of the point light source are limited by a group of cones, and the sky light acquires the background of a scene and uses the background for the illumination effect of scene grid objects; in the global illumination calculation process, a light source for diffuse reflection on the surface of the cultural relic selects the color of the surface, the colored illumination is reflected on the nearby surface, and the grid body in the scene forms indirect shadow by preventing indirect illumination; after a map is obtained through calculation according to an illumination display engine, a map file is superposed on a display model to obtain a model for rendering real-time illumination display; in the display process, the display engine judges the display condition in real time, dynamically switches the illumination mapping with the detail level and the corresponding precision of the agent model cluster during the operation according to the camera view, and repeats the process of computing the illumination mapping and forming the superposition rendering of the indirect shadow and the mapping file.
All lighting needs to be calculated by light source, light beam, Lightmass, lighting function and cascaded shadow maps. Wherein the light source parameters include intensity, color, drop shadow, and indirect illumination intensity; the light beam parameters comprise shading shade darkness, light beam floodlight, reflective coloring and light beam direction; the Lightmass parameters include light source angle, indirect illumination saturation, and shadow index; the illumination function comprises an illumination function material and an illumination function fading distance; the cascade shadow mapping parameters comprise a shadow distance movable illumination, a digital dynamic shadow cascade, a cascade distribution index, a cascade transition part and a shadow distance fading part.
In a real-time example of the invention, referring to fig. 1, the display method for simulating real-time illumination of a 3D scanning model of a cultural relic, after calculating to obtain an accuracy coefficient, according to the required accuracy, taking a proxy model corresponding to the sampling surface reduction of the model to be displayed to perform lighting calculation to obtain a light map, sampling the map, and then reloading the map onto the high-accuracy model to perform superposition, thereby establishing an illumination effect to achieve a realistic global light rendering effect.
In this embodiment, the display method of the real-time illumination of the simulated 3D scanning model of the cultural relic is displayed in a way that the whole display method follows the principles of calculation as required and display as required. The display method for simulating the real-time illumination of the cultural relic 3D scanning model has two conditions of single thread and multithreading in the process of ultrahigh-definition model display and interactive experience:
single-thread: in a multimedia exhibition item which is small in picture size and needs to show a three-dimensional model of a cultural relic, when a model showing technology needs to be called, real-time illumination display can be matched with a three-dimensional model display engine and a corresponding three-dimensional model file to carry out initial real-time illumination display, an operation interface supports the operations of dragging, rotating and zooming on the model, after each operation command is input, the display engine calculates and displays the required display precision, and real-time illumination calculation is carried out on the model in the picture, so that a good display effect is achieved.
Multithreading: in a multimedia exhibition item which is large in picture size and needs to show three-dimensional models of cultural relics, the technology can be called as a thread to achieve the effect of simultaneously showing rendering crusting of a plurality of three-dimensional models of cultural relics, in the state, the thread also has activity parameters, the priority of the interactive models for real-time display of the thread on the operational performance is improved, and then the internal operation judgment and the picture rendering are consistent with a single thread.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (7)

1. A display method for simulating real-time illumination of a 3D scanning model of a cultural relic is characterized by comprising the following steps:
s1, three-dimensional scanning is carried out on the cultural relics to obtain a three-dimensional model file;
s2, importing the three-dimensional model file into a display engine system, analyzing to obtain an ultra-high definition triangular grid body, analyzing the grid body during importing, and splitting the grid body into hierarchical clusters formed by triangular groups;
s3, display engine system: analyzing a rendering precision coefficient according to the proportion of the model picture, and calculating the triangular face display precision of the triangular proxy object of the model according to the precision coefficient;
s4, calculation of display precision: carrying out quantization processing according to the vertex position of the grid body of the hierarchical cluster;
s5, generation of proxy grids: the proxy triangle percentage represents that a certain percentage of triangles are extracted from the original grid body to generate a proxy grid body;
s6, calculating an illumination map on the proxy grid body, wherein the illumination map calculation comprises directional light source calculation, point light source calculation, light gathering source calculation and sky light calculation, and dynamically calculating illumination in real time, and rendering diffuse reflection and indirect high light reflection with set reflection times;
s7, in the global illumination calculation process, the light source for diffuse reflection on the surface of the cultural relic selects the color of the surface, the illumination with the color is reflected on the nearby surface, and the grid body in the scene forms indirect shadow by preventing indirect illumination;
s8, after a map is obtained through calculation according to the illumination display engine, the map file is superposed on the display model, and a model for rendering real-time illumination display is obtained;
s9, in the display process, the display engine judges the display condition in real time, dynamically switches the agent model cluster detail level and the illumination map with corresponding precision in the running process according to the camera view, and repeats the steps S6, S7 and S8.
2. The method for displaying the real-time illumination of the simulated cultural relic 3D scanning model as claimed in claim 1, wherein the three-dimensional model file comprises model point cloud data and map data.
3. The method for displaying real-time illumination of a simulated cultural relic 3D scanning model as claimed in claim 1, wherein the step size quantized in S4 is determined as a power of two, and the size of the step size is determined by the position and scale precision attributes and the requirements of each grid body separately.
4. The method for displaying real-time illumination of the simulated cultural relic 3D scanning model as claimed in claim 1, wherein the details of the mesh remaining after the original mesh is extracted are in direct proportion to the percentage value.
5. The method for displaying the real-time illumination of the simulated cultural relic 3D scanning model as claimed in claim 4, wherein the percentage in the S5 ranges from 0% to 100%.
6. The method for displaying real-time illumination of the simulated cultural relic 3D scanning model as claimed in claim 5, wherein the number of the agent grids in the S5 is greater than or equal to 2000.
7. The method for displaying real-time illumination of a simulated cultural relic 3D scanning model, which is characterized in that the illumination is calculated by a light source, a light beam, a Lightmass, an illumination function and a cascade shadow map.
CN202111321137.3A 2021-11-09 2021-11-09 Display method for simulating real-time illumination of cultural relic 3D scanning model Pending CN114332406A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111321137.3A CN114332406A (en) 2021-11-09 2021-11-09 Display method for simulating real-time illumination of cultural relic 3D scanning model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111321137.3A CN114332406A (en) 2021-11-09 2021-11-09 Display method for simulating real-time illumination of cultural relic 3D scanning model

Publications (1)

Publication Number Publication Date
CN114332406A true CN114332406A (en) 2022-04-12

Family

ID=81045557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111321137.3A Pending CN114332406A (en) 2021-11-09 2021-11-09 Display method for simulating real-time illumination of cultural relic 3D scanning model

Country Status (1)

Country Link
CN (1) CN114332406A (en)

Similar Documents

Publication Publication Date Title
CN108919944B (en) Virtual roaming method for realizing data lossless interaction at display terminal based on digital city model
CA2282637C (en) Method for rendering shadows on a graphical display
CN102096941B (en) Consistent lighting method under falsehood-reality fused environment
CN108648269A (en) The monomerization approach and system of three-dimensional building object model
US20060176303A1 (en) Systems and methods for the real-time and realistic simulation of natural atmospheric lighting phenomenon
CN110908510B (en) Application method of oblique photography modeling data in immersive display equipment
CN113593027B (en) Three-dimensional avionics display control interface device
CN113674389A (en) Scene rendering method and device, electronic equipment and storage medium
CN105205861A (en) Tree three-dimensional visualization model realization method based on Sphere-Board
Kolivand et al. Covering photo-realistic properties of outdoor components with the effects of sky color in mixed reality
CN107610225A (en) A kind of oblique photograph outdoor scene threedimensional model monomerization approach
Sheng et al. A spatially augmented reality sketching interface for architectural daylighting design
CN114139250A (en) Automatic light distribution method, device, equipment and storage medium based on illusion engine
CN105976423B (en) A kind of generation method and device of Lens Flare
Ignatenko et al. A Real-Time 3D Rendering System with BRDF Materials and Natural Lighting
CN114332406A (en) Display method for simulating real-time illumination of cultural relic 3D scanning model
CN115526976A (en) Virtual scene rendering method and device, storage medium and electronic equipment
Crone Radiance users manual
JPH0154749B2 (en)
US11657552B2 (en) Generating illuminated two-dimensional vector graphics using path tracing
Zhou et al. Gymnasium simulation design and implementation based on 3D virtual building
JPH0154748B2 (en)
Dübel Scalable visualization of spatial data in 3D terrain
Kolivand et al. ReLiShaft: realistic real-time light shaft generation taking sky illumination into account
ANDRONESCU et al. Graphic aspects of 3D maps presentation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination