CN116385613A - Method, storage medium and equipment for screen space thermodynamic diagram rendering - Google Patents

Method, storage medium and equipment for screen space thermodynamic diagram rendering Download PDF

Info

Publication number
CN116385613A
CN116385613A CN202310329679.8A CN202310329679A CN116385613A CN 116385613 A CN116385613 A CN 116385613A CN 202310329679 A CN202310329679 A CN 202310329679A CN 116385613 A CN116385613 A CN 116385613A
Authority
CN
China
Prior art keywords
scene
hot spot
screen space
current pixel
color
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
CN202310329679.8A
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.)
Beijing Younuo Technology Co ltd
Original Assignee
Beijing Younuo 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 Beijing Younuo Technology Co ltd filed Critical Beijing Younuo Technology Co ltd
Priority to CN202310329679.8A priority Critical patent/CN116385613A/en
Publication of CN116385613A publication Critical patent/CN116385613A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/12Bounding box
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Generation (AREA)

Abstract

The invention discloses a method, a storage medium and equipment for rendering a screen space thermodynamic diagram, wherein the method comprises the following steps: acquiring scene hot spot data and scene buffer data, and setting blue noise textures; grid grouping is carried out on the screen space to obtain a plurality of grid cells, and the scene hot spot data are preprocessed by a computing shader and distributed to the corresponding grid cells; performing world coordinate reconstruction on each pixel of the screen space by using a calculation shader, and sampling scene hot spot data in a grid unit where the current pixel is located to obtain the current pixel color; and mixing the current pixel color and the scene color by utilizing the scene buffer data and the blue noise texture, and outputting the mixed current pixel color and the scene color to a user display page. According to the invention, based on the preprocessing of the accelerated heat map distribution of the calculation shader, invalid data is effectively removed, and the final coloring calculated amount is optimized, so that the final thermodynamic diagram performance is more accurate.

Description

Method, storage medium and equipment for screen space thermodynamic diagram rendering
Technical Field
The present invention relates to the field of image processing technology, and in particular, to a method, a storage medium, and an apparatus for rendering a screen space thermodynamic diagram based on a computational shader.
Background
The screen space thermodynamic diagram is to reconstruct a 3D scene through the screen space data, sample scene hot spot data and draw thermodynamic diagram effects. Currently, the method of screen space thermodynamic diagram rendering mainly performs sampling coloring on scene hot spot data through a post-shader. However, the existing screen space thermodynamic diagram is subject to the problem of rendering performance, and the hot spot data volume can be controlled to be about one thousand, so that the thermodynamic diagram cannot be well attached to a scene model, and the thermal diagram representation accuracy is reduced.
Disclosure of Invention
In view of this, the present invention provides a method, a storage medium and a device for performing thermodynamic diagram rendering of a screen space based on a computation shader, wherein the computation shader is used to group hot spot data in the screen space and record each group of hot spot data, so as to reduce the number of final hot spot samples per pixel and greatly improve the thermodynamic diagram rendering efficiency of the screen space.
A first aspect of the present invention provides a method of screen space thermodynamic diagram rendering, the method comprising: acquiring scene hot spot data and scene buffer data, and setting blue noise textures; grid grouping is carried out on the screen space to obtain a plurality of grid cells, and the scene hot spot data are preprocessed by a computing shader and distributed to the corresponding grid cells; performing world coordinate reconstruction on each pixel of the screen space by using a calculation shader, and sampling hot spot data in a grid unit where the current pixel is located to obtain the current pixel color; and mixing the current pixel color and the scene color by utilizing the scene buffer data and the blue noise texture, and outputting the mixed current pixel color and the scene color to a user display page.
Further, the obtaining scene hot spot data and scene buffer data, and setting blue noise textures includes: scene hot spot data set by a user are obtained and stored in a texture of a graphic processor, wherein the scene hot spot data comprise hot spot positions, hot spot radiation radiuses and hot spot radiation weights; setting down-sampling parameters and introducing blue noise textures; acquiring scene buffer data provided by a renderer, wherein the scene buffer data comprises scene color buffer and scene depth buffer; constructing a count buffer and a grouping container of the graphic processor; a transformation matrix is set from the clipping coordinate system to the world coordinate system.
Further, the grouping the screen space into a plurality of grid cells includes: the screen space is divided into a plurality of grid cells each having a grid number at a set resolution.
Further, the preprocessing the scene hot spot data by using the computing shader and distributing the scene hot spot data to the corresponding grid cells includes: sampling the hot spot positions and the hot spot radiation radii in scene hot spot data, and constructing a detection model; and detecting the intersection of each grid cell based on the detection model, and distributing scene hot spot data to the corresponding grid cell according to the detection result.
Further, the method for constructing the detection model comprises the following steps: sampling the hot spot positions and the hot spot radiation radii in the preprocessed scene hot spot data, and transforming the hot spot positions to a screen space to obtain the hot spot positions in the screen space; generating a polyhedron based on the hot spot positions and the hot spot radiation radii in scene hot spot data, and transforming all vertexes of the polyhedron to a screen space; calculating the maximum distance from all vertexes of the polyhedron in the screen space to the hot spot position in the screen space; based on the location of the hot spot and the maximum distance within the screen space, a detection model is constructed.
Further, the detecting the intersection of each grid cell based on the detection model includes: detecting the intersection of each grid cell based on the detection model, and judging whether the detection model and the grid cell have intersection points or not; if there is an intersection, the buffer of the items of the sequence number in the count buffer and the grid sequence number of the grid cell is incremented by one, and the current hot spot is stored in the packet container.
Further, the reconstructing world coordinates of each pixel of the screen space by using the computing shader, and sampling scene hot spot data in the grid unit where the current pixel is located, to obtain the current pixel color includes: sampling scene depth buffer, and reconstructing world coordinates corresponding to the current pixel by utilizing the scene depth buffer and a coordinate system-to-world coordinate system transformation matrix; calculating to obtain a grid sequence number of a grid unit where a current pixel is located by using the screen space coordinates of the current pixel, and acquiring scene hot spot data contained in the current grid from a grouping container; traversing each scene hot spot data contained in the current grid, calculating a current pixel radiation value corresponding to each scene hot spot, and accumulating the current pixel radiation values corresponding to all scene hot spots to obtain a current pixel radiation total; and calculating the color difference value of the current pixel by using the total radiation amount of the current pixel to obtain the color of the current pixel, and setting the total radiation amount of the current pixel as the transparency of the current pixel.
Further, the mixing the current pixel color and the scene color by using the scene buffer data and the blue noise texture and outputting the mixed color to the user display page comprises: performing linear interpolation calculation on the scene color buffer and the current pixel color by utilizing the transparency of the current pixel color to obtain a new color; and processing the new color by adopting blue noise texture, and outputting the processed color to a user display page.
A second aspect of the invention provides a computer readable storage medium storing one or more programs executable by one or more processors to implement the steps in a method of screen space thermodynamic diagram rendering as described above.
A third aspect of the present invention provides a screen space thermodynamic diagram rendering apparatus, the apparatus comprising: a processor and a memory; the memory has stored thereon a computer readable program executable by the processor; the processor, when executing the computer readable program, implements the steps in a method of screen space thermodynamic diagram rendering as described above.
According to the screen space thermodynamic diagram rendering method, based on preprocessing of the computational shader acceleration thermodynamic diagram distribution, invalid data is effectively removed, and the final coloring calculated amount is optimized to be about 0.1% of the prior art, so that the final thermodynamic diagram performance is more accurate.
Drawings
For purposes of illustration and not limitation, the invention will now be described in accordance with its preferred embodiments, particularly with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for rendering a screen space thermodynamic diagram according to an embodiment of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will be more clearly understood, a more particular description of the invention will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings. It should be noted that, without conflict, the embodiments of the present invention and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, and the described embodiments are merely some, rather than all, embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
The method for rendering the screen space thermodynamic diagram according to the embodiment of the invention is described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for rendering a screen space thermodynamic diagram according to an embodiment of the present invention. Referring to fig. 1, the method for rendering a screen space thermodynamic diagram includes the following steps:
s100, acquiring scene hot spot data and scene buffer data, and setting blue noise textures.
In some embodiments, the specific implementation of step S100 is as follows:
s110, scene hot spot data H set by a user are acquired and stored in a texture of the graphic processor.
In the embodiment of the present invention, the scene hotspot data H includes a hotspot position Hp, a hotspot radiation radius Hr and a hotspot radiation weight Hw. The scene hot spot data H is stored into the texture of a Graphics Processor (GPU). In some embodiments, the hotspot location Hp is stored to a texture Tp of a Graphics Processor (GPU); the hotspot radiation radius Hr and the hotspot radiation weight Hw are stored to a texture Trw of a Graphics Processor (GPU).
S120, setting a downsampling parameter and transmitting the downsampling parameter into blue noise texture B.
Wherein the blue noise texture B is used to perturb the downsampled saw tooth.
The downsampling parameter is a sampling scaling coefficient of the blue noise texture B.
S130, obtaining scene buffer data provided by the renderer.
In the embodiment of the invention, the scene buffer data comprises a scene color buffer C and a scene depth buffer D.
In some embodiments, the scene color buffer C and the scene depth buffer D are acquired by a renderer interface.
S140, a count buffer Cb and a packet container Gb of a Graphics Processor (GPU) are constructed.
In an embodiment of the present invention, a count buffer Cb of a Graphics Processor (GPU) and a packet container Gb of the Graphics Processor (GPU) are constructed. Wherein the count buffer Cb and the packet container Gb are Unordered Access Views (UAV) created through a graphics interface (DirectX 11/12).
S150, setting a transformation matrix T from the clipping coordinate system to the world coordinate system.
The coordinate system-to-world coordinate system transformation matrix T is used for converting coordinate values of a screen space into a world space and is used for reconstructing world coordinates of a 3D scene.
According to the embodiment of the invention, the hot spot data of the scene is firstly obtained, the blue noise texture is set, the scene color buffer and the scene depth buffer are obtained, the counting buffer and the grouping container are constructed, finally, the camera parameters are set, and the coordinate system is cut into the world coordinate system transformation matrix, so that the hot spot data can be conveniently sampled, preprocessed and rendered subsequently.
S200, grid grouping is carried out on the screen space, a plurality of grid cells are obtained, the calculation shader is utilized to preprocess scene hot spot data, and the scene hot spot data are distributed to the corresponding grid cells.
In some embodiments, the specific implementation of step S200 is as follows:
s210, grid grouping is carried out on the screen space, and a plurality of grid units T are obtained.
In the embodiment of the present invention, when the screen space is grid-grouped, taking the resolution of 1280x720 as an example, the screen space is divided into 40x23 grid cells T of 32x32 pixels, and each grid cell T has an upper left grid angle Tmin, a lower right grid angle Tmax, and a grid sequence number TId.
S220, preprocessing scene hot spot data by utilizing a thread group of 32x32 computing units generated by a computing shader, and distributing the scene hot spot data into corresponding grid units.
The compute shader is a program outside of the on-the-fly non-rendering pipeline for massive parallel computing on a graphics card.
In some embodiments, the specific implementation of preprocessing scene hotspot data with a compute shader is as follows:
s221, sampling a hot spot position Hp and a hot spot radiation radius Hr in scene hot spot data, and constructing a detection model.
In the embodiment of the invention, a hotspot position Hp and a hotspot radiation radius Hr in preprocessed scene hotspot data are sampled, the hotspot position Hp is transformed into a screen space to obtain a hotspot position Hp 'in the screen space, a polyhedron is generated based on the hotspot position Hp' and the hotspot radiation radius Hr, all vertexes of the polyhedron are transformed into the screen space, a maximum distance R from all vertexes of the polyhedron in the screen space to the hotspot position Hp 'is calculated, and a detection model is constructed based on the hotspot position Hp' and the maximum distance R.
Wherein the polyhedron may be hexahedral, such as AABB (axis alignment bounding box). The detection model may be a circle Ch. In other embodiments, the polyhedron may be other polyhedron structures, and the detection model may be other shapes.
The following describes an exemplary method for constructing a detection model, taking a polyhedron as an AABB (axis alignment bounding box) and a detection model as a circle Ch as an example.
The method comprises the steps of sampling a hot spot position Hp from a texture Tp of a Graphics Processor (GPU), sampling a hot spot radiation radius Hr from a texture Trw of the Graphics Processor (GPU), and transforming the hot spot position Hp into a screen space to obtain a hot spot position Hp' corresponding to the screen space. And under the world coordinate system, taking the sampled hot spot position Hp as a center, taking the sampled hot spot radiation radius Hr as a radius, generating an AABB (axis alignment bounding box), transforming eight vertexes of the AABB into a screen space, calculating the maximum distance R between the eight vertexes of the AABB and the transformed hot spot position Hp 'in the screen space, and constructing a circular Ch taking the transformed hot spot position Hp' as the center and taking the maximum distance R as the radius.
S222, detecting the intersection of each grid cell T based on the detection model, and distributing scene hot spot data to the corresponding grid cells according to the detection result.
In some embodiments, taking the example that the detection model is a circle Ch, a specific implementation manner of the intersection detection of the grid cell T is as follows:
detecting the intersection of the circular Ch and each grid cell T, and judging whether the circular Ch and the grid cells T have intersection points or not;
if the intersection point exists, adding one to the buffer of the items of the sequence number in the counting buffer Cb and the grid sequence number TId of the grid unit, and storing the hot spot data of the current scene into the grouping container Gb;
if the intersection point does not exist, the scene hot spot data does not belong to the current packet container Gb, and the scene hot spot data does not need to be stored in the packet container Gb.
In the embodiment of the invention, the invalid hot spot is removed by adopting the calculation shader, so that the calculation amount of invalid hot spot data is reduced; and the computation shader is adopted to carry out screen space grouping pretreatment on scene hot spot data, so that the per-pixel shading computation amount is greatly reduced, and the rendering is accelerated.
And S300, reconstructing world coordinates of each pixel of the screen space by using a computing shader, and sampling scene hot spot data in a grid unit T where the current pixel is located to obtain the current pixel color and the current pixel transparency.
In the embodiment of the invention, a computing shader is utilized to reconstruct world coordinates of each pixel in a screen space, and scene hot spot data in a grid unit T where the current pixel is located is sampled to obtain a current pixel color Pc and a current pixel transparency Pt.
In some embodiments, the specific implementation of step S300 is as follows:
s310, sampling the scene depth buffer D, and reconstructing world coordinates P corresponding to the current pixel by using the scene depth buffer D and a coordinate system-to-world coordinate system transformation matrix T.
In the embodiment of the present invention, first, the scene depth buffer D obtained in step S130 is sampled, and the world coordinate P corresponding to the current pixel is reconstructed by using the scene depth buffer D and the coordinate system-to-world coordinate system transformation matrix T set in step S150.
In the embodiment of the invention, the world coordinate P corresponding to the current pixel is reconstructed to calculate the distance between the current pixel and the hot spot, and whether the world coordinate point corresponding to the current pixel is affected by the hot spot is judged.
S320, calculating grid serial numbers TId of grid units where the current pixels are located by using the screen space coordinates of the current pixels, and acquiring scene hot spot data H' contained in the current grid from the grouping container Gb.
In the embodiment of the invention, the grid serial number TId where the current pixel is obtained by calculating the screen space coordinate of the current pixel, and scene hot spot data H' contained in the current grid is obtained from a grouping container Gb of a Graphic Processing Unit (GPU).
The method for calculating the grid sequence number TId of the current pixel by using the screen space coordinates of the current pixel is as follows:
with the grid size of 32X32, X is the current pixel horizontal coordinate, Y is the current pixel vertical coordinate, and then the pixel correspondence Tid is:
Tid.x= floor(X / 32)
Tid.y = floor(Y/ 32)
wherein the floor function is a rounding down operation.
According to the embodiment of the invention, the final coloring calculated amount is optimized, so that the final thermodynamic diagram performance is more accurate.
S330, traversing each scene hot spot data H' contained in the current grid, calculating a current pixel radiation value F corresponding to each scene hot spot, and accumulating the current pixel radiation values F corresponding to all scene hot spots to obtain a current pixel radiation total quantity F.
In some embodiments, each scene hot spot data H' included in the current grid includes a hot spot position Hp, a hot spot radius Hr, and a hot spot radiance Hw.
According to the embodiment of the invention, the hot spot position Hp, the hot spot radius Hr and the hot spot radiance Hw of each scene hot spot data H' contained in the current grid are traversed. And calculating the current pixel radiation value F corresponding to each scene hot spot contained in the current grid by adopting an inverse distance difference algorithm, and accumulating the current pixel radiation values F corresponding to all the hot spots contained in the current grid to obtain the current pixel radiation total quantity F.
S340, performing color difference calculation on the current pixel by using the current pixel radiation total quantity F to obtain a current pixel color Pc, and setting the current pixel radiation total quantity F as the current pixel transparency Pt.
In the embodiment of the invention, the difference value calculation is performed on the colors of the current pixel from green, blue to red by using the total amount of radiation F of the current pixel to obtain the current pixel color Pc, and the total amount of radiation F of the current pixel is set as the current pixel transparency Pt.
According to the embodiment of the invention, the preprocessing acceleration based on the computing shader is adopted, so that compared with the prior art, the method has hundred times improvement in the number of hot spots.
S400, mixing the current pixel color and the scene color by using the scene color buffer C and the blue noise texture B, and outputting the mixed current pixel color and the scene color to a user display page.
In the embodiment of the present invention, the scene color buffer C acquired in step S130 and the blue noise texture B set in step S120 are used in the pixel shader to mix the current pixel color and the scene color and output the user display page.
In some embodiments, the specific implementation of step S400 is as follows:
s410, performing linear interpolation calculation on the scene color buffer C and the current pixel color Pc by utilizing the current pixel color transparency Pt to obtain a new color C'.
In the embodiment of the present invention, the current pixel color transparency Pt is utilized to perform linear interpolation calculation on the scene color buffer C and the current pixel color Pc acquired in step S130, so as to obtain a new color C'.
S420, processing the new color C 'by adopting the blue noise texture B, and outputting the processed color C' to a user display page.
In the embodiment of the invention, the blue noise texture B set in the step S120 is adopted to perform disturbance processing on the color C' so as to eliminate the down-sampling saw tooth sense and output the saw tooth sense to the user display page.
The method for processing the color C' by adopting the blue noise texture B is as follows:
sampling a red channel and a green channel of the blue noise texture B by using the current screen coordinate value as a two-dimensional offset direction Df (disturbance direction); before interpolation is carried out on the scene color C and the current pixel color Pc, the current pixel is shifted, and the color of the corresponding pixel position after shifting is adopted, so that the jaggy feeling is eliminated rapidly.
According to the screen space thermodynamic diagram rendering method, based on preprocessing of the computational shader acceleration thermodynamic diagram distribution, invalid data is effectively removed, and the final coloring calculated amount is optimized to be about 0.1% of the prior art, so that the final thermodynamic diagram performance is more accurate.
According to the method for rendering the screen space thermodynamic diagram, the calculation shader is utilized to group scene hot spot data in the screen space and record each group of scene hot spot data, so that the number of final hot spot samples of each pixel is effectively reduced, and the rendering efficiency of the screen space thermodynamic diagram is greatly improved.
In addition, an embodiment of the present invention further provides a computer readable storage medium, where one or more programs are stored, where the one or more programs are executable by one or more processors to implement the steps in the method for performing screen space thermodynamic diagram rendering according to any one of the above technical solutions.
The embodiment of the invention also provides equipment for rendering the screen space thermodynamic diagram, which comprises the following steps: a processor and a memory; the memory has stored thereon a computer readable program executable by the processor; the processor, when executing the computer readable program, implements the steps in a method of screen space thermodynamic diagram rendering as claimed in any one of the above technical solutions.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method of screen space thermodynamic diagram rendering, comprising:
acquiring scene hot spot data and scene buffer data, and setting blue noise textures;
grid grouping is carried out on the screen space to obtain a plurality of grid cells, and the scene hot spot data are preprocessed by a computing shader and distributed into the corresponding grid cells;
performing world coordinate reconstruction on each pixel of the screen space by using a calculation shader, and sampling scene hot spot data in a grid unit where the current pixel is located to obtain the current pixel color;
and mixing the current pixel color and the scene color by utilizing the scene buffer data and the blue noise texture, and outputting the mixed current pixel color and the scene color to a user display page.
2. The method of claim 1, wherein the obtaining scene hot spot data and scene buffer data, and setting blue noise texture comprises:
scene hot spot data set by a user are obtained and stored in a texture of a graphic processor, wherein the scene hot spot data comprise hot spot positions, hot spot radiation radiuses and hot spot radiation weights;
setting down-sampling parameters and transmitting the down-sampling parameters into the blue noise texture;
acquiring scene buffer data provided by a renderer, wherein the scene buffer data comprises scene color buffer and scene depth buffer;
constructing a count buffer and a grouping container of the graphic processor;
a transformation matrix is set from the clipping coordinate system to the world coordinate system.
3. The method of claim 2, wherein grouping the screen space into a plurality of grid cells comprises:
the screen space is divided into a plurality of grid cells at a set resolution, each grid cell having a grid serial number.
4. A method of screen space thermodynamic diagram rendering according to claim 2, wherein the preprocessing of scene hotspot data with a computational shader and allocation into corresponding grid cells comprises:
sampling the hot spot positions and the hot spot radiation radii in scene hot spot data, and constructing a detection model;
and detecting the intersection of each grid cell based on the detection model, and distributing scene hot spot data to the corresponding grid cell according to the detection result.
5. The method for rendering the screen space thermodynamic diagram of claim 4, wherein the method for constructing the detection model comprises the following steps:
sampling the hot spot positions and the hot spot radiation radii in the preprocessed scene hot spot data, and transforming the hot spot positions to a screen space to obtain the hot spot positions in the screen space;
generating a polyhedron based on the hot spot positions and the hot spot radiation radii in scene hot spot data, and transforming all vertexes of the polyhedron to a screen space;
calculating the maximum distance from all vertexes of the polyhedron in the screen space to the hot spot position in the screen space;
based on the location of the hot spot and the maximum distance within the screen space, a detection model is constructed.
6. A method of screen space thermodynamic diagram rendering according to claim 3, wherein the detecting each grid cell based on a detection model comprises:
detecting the intersection of each grid cell based on the detection model, and judging whether the detection model and the grid cell have intersection points or not;
if there is an intersection, the buffer of the items of the sequence number in the count buffer and the grid sequence number of the grid cell is incremented by one, and the current hot spot is stored in the packet container.
7. The method for thermodynamic diagram rendering of a screen space according to claim 2, wherein the reconstructing world coordinates of each pixel of the screen space by using the computation shader, and sampling scene hot spot data in a grid cell where the current pixel is located, to obtain the current pixel color comprises:
sampling scene depth buffer, and reconstructing world coordinates corresponding to the current pixel by using the scene depth buffer and a transformation matrix from a clipping coordinate system to a world coordinate system;
calculating to obtain a grid sequence number of a grid unit where a current pixel is located by using the screen space coordinates of the current pixel, and obtaining scene hot spot data contained in the current grid from a grouping container;
traversing each scene hot spot data contained in the current grid, calculating a current pixel radiation value corresponding to each scene hot spot, and accumulating the current pixel radiation values corresponding to all scene hot spots to obtain a current pixel radiation total;
and calculating the color difference value of the current pixel by using the total radiation amount of the current pixel to obtain the color of the current pixel, and setting the total radiation amount of the current pixel as the transparency of the current pixel.
8. The method of claim 7, wherein said blending the current pixel color and the scene color and outputting to the user display page using the scene buffer data and the blue noise texture comprises:
performing linear interpolation calculation on the scene color buffer and the current pixel color by utilizing the transparency of the current pixel color to obtain a new color;
and processing the new color by adopting blue noise texture, and outputting the processed color to a user display page.
9. A computer readable storage medium storing one or more programs executable by one or more processors to implement the steps in the method of screen space thermodynamic diagram rendering of any one of claims 1-8.
10. A screen space thermodynamic diagram rendering device, comprising: a processor and a memory; the memory has stored thereon a computer readable program executable by the processor; the processor, when executing the computer readable program, implements the steps in the method of screen space thermodynamic diagram rendering as claimed in any one of claims 1 to 8.
CN202310329679.8A 2023-03-30 2023-03-30 Method, storage medium and equipment for screen space thermodynamic diagram rendering Pending CN116385613A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310329679.8A CN116385613A (en) 2023-03-30 2023-03-30 Method, storage medium and equipment for screen space thermodynamic diagram rendering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310329679.8A CN116385613A (en) 2023-03-30 2023-03-30 Method, storage medium and equipment for screen space thermodynamic diagram rendering

Publications (1)

Publication Number Publication Date
CN116385613A true CN116385613A (en) 2023-07-04

Family

ID=86960923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310329679.8A Pending CN116385613A (en) 2023-03-30 2023-03-30 Method, storage medium and equipment for screen space thermodynamic diagram rendering

Country Status (1)

Country Link
CN (1) CN116385613A (en)

Similar Documents

Publication Publication Date Title
Sigg et al. Signed distance transform using graphics hardware
JP4643271B2 (en) Visible surface determination system and method for computer graphics using interval analysis
US6778173B2 (en) Hierarchical image-based representation of still and animated three-dimensional object, method and apparatus for using this representation for the object rendering
US6677957B2 (en) Hardware-accelerated visualization of surface light fields
CN1716317B (en) Sliding texture volume rendering
US7466314B2 (en) Resolution-independent surface rendering using programmable graphics hardware
CN110738721A (en) Three-dimensional scene rendering acceleration method and system based on video geometric analysis
US20150022521A1 (en) Sparse GPU Voxelization for 3D Surface Reconstruction
US7062419B2 (en) Surface light field decomposition using non-negative factorization
WO2012037863A1 (en) Method for simplifying and progressively transmitting 3d model data and device therefor
US20090309877A1 (en) Soft shadow rendering
Noguera et al. Volume rendering strategies on mobile devices
CN112070909A (en) Engineering three-dimensional model LOD output method based on 3D Tiles
US7053894B2 (en) Compression of surface light fields
El Seoud et al. A comprehensive review on volume rendering techniques
Räsänen Surface splatting: Theory, extensions and implementation
CN114037811B (en) 3D temperature field graph rendering method, apparatus, medium, and device based on directed distance field
CN116385613A (en) Method, storage medium and equipment for screen space thermodynamic diagram rendering
Li et al. RIVA: A versatile parallel rendering system for interactive scientific visualization
CN102074004B (en) Method and device for determining type of barrier of spatial entity
Lee et al. A bimodal empty space skipping of ray casting for terrain data
US5821942A (en) Ray tracing through an ordered array
She et al. Rendering 2d lines on 3d terrain model with optimization in visual quality and running performance
Henning et al. Accelerating the ray tracing of height fields
CN117788641B (en) Entity drawing method, entity drawing device, computer equipment and storage medium

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