CN108921931A - A kind of compatibility processing method based on IBL - Google Patents
A kind of compatibility processing method based on IBL Download PDFInfo
- Publication number
- CN108921931A CN108921931A CN201810406147.9A CN201810406147A CN108921931A CN 108921931 A CN108921931 A CN 108921931A CN 201810406147 A CN201810406147 A CN 201810406147A CN 108921931 A CN108921931 A CN 108921931A
- Authority
- CN
- China
- Prior art keywords
- starting
- terminate
- ibl
- array
- value
- 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
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/50—Lighting effects
Abstract
The invention discloses a kind of compatibility processing methods based on IBL, and the cube graph data of 6 grades are generated according to the degree of roughness of 6 grades;Cube graph data are stored in 6 cubes of volume textures;The IBL reflective information for calculating roughness value R (between 0 to 1), successively samples 1 to No. 6 cube of volume textures, sampled value is denoted as C respectively0、C1、C2、C3、C4、C5, and it is deposited into C in the array of 6 lengthArray;R value is obtained into R multiplied by 55, use R5It carries out rounding operation and obtains RStarting, use RStarting1 is added to obtain RTerminate;Use RStartingC is obtained as subscriptStarting=CArray【RStarting】, use RTerminateC is obtained as subscriptTerminate=CArray【RTerminate】, calculating difference ratio value alpha=(R5‑RStarting)/(RTerminate‑RStarting);Final data C=C after interpolationStarting*(1‑alpha)+CTerminate*alpha.Method of the invention can realize the processing of IBL technology under the case where GPU does not support texturecubelod to extend, and greatly improve 3D figure rendering effect and versatility.
Description
Technical field
The present invention relates to computer graphics techniques field, more specifically to IBL in a kind of three-dimensional rendering hardware not
Support compatibility processing method when certain characteristic.
Background technique
It (IBL) is a kind of 3D Rendering, it, which passes through, captures shadow information in the real world, and these shadow information
It is stored on picture, this usual picture is one and ties up the cube that picture surrounds by 62, usually stores in this picture
The shadow information of high dynamic.Almost all of modern times rendering engine both provides the illumination based on image, in IBL technology,
When a visual angle is to observe an object, the roughness of rendered object determines the cone of the incident ray reflected required for it
Range, such as the incident ray reflected on one absolutely smooth object should be that straight line (enters pencil approach one
Straight line), when an absolutely coarse object, the incident ray cone reflected will be a hemisphere centrum.So thicker
It is bigger that rough object needed to sample enters pencil range.In order to improve operation efficiency, it will usually generated much according to roughness
The pretreatment cube graph of grade, in this way there is no need to do cone sampling (a large amount of computing overheads) during real-time operation, still
Roughness can be segmented infinitely, and generally for the balance in speed and data, it is pre- to do only to be divided into 6 grades to roughness
Processing, and these pictures are stored in a cube of volume textures with different mipmap grades, when a roughness is in 2
When between adjacent rank, the function of texturecubeLod is can be used to carry out in two adjacent mipmap data in gpu
Linear difference, to obtain slotting approximate data later corresponding to current roughness.
It but is not that each gpu supports this texturecubeLod to extend, or is caused not due to platform
Support this extension.So for any roughness how not under the case where supporting this extension realize IBL technology at one
A critical issue.
Summary of the invention
To solve the above-mentioned problems, the present invention provides a kind of compatibility processing method based on IBL, according to pending object
Degree of roughness generates several pretreatment cube graphs, roughness is divided into 6 grades to pre-process, described based on the simultaneous of IBL
Content processing method includes the following steps:
S1, the cube graph data that 6 grades are generated according to the degree of roughness of 6 grades;
S2, the cube graph data of 6 grades are stored in 6 cubes in such a way that mipmap level is 0 respectively
In texture;
S3, the IBL reflective information for calculating roughness value R (between 0 to 1), successively carry out 1 to No. 6 cube of volume textures
Sampling, sampled value are denoted as C respectively0、C1、C2、C3、C4、C5, which is deposited into the number of 6 length
C in groupArray;
S4, R value is obtained into R multiplied by 55, use R5It carries out rounding operation and obtains RStarting, use RStarting1 is added to obtain RTerminate;
S5, with the R in step S4StartingC is obtained as subscriptStarting=CArray【RStarting】, with the R in step S4TerminateIt is taken as subscript
Obtain CTerminate=CArray【RTerminate】, calculating difference ratio value alpha=(R5-RStarting)/(RTerminate-RStarting);
S6, final data C, C=C after interpolation are calculated with the difference ratio alpha in step S5Starting*(1-alpha)+
CTerminate*alpha;
S7, step S3 to S6 is repeated, calculates the IBL reflective information of each coarseness data, obtains all coarseness datas
Final data after corresponding interpolation.
Compatibility processing method based on IBL of the invention can be the case where GPU support texturecubelod to extend
The processing for getting off to realize IBL technology greatly improves 3D figure rendering effect and versatility.
Specific embodiment
In order to better understand the present invention, the present invention is described in detail below.
A kind of compatibility processing method based on IBL generates several pretreatments cube according to the degree of roughness of pending object
Roughness is divided into 6 grades to pre-process by body figure, and the compatibility processing method based on IBL includes the following steps:
S1, the cube graph data that 6 grades are generated according to the degree of roughness of 6 grades;
S2, the cube graph data of 6 grades are stored in 6 cubes in such a way that mipmap level is 0 respectively
In texture;
S3, the IBL reflective information for calculating roughness value R (between 0 to 1), successively carry out 1 to No. 6 cube of volume textures
Sampling, sampled value are denoted as C respectively0、C1、C2、C3、C4、C5, which is deposited into the number of 6 length
C in groupArray;
S4, R value is obtained into R multiplied by 55, use R5It carries out rounding operation and obtains RStarting, use RStarting1 is added to obtain RTerminate;
S5, with the R in step S4StartingC is obtained as subscriptStarting=CArray【RStarting】, with the R in step S4TerminateIt is taken as subscript
Obtain CTerminate=CArray【RKnotBeam】, calculating difference ratio value alpha=(R5-RStarting)/(RTerminate-RStarting);
S6, final data C, C=C after interpolation are calculated with the difference ratio alpha in step S5Starting*(1-alpha)+
CTerminate*alpha;
S7, step S3 to S6 is repeated, calculates the IBL reflective information of each coarseness data, obtains all coarseness datas
Final data after corresponding interpolation.
Compatibility processing method based on IBL of the invention can be the case where GPU support texturecubelod to extend
The processing for getting off to realize IBL technology greatly improves 3D figure rendering effect and versatility.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto,
Anyone skilled in the art within the technical scope of the present disclosure, according to the technique and scheme of the present invention and its
Inventive concept is subject to equivalent substitution or change, should be covered by the protection scope of the present invention.
Claims (2)
1. a kind of compatibility processing method based on IBL generates several pretreatment cubes according to the degree of roughness of pending object
Figure, is divided into 6 grades for roughness to pre-process, which is characterized in that the compatibility processing method based on IBL includes as follows
Step:
S1, the cube graph data that 6 grades are generated according to the degree of roughness of 6 grades;
S2, the cube graph data of 6 grades are stored in 6 cubes of volume textures in such a way that mipmap level is 0 respectively
In;
S3, the IBL reflective information for calculating roughness value R, successively sample 1 to No. 6 cube of volume textures, sampled value difference
It is denoted as C0、C1、C2、C3、C4、C5, which is deposited into C in the array of 6 lengthArray;
S4, R value is obtained into R multiplied by 55, use R5It carries out rounding operation and obtains RStarting, use RStarting1 is added to obtain RTerminate;
S5, with the R in step S4StartingC is obtained as subscriptStarting=CArray【RStarting】, with the R in step S4TerminateIt is obtained as subscript
CTerminate=CArray【RTerminate】, calculating difference ratio value alpha=(R5-RStarting)/(RTerminate-RStarting);
S6, final data C, C=C after interpolation are calculated with the difference ratio alpha in step S5Starting*(1-alpha)+CTerminate*
alpha;
S7, step S3 to S6 is repeated, calculates the IBL reflective information of each coarseness data, it is corresponding to obtain all coarseness datas
Interpolation after final data.
2. a kind of compatibility processing method based on IBL according to claim 1, which is characterized in that institute's coarse degree
Value R value range is 0-1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810406147.9A CN108921931A (en) | 2018-04-30 | 2018-04-30 | A kind of compatibility processing method based on IBL |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810406147.9A CN108921931A (en) | 2018-04-30 | 2018-04-30 | A kind of compatibility processing method based on IBL |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108921931A true CN108921931A (en) | 2018-11-30 |
Family
ID=64403316
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810406147.9A Pending CN108921931A (en) | 2018-04-30 | 2018-04-30 | A kind of compatibility processing method based on IBL |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108921931A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070257911A1 (en) * | 2006-05-03 | 2007-11-08 | Sony Computer Entertainment Inc. | Cone-culled soft shadows |
US20080106549A1 (en) * | 2002-07-10 | 2008-05-08 | Newhall William P Jr | Omnidirectional shadow texture mapping |
CN104463944A (en) * | 2014-07-10 | 2015-03-25 | 无锡梵天信息技术股份有限公司 | Highlight calculation method based on physics |
CN106537459A (en) * | 2014-07-24 | 2017-03-22 | Arm有限公司 | Graphics processing systems |
CN107886552A (en) * | 2016-09-29 | 2018-04-06 | 网易(杭州)网络有限公司 | Stick picture disposing method and apparatus |
-
2018
- 2018-04-30 CN CN201810406147.9A patent/CN108921931A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080106549A1 (en) * | 2002-07-10 | 2008-05-08 | Newhall William P Jr | Omnidirectional shadow texture mapping |
US20070257911A1 (en) * | 2006-05-03 | 2007-11-08 | Sony Computer Entertainment Inc. | Cone-culled soft shadows |
CN104463944A (en) * | 2014-07-10 | 2015-03-25 | 无锡梵天信息技术股份有限公司 | Highlight calculation method based on physics |
CN106537459A (en) * | 2014-07-24 | 2017-03-22 | Arm有限公司 | Graphics processing systems |
CN107886552A (en) * | 2016-09-29 | 2018-04-06 | 网易(杭州)网络有限公司 | Stick picture disposing method and apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10096086B2 (en) | Enhanced anti-aliasing by varying sample patterns spatially and/or temporally | |
JP4203128B2 (en) | Block and band oriented scanning in 3D triangle drawing | |
US7420559B2 (en) | Video rendering apparatus and method and program | |
US10147203B2 (en) | Enhanced anti-aliasing by varying sample patterns spatially and/or temporally | |
KR101925292B1 (en) | Gradient adjustment for texture mapping to non-orthonormal grid | |
US7212206B2 (en) | Method and apparatus for self shadowing and self interreflection light capture | |
US20140347359A1 (en) | Cache-efficient processor and method of rendering indirect illumination using interleaving and sub-image blur | |
US8237738B1 (en) | Smooth rasterization of polygonal graphics primitives | |
WO2000011607B1 (en) | Deferred shading graphics pipeline processor | |
JPH11511277A (en) | Method and apparatus for converting a graphic object into a chunk image and combining image layers into a display image | |
Govindaraju et al. | Interactive shadow generation in complex environments | |
JP2002537612A (en) | A graphics system that renders samples into a sample buffer and generates pixels at different rates in response to the stored samples | |
JP2002537615A (en) | A graphics system having a supersampling sample buffer and generating output pixels using selective filtering adjustments to reduce artifacts. | |
EP1519317A1 (en) | Apparatus and method for antialiasing based on z buffer or normal vector information | |
JP2002519769A (en) | Improved method and apparatus for pixel-by-pixel MIP mapping and three-line filtering | |
US7158133B2 (en) | System and method for shadow rendering | |
GB2406252A (en) | Generation of texture maps for use in 3D computer graphics | |
KR101619875B1 (en) | System for rendering realistic facial expressions of three dimension character using general purpose graphic processing unit and method for processing thereof | |
CN110706325A (en) | Real-time dynamic rendering method and system for three-dimensional submarine environment | |
KR20180023856A (en) | Graphics processing systems and graphics processors | |
JP2002537613A (en) | Graphics system having a supersampling sample buffer and generating output pixels using selective filter adjustments to achieve a display effect | |
US20220237861A1 (en) | Improving area light shadows in computer generated scenes | |
WO2001069538A2 (en) | Graphics system configured to implement fogging based on radial distances | |
KR20100068603A (en) | Apparatus and method for generating mipmap | |
CN108921931A (en) | A kind of compatibility processing method based on IBL |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181130 |
|
WD01 | Invention patent application deemed withdrawn after publication |