CN106780702A - A kind of method and system based on physical colored - Google Patents

A kind of method and system based on physical colored Download PDF

Info

Publication number
CN106780702A
CN106780702A CN201611203374.9A CN201611203374A CN106780702A CN 106780702 A CN106780702 A CN 106780702A CN 201611203374 A CN201611203374 A CN 201611203374A CN 106780702 A CN106780702 A CN 106780702A
Authority
CN
China
Prior art keywords
texture
ambient light
environment
color
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
CN201611203374.9A
Other languages
Chinese (zh)
Other versions
CN106780702B (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 CN201611203374.9A priority Critical patent/CN106780702B/en
Publication of CN106780702A publication Critical patent/CN106780702A/en
Application granted granted Critical
Publication of CN106780702B publication Critical patent/CN106780702B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/04Texture mapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects
    • G06T15/80Shading

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 kind of method based on physical colored, including:The ambient light texture sequence of item is reflected with micro- surface using the generation of environment maps piece;According to the ambient light texture sequence, computing environment light texture;Using adding the HDR illumination of simulation to carry out contrast adjustment to the ambient light texture, initial reflection color is obtained;According to the initial reflection color, final reflection colour is calculated using Fresnel effect reflection item;The final reflection colour is added with diffusing reflection color and obtains final lighting color;The method can improve the efficiency of the illumination model based on physical colored, improve rendering efficiency, allow it that popularization is realized on the mobile platforms such as mobile phone;The invention also discloses a kind of system based on physical colored, with above-mentioned beneficial effect.

Description

A kind of method and system based on physical colored
Technical field
The present invention relates to field of Computer Graphics, more particularly to a kind of method and system based on physical colored.
Background technology
Illumination model based on physical colored can increase substantially the sense of reality of material color applying, while for fine arts personnel enter Row material finds corresponding physical parameter foundation when developing;In having been widely used for time epoch game engine at present.
As the popularization of the mobile platforms such as mobile phone, mobile platform can realize game, ar application scenarios, therefore in movement Realize that high-quality three-dimensional rendering effect has urgent demand on platform.But be currently based on the illumination model of physical colored due to Operational efficiency is relatively low in mobile platform, is not popularized also on the mobile platforms such as mobile phone.Therefore, how to be lifted and based on physics The efficiency of the illumination model of color, allows it to be realized on the mobile platforms such as mobile phone.
The content of the invention
It is an object of the invention to provide a kind of method and system based on physical colored, the illumination based on physical colored is improved The efficiency of model, improves rendering efficiency, allows it that popularization is realized on the mobile platforms such as mobile phone.
In order to solve the above technical problems, the present invention provides a kind of method based on physical colored, including:
The ambient light texture sequence of item is reflected with micro- surface using the generation of environment maps piece;
According to the ambient light texture sequence, computing environment light texture;
Using adding the HDR illumination of simulation to carry out contrast adjustment to the ambient light texture, obtain just Beginning reflection colour;
According to the initial reflection color, final reflection colour is calculated using Fresnel effect reflection item;
The final reflection colour is added with diffusing reflection color and obtains final lighting color.
Optionally, the ambient light texture sequence of item is reflected with micro- surface using the generation of environment maps piece, including:
Environment maps piece is carried out into mirror image processing, and the picture after two mirror images is spliced in environment maps piece respectively The left and right sides, forms texture picture;
Pre-determined number gaussian filtering process is carried out to the texture picture, corresponding Gauss treatment texture picture is generated;
Pyramid resampling is carried out to whole Gausses treatment texture picture;
The center presumptive area in the picture after resampling is chosen, one group of generation is just to the ambient light texture of different roughness Sequence.
Optionally, according to the ambient light texture sequence, computing environment light texture, including:
Reflective vector of the camera vector relative to surface normal is calculated, and calculates the corresponding environment texture of reflective vector and sat Mark;
Using the ambient light texture sequence, the corresponding environment texture of reflective vector is selected according to material roughness;
Sampled using the environment texture coordinate and the environment texture, obtained ambient light texture.
Optionally, contrast tune is carried out to the ambient light texture using the HDR illumination of addition simulation Section, obtains initial reflection color, including:
Calculate the average color of the ambient light texture and the environment texture;
Using the HDR illumination for adding simulation, the contrast for adjusting the average color obtains initial reflection face Color.
Optionally, according to the initial reflection color, final reflection colour, bag are calculated using Fresnel effect reflection item Include:
It is strong Fresnel effect to be calculated using formula frenel+ (1.0-frenel) * pow ((1.0-reflectDir), 5.0) Angle value;
The Fresnel effect intensity level is multiplied with the initial reflection color and obtains final reflection colour;
Wherein, frenel is that Fresnel effect reflects item, and reflectDir is reflective vector, and pow is exponential function.
The present invention also provides a kind of system based on physical colored, including:
Pretreatment module, the ambient light texture sequence for reflecting item with micro- surface using the generation of environment maps piece;
First computing module, for according to the ambient light texture sequence, computing environment light texture;
Second computing module, is carried out for the HDR illumination using addition simulation to the ambient light texture Contrast adjustment, obtains initial reflection color;
3rd computing module, for according to the initial reflection color, calculating final anti-using Fresnel effect reflection item Penetrate color;
4th computing module, final lighting color is obtained for the final reflection colour to be added with diffusing reflection color.
Optionally, the pretreatment module, including:
Picture processing unit, for environment maps piece to be carried out into mirror image processing, and the picture after two mirror images is distinguished Splicing forms texture picture in the environment maps piece left and right sides;
Gaussian filtering unit, for carrying out pre-determined number gaussian filtering process to the texture picture, generates corresponding height This treatment texture picture;
Pyramid sampling unit, for carrying out pyramid resampling to whole Gausses treatment texture picture;
Ambient light texture sequence generating unit, for choosing the center presumptive area in the picture after resampling, generation one Group is just to the ambient light texture sequence of different roughness.
Optionally, first computing module, including:
Coordinate calculating unit, for calculating reflective vector of the camera vector relative to surface normal, and calculates reflective vector Corresponding environment texture coordinate;
Environment texture determining unit, for utilizing the ambient light texture sequence, is reflected towards according to the selection of material roughness Measure corresponding environment texture;
Ambient light texture determining unit, for being sampled using the environment texture coordinate and the environment texture, Obtain ambient light texture.
Optionally, second computing module, including:
Average color computing unit, the average color for calculating the ambient light texture and the environment texture;
Initial reflection color computing unit, for using the HDR illumination for adding simulation, adjusting described average The contrast of color obtains initial reflection color.
Optionally, the 3rd computing module, including:
Fresnel effect Strength co-mputation unit, for using formula frenel+ (1.0-frenel) * pow ((1.0- ReflectDir), Fresnel effect intensity level 5.0) is calculated;
Final reflection colour computing unit, for the Fresnel effect intensity level to be multiplied with the initial reflection color Obtain final reflection colour;
Wherein, frenel is that Fresnel effect reflects item, and reflectDir is reflective vector, and pow is exponential function.
A kind of method based on physical colored provided by the present invention, including:Have using the generation of environment maps piece micro- The ambient light texture sequence of item is reflected on surface;According to the ambient light texture sequence, computing environment light texture;Using adding mould The HDR illumination of plan carries out contrast adjustment to the ambient light texture, obtains initial reflection color;According to institute Initial reflection color is stated, final reflection colour is calculated using Fresnel effect reflection item;The final reflection colour is anti-with unrestrained Penetrate color addition and obtain final lighting color;
It can be seen that, the method is by ambient light texture sequence reduction sampling number, the HDR light simulated using addition Texture cell quantity is reduced according to item, accelerates the simulation of HDR illumination;Therefore, it is possible to improve the light based on physical colored According to the efficiency of model, rendering efficiency is improve, allow it that popularization is realized on the mobile platforms such as mobile phone;Present invention also offers A kind of system based on physical colored, with 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 The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Inventive embodiment, 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 of the method based on physical colored that Fig. 1 is provided by the embodiment of the present invention;
The flow chart of the build environment light texture sequence that Fig. 2 is provided by the embodiment of the present invention;
The structured flowchart of the system based on physical colored that Fig. 3 is provided by the embodiment of the present invention.
Specific embodiment
Core of the invention is to provide a kind of method and system based on physical colored, improves the illumination based on physical colored The efficiency of model, improves rendering efficiency, allows it that popularization is realized on the mobile platforms such as mobile phone.
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 A part of 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.
Due to mobile platform because its hardware computing capability etc. is limited so that the illumination model for being currently based on physical colored exists Operation on mobile platform occurs less efficient shortcoming, so as to cause the illumination model based on physical colored to be moved in mobile phone etc. Do not popularized also on moving platform.The present embodiment proposes a kind of efficient solutions based on physical colored, is to enter in mobile platform Row high-quality is rendered and provided the foundation.Specifically refer to Fig. 1, Fig. 1 by the embodiment of the present invention provide based on physical colored The flow chart of method;The method can include:
S100, the ambient light texture sequence for reflecting item with micro- surface using the generation of environment maps piece;
Specifically, because the structure of traditional micro- surface reflection item needs repeatedly to adopt environment light source on each point Sample;Such sampling process is obviously not particularly suited on hardware foundation as mobile platform.Therefore, the present embodiment is in order to improve The acquisition speed of the ambient light texture of micro- surface reflection item, using previously generating the ambient light texture with micro- surface reflection item Scheme, sampling number is reduced to once, so as to improve efficiency.
Wherein, preprocessing environment texture process can be:Roughness different grades of from low to high is pre-defined, per one-level One environment texture of coarse correspondence, the mirror image processing of left and right edges is carried out to environment texture, has three in the environment texture for obtaining Environment texture arranged side by side, the environment texture of left and right two is respectively the mirror image of intermediate grain.Environment texture to different roughness enters Row gaussian filtering, then carries out pyramid resampling.Cut out from environment texture centre part, finally give one group it is just right The environment texture sequence of different roughness.
It is i.e. optional, Fig. 2 is refer to, the detailed process of the step can be:
S200, environment maps piece is carried out mirror image processing, and the picture after two mirror images is spliced in environment line respectively The reason picture left and right sides, forms texture picture;
Wherein, on the environment maps piece left side, a splicing is in environment texture for two mirror image pictures here, one splicing Picture the right.
S210, pre-determined number gaussian filtering process is carried out to the texture picture, generate corresponding Gauss treatment texture maps Piece;
S220, to whole Gausses treatment texture picture carry out pyramid resampling;
S230, the center presumptive area chosen in the picture after resampling, one group of generation is just to the environment of different roughness Light texture sequence.
Wherein, the pre-determined number in the present embodiment not to gaussian filtering process is defined, and ordinary circumstance is carried out 10 times Gaussian filtering process.Center presumptive area refer to intercept resampling after picture in middle position as center fate Domain.The present embodiment does not limit the size and shape of center presumptive area.In the middle of picture 1/3 area can generally be intercepted Domain is used as center presumptive area.According to the center presumptive area as the final environment texture of the picture.One group for ultimately generating Ambient light texture Ring in Sequence border light texture quantity just to different roughness is corresponding with pre-determined number.
Specifically, illustrating above-mentioned processing procedure as a example by using the panorama environment maps piece of 1024*512 as raw data (wherein, the process is implemented on iphone platforms by openGL):
Panorama environment maps piece using 1024*512 splices in original image or so two as raw data, after mirror image Side, generates the texture picture of 3072*512.Texture picture to 3072*512 carries out 10 gaussian filtering process, Gauss nuclear radius It is incremented by from 0.5 pixel to 50 pixels, generates 10 texture pictures.10 pictures are carried out with pyramid from sampling, resolution ratio is obtained 10 pictures successively decreased from 3072*512 to 48*8.1/3 region is used as final environment texture in the middle of interception picture, most throughout one's life Into one group just to the environment texture sequence of different roughness.
S110, according to the ambient light texture sequence, computing environment light texture;
Specifically, selecting nearest environment texture (namely ambient light texture) according to roughness, you can with according to ambient light Texture sequence determines the environment texture of each roughness, and the environment texture on reflection light direction is sampled, and obtains projection flat The original lighting color (spec) of a pixel is ambient light texture on face.
Optionally, according to the ambient light texture sequence, computing environment light texture can include:
Reflective vector of the camera vector relative to surface normal is calculated, and calculates the corresponding environment texture of reflective vector and sat Mark;
Using the ambient light texture sequence, the corresponding environment texture of reflective vector is selected according to material roughness;
Sampled using the environment texture coordinate and the environment texture, obtained ambient light texture.
Specifically, illustrating above-mentioned processing procedure as a example by using the panorama environment maps piece of 1024*512 as raw data (wherein, the process is implemented on iphone platforms by openGL):
Reflective vector (reflectDir) of the camera vector relative to surface normal is calculated, the corresponding ring of reflective vector is calculated Border texture coordinate.Corresponding environment texture is selected according to material roughness.Sampled according to texture coordinate and environment texture, obtained An original lighting color (spec) for pixel on to projection plane.
S120, the HDR illumination (hdr) simulated using addition carry out contrast to the ambient light texture Regulation, obtains initial reflection color;
Specifically, to use half floating point type conduct of 16, single passage due to traditional HDR illumination texture Texture cell.Because the scheme in the present embodiment will on a mobile platform realize texture therefore using 8, contrasted by adjusting Spend to simulate HDR illumination.Result to step S110 carries out contrast adjustment.
Optionally, contrast tune is carried out to the ambient light texture using the HDR illumination of addition simulation Section, obtaining initial reflection color can include:
Calculate the average color of the ambient light texture and the environment texture;
Using the HDR illumination for adding simulation, the contrast for adjusting the average color obtains initial reflection face Color.
Specifically, illustrating above-mentioned processing procedure as a example by using the panorama environment maps piece of 1024*512 as raw data (wherein, the process is implemented on iphone platforms by openGL):
The average color of result and environment texture according to step S110, regulation contrast, simulates hdr effects, obtains result (hdrSpec)。
S130, according to the initial reflection color, calculate final reflection colour using Fresnel effect reflection item;
Specifically, being needed to carrying out model structure for different physics materials because traditional Fresnel effect reflection item builds Build;The present embodiment can preferably use a multinomial to simplify the model of Fresnel effect to further improve rendering efficiency Result to step S120 is processed, and obtains final reflection colour.
Preferably, according to the initial reflection color, calculating final reflection colour using Fresnel effect reflection item can be with Including:
It is strong Fresnel effect to be calculated using formula frenel+ (1.0-frenel) * pow ((1.0-reflectDir), 5.0) Angle value;Wherein, frenel is that Fresnel effect reflects item, and reflectDir is reflective vector, and pow is exponential function, pow (x, Y) the y powers of x are represented.
The Fresnel effect intensity level is multiplied with the initial reflection color and obtains final reflection colour.
Specifically, calculating Fresnel effect intensity according to Fresnel intensity and reflective vector:frenel+(1.0- Frenel) * pow ((1.0-reflectDir), 5.0).By the product of Fresnel effect intensity and the result of step S120 for most Whole reflection colour.
S140, the final reflection colour is added with diffusing reflection color obtains final lighting color.
Based on above-mentioned technical proposal, the method based on physical colored that the embodiment of the present invention is carried, by ambient light texture sequence Row reduce sampling number, using adding the HDR illumination of simulation to reduce texture cell quantity, accelerate HDR The simulation of illumination, the model for simplifying Fresnel effect using multinomial calculates final reflection colour, realizes multiple rendering efficiency Lifting;Therefore, it is possible to improve the efficiency of the illumination model based on physical colored, rendering efficiency is improve, allow it in mobile phone Deng realizing popularization on mobile platform.
The system based on physical colored provided in an embodiment of the present invention is introduced below, it is described below based on physics The system of coloring can be mutually to should refer to the above-described method based on physical colored.
Refer to Fig. 3, the structured flowchart of the system based on physical colored that Fig. 3 is provided by the embodiment of the present invention;This is System can include:
Pretreatment module 100, the ambient light texture sequence for reflecting item with micro- surface using the generation of environment maps piece Row;
First computing module 200, for according to the ambient light texture sequence, computing environment light texture;
Second computing module 300, for the HDR illumination using addition simulation to the ambient light texture Contrast adjustment is carried out, initial reflection color is obtained;
3rd computing module 400, for according to the initial reflection color, calculating final using Fresnel effect reflection item Reflection colour;
4th computing module 500, obtains final light and shines face for the final reflection colour to be added with diffusing reflection color Color.
Based on above-described embodiment, the pretreatment module 100 can include:
Picture processing unit, for environment maps piece to be carried out into mirror image processing, and the picture after two mirror images is distinguished Splicing forms texture picture in the environment maps piece left and right sides;
Gaussian filtering unit, for carrying out pre-determined number gaussian filtering process to the texture picture, generates corresponding height This treatment texture picture;
Pyramid sampling unit, for carrying out pyramid resampling to whole Gausses treatment texture picture;
Ambient light texture sequence generating unit, for choosing the center presumptive area in the picture after resampling, generation one Group is just to the ambient light texture sequence of different roughness.
Based on above-mentioned any embodiment, first computing module 200 can include:
Coordinate calculating unit, for calculating reflective vector of the camera vector relative to surface normal, and calculates reflective vector Corresponding environment texture coordinate;
Environment texture determining unit, for utilizing the ambient light texture sequence, is reflected towards according to the selection of material roughness Measure corresponding environment texture;
Ambient light texture determining unit, for being sampled using the environment texture coordinate and the environment texture, Obtain ambient light texture.
Based on above-mentioned any embodiment, second computing module 300 can include:
Average color computing unit, the average color for calculating the ambient light texture and the environment texture;
Initial reflection color computing unit, for using the HDR illumination for adding simulation, adjusting described average The contrast of color obtains initial reflection color.
Based on above-mentioned any embodiment, the 3rd computing module 400 can include:
Fresnel effect Strength co-mputation unit, for using formula frenel+ (1.0-frenel) * pow ((1.0- ReflectDir), Fresnel effect intensity level 5.0) is calculated;Wherein, frenel is that Fresnel effect reflects item, reflectDir It is reflective vector, pow is exponential function.
Final reflection colour computing unit, for the Fresnel effect intensity level to be multiplied with the initial reflection color Obtain final reflection colour.
Each embodiment is described by the way of progressive in specification, and what each embodiment was 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, generally describes the composition and step of each example according to function in the above description.These Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty Technical staff can realize described function to each specific application using distinct methods, but this realization should not Think beyond the scope of this invention.
The step of method or algorithm for being described with reference to the embodiments described herein, directly can be held with hardware, processor Capable software module, or the two combination is 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 field in known any other form of storage medium.
A kind of method and system based on physical colored provided by the present invention are described in detail above.Herein Apply specific case to be set forth principle of the invention and implementation method, the explanation of above example is only intended to help Understand the method for the present invention and its core concept.It should be pointed out that for those skilled in the art, not taking off On the premise of 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 method based on physical colored, it is characterised in that including:
The ambient light texture sequence of item is reflected with micro- surface using the generation of environment maps piece;
According to the ambient light texture sequence, computing environment light texture;
Using adding the HDR illumination of simulation to carry out contrast adjustment to the ambient light texture, obtain initial anti- Penetrate color;
According to the initial reflection color, final reflection colour is calculated using Fresnel effect reflection item;
The final reflection colour is added with diffusing reflection color and obtains final lighting color.
2. method according to claim 1, it is characterised in that using the generation of environment maps piece there is micro- surface to reflect item Ambient light texture sequence, including:
Environment maps piece is carried out into mirror image processing, and the picture after two mirror images is spliced in environment maps piece or so respectively Both sides, form texture picture;
Pre-determined number gaussian filtering process is carried out to the texture picture, corresponding Gauss treatment texture picture is generated;
Pyramid resampling is carried out to whole Gausses treatment texture picture;
The center presumptive area in the picture after resampling is chosen, one group of generation is just to the ambient light texture sequence of different roughness Row.
3. method according to claim 2, it is characterised in that according to the ambient light texture sequence, computing environment light line Reason item, including:
Reflective vector of the camera vector relative to surface normal is calculated, and calculates the corresponding environment texture coordinate of reflective vector;
Using the ambient light texture sequence, the corresponding environment texture of reflective vector is selected according to material roughness;
Sampled using the environment texture coordinate and the environment texture, obtained ambient light texture.
4. method according to claim 3, it is characterised in that using adding the HDR illumination of simulation to described Ambient light texture carries out contrast adjustment, obtains initial reflection color, including:
Calculate the average color of the ambient light texture and the environment texture;
Using the HDR illumination for adding simulation, the contrast for adjusting the average color obtains initial reflection color.
5. method according to claim 4, it is characterised in that according to the initial reflection color, using Fresnel effect Reflection item calculates final reflection colour, including:
Fresnel effect intensity is calculated using formula frenel+ (1.0-frenel) * pow ((1.0-reflectDir), 5.0) Value;
The Fresnel effect intensity level is multiplied with the initial reflection color and obtains final reflection colour;
Wherein, frenel is that Fresnel effect reflects item, and reflectDir is reflective vector, and pow is exponential function.
6. a kind of system based on physical colored, it is characterised in that including:
Pretreatment module, the ambient light texture sequence for reflecting item with micro- surface using the generation of environment maps piece;
First computing module, for according to the ambient light texture sequence, computing environment light texture;
Second computing module, contrasts for the HDR illumination using addition simulation to the ambient light texture Degree regulation, obtains initial reflection color;
3rd computing module, for according to the initial reflection color, final reflection face being calculated using Fresnel effect reflection item Color;
4th computing module, final lighting color is obtained for the final reflection colour to be added with diffusing reflection color.
7. system according to claim 6, it is characterised in that the pretreatment module, including:
Picture processing unit, for environment maps piece to be carried out into mirror image processing, and the picture after two mirror images is spliced respectively In the environment maps piece left and right sides, texture picture is formed;
Gaussian filtering unit, for carrying out pre-determined number gaussian filtering process to the texture picture, generates at corresponding Gauss Reason texture picture;
Pyramid sampling unit, for carrying out pyramid resampling to whole Gausses treatment texture picture;
Ambient light texture sequence generating unit, for choosing the center presumptive area in the picture after resampling, one group of generation is just To the ambient light texture sequence of different roughness.
8. system according to claim 7, it is characterised in that first computing module, including:
Coordinate calculating unit, for calculating reflective vector of the camera vector relative to surface normal, and calculates reflective vector correspondence Environment texture coordinate;
Environment texture determining unit, for utilizing the ambient light texture sequence, reflective vector pair is selected according to material roughness The environment texture answered;
Ambient light texture determining unit, for being sampled using the environment texture coordinate and the environment texture, is obtained Ambient light texture.
9. system according to claim 8, it is characterised in that second computing module, including:
Average color computing unit, the average color for calculating the ambient light texture and the environment texture;
Initial reflection color computing unit, for using the HDR illumination for adding simulation, adjusting the average color Contrast obtain initial reflection color.
10. system according to claim 9, it is characterised in that the 3rd computing module, including:
Fresnel effect Strength co-mputation unit, for using formula frenel+ (1.0-frenel) * pow ((1.0- ReflectDir), Fresnel effect intensity level 5.0) is calculated;
Final reflection colour computing unit, obtains for the Fresnel effect intensity level to be multiplied with the initial reflection color Final reflection colour;
Wherein, frenel is that Fresnel effect reflects item, and reflectDir is reflective vector, and pow is exponential function.
CN201611203374.9A 2016-12-23 2016-12-23 Method and system based on physical coloring Active CN106780702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611203374.9A CN106780702B (en) 2016-12-23 2016-12-23 Method and system based on physical coloring

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611203374.9A CN106780702B (en) 2016-12-23 2016-12-23 Method and system based on physical coloring

Publications (2)

Publication Number Publication Date
CN106780702A true CN106780702A (en) 2017-05-31
CN106780702B CN106780702B (en) 2021-02-26

Family

ID=58900014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611203374.9A Active CN106780702B (en) 2016-12-23 2016-12-23 Method and system based on physical coloring

Country Status (1)

Country Link
CN (1) CN106780702B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107644453A (en) * 2017-08-31 2018-01-30 成都通甲优博科技有限责任公司 A kind of rendering intent and system based on physical colored
CN110136213A (en) * 2019-04-26 2019-08-16 电子科技大学 A kind of visible light panorama identification involvement system and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855400A (en) * 2012-09-10 2013-01-02 北京航空航天大学 Sea surface modeling and real-time illuminating method based on projected grid
CN104143207A (en) * 2013-05-12 2014-11-12 哈尔滨点石仿真科技有限公司 Large-range dynamic wave real-time rendering method based on stream computing
CN104392481A (en) * 2014-11-25 2015-03-04 无锡梵天信息技术股份有限公司 Method and device for controlling specular reflection definition by mapping

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855400A (en) * 2012-09-10 2013-01-02 北京航空航天大学 Sea surface modeling and real-time illuminating method based on projected grid
CN104143207A (en) * 2013-05-12 2014-11-12 哈尔滨点石仿真科技有限公司 Large-range dynamic wave real-time rendering method based on stream computing
CN104392481A (en) * 2014-11-25 2015-03-04 无锡梵天信息技术股份有限公司 Method and device for controlling specular reflection definition by mapping

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
W.HEIDRICH等: "Realistic,hardware-accelerated shading and lighting", 《PROCEEDINGS OF THE 26TH ANNUAL CONFERENCE ON COMPUTER GRAPHICS AND INTERACTIVE TECHNIQUES》 *
杨新颖等: "虚拟远海环境的建模与渲染技术", 《北京航空航天大学学报》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107644453A (en) * 2017-08-31 2018-01-30 成都通甲优博科技有限责任公司 A kind of rendering intent and system based on physical colored
CN107644453B (en) * 2017-08-31 2021-05-14 成都通甲优博科技有限责任公司 Rendering method and system based on physical coloring
CN110136213A (en) * 2019-04-26 2019-08-16 电子科技大学 A kind of visible light panorama identification involvement system and method

Also Published As

Publication number Publication date
CN106780702B (en) 2021-02-26

Similar Documents

Publication Publication Date Title
US11257286B2 (en) Method for rendering of simulating illumination and terminal
Catmull Computer display of curved surfaces
US8035641B1 (en) Fast depth of field simulation
WO2022116659A1 (en) Volumetric cloud rendering method and apparatus, and program and readable medium
US7583264B2 (en) Apparatus and program for image generation
CN107330964B (en) Display method and system of complex three-dimensional object
Max et al. A two-and-a-half-d motion-blur algorithm
CN107452048A (en) The computational methods and device of global illumination
Zhou et al. Accurate depth of field simulation in real time
CN110599574A (en) Rendering method and device of game scene and electronic equipment
CN113658316B (en) Rendering method and device of three-dimensional model, storage medium and computer equipment
CN111127623A (en) Model rendering method and device, storage medium and terminal
CN107644453A (en) A kind of rendering intent and system based on physical colored
US7133052B1 (en) Morph map based simulated real-time rendering
CN103617593B (en) The implementation method of three-dimensional fluid physic animation engine and device
CN106780702A (en) A kind of method and system based on physical colored
Rosen Rectilinear texture warping for fast adaptive shadow mapping
CN101127126B (en) Method and device for emulating secondary surface dispersion effect of non-physical model
Newell et al. The progression of realism in computer generated images
CN104517313A (en) AO (ambient occlusion) method based on screen space
CN116758208A (en) Global illumination rendering method and device, storage medium and electronic equipment
CN112819929A (en) Water surface rendering method and device, electronic equipment and storage medium
CN111739074A (en) Scene multipoint light source rendering method and device
JP2004054634A (en) Picture processor and its method
Muszyński et al. Wide Field of View Projection Using Rasterization

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