CN108876912A - Three-dimensional scenic physics renders method and its system - Google Patents
Three-dimensional scenic physics renders method and its system Download PDFInfo
- Publication number
- CN108876912A CN108876912A CN201810703078.8A CN201810703078A CN108876912A CN 108876912 A CN108876912 A CN 108876912A CN 201810703078 A CN201810703078 A CN 201810703078A CN 108876912 A CN108876912 A CN 108876912A
- Authority
- CN
- China
- Prior art keywords
- rendering
- sampling
- pixel points
- sample information
- processing
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/50—Lighting effects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/10—Image enhancement or restoration using non-spatial domain filtering
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Graphics (AREA)
- Geometry (AREA)
- Software Systems (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a kind of three-dimensional scenic physics renders method and its systems, by obtaining preset sampling pixel points related when rendering processing, and rendering processing is carried out to three-dimensional scene models according to preset sampling pixel points related when rendering processing, without being sampled to all pixels point in three-dimensional scene models, therefore, reduce the data volume of rendering, to reduce the number of processes of rendering, accelerates rendering speed;Also, by front and back double sampling, and after first time sampling rendering processing carry out optimization processing and obtain Error Graph carrying out second of sampling again, fabulous ensure that final rendering effect, will not be because of not causing rendering effect bad all pixels point sampling.
Description
Technical field
The present invention relates to computer graphics disposal technology field, in particular to a kind of three-dimensional scenic physics renders method and its
System.
Background technique
Rendering refers to the process of from model in computer graphical processing and generates image, wherein model is to use strict difinition
The description for three-dimension object of language or data structure, it includes geometry, viewpoint, texture and illumination information.Image is
Digital picture or bitmap images.Currently, what the body Rendering based on physical method was studied in terms of having become graphics process
One of emphasis.Physics renders technology is the completely new rendering engine based on true light physical characteristic, according to completely accurate
Algorithm and formula reappear the behavior of light, can recorde in scene interactional information between all elements, and institute
Light calculating be all to be performed using spectral information and high dynamic area data, it is more true quiet to can be used in rendering
State illumination and the screening effect for realizing various light sources, to realize the image effect of photo rank.But common rendering on the market
Device finer rendered picture in order to obtain, always defaults object and light source all in render scenes, without considering these
Whether object and light source can be seen, and result in usually needing to take a substantial amount of time carry out Rendering operations in this way, sometimes
It even needs to render for several days and obtains a three-dimensional scenic, rendering efficiency is extremely low, seriously constrains physics renders technology
Promotion and application.
Summary of the invention
In view of this, the present invention provides a kind of three-dimensional scenic physics renders method and its system is not necessarily to when being rendered
The all pixels point of objects all in three-dimensional scene models is sampled, while guaranteeing rendering effect, substantially increases wash with watercolours
Contaminate efficiency.
Three-dimensional scenic physics renders method of the invention, includes the following steps:
S1, the three-dimensional scene models for establishing object to be rendered;
S2, preset sampled pixel related when rendering processing is obtained from the three-dimensional scene models of foundation
Point is treated rendering objects according to the sampling pixel points of acquisition and is sampled at least once to obtain the first sample information, and according to
The first sample information obtained generates preliminary rendering figure;
S3, processing is optimized to preliminary rendering figure, obtains optimization rendering figure, and according to optimization rendering figure and the first sampling
Information determines Error Graph;
S4, rendering objects are treated according to the error amount of sampling pixel points in Error Graph sampled again to obtain second and adopt
Sample information, and final rendering figure is generated according to the second sample information.
Further, the correspondence sample information in step S2 and step S4 all in accordance with sampling pixel points acquisition is in vertex shader
In rendering processing is carried out to three-dimensional scene models.
Further, interpolation processing is carried out to carry out to three-dimensional scene models to sampling pixel points in step S2 and step S4
Rendering processing.
Further, processing is optimized to preliminary rendering figure, obtains optimization rendering figure, including:
The first gaussian filtering kernel bandwidth of sampling pixel points feature space is determined according to the first sample information;
Gaussian filtering is carried out to preliminary rendering figure using the first gaussian filtering kernel bandwidth, obtains optimization rendering figure.
Further, final rendering figure is generated according to the second sample information, including:
The second gaussian filtering kernel bandwidth of sampling pixel points feature space is determined according to the second sample information;
Gaussian filtering is carried out to preliminary rendering figure using the second gaussian filtering kernel bandwidth, generates final rendering figure.
Further, rendering objects are treated according to the error amount of sampling pixel points in Error Graph to be sampled again to obtain
Two sample informations, including:
The error rate of each pixel is determined according to the error amount of each sampling pixel points;
The sampling number of each sampling pixel points is determined according to error rate and setting number of samples;
According to sampling number, emits virtual sampling light by each sampling pixel points and treat render scenes and adopted
Sample.
The invention also discloses a kind of systems of three-dimensional scenic physics renders method utilized, including:
Acquiring unit, for obtaining preset sampling picture related when rendering processing from three-dimensional scene models
Vegetarian refreshments;
Sampling module carries out after sampling at least once for treating render scenes, obtains the first sampling of each pixel
Information, and preliminary rendering figure is generated according to the first sample information;
Optimization module obtains optimization rendering figure for optimizing processing to preliminary rendering figure;
Error determination module, for determining Error Graph according to optimization rendering figure and the first sample information;
Rendering module sample for treating render scenes according to the error amount of sampling pixel points each in Error Graph
Final rendering figure is generated to the second sample information, and according to the second sample information.
Beneficial effects of the present invention:Three-dimensional scenic physics renders method of the invention and its system are set in advance by obtaining
The fixed related sampling pixel points when rendering processing, and according to preset sampling related when rendering processing
Pixel carries out rendering processing to three-dimensional scene models, without being sampled to all pixels point in three-dimensional scene models, therefore,
Reduce the data volume of rendering, to reduce the number of processes of rendering, accelerates rendering speed;Also, twice by front and back
Sampling, and carry out optimization processing after first time sampling rendering processing and obtain Error Graph and carry out second of sampling, fabulous guarantor again
Final rendering effect has been demonstrate,proved, it will not be because of not causing rendering effect bad all pixels point sampling.
Detailed description of the invention
The invention will be further described with reference to the accompanying drawings and examples.
Fig. 1 is the step flow chart of three-dimensional scenic physics renders method in the present invention.
Specific embodiment
Technical solution in the embodiment of the present invention that following will be combined with the drawings in the embodiments of the present invention carries out clear, complete
Description, it is clear that described embodiment is only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
The embodiment of the present invention, every other reality obtained by those of ordinary skill in the art without making creative efforts
Example is applied, shall fall within the protection scope of the present invention.
It is to be appreciated that the directional instruction (such as up, down, left, right, before and after ...) of institute is only used in the embodiment of the present invention
In explaining relative positional relationship, motion conditions etc. under a certain particular pose (as shown in the picture) between each component, if the spy
When determining posture and changing, then directionality instruction also correspondingly changes correspondingly.
In addition, the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and should not be understood as referring to
Show or imply its relative importance or implicitly indicates the quantity of indicated technical characteristic." first ", " are defined as a result,
Two " feature can explicitly or implicitly include at least one of the features.In addition, the technical solution between each embodiment can
It to be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when the combination of technical solution occurs
Conflicting or cannot achieve when, will be understood that the combination of this technical solution is not present, also not the present invention claims protection model
In enclosing.
The present invention proposes a kind of three-dimensional scenic physics renders method.
Referring to Fig.1, Fig. 1 is the step flow chart of three-dimensional scenic physics renders method in the present invention, as shown in the figure:This implementation
The three-dimensional scenic physics renders method of example, includes the following steps:
S1, the three-dimensional scene models for establishing object to be rendered;It can be commonly used using 3DMAX, Maya, AutoCAD, UG etc. soft
Part establishes the three-dimensional scene models of object/scene to be rendered, is the prior art, details are not described herein;
S2, preset sampled pixel related when rendering processing is obtained from the three-dimensional scene models of foundation
Point is treated rendering objects according to the sampling pixel points of acquisition and is sampled at least once to obtain the first sample information, and according to
The first sample information obtained generates preliminary rendering figure;It can the selected vertex of specific graphics process interface GPU acquisition basis
How data are preset renders related sampling pixel points when processing;Monte Carlo can be passed through to the sampling of sampling pixel points
Ray trace method renders scene;
S3, processing is optimized to preliminary rendering figure, obtains optimization rendering figure, and according to optimization rendering figure and the first sampling
Information determines Error Graph;
S4, rendering objects are treated according to the error amount of sampling pixel points in Error Graph sampled again to obtain second and adopt
Sample information, and final rendering figure is generated according to the second sample information.
In the present embodiment, the correspondence sample information obtained in step S2 and step S4 all in accordance with sampling pixel points is on vertex
Rendering processing is carried out to three-dimensional scene models in color device.When carrying out rendering processing, the coloring in graphics processor GPU can be used
Device (shader) carries out rendering processing to three-dimensional scene models, such as in OpenGl processing, and Shader points are vertex shader
With two kinds of fragment shader, in the present embodiment, using vertex shader, be mainly responsible for the fortune of geometrical relationship of vertex data etc.
It calculates, the data of vertex, normal etc. is rendered by vertex shader, the data volume of operation is less, and rendering efficiency is relatively high.
In the present embodiment, interpolation processing is carried out to three-dimensional scene models to sampling pixel points in step S2 and step S4
Carry out rendering processing.
In the present embodiment, processing is optimized to preliminary rendering figure, obtains optimization rendering figure, including:
The first gaussian filtering kernel bandwidth of sampling pixel points feature space is determined according to the first sample information;
Gaussian filtering is carried out to preliminary rendering figure using the first gaussian filtering kernel bandwidth, obtains optimization rendering figure.
In the present embodiment, final rendering figure is generated according to the second sample information, including:
The second gaussian filtering kernel bandwidth of sampling pixel points feature space is determined according to the second sample information;
Gaussian filtering is carried out to preliminary rendering figure using the second gaussian filtering kernel bandwidth, generates final rendering figure.
In the present embodiment, rendering objects are treated according to the error amount of sampling pixel points in Error Graph and are sampled again to obtain
To the second sample information, including:
The error rate of each pixel is determined according to the error amount of each sampling pixel points;
The sampling number of each sampling pixel points is determined according to error rate and setting number of samples;
According to sampling number, emits virtual sampling light by each sampling pixel points and treat render scenes and adopted
Sample.
The invention also discloses a kind of systems of three-dimensional scenic physics renders method utilized, including:
Acquiring unit, for obtaining preset sampling picture related when rendering processing from three-dimensional scene models
Vegetarian refreshments;
Sampling module carries out after sampling at least once for treating render scenes, obtains the first sampling of each pixel
Information, and preliminary rendering figure is generated according to the first sample information;
Optimization module obtains optimization rendering figure for optimizing processing to preliminary rendering figure;
Error determination module, for determining Error Graph according to optimization rendering figure and the first sample information;
Rendering module sample for treating render scenes according to the error amount of sampling pixel points each in Error Graph
Final rendering figure is generated to the second sample information, and according to the second sample information.
In addition, further including in system disclosed in this invention:
Bandwidth determination unit, for determining the first of each sampling pixel points feature space according to first sample information
Gaussian filtering kernel bandwidth;
Optimize unit, for carrying out gaussian filtering to preliminary rendering figure using the first gaussian filtering kernel bandwidth, obtains excellent
Change result figure.
Finally, it is stated that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although referring to compared with
Good embodiment describes the invention in detail, those skilled in the art should understand that, it can be to skill of the invention
Art scheme is modified or replaced equivalently, and without departing from the objective and range of technical solution of the present invention, should all be covered at this
In the scope of the claims of invention.
Claims (7)
1. a kind of three-dimensional scenic physics renders method, it is characterised in that:Include the following steps:
S1, the three-dimensional scene models for establishing object to be rendered;
S2, preset sampling pixel points related when rendering processing, root are obtained from the three-dimensional scene models of foundation
It treats rendering objects according to the sampling pixel points of acquisition to be sampled at least once to obtain the first sample information, and according to acquisition
First sample information generates preliminary rendering figure;
S3, processing is optimized to preliminary rendering figure, obtains optimization rendering figure, and according to optimization rendering figure and first sampling
Information determines Error Graph;
S4, rendering objects are treated according to the error amount of sampling pixel points in the Error Graph sampled again to obtain second and adopt
Sample information, and final rendering figure is generated according to second sample information.
2. according to claim 1, it is characterised in that:Pair obtained in step S2 and step S4 all in accordance with sampling pixel points
Sample information is answered to carry out rendering processing to three-dimensional scene models in vertex shader.
3. three-dimensional scenic physics renders method according to claim 2, it is characterised in that:It is right in step S2 and step S4
Sampling pixel points carry out interpolation processing to carry out rendering processing to three-dimensional scene models.
4. three-dimensional scenic physics renders method according to claim 3, it is characterised in that:It is described that preliminary rendering figure is carried out
Optimization processing obtains optimization rendering figure, including:
The first gaussian filtering kernel bandwidth of sampling pixel points feature space is determined according to first sample information;
Gaussian filtering is carried out to the preliminary rendering figure using the first gaussian filtering kernel bandwidth, obtains optimization rendering figure.
5. three-dimensional scenic physics renders method according to claim 4, it is characterised in that:It is described to be sampled according to described second
Information generates final rendering figure, including:
The second gaussian filtering kernel bandwidth of sampling pixel points feature space is determined according to second sample information;
Gaussian filtering is carried out to the preliminary rendering figure using the second gaussian filtering kernel bandwidth, generates final rendering
Figure.
6. three-dimensional scenic physics renders method according to claim 5, it is characterised in that:It is sampled according in the Error Graph
The error amount of pixel is treated rendering objects and is sampled again to obtain the second sample information, including:
The error rate of each pixel is determined according to the error amount of each sampling pixel points;
The sampling number of each sampling pixel points is determined according to the error rate and setting number of samples;
According to the sampling number, emits virtual sampling light by each sampling pixel points and the scene to be rendered is carried out
Sampling.
7. a kind of system using three-dimensional scenic physics renders method described in claim 1-6 any claim, feature
It is:Including:
Acquiring unit, for obtaining preset sampled pixel related when rendering processing from three-dimensional scene models
Point;
Sampling module carries out after sampling at least once for treating render scenes, obtains the first sample information of each pixel,
And preliminary rendering figure is generated according to first sample information;
Optimization module obtains optimization rendering figure for optimizing processing to preliminary rendering figure;
Error determination module, for determining Error Graph according to the optimization rendering figure and first sample information;
Rendering module, for being adopted according to the error amount of sampling pixel points each in the Error Graph to the scene to be rendered
Sample obtains the second sample information, and generates final rendering figure according to the second sample information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810703078.8A CN108876912A (en) | 2018-06-30 | 2018-06-30 | Three-dimensional scenic physics renders method and its system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810703078.8A CN108876912A (en) | 2018-06-30 | 2018-06-30 | Three-dimensional scenic physics renders method and its system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108876912A true CN108876912A (en) | 2018-11-23 |
Family
ID=64297720
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810703078.8A Pending CN108876912A (en) | 2018-06-30 | 2018-06-30 | Three-dimensional scenic physics renders method and its system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108876912A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114119842A (en) * | 2021-11-24 | 2022-03-01 | 深圳市瑞云科技有限公司 | Rendering method and system based on SSIM (structural similarity) and PSNR (Peak Signal to noise ratio) algorithm and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002503854A (en) * | 1998-02-17 | 2002-02-05 | サン・マイクロシステムズ・インコーポレーテッド | Estimating graphics system performance for polygons |
CN105631925A (en) * | 2015-12-29 | 2016-06-01 | 北京航天测控技术有限公司 | Three-dimensional scene generation method based on OSG three-dimensional rendering engine preprocessing and device thereof |
CN106204703A (en) * | 2016-06-29 | 2016-12-07 | 乐视控股(北京)有限公司 | Three-dimensional scene models rendering intent and device |
CN107330966A (en) * | 2017-06-21 | 2017-11-07 | 杭州群核信息技术有限公司 | A kind of rendering intent and device |
-
2018
- 2018-06-30 CN CN201810703078.8A patent/CN108876912A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002503854A (en) * | 1998-02-17 | 2002-02-05 | サン・マイクロシステムズ・インコーポレーテッド | Estimating graphics system performance for polygons |
CN105631925A (en) * | 2015-12-29 | 2016-06-01 | 北京航天测控技术有限公司 | Three-dimensional scene generation method based on OSG three-dimensional rendering engine preprocessing and device thereof |
CN106204703A (en) * | 2016-06-29 | 2016-12-07 | 乐视控股(北京)有限公司 | Three-dimensional scene models rendering intent and device |
CN107330966A (en) * | 2017-06-21 | 2017-11-07 | 杭州群核信息技术有限公司 | A kind of rendering intent and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114119842A (en) * | 2021-11-24 | 2022-03-01 | 深圳市瑞云科技有限公司 | Rendering method and system based on SSIM (structural similarity) and PSNR (Peak Signal to noise ratio) algorithm and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10630956B2 (en) | Image processing method and apparatus | |
CN111033570B (en) | Rendering images from computer graphics using two rendering computing devices | |
CN112652046B (en) | Game picture generation method, device, equipment and storage medium | |
CN113240783B (en) | Stylized rendering method and device, readable storage medium and electronic equipment | |
US7508390B1 (en) | Method and system for implementing real time soft shadows using penumbra maps and occluder maps | |
KR20050004124A (en) | Method of generating blur | |
US10249077B2 (en) | Rendering the global illumination of a 3D scene | |
US8854392B2 (en) | Circular scratch shader | |
CN119563152A (en) | Post-process occlusion-based rendering for extended reality (XR) | |
CN116194960A (en) | Direct volume rendering device | |
US11145108B2 (en) | Uniform density cube map rendering for spherical projections | |
US11804008B2 (en) | Systems and methods of texture super sampling for low-rate shading | |
KR20100075351A (en) | Method and system for rendering mobile computer graphic | |
US8891857B2 (en) | Concave surface modeling in image-based visual hull | |
CN108876912A (en) | Three-dimensional scenic physics renders method and its system | |
Jorge et al. | Dynamic occlusion handling for real-time ar applications | |
US7880743B2 (en) | Systems and methods for elliptical filtering | |
DE102023105068A1 (en) | Motion vector optimization for multiple refractive and reflective interfaces | |
JP7143419B2 (en) | Image processing device, image processing method, and program | |
US10922872B2 (en) | Noise reduction on G-buffers for Monte Carlo filtering | |
CN116778064B (en) | Virtual model rendering method, device, computing device and computer storage medium | |
US20240311959A1 (en) | Frame Interpolation Using Both Optical Motion And In-Game Motion | |
CN117422814A (en) | OpenGL-based 3D liquid crystal instrument system control system and method | |
WO2025122035A1 (en) | Processing 3d media streams | |
CN120014133A (en) | Method and device for generating three-dimensional model |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181123 |