CN107644453A - A kind of rendering intent and system based on physical colored - Google Patents

A kind of rendering intent and system based on physical colored Download PDF

Info

Publication number
CN107644453A
CN107644453A CN201710777504.8A CN201710777504A CN107644453A CN 107644453 A CN107644453 A CN 107644453A CN 201710777504 A CN201710777504 A CN 201710777504A CN 107644453 A CN107644453 A CN 107644453A
Authority
CN
China
Prior art keywords
pixel
value
color
vector
reflection
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.)
Granted
Application number
CN201710777504.8A
Other languages
Chinese (zh)
Other versions
CN107644453B (en
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.)
Chengdu Tongjia Youbo Technology Co Ltd
Original Assignee
Chengdu Tongjia Youbo 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 Chengdu Tongjia Youbo Technology Co Ltd filed Critical Chengdu Tongjia Youbo Technology Co Ltd
Priority to CN201710777504.8A priority Critical patent/CN107644453B/en
Publication of CN107644453A publication Critical patent/CN107644453A/en
Application granted granted Critical
Publication of CN107644453B publication Critical patent/CN107644453B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of rendering intent and system based on physical colored, this method includes:The diffusing reflection color of each pixel of corresponding object is calculated using material background color and diffusing reflection coefficient;Calculate the environment texture value of each pixel, pray for surface shaded entry value and Fresnel effect coefficient;According to environment texture value, surface shaded entry value and Fresnel effect coefficient are prayed for, calculates the reflection colour of each pixel;Diffusing reflection color is added with reflection colour to obtain the final color of corresponding each pixel of object;Solve the problems, such as that rendering for translucent material is time-consuming big, Fast rendering can be realized;Polarisation material can be rendered simultaneously, rendering effect is good so that dummy model is more life-like.

Description

A kind of rendering intent and system based on physical colored
Technical field
The present invention relates to field of Computer Graphics, more particularly to a kind of rendering intent and system based on physical colored.
Background technology
With the development of three-dimensional visualization technique, cognition sense of the people to virtual reality is more and more stronger.Thing in actual environment The lighting effect that body is presented can be because of different and different, the light of transparent material, translucent material, transparent materials etc. of object material Characteristic is different, and the color component characteristic of reflected light and scattering light is different, therefore renders necessary during virtual scene true to nature Consider the material properties of each object in scene.
In recent years, certain achievement in research is had been achieved for for rendering for subsurface, such as by solution total radiation transmission Equation can accurate but time-consuming simulation Subsurface Scattering, Photon Mapping method simulates full Subsurface Scattering to render rain flower Stone.Scattering function simulates Subsurface Scattering.But although the method for these solution total radiation equation of transfers can be simulated all times Surface scattering visual effect, but computation complexity is extremely high.
Rendering based on physics (PBR) be one be seen in major game industry exchange of technology often in recent years, game is opened Send out the rendering intent of business's public relations and game medium.Rendering including many sides based on physics in the signified game of people at present Face, such as linear space, camera lens model, HDR etc..But these modes are to subsurface (especially translucent material/polarisation material Matter) scatter in Rendering algorithms in the presence of time-consuming, consumption internal memory, the simulation imperfect shortcoming of effect, therefore, how to improve double of transparent material The rendering speed and rendering effect of matter/polarisation material, it is those skilled in the art's technical issues that need to address.
The content of the invention
It is an object of the invention to provide a kind of rendering intent and system based on physical colored, solves the wash with watercolours of subsurface Dye, polarisation material render, and rendering effect is good so that dummy model is more life-like;Fast rendering can be realized.
In order to solve the above technical problems, the present invention provides a kind of rendering intent based on physical colored, methods described includes:
The diffusing reflection color of each pixel of corresponding object is calculated using material background color and diffusing reflection coefficient;
Calculate the environment texture value of each pixel, pray for surface shaded entry value and Fresnel effect coefficient;
According to the environment texture value, it is described pray for surface shaded entry value and the Fresnel effect coefficient, calculate corresponding The reflection colour of each pixel of object;
The diffusing reflection color is added with the reflection colour to obtain the final color of corresponding each pixel of object.
Optionally, the diffusing reflection face that each pixel of corresponding object is calculated using material background color and diffusing reflection coefficient Color, including:
By the texture coordinate of pixel, texture rgb value corresponding to each pixel is determined;
Texture rgb value corresponding to each pixel is multiplied with corresponding basic colors value, obtains each pixel Corresponding background color value;
According to the texture rgb value and the background color value, each pixel is determined using conservation of energy rule Corresponding material background color;
By the material background color and corresponding diffusing reflection multiplication, the diffusing reflection face of each pixel of corresponding object is obtained Color.
Optionally, the environment texture value for calculating each pixel, including:
Obtain the reflective vector after standardization processing;
Whole environment texture coordinate is calculated using the reflective vector;
According to the whole environment texture coordinate, sampling obtains the environment texture value of current each pixel.
Optionally, it is described calculate each pixel pray for surface shaded entry value, including:
Normal vector is obtained with half-angle vector angle NdotH, normal vector and incident light vector angle NdotL, normal vector with regarding The cosine value VdotH and material roughness value of point vector angle NdotV, view direction and half-angle vector angle gloss;
UtilizeCalculate micro- surface shaded entry value G of each pixel;
Wherein, G '=G_Smith (a2, NdotL) * G_Smith (a2, max { e-8, NdotV });
Wherein,
Cos is VdotH.
Optionally, the Fresnel effect coefficient for calculating each pixel, including:
Obtain the Fresnel intensity fresnelStrength of the corresponding object of input;
Each picture is calculated using fresnelWithOffset=(1- α) * reflectivity+ α * (1.0,1.0,1.0) The Fresnel effect coefficient fresnelWithOffset of vegetarian refreshments;
Wherein, α=(1-VdotH+offset)4* fresnelStrength, reflectivity are initial reflection light face Color, offset are Fresnel offset.
Optionally, it is described according to the environment texture value, described pray for surface shaded entry value and the Fresnel effect system Number, the reflection colour of each pixel of corresponding object is calculated, including:
Each picture of corresponding object is calculated using specularLight=sampleCol*fresnelWithOffset*G The reflection colour specularLight of vegetarian refreshments;Wherein, sampleCol is environment texture value.
The present invention also provides a kind of rendering system based on physical colored, and the system includes:
Diffusing reflection color computing module, for calculating each pixel of corresponding object using material background color and diffusing reflection coefficient Diffusing reflection color;
Parameter calculating module, for calculating the environment texture value of each pixel, praying for surface shaded entry value and luxuriant and rich with fragrance alunite That effect coefficient;
Reflection colour computing module, for according to the environment texture value, described pray for surface shaded entry value and the phenanthrene Nie Er effect coefficients, calculate the reflection colour of each pixel of corresponding object;
Final color computing module, it is each for the diffusing reflection color and the reflection colour to be added to obtain corresponding object The final color of the pixel.
Optionally, the parameter calculating module includes:
Environment texture value computing unit, for obtaining the reflective vector after standardization processing;Gauge is reflected towards using described Calculate whole environment texture coordinate;According to the whole environment texture coordinate, sampling obtains the environment line of current each pixel Reason value.
Optionally, the parameter calculating module includes:
Surface shaded entry value computing unit is prayed for, for obtaining normal vector and half-angle vector angle NdotH, normal vector and incidence The cosine value of light vector angle NdotL, normal vector and view direction angle NdotV, view direction and half-angle vector angle VdotH and material roughness value gloss;UtilizeCalculate each pixel Pray for surface shaded entry value G;
Wherein, G '=G_Smith (a2, NdotL) * G_Smith (a2, max { e-8, NdotV });
Wherein,
Cos is VdotH.
Optionally, the parameter calculating module includes:
Fresnel effect coefficient computing unit, the Fresnel intensity of the corresponding object for obtaining input fresnelStrength;Calculated using fresnelWithOffset=(1- α) * reflectivity+ α * (1.0,1.0,1.0) The Fresnel effect coefficient freshelWithOffset of each pixel;
Wherein, α=(1-VdotH+offset)4* fresnelStrength, reflectivity are initial reflection light face Color, offset are Fresnel offset.
A kind of rendering intent based on physical colored provided by the present invention, including:Utilize material background color and diffusing reflection Coefficient calculates the diffusing reflection color of each pixel of corresponding object;Calculate the environment texture value of each pixel, pray for surface shaded entry value And Fresnel effect coefficient;According to environment texture value, surface shaded entry value and Fresnel effect coefficient are prayed for, calculates each pixel The reflection colour of point;Diffusing reflection color is added with reflection colour to obtain the final color of corresponding each pixel of object;
It can be seen that this method solve translucent material renders the problem of time-consuming big, Fast rendering can be realized;Energy simultaneously Enough that polarisation material is rendered, rendering effect is good so that dummy model is more life-like;One kind that the present invention also provides is based on thing The rendering system of coloring is managed, there is above-mentioned beneficial effect, will not be repeated here.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
The flow chart for the rendering intent based on physical colored that Fig. 1 is provided by the embodiment of the present invention;
The structured flowchart for the rendering system based on physical colored that Fig. 2 is provided by the embodiment of the present invention.
Embodiment
The core of the present invention is to provide a kind of rendering intent and system based on physical colored, the wash with watercolours for solving subsurface Dye, polarisation material render, and rendering effect is good so that dummy model is more life-like;Fast rendering can be realized.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
It refer to Fig. 1, the flow chart for the rendering intent based on physical colored that Fig. 1 is provided by the embodiment of the present invention;Should Method can include:
S100, the diffusing reflection color for corresponding to each pixel of object is calculated using material background color and diffusing reflection coefficient;
Specifically, the present embodiment does not limit the specific mode for calculating diffusing reflection color, such as maturation can be utilized Algorithm in algorithms library calculates the diffusing reflection color of each pixel in object, and diffusing reflection color is by script diffusing reflection color and unrestrained The product of reflected intensity is formed.Further, in order to improve the reliability for the diffusing reflection color being calculated.Can be for example such as lower section Formula calculates the diffusing reflection color of each pixel of corresponding object:
By the texture coordinate of pixel, texture rgb value corresponding to each pixel is determined;
Specifically, the step can obtain material color, i.e., by the texture coordinate of pixel, the seat is searched on texture The rgb value of texture under mark.
Texture rgb value corresponding to each pixel is multiplied with corresponding basic colors value, obtains carrying on the back corresponding to each pixel Scape color value;
Specifically, background color value bColor=textureColor*baseColor;Wherein, textureColor is line Rgb values are managed, baseColor is basic colors value.TextureColor is surface texture itself, if without textureColor Background color value is exactly baseColor.
According to texture rgb values and background color value, material bottom corresponding to each pixel is determined using conservation of energy rule Color;
Specifically, the step in order to obtain material background color, according to the conservation of energy, can ensure that incident ray energy energy is not small In reflection light energy.Material background color albedo=albedo (x, y, z)-albedo wherein can be calculated using following formula (x, y, z) * reflectivity (x, y, z);Wherein, albedo (x, y, z) is initial material background color, reflectivity (x, Y, z) it is initial reflection light color.
By material background color and corresponding diffusing reflection multiplication, the diffusing reflection color of each pixel of corresponding object is obtained.
Specifically, the diffusing reflection color that the present embodiment is calculated be consider the conservation of energy after be calculated it is unrestrained Reflection colour.Diffusing reflection color can be calculated using formula diffusionLight=albedo*diffus DiffusionLight, wherein, diffus is diffusing reflection coefficient.
S110, the environment texture value for calculating each pixel, pray for surface shaded entry value and Fresnel effect coefficient;
Specifically, the present embodiment is due to considering rendering speed and rendering effect to translucent material/polarisation material, because This needs to improve rendering efficiency and rendering result degree true to nature using environment texture value, prays for surface shaded entry value to improve picture The face sense of reality, Fresnel effect coefficient obtain polarisation material sense, can not realize color with angulation change relative to tradition and The patch texture scheme of change, more truly.The present embodiment does not limit the specific calculation of above-mentioned several numerical value.Calculate above-mentioned The purpose of several parameters is provided to reflection colour to be calculated, and reflection colour is that the RGB color of incident ray reaches body surface The light of back reflection, reflects light color and intensity changes with the angle change of glasses object and surface normal, this change Measurement controlled by Fresnel intensity, it is therefore desirable to calculate Fresnel effect coefficient to obtain polarisation material sense.User can With according to the actual requirements and hardware design conditions carry out respective algorithms selection.The preferred meter of one kind of each numerical value is given below Calculation mode.
Preferably, calculating the environment texture value of each pixel can include:
Obtain the reflective vector after standardization processing;
Specifically, the present embodiment does not limit the concrete mode of reflective vector acquisition, such as using in ripe algorithms library Algorithm obtain the reflective vector of pixel.Or using reflective vector reflectDir by view direction vertexEye's There is the characteristic equal with the angle of normal in reflection light, reflective vector reflectDir, thus with view direction vertexEye Characteristic can calculate reflective vector reflectDir according to view direction and normal vector;And to calculating reflective vector reflectDir Carry out standardization processing.
Whole environment texture coordinate is calculated using reflective vector;
Specifically, the present embodiment does not limit the concrete mode that whole environment texture coordinate obtains, such as utilize following public affairs Formula calculates whole environment texture coordinate (u, v):
Wherein, a is the abscissa of the corresponding original image of whole environment texture coordinate (u, v).
According to whole environment texture coordinate, sampling obtains the environment texture value of current each pixel.
Specifically, sample mode can be (u, v) corresponded to by detecting (u, v) coordinate of texture image in original image Coordinate, then corresponding RGB color value under (u, v) coordinate in original image is assigned to (u, v) coordinate of texture image.
Preferably, calculate each pixel prays for surface shaded entry value, including:
Normal vector is obtained with half-angle vector angle NdotH, normal vector and incident light vector angle NdotL, normal vector with regarding The cosine value VdotH and material roughness value of point vector angle NdotV, view direction and half-angle vector angle gloss;
Wherein, the view direction of pixel be camera pixel position to observation position vector, the reflective vector of pixel It is mirror image vector of the view direction relative to normal line vector;Normal vector is the normal line vector of plane where current pixel.Calculating Before above-mentioned each angle numerical value, now each vector is obtained.The present embodiment does not limit each vectorial specific acquisition modes.
Such as obtain the view direction of pixel using the algorithm in the algorithms library of maturation:View direction is camera pixel Vector of the position to observation position.The acquisition modes of half-angle vector are identical with the acquisition modes of normal vector, because only carrying out once Sampling, so the half-angle vector sum normal vector used in current sampling is identical.If carry out multiple repairing weld, then every time half during sampling Angular amount is the random distribution vector using normal vector as starting point.Incident light vector utilizes formula L=(2* (vertexEye*H)) * H-vertexEye is obtained.Wherein, vertexEye represents view direction, represents that current pixel point points to the vector of camera;H tables Show half-angle vector.
Specifically, the present embodiment does not limit the concrete mode of NdotH, NdotL, NdotV and VdotH acquisition, such as:
Normal vector and half-angle vector angle NdotH acquisition modes can be as follows:
Wherein, normal is a constant.
Normal vector and incident light vector angle NdotL acquisition modes can be as follows:
Wherein, normal is a constant, and L represents half-angle vector.
Normal vector and view direction angle NdotV acquisition modes can be as follows:
Wherein, normal is a constant.
View direction and the cosine value VdotH of the angle of half-angle vector acquisition modes can be as follows:
Wherein, V represents view direction.
Material roughness value gloss specific formula for calculation is gloss=1-rough, wherein, rough represents that texture is thick Rugosity, it is a constant.
UtilizeCalculate each pixel prays for surface shaded entry value G;
Wherein, G '=G_Smith (a2, NdotL) * G_Smith (a2, max { e-8, NdotV });
Wherein,A is variable name.
Cos is VdotH.
Specifically, according to superficial theory is prayed for, body surface can be regarded as by the countless planes for praying for surface composition, pray for surface Roughness attribute and incident light direction determine the masking and absorption for praying for surface to light.Pray for surface shaded item calculation such as Under:
Preferably, the Fresnel effect coefficient of each pixel is calculated, including:
Obtain the Fresnel intensity fresnelStrength of the corresponding object of input;
Each pixel is calculated using fresnelWithOffset=(1- α) * reflectivity+ α * (1.0,1.0,1.0) Fresnel effect coefficient fresnelWithOffset;
Wherein, α=(1-VdotH+offset)4* fresnelStrength, reflectivity are initial reflection light face Color, offset are Fresnel offset, are a constants.Wherein, Fresnel intensity is to the folder between view direction and half-angle vector The disturbance degree at angle:F=f4* fresnelStrength, wherein, fresnelStrength is Fresnel intensity, is a constant, User can be determined i.e. user according to the material of actual object and specify Fresnel color value according to unlike material.F=1- Cos θ+offset, wherein, cos θ are the dot products of view direction and half-angle vector.
S120, according to environment texture value, pray for surface shaded entry value and Fresnel effect coefficient, calculate each picture of corresponding object The reflection colour of vegetarian refreshments;
Wherein, why the present embodiment wants computing environment texture value, prays for surface shaded entry value and Fresnel effect coefficient, And reflection colour is calculated using them, be in order to solve the rendering of subsurface, polarisation material renders, rendering effect It is good so that dummy model is more life-like;Fast rendering can be realized.
I.e. the present embodiment has anticipated HDR environment textures (wherein, the HDR (High-Dynamic of different fog-levels Range) it is a kind of photo disposal program.In big light than being shot under environment, general camera by dynamic range because being limited, it is impossible to The extremely bright or dark details of record.The photo handled through HDR programs, under big light is shot than situation, no matter bloom, dark Position can be obtained than common photo more preferably level), the present embodiment is only once adopted in each pixel to reflection light Sample, traditional scheme need to carry out at least 16 stochastical samplings, therefore embodiment improves rendering efficiency;Meanwhile the present embodiment It is rendering based on environment, rendering result is true to nature, the method sense of reality of the Subsurface Scattering method than traditional alpha passages fusion More increase.Obtain polarisation material sense by doing migration processing to Fresnel effect, relative to tradition can not realize color with Angulation change and the patch texture scheme changed, more truly.
Specifically, final Fresnel effect reflect light color by environment texture value, pray for surface shaded entry value and Fresnel Effect coefficient (Fresnel item) calculates the reflection colour that final reflection light color is each pixel of corresponding object.Utilize SpecularLight=sampleCol*fresnelWithOffset*G calculates the reflection colour of each pixel of corresponding object specularLight;Wherein, sampleCol is environment texture value.
S130, diffusing reflection color is added with reflection colour to obtain the final color of corresponding each pixel of object.
Specifically, diffusing reflection color is added with reflection colour to obtain the final color of corresponding each pixel of object.It is i.e. sharp It is diffusing reflection color to calculate final color re, diffusionLight with re=diffuseLight+reflectLight, ReflectLight=specularLight is reflection colour.
Based on above-mentioned technical proposal, the rendering intent provided in an embodiment of the present invention based on physical colored, it is contemplated that half-and-half The rendering speed and rendering effect of transparent material/polarisation material, improve rendering efficiency using environment texture value and render knot Fruit degree true to nature, surface shaded entry value is prayed for improve the picture sense of reality, Fresnel effect coefficient obtains polarisation material sense, phase The patch texture scheme that color changes with angulation change can not be realized for tradition, more truly.Solve the rendering of subsurface, Polarisation material renders, and rendering effect is good so that dummy model is more life-like;Fast rendering can be realized.
The rendering system provided in an embodiment of the present invention based on physical colored is introduced below, it is described below to be based on The rendering system of physical colored can be mutually to should refer to the above-described rendering intent based on physical colored.
It refer to Fig. 2, the structured flowchart for the rendering system based on physical colored that Fig. 2 is provided by the embodiment of the present invention. The system can include:
Diffusing reflection color computing module 100, for calculating each picture of corresponding object using material background color and diffusing reflection coefficient The diffusing reflection color of vegetarian refreshments;
Parameter calculating module 200, for calculating the environment texture value of each pixel, praying for surface shaded entry value and Fresnel Effect coefficient;
Reflection colour computing module 300, for according to environment texture value, pray for surface shaded entry value and Fresnel effect system Number, calculate the reflection colour of each pixel of corresponding object;
Final color computing module 400, for being added diffusing reflection color with reflection colour to obtain corresponding each pixel of object The final color of point.
Based on above-described embodiment, parameter calculating module 200 can include:
Environment texture value computing unit, for obtaining the reflective vector after standardization processing;Calculated using reflective vector complete Border environment texture coordinate;According to whole environment texture coordinate, sampling obtains the environment texture value of current each pixel.
Based on above-described embodiment, parameter calculating module 200 can include:
Surface shaded entry value computing unit is prayed for, for obtaining normal vector and half-angle vector angle NdotH, normal vector and incidence The cosine value of light vector angle NdotL, normal vector and view direction angle NdotV, view direction and half-angle vector angle VdotH and material roughness value gloss;UtilizeCalculate each pixel Pray for surface shaded entry value G;
Wherein, G '=G_Smith (a2, NdotL) * G_Smith (a2, max { e-8, NdotV });
Wherein,
Cos is VdotH.
Based on above-described embodiment, parameter calculating module 200 can include:
Fresnel effect coefficient computing unit, the Fresnel intensity of the corresponding object for obtaining input fresnelStrength;Calculated using fresnelWithOffset=(1- α) * reflectivity+ α * (1.0,1.0,1.0) The Fresnel effect coefficient fresnelWithOffset of each pixel;
Wherein, α=(1-VdotH+offset)4* fresnelStrength, reflectivity are initial reflection light face Color, offset are Fresnel offset.
Each embodiment is described by the way of progressive in specification, and what each embodiment stressed is and other realities Apply the difference of example, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment Speech, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is referring to method part illustration .
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and The interchangeability of software, the composition and step of each example are generally described according to function in the above description.These Function is performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specialty Technical staff can realize described function using distinct methods to each specific application, but this realization should not Think beyond the scope of this invention.
Directly it can be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The rendering intent provided by the present invention based on physical colored and system are described in detail above.Herein Apply specific case to be set forth the principle and embodiment of the present invention, the explanation of above example is only intended to help Understand the method and its core concept of the present invention.It should be pointed out that for those skilled in the art, do not taking off On the premise of from the principle of the invention, some improvement and modification can also be carried out to the present invention, these are improved and modification also falls into this In invention scope of the claims.

Claims (10)

1. a kind of rendering intent based on physical colored, it is characterised in that methods described includes:
The diffusing reflection color of each pixel of corresponding object is calculated using material background color and diffusing reflection coefficient;
Calculate environment texture value, micro- surface shaded entry value and the Fresnel effect coefficient of each pixel;
According to the environment texture value, micro- surface shaded entry value and the Fresnel effect coefficient, corresponding object is calculated The reflection colour of each pixel;
The diffusing reflection color is added with the reflection colour to obtain the final color of corresponding each pixel of object.
2. according to the method for claim 1, it is characterised in that described to utilize material background color and the calculating pair of diffusing reflection coefficient The diffusing reflection color of each pixel of object is answered, including:
By the texture coordinate of pixel, texture rgb value corresponding to each pixel is determined;
Texture rgb value corresponding to each pixel is multiplied with corresponding basic colors value, it is corresponding to obtain each pixel Background color value;
According to the texture rgb value and the background color value, determine that each pixel is corresponding using conservation of energy rule Material background color;
By the material background color and corresponding diffusing reflection multiplication, the diffusing reflection color of each pixel of corresponding object is obtained.
3. according to the method for claim 2, it is characterised in that the environment texture value for calculating each pixel, bag Include:
Obtain the reflective vector after standardization processing;
Whole environment texture coordinate is calculated using the reflective vector;
According to the whole environment texture coordinate, sampling obtains the environment texture value of current each pixel.
4. according to the method for claim 3, it is characterised in that the micro- surface shaded item for calculating each pixel Value, including:
Obtain normal vector and half-angle vector angle NdotH, normal vector and incident light vector angle NdotL, normal vector and viewpoint to Measure the cosine value VdotH and material roughness value gloss of angle NdotV, view direction and half-angle vector angle;
UtilizeCalculate micro- surface shaded entry value G of each pixel;
Wherein, G '=G_Smith (a2, NdotL) * G_Smith (a2, max { e-8, NdotV });
Wherein,
Cos is VdotH.
5. according to the method for claim 4, it is characterised in that the Fresnel effect system for calculating each pixel Number, including:
Obtain the Fresnel intensity fresnelStrength of the corresponding object of input;
Each pixel is calculated using fresnelWithOffset=(1- α) * reflectivity+ α * (1.0,1.0,1.0) Fresnel effect coefficient fresnelWithOffset;
Wherein, α=(1-VdotH+offset)4* fresnelStrength, reflectivity are initial reflection light color, Offset is Fresnel offset.
6. according to the method for claim 5, it is characterised in that it is described according to the environment texture value, the micro- surface hides Entry value and the Fresnel effect coefficient are covered, calculates the reflection colour of each pixel of corresponding object, including:
Each pixel of corresponding object is calculated using specularLight=sampleCol*fresnelWithOffset*G Reflection colour specularLight;Wherein, sampleCol is environment texture value.
7. a kind of rendering system based on physical colored, it is characterised in that the system includes:
Diffusing reflection color computing module, for calculating the unrestrained of each pixel of corresponding object using material background color and diffusing reflection coefficient Reflection colour;
Parameter calculating module, for calculating environment texture value, micro- surface shaded entry value and the Fresnel effect of each pixel Answer coefficient;
Reflection colour computing module, for according to the environment texture value, micro- surface shaded entry value and the Fresnel Effect coefficient, calculate the reflection colour of each pixel of corresponding object;
Final color computing module, it is each described for the diffusing reflection color and the reflection colour to be added to obtain corresponding object The final color of pixel.
8. system according to claim 7, it is characterised in that the parameter calculating module includes:
Environment texture value computing unit, for obtaining the reflective vector after standardization processing;Calculated using the reflective vector complete Border environment texture coordinate;According to the whole environment texture coordinate, sampling obtains the environment texture value of current each pixel.
9. system according to claim 8, it is characterised in that the parameter calculating module includes:
Micro- surface shaded entry value computing unit, for obtain normal vector and half-angle vector angle NdotH, normal vector and incident light to The cosine value VdotH of amount angle NdotL, normal vector and view direction angle NdotV, view direction and half-angle vector angle, And material roughness value gloss;UtilizeCalculate micro- surface of each pixel Cover entry value G;
Wherein, G '=G_Smith (a2, NdotL) * G_Smith (a2, max { e-8, NdotV);
Wherein,
Cos is VdotH.
10. system according to claim 9, it is characterised in that the parameter calculating module includes:
Fresnel effect coefficient computing unit, the Fresnel intensity fresnelStrength of the corresponding object for obtaining input; The phenanthrene of each pixel is calculated using fresnelWithOffset=(1- α) * reflectivity+ α * (1.0,1.0,1.0) Nie Er effect coefficients fresnelWithOffset;
Wherein, α=(1-VdotH+offset)4* fresnelStrength, reflectivity are initial reflection light color, Offset is Fresnel offset.
CN201710777504.8A 2017-08-31 2017-08-31 Rendering method and system based on physical coloring Active CN107644453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710777504.8A CN107644453B (en) 2017-08-31 2017-08-31 Rendering method and system based on physical coloring

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710777504.8A CN107644453B (en) 2017-08-31 2017-08-31 Rendering method and system based on physical coloring

Publications (2)

Publication Number Publication Date
CN107644453A true CN107644453A (en) 2018-01-30
CN107644453B CN107644453B (en) 2021-05-14

Family

ID=61110905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710777504.8A Active CN107644453B (en) 2017-08-31 2017-08-31 Rendering method and system based on physical coloring

Country Status (1)

Country Link
CN (1) CN107644453B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108986200A (en) * 2018-07-13 2018-12-11 北京中清龙图网络技术有限公司 The preprocess method and system of figure rendering
CN109712226A (en) * 2018-12-10 2019-05-03 网易(杭州)网络有限公司 The see-through model rendering method and device of virtual reality
CN109920041A (en) * 2019-03-22 2019-06-21 深圳市脸萌科技有限公司 Video effect generation method, device and electronic equipment
CN110060321A (en) * 2018-10-15 2019-07-26 叠境数字科技(上海)有限公司 The quick real-time rendering method of hair based on true material
CN111784816A (en) * 2020-06-28 2020-10-16 山东大学 High-frequency material rendering method and system based on micro-surface theory
CN112435344A (en) * 2020-11-27 2021-03-02 广东电网有限责任公司肇庆供电局 Point cloud data processing method and device and terminal equipment
CN112837405A (en) * 2020-12-04 2021-05-25 佛山欧神诺云商科技有限公司 Dynamic modeling implementation method, electronic device and storage medium
CN113112582A (en) * 2021-04-20 2021-07-13 浙江凌迪数字科技有限公司 Real-time rendering method of sidelight fabric in realistic clothing rendering
CN116091684A (en) * 2023-04-06 2023-05-09 杭州片段网络科技有限公司 WebGL-based image rendering method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011026168A1 (en) * 2009-09-03 2011-03-10 National Ict Australia Limited Estimating reflectance model parameters from an image
CN103995700A (en) * 2014-05-14 2014-08-20 无锡梵天信息技术股份有限公司 Method for achieving global illumination of 3D game engine
CN104392481A (en) * 2014-11-25 2015-03-04 无锡梵天信息技术股份有限公司 Method and device for controlling specular reflection definition by mapping
CN106780702A (en) * 2016-12-23 2017-05-31 成都通甲优博科技有限责任公司 A kind of method and system based on physical colored

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011026168A1 (en) * 2009-09-03 2011-03-10 National Ict Australia Limited Estimating reflectance model parameters from an image
CN103995700A (en) * 2014-05-14 2014-08-20 无锡梵天信息技术股份有限公司 Method for achieving global illumination of 3D game engine
CN104392481A (en) * 2014-11-25 2015-03-04 无锡梵天信息技术股份有限公司 Method and device for controlling specular reflection definition by mapping
CN106780702A (en) * 2016-12-23 2017-05-31 成都通甲优博科技有限责任公司 A kind of method and system based on physical colored

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BRUCE WALTER等: "《Microfacet Models for Refraction through Rough Surfaces》", 《EUROGRAPHICS SYMPOSIUM ON RENDERING》 *
王伟等: "《面向3DGIS渲染逼真度的方法研究》", 《武汉大学学报 信息科学版》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108986200A (en) * 2018-07-13 2018-12-11 北京中清龙图网络技术有限公司 The preprocess method and system of figure rendering
CN110060321A (en) * 2018-10-15 2019-07-26 叠境数字科技(上海)有限公司 The quick real-time rendering method of hair based on true material
CN109712226A (en) * 2018-12-10 2019-05-03 网易(杭州)网络有限公司 The see-through model rendering method and device of virtual reality
CN109920041A (en) * 2019-03-22 2019-06-21 深圳市脸萌科技有限公司 Video effect generation method, device and electronic equipment
CN111784816A (en) * 2020-06-28 2020-10-16 山东大学 High-frequency material rendering method and system based on micro-surface theory
CN111784816B (en) * 2020-06-28 2023-03-10 山东大学 High-frequency material rendering method and system based on micro-surface theory
CN112435344A (en) * 2020-11-27 2021-03-02 广东电网有限责任公司肇庆供电局 Point cloud data processing method and device and terminal equipment
CN112837405A (en) * 2020-12-04 2021-05-25 佛山欧神诺云商科技有限公司 Dynamic modeling implementation method, electronic device and storage medium
CN113112582A (en) * 2021-04-20 2021-07-13 浙江凌迪数字科技有限公司 Real-time rendering method of sidelight fabric in realistic clothing rendering
CN113112582B (en) * 2021-04-20 2022-07-12 浙江凌迪数字科技有限公司 Real-time rendering method of sidelight fabric in realistic clothing rendering
CN116091684A (en) * 2023-04-06 2023-05-09 杭州片段网络科技有限公司 WebGL-based image rendering method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN107644453B (en) 2021-05-14

Similar Documents

Publication Publication Date Title
CN107644453A (en) A kind of rendering intent and system based on physical colored
Dorsey et al. Digital modeling of material appearance
Cohen et al. Radiosity and realistic image synthesis
CN102096941B (en) Consistent lighting method under falsehood-reality fused environment
CN106056658A (en) Virtual object rendering method and virtual object rendering device
CN104392481B (en) A kind of method and device that high light reflectivity definition is controlled using textures
CN107016719B (en) A kind of Subsurface Scattering effect real-time drawing method of screen space
Kennelly et al. General sky models for illuminating terrains
CN106023300B (en) A kind of the body rendering intent and system of translucent material
Iwasaki et al. An efficient method for rendering underwater optical effects using graphics hardware
Chermain et al. Glint Rendering based on a Multiple‐Scattering Patch BRDF
Chermain et al. A microfacet-based BRDF for the accurate and efficient rendering of high-definition specular normal maps
Wu et al. Microfacet-based interference simulation for multilayer films
De Rousiers et al. Real-time rendering of rough refraction
CN116091684B (en) WebGL-based image rendering method, device, equipment and storage medium
US6753875B2 (en) System and method for rendering a texture map utilizing an illumination modulation value
McGuire et al. Introduction to real-time ray tracing
Iwasaki et al. Efficient rendering of optical effects within water using graphics hardware
Subramanian et al. A painterly rendering approach to create still-life paintings with dynamic lighting
CN108447085A (en) A kind of face visual appearance restoration methods based on consumer level RGB-D cameras
González et al. based ambient occlusion
Elek et al. Real-time screen-space scattering in homogeneous environments
Abdessamed et al. Real-time realistic illumination and rendering of cumulus clouds
Kol Real-time Cloud Rendering on the GPU
Nilsson 3D Cloud Visualization In Real-Time

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
GR01 Patent grant
GR01 Patent grant