CN102254340A - Method and system for drawing ambient occlusion images based on GPU (graphic processing unit) acceleration - Google Patents

Method and system for drawing ambient occlusion images based on GPU (graphic processing unit) acceleration Download PDF

Info

Publication number
CN102254340A
CN102254340A CN2011102153718A CN201110215371A CN102254340A CN 102254340 A CN102254340 A CN 102254340A CN 2011102153718 A CN2011102153718 A CN 2011102153718A CN 201110215371 A CN201110215371 A CN 201110215371A CN 102254340 A CN102254340 A CN 102254340A
Authority
CN
China
Prior art keywords
pixel
depth value
scene
pinup picture
play
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
CN2011102153718A
Other languages
Chinese (zh)
Other versions
CN102254340B (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.)
BEIJING KYLIN NETWORK INFORMATION TECHNOLOGY CO LTD
Original Assignee
BEIJING KYLIN NETWORK INFORMATION TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING KYLIN NETWORK INFORMATION TECHNOLOGY CO LTD filed Critical BEIJING KYLIN NETWORK INFORMATION TECHNOLOGY CO LTD
Priority to CN 201110215371 priority Critical patent/CN102254340B/en
Publication of CN102254340A publication Critical patent/CN102254340A/en
Application granted granted Critical
Publication of CN102254340B publication Critical patent/CN102254340B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method and a system for drawing ambient occlusion images based on GPU (graphic processing unit) acceleration. The method comprises the following steps: 1) building a hemispherical camera system consisting of uniformly-distributed cameras in a CPU (central processing unit) processor; 2) selecting a camera to shoot scenes within a certain range around an object to be rendered so as to obtain a scene depth map (with scene depth values) for the scenes within a certain range around the object to be rendered; 3) receiving the vertex data (include a vertex coordinate) of the object to be rendered, and carrying out calculation according to the vertex coordinate so as to obtain the rendering depth value of a pixel; 4) according to the scene depth value and rendering depth value of the pixel, calculating the AO (ambient occlusion) information of the pixel; 5) storing the AO information of the pixel into an AO map according to a pre-generated AO map; and 6) rendering the online scene of the AO map into displayable ambient light, then outputting the displayable ambient light. In the method, because the AO information calculation process is completed in the GPU processor, and the GPU processor has a strong parallel processing capacity, the calculation efficiency is greatly increased.

Description

A kind of ambient light occlusion image drawing method and system that quickens based on GPU
Technical field
The present invention relates to a kind of computing machine sense of reality imaging field, be specifically related to a kind of ambient light occlusion image drawing method and system that quickens based on GPU.
Background technology
Computer graphics has had large development in a plurality of fields such as recreation, virtual reality, film special efficacys in recent years, is accompanied by the continuous increase of application demand, and people require also to improve day by day to the sense of reality of figure.Ambient light occlusion (AO, Ambient Occlusion) is ingredient important in the global illumination technology, AO describes is value of blocking of other objects in point and the scene on the body surface, in global illumination, use AO to come attenuate light to shine and reach the illumination value on surface, and then generate the shade increase figure sense of reality.The ambient light occlusion technology is the quantum jump that shade calculates, and by increasing the bright and dark light level in the shade, makes the shadow performance of object no longer uninteresting, dull, thereby has strengthened the validity of scene greatly.
The algorithm that traditional environment light blocks technology depends on the quantity on object model summit, launch many rays from each summit of object and carry out ray detection, according to ray by around the object situation of blocking calculate the AO information of each pixel, with the AO information stores in texture, i.e. AO pinup picture.Yet the remarkable defective of this algorithm is: at first, object model is complicated more, and what require calculation is many more with regard to the summit, and carrying out efficient is O (n); Secondly, algorithm has only calculated the ambient light occlusion information on summit, and algorithm is had relatively high expectations to logic determines, but not the illumination computing of pixel scale; At last, because algorithm is had relatively high expectations to logic determines, thereby can only calculate by the CPU processor, can't be lower by the logic determines ability, but the video card graphic process unit (GPU that parallel processing capability is very strong, Graphic Processing Unit) quicken processing, can't utilize the video card capabilities of advancing by leaps and bounds now, also inapplicable for the inferior engine from generation to generation that generally uses at present.When above-mentioned defective causes using traditional environment light to block the big game scene of one 4 square kilometres of algorithm computation, also take the time of continuous computing, so thereby do not have a practical value above 1 month with the fastest computing machine of arithmetic speed commonly used.
As patent of invention: the system and method (application number: 200910222067.9 of the sense of reality imaging that environment for use is blocked, priority date 2008.12.05), this method is middle mind-set hemisphere direction emission n bar ray with surface normal, judge whether each root ray is blocked, and the reckoner millet cake arrives the distance of joining as the AO weight, the add up AO value of every ray, as current surface point AO contribution margin, at last that each is surperficial AO data storage is in texture.The defective of this method is, at first, the complexity linear dependence of the complexity of algorithm and object model, object model is complicated more, and calculative surface is many more; Secondly, algorithm has only calculated the ambient light occlusion information on summit, and algorithm is had relatively high expectations to logic determines, but not the illumination computing of pixel scale; At last,, thereby can only calculate by the CPU processor owing to algorithm is had relatively high expectations to logic determines, can't be lower by the logic determines ability, but the very strong GPU processor of parallel processing capability quickens to handle.
Summary of the invention
The present invention is directed to the deficiencies in the prior art, a kind of complexity that does not rely on object model has been proposed, the ambient light occlusion image drawing method that uses the GPU processor to carry out parallel computation, and the ambient light occlusion image drawing system based on the GPU acceleration of this method of realization based on the GPU acceleration.
Technical scheme of the present invention is as follows:
A kind of ambient light occlusion image drawing method that quickens based on GPU, its step comprises:
1) set up the equally distributed dome type camera system of video camera in the CPU processor, the lens parameters of described video camera comprises the parallel projection matrix;
2) with in the described dome type camera system input GPU processor, select a video camera to take and wait to play up the object scene of certain limit on every side, acquisition waits to play up the object scene depth figure of certain limit on every side, carries the described scene depth value of waiting to play up pixel in the object among the described scene depth figure;
3) receive the vertex data of waiting to play up object, described vertex data comprises apex coordinate; Behind described apex coordinate and world coordinates matrix multiple, with described parallel projection matrix multiple, obtain playing up depth value again;
4), calculate the AO information of described pixel according to the scene depth value of described pixel with play up depth value;
5) the AO information basis with pixel generates AO pinup picture ID in advance, stores in the AO pinup picture;
6) the online scene rendering of described AO pinup picture being become displayable surround lighting exports.
In the described step 4), the computing method of described AO information comprise: with the scene depth value of described pixel with play up depth value and compare, when playing up depth value less than the scene depth value, then be considered as the influence that described pixel is subjected to video camera, output AO trial function is 1; When playing up depth value more than or equal to the scene depth value, then be considered as the influence that described pixel is not subjected to described video camera, output AO trial function is 0; All video cameras in the described dome type camera system are added with respect to the AO trial function of described pixel and after, promptly obtain the AO information of described pixel.
In the described step 6), the AO pinup picture is handled through pixel DIFFUSION TREATMENT and Gaussian Blur earlier, and the adjacent AO pinup picture in position after will handling again is spliced into a bigger AO pinup picture, at last described bigger AO pinup picture is carried out online scene rendering.
A kind of ambient light occlusion image drawing system that quickens based on GPU, it is characterized in that: it comprises display and GPU processor, wherein off-line rendering module, AO pinup picture generation module and the online rendering module that configuration connects successively in the GPU processor; The CPU processor imports the dome type camera system in the described off-line rendering module into, and described dome type camera system comprises equally distributed at random video camera, takes the scene depth figure that waits to play up object by described video camera; The scene depth value of described off-line rendering module read pixel point from described scene depth figure, and calculate the depth value of playing up of pixel according to the described apex coordinate of waiting to play up object, according to the scene depth value with play up the AO information that depth value calculates described pixel; Described AO pinup picture generation module generates the AO pinup picture according to the AO information of described pixel, and described AO pinup picture is imported online rendering module, and online scene rendering becomes displayable surround lighting by described display output.
Described video camera is taken described shooting object to be played up by parallel projection, and the lens parameters of described video camera comprises the parallel projection matrix.
In the described off-line rendering module, the method of playing up depth value and scene depth value of calculating described pixel according to the described apex coordinate of waiting to play up object comprises: at first, receive the described world coordinates matrix of waiting to play up object from the AGP bus, described apex coordinate and described world coordinates matrix multiple are obtained world coordinates, more described world coordinates and described parallel projection matrix multiple are obtained playing up depth value; Play up again behind described apex coordinate and the described parallel projection matrix multiple, obtain screen coordinate; Described screen coordinate takes out the described scene depth value of waiting to play up pixel in the object as the texture coordinate of taking a sample from described scene depth figure.
In the described off-line rendering module, the method that draws the AO information of described pixel comprises: with the scene depth value of described pixel with play up depth value and compare, when playing up depth value less than the scene depth value, then be considered as the influence that described pixel is subjected to video camera, output AO trial function is 1; When playing up depth value more than or equal to the scene depth value, then be considered as the influence that described pixel is not subjected to described video camera, output AO trial function is 0; All video cameras in the described dome type camera system are added with respect to the AO trial function of described pixel and after, promptly obtain the AO information of described pixel.
Between described AO pinup picture generation module and online rendering module, image processing module is set, described AO pinup picture is carried out pixel DIFFUSION TREATMENT, Gaussian Blur processing successively, and the adjacent AO pinup picture in the position after will handling is spliced into a bigger AO pinup picture.
Technique effect of the present invention is as follows:
A kind of ambient light occlusion image drawing method that quickens based on GPU of the present invention, its step comprises: set up the equally distributed dome type camera system of video camera in the CPU processor, the lens parameters of described video camera comprises the parallel projection matrix; 2) with in the described dome type camera system input GPU processor, select a video camera to take and wait to play up the object scene of certain limit on every side, obtain to wait to play up the object scene depth figure with scene depth value of certain limit on every side; 3) receive the vertex data of waiting to play up object, vertex data comprises apex coordinate, calculates the depth value of playing up of pixel according to apex coordinate; 4) according to the scene depth value of pixel with play up depth value, the AO information of calculating pixel point; 5) the AO information basis with pixel generates AO pinup picture ID in advance, stores in the AO pinup picture; 6) the online scene rendering of AO pinup picture being become displayable surround lighting exports.
Be different from the prior art from waiting that each summit of playing up object launches many rays to the hemisphere direction, the situation of being blocked by object to be played up on every side according to ray is calculated the method for the coefficient that is blocked on each summit; Method of the present invention is the center with object to be played up after setting up the dome type camera system, and the video camera from the hemisphere is to this center divergent-ray, by the situation that object to be played up on every side blocks, calculates the AO information that each waits to play up each pixel of object according to ray.Because the AO information calculations process of this method only comprises basic comparison operation, adds with computing and asks average calculating operation, thereby avoided the complex logic computing that requires in the prior art, make computation process in the GPU processor, to finish, utilize the very strong GPU processor of parallel processing capability, counting yield is improved greatly.
The adjacent AO pinup picture in position after method of the present invention will be handled is spliced into a bigger AO pinup picture, at last described bigger AO pinup picture is carried out online scene rendering; In the least possible AO pinup picture, the number of times that texture switches when reducing real-time rendering improves real-time rendering efficient with the AO information stores of waiting to play up object of adjacent position.
A kind of ambient light occlusion image drawing system that quickens based on GPU of the present invention is provided with off-line rendering module, AO pinup picture generation module and the online rendering module that connects successively in the GPU processor based on said method.Import in the described off-line rendering module by the dome type camera system that CPU generates, wherein video camera is taken described shooting object to be played up by parallel projection, the parallel projection matrix is used for the process at the video camera photographed scene, the 3D world coordinates of scene is converted to the screen palpable coordinate of 2D, eliminate the transparent effect of scene, it doesn't matter with the distance of waiting to play up object to make the size of waiting to play up object and video camera.
Description of drawings
Fig. 1 is a surround lighting principle of simulation synoptic diagram of the present invention
Fig. 2 is a system architecture synoptic diagram of the present invention
Fig. 3 is undressed AO pinup picture
Fig. 4 is through the AO pinup picture after the pixel DIFFUSION TREATMENT
Fig. 5 is the AO pinup picture after handling through Gaussian Blur
Fig. 6 is that little AO pinup picture is through spliced big AO pinup picture
Fig. 7 is through the scene in early morning after the online scene rendering
Fig. 8 is through the scene in daytime after the online scene rendering
Fig. 9 is through the dusk scene after the online scene rendering
Embodiment
The present invention will be described below in conjunction with accompanying drawing.
In the following description, some details are described so that whole understanding of the present invention to be provided.In an embodiment, show the known elements that realizes concrete function with the form of synoptic diagram or block diagram, so that outstanding technology emphasis, and can aspect unnecessary details, not blur the present invention.Outside the ratio, owing to contained about details disclosed in this areas such as network service, electromagnetic signal instruction technique, user interface or I/O technology, common-sense in those of ordinary skills' the understanding scope, thereby omitted above-mentioned ins and outs in an embodiment to the full extent, and do not think that these details are to obtain the necessary feature of complete skill scheme of the present invention.
As those of ordinary skills' understanding scope as can be known, embodiments of the present invention can be system, method or computer program, therefore, the present invention can take the form of complete hardware embodiment, complete software implementation example (comprising computer firmware, resident software, microcode etc.), combination thereof embodiment, and the form of the foregoing description can be summarised as " module " or " system " respectively.The present invention can adopt one or more computing machines can with or any combination of computer-readable medium, wherein computing machine can with or computer-readable medium can be based on electronics, magnetic, light, electromagnetism, infrared or semi-conductive system, device, equipment or propagation medium or the like.
With reference to the accompanying drawings, the specific embodiment of the present invention is described:
Since the GPU processor adopting parallel architecture, make the computing velocity of GPU processor on graphics process be higher than CPU far away, the more important thing is, the GPU processor has had increasing programmability, and this makes the present invention the computation-intensive computing to be transferred in the GPU processor by the CPU processor by programming and finishes.The render process of GPU processor can be finished by vertex shader (VS, Vertex Shader) and these two functional modules of pixel coloring device (PS, Pixel Shader).When playing up beginning, video card is from figure accelerate bus (AGP, Accelerate Graphical Port) receives the vertex data of waiting to play up object, vertex data comprises apex coordinate, UV value etc., wherein, the summit that apex coordinate is used for representing to wait to play up object is in the position of waiting to play up the object model space, and the UV value is used for sampling from the pinup picture texture in the PS stage, video card can carry out linear interpolation to UV automatically, corresponds on the pixel of indicator screen.Each vertex data is admitted to vertex shader successively and carries out work such as coordinate transform, surround lighting calculating, and the result of conversion is directly available to the screen coordinate system each the triangle conversion that comprises the summit.The pixel that needs afterwards to draw is sent to work such as carrying out pinup picture pixel value, pinup picture mixing in the pixel coloring device, fills which pixel and is by the linear interpolation to the screen coordinate on summit and decide.VS in the stage video card receive the world coordinates matrix wait to play up object from the AGP bus.
As shown in Figure 1, surround lighting is produced by a lot of video camera actings in conjunction in reality, thereby but atmospheric envelope 1 is imagined as a large-scale hemisphere, and the scattering of sunshine on atmospheric envelope 1 formed countless video camera 2, and it is exactly final surround lighting that video camera 2 is treated the set of playing up the object influence.The present invention is modeled as a hemisphere system with atmospheric envelope 1, the video camera 2 of even distribution sufficient amount on the hemisphere, and video camera 2 is to waiting to play up object center divergent-ray; Then each video camera 2 is taken as viewpoint and waited to play up object and adjacent object thereof, obtain to be subjected to that this video camera 2 influences is the scene at center with object to be played up; At last the situation of being blocked by object to be played up on every side according to ray is calculated the coefficient that is blocked of each pixel, and the process of ray detection is played up by video card GPU processor and finished.
As shown in Figure 2, system of the present invention comprises dome type camera system 4, off-line rendering module 5, AO pinup picture generation module 6, image processing module 7, online rendering module 8, and wherein off-line rendering module 5, AO pinup picture generation module 6, image processing module 7, online rendering module 8 use the rendering pipeline of GPU to carry out work.Set up dome type camera system 4 in the CPU processor in advance, dome type camera system 4 is used for equally distributed at random video camera 2 on the simulating reality mesosphere.The lens parameters of dome type camera system 4 generates the back in advance by program and imports the GPU pipeline into as the shader parameter, video camera 2 is taken and is waited to play up the object scene of certain limit on every side, obtains to wait to play up the object scene depth figure that belongs to camera coordinate system of certain limit on every side.All be provided with lens parameters for each video camera 2 in the dome type camera system 4, lens parameters comprises lens location and parallel projection matrix, and the purpose of using parallel projection here is the space that makes full use of pinup picture.Wherein the parallel projection matrix is used for the process at video camera 2 photographed scenes, converts the 3D world coordinates of scene the screen palpable coordinate of 2D to, eliminates the transparent effect of scene, and it doesn't matter with the distance of waiting to play up object to make the size of waiting to play up object and video camera 2.
AO pinup picture generation module 6 is for waiting that playing up object generates AO pinup picture ID and UV skew in advance, for what will in off-line rendering module 5, generate, the waiting of adjacent position played up the AO information stores of object pixel scale in the least possible UV pinup picture, the number of times that texture switches when reducing real-time rendering improves rendering efficiency.AO pinup picture ID has indicated the store path of AO pinup picture; The UV value is the coordinate of pixel in the AO pinup picture; When UV skew is spliced into a big OA pinup picture according to a plurality of little OA pinup pictures in the image processing module 7, the position transformational relation of same pixel between calculates, UV skew is set is in the enforcement render process for online rendering module 8, read AO information the big OA pinup picture after piecing together easily.
In off-line rendering module 5, treat when playing up object and playing up, at first in dome type camera system 4, select a video camera 2 to take object to be played up as viewpoint, acquisition waits to play up the object scene depth figure that belongs to camera coordinate system of certain limit on every side, carries the scene depth value of each pixel of object in the scene among the scene depth figure; Secondly receive the described world coordinates matrix of waiting to play up object from the AGP bus, apex coordinate and described world coordinates matrix multiple are obtained world coordinates, again world coordinates and parallel projection matrix multiple are obtained playing up depth value; Play up again behind apex coordinate and the parallel projection matrix multiple, obtain screen coordinate; Screen coordinate takes out the scene depth value of waiting to play up pixel in the object as the texture coordinate of taking a sample from scene depth figure; At last with the scene depth value of pixel with play up depth value and compare, when playing up depth value less than the scene depth value, then be considered as the influence that this pixel is subjected to video camera 2, output AO trial function is 1, and when playing up depth value more than or equal to the scene depth value, then be considered as the influence that this pixel is not subjected to video camera 2, output AO trial function is 0; The AO trial function of all video cameras 2 in the dome type camera system 4 with respect to this pixel added and the back standardization, promptly obtain the AO information of this pixel.The AO information of each pixel of waiting to play up object is according to generating the AO pinup picture in the AO pinup picture ID input AO pinup picture generation module 6 and preserving.
Said process only need be played up by twice, promptly can obtain video camera 2 and treat the AO information of playing up object, and the complexity of the process of calculating AO information and object is irrelevant, so just simplify logical calculated greatly, make computation process can utilize effective logic determines ability lower, but the very strong video card graphic process unit of parallel processing capability is quickened to handle.
As shown in Figure 3, Figure 4, because the size of AO pinup picture is less, when sampling, causes the error of a pixel easily, thereby sample pixel value invalid in the AO pinup picture.In order to address this problem, the present invention will carry out the pixel DIFFUSION TREATMENT in the AO pinup picture input picture processing module 7 of preserving in the AO pinup picture generation module 6.Judge in image processing module 7 whether current pixel is invalid, if invalid then 8 pixel around it of sampling, the coordinate array of structure 3 * 3; Effective pixel color value in the traversal coordinate array, and with the color value of first valid pixel color value as current inactive pixels, and current inactive pixels is set for effectively, finally generate effective AO pinup picture.As shown in Figure 5,, effective AO pinup picture is carried out a Gaussian Blur handle, obtain new AO pinup picture in order to eliminate the sawtooth that exists in the AO pinup picture.
As shown in Figure 6, in order to reduce the quantity of AO pinup picture, after in image processing module 7, Gaussian Blur being handled, the adjacent less AO pinup picture in the position of world coordinates in the same area is spliced into a bigger AO pinup picture.At first, all objects in the traversal scene, the little AO pinup picture that will meet the splicing condition is put into same tabulation, the size sum of the little AO pinup picture in the calculations list; Select multiple size forms such as 1024 * 1024,1024 * 512,512 * 512,512 * 256,256 * 256,256 * 128,128 * 128,128 * 64,64 * 64,64 * 32,32 * 32 according to the capacity situation of hardware then, select corresponding form to splice according to large scale pinup picture principle of priority, purpose is to reduce the quantity of pinup picture.
As Fig. 7, Fig. 8, shown in Figure 9, for the surround lighting that makes scene is full of variety, realization such as early morning, daytime, at dusk, late into the night etc. nature Changes in weather, the present invention imports online rendering module 8 with the big AO pinup picture that generates after treatment in the image processing module 7, according to the adjusting parameter of the online input of game server, the online scene rendering of big AO pinup picture of handling the back generation is become surround lighting.The adjusting parameter of online scene rendering comprises that the surround lighting cardinal sum blocks coefficient, and wherein the surround lighting radix is not rely on AO information, is used for the brightness of whole control scene; Blocking coefficient is the weight of AO information, regulates the power of local relationship between light and dark contrast.Then can pass through the surround lighting that equation (1) calculates scene, be used for showing to the user:
Surround lighting=(blocking coefficient * AO information+surround lighting radix) * ambient light color * surround lighting material (1)
Should be pointed out that the above embodiment can make those skilled in the art more fully understand the invention, but do not limit the present invention in any way creation.Therefore; although this instructions has been described in detail the invention with reference to drawings and Examples; but; those skilled in the art are to be understood that; still can make amendment or be equal to replacement the invention; in a word, all do not break away from the technical scheme and the improvement thereof of the spirit and scope of the invention, and it all should be encompassed in the middle of the protection domain of the invention patent.

Claims (8)

1. ambient light occlusion image drawing method that quickens based on GPU, its step comprises:
1) set up the equally distributed dome type camera system of video camera in the CPU processor, the lens parameters of described video camera comprises the parallel projection matrix;
2) with in the described dome type camera system input GPU processor, select a video camera to take and wait to play up the object scene of certain limit on every side, acquisition waits to play up the object scene depth figure of certain limit on every side, carries the described scene depth value of waiting to play up pixel in the object among the described scene depth figure;
3) receive the vertex data of waiting to play up object, described vertex data comprises apex coordinate; Behind described apex coordinate and world coordinates matrix multiple, with described parallel projection matrix multiple, obtain playing up depth value again;
4), calculate the AO information of described pixel according to the scene depth value of described pixel with play up depth value;
5) the AO information basis with pixel generates AO pinup picture ID in advance, stores in the AO pinup picture;
6) the online scene rendering of described AO pinup picture being become displayable surround lighting exports.
2. a kind of ambient light occlusion image drawing method that quickens based on GPU as claimed in claim 1, it is characterized in that: in the described step 4), the computing method of described AO information comprise: with the scene depth value of described pixel with play up depth value and compare, when playing up depth value less than the scene depth value, then be considered as the influence that described pixel is subjected to video camera, output AO trial function is 1; When playing up depth value more than or equal to the scene depth value, then be considered as the influence that described pixel is not subjected to described video camera, output AO trial function is 0; All video cameras in the described dome type camera system are added with respect to the AO trial function of described pixel and after, promptly obtain the AO information of described pixel.
3. a kind of ambient light occlusion image drawing method that quickens based on GPU as claimed in claim 1 or 2, it is characterized in that: in the described step 6), the AO pinup picture is handled through pixel DIFFUSION TREATMENT and Gaussian Blur earlier, the adjacent AO pinup picture in position after will handling again is spliced into a bigger AO pinup picture, at last described bigger AO pinup picture is carried out online scene rendering.
4. ambient light occlusion image drawing system that quickens based on GPU, it is characterized in that: it comprises display and GPU processor, wherein off-line rendering module, AO pinup picture generation module and the online rendering module that configuration connects successively in the GPU processor; The CPU processor imports the dome type camera system in the described off-line rendering module into, and described dome type camera system comprises equally distributed at random video camera, takes the scene depth figure that waits to play up object by described video camera; The scene depth value of described off-line rendering module read pixel point from described scene depth figure, and calculate the depth value of playing up of pixel according to the described apex coordinate of waiting to play up object, according to the scene depth value with play up the AO information that depth value calculates described pixel; Described AO pinup picture generation module generates the AO pinup picture according to the AO information of described pixel, and described AO pinup picture is imported online rendering module, and online scene rendering becomes displayable surround lighting by described display output.
5. a kind of ambient light occlusion image drawing system that quickens based on GPU as claimed in claim 4, it is characterized in that: described video camera is taken described shooting object to be played up by parallel projection, and the lens parameters of described video camera comprises the parallel projection matrix.
6. a kind of ambient light occlusion image drawing system that quickens based on GPU as claimed in claim 5, it is characterized in that: in the described off-line rendering module, the method of playing up depth value and scene depth value of calculating described pixel according to the described apex coordinate of waiting to play up object comprises: at first, receive the described world coordinates matrix of waiting to play up object from the AGP bus, described apex coordinate and described world coordinates matrix multiple are obtained world coordinates, more described world coordinates and described parallel projection matrix multiple are obtained playing up depth value; Play up again behind described apex coordinate and the described parallel projection matrix multiple, obtain screen coordinate; Described screen coordinate takes out the described scene depth value of waiting to play up pixel in the object as the texture coordinate of taking a sample from described scene depth figure.
7. a kind of ambient light occlusion image drawing system that quickens based on GPU as claimed in claim 6, it is characterized in that: in the described off-line rendering module, the method that draws the AO information of described pixel comprises: with the scene depth value of described pixel with play up depth value and compare, when playing up depth value less than the scene depth value, then be considered as the influence that described pixel is subjected to video camera, output AO trial function is 1; When playing up depth value more than or equal to the scene depth value, then be considered as the influence that described pixel is not subjected to described video camera, output AO trial function is 0; All video cameras in the described dome type camera system are added with respect to the AO trial function of described pixel and after, promptly obtain the AO information of described pixel.
8. as the described a kind of ambient light occlusion image drawing system that quickens based on GPU of one of claim 4~7, it is characterized in that: between described AO pinup picture generation module and online rendering module, image processing module is set, described AO pinup picture is carried out pixel DIFFUSION TREATMENT, Gaussian Blur processing successively, and the adjacent AO pinup picture in the position after will handling is spliced into a bigger AO pinup picture.
CN 201110215371 2011-07-29 2011-07-29 Method and system for drawing ambient occlusion images based on GPU (graphic processing unit) acceleration Expired - Fee Related CN102254340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110215371 CN102254340B (en) 2011-07-29 2011-07-29 Method and system for drawing ambient occlusion images based on GPU (graphic processing unit) acceleration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110215371 CN102254340B (en) 2011-07-29 2011-07-29 Method and system for drawing ambient occlusion images based on GPU (graphic processing unit) acceleration

Publications (2)

Publication Number Publication Date
CN102254340A true CN102254340A (en) 2011-11-23
CN102254340B CN102254340B (en) 2013-01-09

Family

ID=44981581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110215371 Expired - Fee Related CN102254340B (en) 2011-07-29 2011-07-29 Method and system for drawing ambient occlusion images based on GPU (graphic processing unit) acceleration

Country Status (1)

Country Link
CN (1) CN102254340B (en)

Cited By (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103093416A (en) * 2013-01-28 2013-05-08 成都索贝数码科技股份有限公司 Real time field depth analogy method based on fuzzy partition of graphics processor
CN103164868A (en) * 2011-12-09 2013-06-19 金耀有限公司 Method and device for generating image with depth-of-field (DOF) effect
CN103247064A (en) * 2012-02-14 2013-08-14 中国移动通信集团公司 Three-dimensional dynamic graphical generating method, device and mobile terminal
CN104134230A (en) * 2014-01-22 2014-11-05 腾讯科技(深圳)有限公司 Image processing method, image processing device and computer equipment
CN104182194A (en) * 2014-08-22 2014-12-03 湖南华凯文化创意股份有限公司 Method and system for seamless edge blending processing in projection display
CN104574494A (en) * 2014-12-30 2015-04-29 北京像素软件科技股份有限公司 Acceleration method for illumination system and display card
CN105321200A (en) * 2015-07-10 2016-02-10 苏州蜗牛数字科技股份有限公司 Offline rendering preprocessing method
CN105513112A (en) * 2014-10-16 2016-04-20 北京畅游天下网络技术有限公司 Image processing method and device
CN106355544A (en) * 2015-07-15 2017-01-25 Arm有限公司 Data processing systems
CN106940691A (en) * 2016-01-05 2017-07-11 阿里巴巴集团控股有限公司 The method and apparatus for showing chart
CN108257204A (en) * 2016-12-28 2018-07-06 福建省天奕网络科技有限公司 The vertex color for applying to Unity engines draws baking method and system
US10074211B2 (en) 2013-02-12 2018-09-11 Thomson Licensing Method and device for establishing the frontier between objects of a scene in a depth map
CN108830923A (en) * 2018-06-08 2018-11-16 网易(杭州)网络有限公司 Image rendering method, device and storage medium
CN109102560A (en) * 2018-08-09 2018-12-28 腾讯科技(深圳)有限公司 Threedimensional model rendering method and device
CN109214978A (en) * 2017-07-01 2019-01-15 武汉斗鱼网络科技有限公司 Accelerated processing method, storage medium, electronic equipment and the system of filtering effects
CN109603156A (en) * 2018-12-12 2019-04-12 北京像素软件科技股份有限公司 Rendering method and device
CN109658495A (en) * 2017-10-10 2019-04-19 腾讯科技(深圳)有限公司 Rendering method, device and the electronic equipment of environment light screening effect
CN109887066A (en) * 2019-02-25 2019-06-14 网易(杭州)网络有限公司 Lighting effect processing method and processing device, electronic equipment, storage medium
CN109993823A (en) * 2019-04-11 2019-07-09 腾讯科技(深圳)有限公司 Shading Rendering method, apparatus, terminal and storage medium
CN110136238A (en) * 2019-04-02 2019-08-16 杭州趣维科技有限公司 A kind of AR drawing method of combination physical light according to model
CN110335335A (en) * 2018-03-21 2019-10-15 辉达公司 Uniform density cube for spherical projection renders
CN110363836A (en) * 2019-07-19 2019-10-22 杭州绝地科技股份有限公司 A kind of role's rendering method, device and equipment based on Matcap textures
CN110599389A (en) * 2019-09-10 2019-12-20 苏州蜗牛数字科技股份有限公司 Method and system for judging shielding of environment probe
CN110706324A (en) * 2019-10-18 2020-01-17 网易(杭州)网络有限公司 Method and device for rendering weather particles
CN110717964A (en) * 2019-09-26 2020-01-21 深圳市名通科技股份有限公司 Scene modeling method, terminal and readable storage medium
CN110969692A (en) * 2019-11-26 2020-04-07 中山大学 Real-time rendering method, system and terminal for fiber-grade fabric
CN111240625A (en) * 2020-01-09 2020-06-05 盾钰(上海)互联网科技有限公司 Method and system for calculating image dynamic rendering of infinite visual boundary
CN111480183A (en) * 2017-11-20 2020-07-31 上海科技大学 Light field image rendering method and system for generating perspective effect
CN111726479A (en) * 2020-06-01 2020-09-29 北京像素软件科技股份有限公司 Image rendering method and device, terminal and readable storage medium
CN111798361A (en) * 2019-09-20 2020-10-20 厦门雅基软件有限公司 Rendering method, rendering device, electronic equipment and computer-readable storage medium
CN111951361A (en) * 2019-05-17 2020-11-17 联想新视界(北京)科技有限公司 Method and device for realizing AR image display effect
CN112419460A (en) * 2020-10-20 2021-02-26 上海哔哩哔哩科技有限公司 Method, apparatus, computer device and storage medium for baking model charting
CN112509108A (en) * 2020-12-03 2021-03-16 杭州群核信息技术有限公司 GPU-based vertex ambient light shading generation method and image rendering method
CN112529993A (en) * 2020-12-09 2021-03-19 威创集团股份有限公司 Scatter plot mark optimization method based on Unity and storage medium
CN112837403A (en) * 2021-03-10 2021-05-25 网易(杭州)网络有限公司 Mapping drawing method and device, computer equipment and storage medium
CN112970048A (en) * 2018-11-27 2021-06-15 瑞萨电子株式会社 Instruction list generation
CN113436306A (en) * 2021-07-22 2021-09-24 久瓴(江苏)数字智能科技有限公司 Image rendering method and device and storage medium
CN116611991A (en) * 2023-07-20 2023-08-18 杭州几率视界科技有限公司 Processing method and system for drawing complex scene based on GPU
CN116778127A (en) * 2023-07-05 2023-09-19 广州视景医疗软件有限公司 Panoramic view-based three-dimensional digital scene construction method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1229499A2 (en) * 2001-02-06 2002-08-07 Sony Computer Entertainment America Inc. System and method for creating real-time shadows of transparent objects
EP1376472A1 (en) * 2002-06-20 2004-01-02 Microsoft Corporation Systems and methods for providing controllable texture sampling
CN1889128A (en) * 2006-07-17 2007-01-03 北京航空航天大学 Method for precalculating radiancy transfer full-frequency shadow based on GPU
CN101145246A (en) * 2006-09-14 2008-03-19 腾讯科技(深圳)有限公司 Method and system for producing volume shade
CN102096941A (en) * 2011-01-30 2011-06-15 北京航空航天大学 Consistent lighting method under falsehood-reality fused environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1229499A2 (en) * 2001-02-06 2002-08-07 Sony Computer Entertainment America Inc. System and method for creating real-time shadows of transparent objects
EP1376472A1 (en) * 2002-06-20 2004-01-02 Microsoft Corporation Systems and methods for providing controllable texture sampling
CN1889128A (en) * 2006-07-17 2007-01-03 北京航空航天大学 Method for precalculating radiancy transfer full-frequency shadow based on GPU
CN101145246A (en) * 2006-09-14 2008-03-19 腾讯科技(深圳)有限公司 Method and system for producing volume shade
CN102096941A (en) * 2011-01-30 2011-06-15 北京航空航天大学 Consistent lighting method under falsehood-reality fused environment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张全贵等: "基于光线跟踪方法的全局光照研究", 《计算机科学》, vol. 37, no. 4, 30 April 2010 (2010-04-30) *
胡孔明等: "基于光场的渲染技术研究", 《微计算机应用》, vol. 29, no. 2, 29 February 2008 (2008-02-29), pages 22 - 27 *

Cited By (69)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164868A (en) * 2011-12-09 2013-06-19 金耀有限公司 Method and device for generating image with depth-of-field (DOF) effect
CN103164868B (en) * 2011-12-09 2018-01-16 金耀有限公司 The method and apparatus for producing the image with Deep Canvas
CN103247064A (en) * 2012-02-14 2013-08-14 中国移动通信集团公司 Three-dimensional dynamic graphical generating method, device and mobile terminal
CN103247064B (en) * 2012-02-14 2016-03-30 中国移动通信集团公司 A kind of generation method of three-dimensional dynamic graphical, device and mobile terminal
CN103093416A (en) * 2013-01-28 2013-05-08 成都索贝数码科技股份有限公司 Real time field depth analogy method based on fuzzy partition of graphics processor
CN103093416B (en) * 2013-01-28 2015-11-25 成都索贝数码科技股份有限公司 A kind of real time field depth analogy method of graphic based processor fuzzy partition
US10074211B2 (en) 2013-02-12 2018-09-11 Thomson Licensing Method and device for establishing the frontier between objects of a scene in a depth map
US20160232707A1 (en) * 2014-01-22 2016-08-11 Tencent Technology (Shenzhen) Company Limited Image processing method and apparatus, and computer device
CN104134230A (en) * 2014-01-22 2014-11-05 腾讯科技(深圳)有限公司 Image processing method, image processing device and computer equipment
WO2015110012A1 (en) 2014-01-22 2015-07-30 Tencent Technology (Shenzhen) Company Limited Image processing method and apparatus, and computer device
CN104134230B (en) * 2014-01-22 2015-10-28 腾讯科技(深圳)有限公司 A kind of image processing method, device and computer equipment
CN104182194B (en) * 2014-08-22 2018-02-27 湖南华凯文化创意股份有限公司 Seamless edge method for amalgamation processing and system in Projection Display
CN104182194A (en) * 2014-08-22 2014-12-03 湖南华凯文化创意股份有限公司 Method and system for seamless edge blending processing in projection display
CN105513112A (en) * 2014-10-16 2016-04-20 北京畅游天下网络技术有限公司 Image processing method and device
CN105513112B (en) * 2014-10-16 2018-11-16 北京畅游天下网络技术有限公司 Image processing method and device
CN104574494A (en) * 2014-12-30 2015-04-29 北京像素软件科技股份有限公司 Acceleration method for illumination system and display card
CN105321200A (en) * 2015-07-10 2016-02-10 苏州蜗牛数字科技股份有限公司 Offline rendering preprocessing method
CN105321200B (en) * 2015-07-10 2018-03-06 苏州蜗牛数字科技股份有限公司 The preprocess method rendered offline
CN106355544B (en) * 2015-07-15 2021-08-17 Arm有限公司 Processing unit, method for performing processing operations in a processing unit
CN106355544A (en) * 2015-07-15 2017-01-25 Arm有限公司 Data processing systems
CN106940691A (en) * 2016-01-05 2017-07-11 阿里巴巴集团控股有限公司 The method and apparatus for showing chart
CN108257204A (en) * 2016-12-28 2018-07-06 福建省天奕网络科技有限公司 The vertex color for applying to Unity engines draws baking method and system
CN108257204B (en) * 2016-12-28 2021-06-08 福建省天奕网络科技有限公司 Vertex color drawing baking method and system applied to Unity engine
CN109214978A (en) * 2017-07-01 2019-01-15 武汉斗鱼网络科技有限公司 Accelerated processing method, storage medium, electronic equipment and the system of filtering effects
CN109658495A (en) * 2017-10-10 2019-04-19 腾讯科技(深圳)有限公司 Rendering method, device and the electronic equipment of environment light screening effect
CN111480183A (en) * 2017-11-20 2020-07-31 上海科技大学 Light field image rendering method and system for generating perspective effect
CN111480183B (en) * 2017-11-20 2023-08-08 上海科技大学 Light field image rendering method and system for generating perspective effect
CN110335335A (en) * 2018-03-21 2019-10-15 辉达公司 Uniform density cube for spherical projection renders
CN108830923A (en) * 2018-06-08 2018-11-16 网易(杭州)网络有限公司 Image rendering method, device and storage medium
CN108830923B (en) * 2018-06-08 2022-06-17 网易(杭州)网络有限公司 Image rendering method and device and storage medium
CN109102560A (en) * 2018-08-09 2018-12-28 腾讯科技(深圳)有限公司 Threedimensional model rendering method and device
CN109102560B (en) * 2018-08-09 2023-03-28 腾讯科技(深圳)有限公司 Three-dimensional model rendering method and device
CN112970048A (en) * 2018-11-27 2021-06-15 瑞萨电子株式会社 Instruction list generation
CN112970048B (en) * 2018-11-27 2024-04-19 瑞萨电子株式会社 Instruction list generation
CN109603156B (en) * 2018-12-12 2022-07-22 北京像素软件科技股份有限公司 Rendering method and device
CN109603156A (en) * 2018-12-12 2019-04-12 北京像素软件科技股份有限公司 Rendering method and device
CN109887066A (en) * 2019-02-25 2019-06-14 网易(杭州)网络有限公司 Lighting effect processing method and processing device, electronic equipment, storage medium
CN109887066B (en) * 2019-02-25 2024-01-16 网易(杭州)网络有限公司 Lighting effect processing method and device, electronic equipment and storage medium
CN110136238A (en) * 2019-04-02 2019-08-16 杭州趣维科技有限公司 A kind of AR drawing method of combination physical light according to model
CN109993823A (en) * 2019-04-11 2019-07-09 腾讯科技(深圳)有限公司 Shading Rendering method, apparatus, terminal and storage medium
CN109993823B (en) * 2019-04-11 2022-11-25 腾讯科技(深圳)有限公司 Shadow rendering method, device, terminal and storage medium
CN111951361B (en) * 2019-05-17 2024-04-02 联想新视界(北京)科技有限公司 Method and device for realizing AR image display effect
CN111951361A (en) * 2019-05-17 2020-11-17 联想新视界(北京)科技有限公司 Method and device for realizing AR image display effect
CN110363836A (en) * 2019-07-19 2019-10-22 杭州绝地科技股份有限公司 A kind of role's rendering method, device and equipment based on Matcap textures
CN110599389A (en) * 2019-09-10 2019-12-20 苏州蜗牛数字科技股份有限公司 Method and system for judging shielding of environment probe
CN111798361A (en) * 2019-09-20 2020-10-20 厦门雅基软件有限公司 Rendering method, rendering device, electronic equipment and computer-readable storage medium
CN110717964A (en) * 2019-09-26 2020-01-21 深圳市名通科技股份有限公司 Scene modeling method, terminal and readable storage medium
CN110717964B (en) * 2019-09-26 2023-05-02 深圳市名通科技股份有限公司 Scene modeling method, terminal and readable storage medium
CN110706324B (en) * 2019-10-18 2023-03-31 网易(杭州)网络有限公司 Method and device for rendering weather particles
CN110706324A (en) * 2019-10-18 2020-01-17 网易(杭州)网络有限公司 Method and device for rendering weather particles
CN110969692B (en) * 2019-11-26 2023-05-26 中山大学 Real-time rendering method, system and terminal for fiber-grade fabric
CN110969692A (en) * 2019-11-26 2020-04-07 中山大学 Real-time rendering method, system and terminal for fiber-grade fabric
CN111240625B (en) * 2020-01-09 2022-03-18 盾钰(上海)互联网科技有限公司 Method and system for calculating image dynamic rendering of infinite visual boundary
CN111240625A (en) * 2020-01-09 2020-06-05 盾钰(上海)互联网科技有限公司 Method and system for calculating image dynamic rendering of infinite visual boundary
CN111726479B (en) * 2020-06-01 2023-05-23 北京像素软件科技股份有限公司 Image rendering method and device, terminal and readable storage medium
CN111726479A (en) * 2020-06-01 2020-09-29 北京像素软件科技股份有限公司 Image rendering method and device, terminal and readable storage medium
CN112419460A (en) * 2020-10-20 2021-02-26 上海哔哩哔哩科技有限公司 Method, apparatus, computer device and storage medium for baking model charting
CN112509108A (en) * 2020-12-03 2021-03-16 杭州群核信息技术有限公司 GPU-based vertex ambient light shading generation method and image rendering method
CN112509108B (en) * 2020-12-03 2024-04-12 杭州群核信息技术有限公司 GPU-based vertex ambient light shielding generation method and image rendering method
CN112529993A (en) * 2020-12-09 2021-03-19 威创集团股份有限公司 Scatter plot mark optimization method based on Unity and storage medium
CN112529993B (en) * 2020-12-09 2024-02-06 威创集团股份有限公司 Scatter map optimization method based on Unity and storage medium
CN112837403A (en) * 2021-03-10 2021-05-25 网易(杭州)网络有限公司 Mapping drawing method and device, computer equipment and storage medium
CN112837403B (en) * 2021-03-10 2023-08-08 网易(杭州)网络有限公司 Mapping method, mapping device, computer equipment and storage medium
CN113436306B (en) * 2021-07-22 2024-04-05 久瓴(江苏)数字智能科技有限公司 Image rendering method, device and storage medium
CN113436306A (en) * 2021-07-22 2021-09-24 久瓴(江苏)数字智能科技有限公司 Image rendering method and device and storage medium
CN116778127B (en) * 2023-07-05 2024-01-05 广州视景医疗软件有限公司 Panoramic view-based three-dimensional digital scene construction method and system
CN116778127A (en) * 2023-07-05 2023-09-19 广州视景医疗软件有限公司 Panoramic view-based three-dimensional digital scene construction method and system
CN116611991B (en) * 2023-07-20 2023-10-03 杭州几率视界科技有限公司 Processing method and system for drawing complex scene based on GPU
CN116611991A (en) * 2023-07-20 2023-08-18 杭州几率视界科技有限公司 Processing method and system for drawing complex scene based on GPU

Also Published As

Publication number Publication date
CN102254340B (en) 2013-01-09

Similar Documents

Publication Publication Date Title
CN102254340B (en) Method and system for drawing ambient occlusion images based on GPU (graphic processing unit) acceleration
Regan et al. Priority rendering with a virtual reality address recalculation pipeline
US8624894B2 (en) Apparatus and method of early pixel discarding in graphic processing unit
TW201832179A (en) Filtering image data using a neural network
CN108335349B (en) Filtering image data using neural networks
US20080088619A1 (en) Branch Prediction for Acceleration Data Structure Traversal
US20080266286A1 (en) Generation of a particle system using a geometry shader
CN103460253A (en) Pixel value compaction for graphics processing
US10068366B2 (en) Stereo multi-projection implemented using a graphics processing pipeline
CN101315703A (en) Three-dimensional large scale scene dynamic management method
WO2018063582A1 (en) Method and apparatus for the proper ordering and enumeration of multiple successive ray-surface intersections within a ray tracing architecture
CN104091363A (en) Real-time size cloud computing method based on screen space
CN111739142A (en) Scene rendering method and device, electronic equipment and computer readable storage medium
US20230230311A1 (en) Rendering Method and Apparatus, and Device
CN113450422A (en) Reducing visual artifacts in images
Lee et al. Real-time ray tracing on coarse-grained reconfigurable processor
US10776996B2 (en) Method and apparatus for processing image
US20240087219A1 (en) Method and apparatus for generating lighting image, device, and medium
CN106886974A (en) Image accelerator equipment and correlation technique
CN111583378A (en) Virtual asset processing method and device, electronic equipment and storage medium
CN113648652B (en) Object rendering method and device, storage medium and electronic equipment
CN113393564B (en) Pool-based spatio-temporal importance resampling using global illumination data structures
CN115082628B (en) Dynamic drawing method and device based on implicit optical transfer function
Rohmer et al. Tiled frustum culling for differential rendering on mobile devices
CN114596403A (en) Image processing method, image processing device, storage medium and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100191, Haidian District, Xueyuan Road, No. 39, 1, 6-7, Beijing

Applicant after: Beijing Kylin Network Culture Co., Ltd.

Address before: 100191, Haidian District, Xueyuan Road, No. 39, 1, 6-7, Beijing

Applicant before: Beijing Kylin Network Information Technology Co.,Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: BEIJING KYLIN NETWORK INFORMATION SCIENCE AND TECHNOLOGY CO., LTD. TO: BEIJING KYLIN NETWORK CULTURE CO., LTD.

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130109

Termination date: 20190729