CN104574494A - Acceleration method for illumination system and display card - Google Patents
Acceleration method for illumination system and display card Download PDFInfo
- Publication number
- CN104574494A CN104574494A CN201410841906.6A CN201410841906A CN104574494A CN 104574494 A CN104574494 A CN 104574494A CN 201410841906 A CN201410841906 A CN 201410841906A CN 104574494 A CN104574494 A CN 104574494A
- Authority
- CN
- China
- Prior art keywords
- illumination system
- rendered
- color
- display card
- illumination
- 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
- G06T15/506—Illumination models
Abstract
The embodiment of the invention provides an acceleration method for an illumination system and a display card. The method comprises the following steps: calling the illumination system by the display card configured in a mobile application platform, and determining a surface color and a top-point color of a to-be-rendered object; avoiding execution of codes of the illumination system by a central processing unit and saving resources of the central processing unit in an environment, with finite hardware performance, of the mobile application platform according to the surface color and the top-point color of the to-be-rendered object by the display card; calculating the surface color and the top-point color of the to-be-rendered object through the display card relatively suitable for illumination computing, so that rendering can be directly carried out by the display card without frequent data interaction of the central processing unit and the display card, the real-time property of illumination processing and rendering of the to-be-rendered object is guaranteed, the illumination system is accelerated in hardware, the performance of the illumination system is optimized, the codes of the illumination system do not need to be modified, and the complexity of a processing process of the illumination system is not increased.
Description
Technical field
The embodiment of the present invention relates to computer graphics techniques field, particularly relates to a kind of accelerated method and video card of illumination system.
Background technology
In computer graphics system, in order to promote the validity of object to be rendered, need to add illumination.Illumination is conducive to physical form and the volume of describing object to be rendered.
Be generally adopt image rendering DLL (dynamic link library) to provide illumination system to realize illumination, described illumination system is used for arranging light source, material, and calculate according to the vertex information provided and other illumination parameters, obtain final surface color and vertex color, pass through other subsequent processes again, result is sent into video card and plays up.Wherein, image rendering DLL (dynamic link library) is to provide the DLL (dynamic link library) mutual with video card, common are OpenGL and Direct3D.
The performance of illumination system directly affects the validity of object to be rendered, prior art is generally by improving illumination model and algorithm thereof, also the source code namely revising illumination system, to promote the performance of illumination system, needs repeatedly to compile source program usually, and treatment scheme is complicated; Further, illumination model and its computing method are solidificated in image rendering DLL (dynamic link library), cannot modify to it from outside and optimize.
Summary of the invention
The embodiment of the present invention provides a kind of accelerated method and video card of illumination system, with when not increasing the complexity for the treatment of scheme of illumination system, optimizes the performance of illumination system.
First aspect, embodiments provides a kind of accelerated method of illumination system, comprising:
The video card configured in Mobile solution platform calls illumination system, determines and the surface color of object to be rendered and vertex color;
Described video card, according to the surface color of described object to be rendered and vertex color, is played up described object to be rendered.
Second aspect, embodiments provides a kind of video card, comprises image processor, and described image processor is used for calling illumination system, determines and the surface color of object to be rendered and vertex color;
According to surface color and the vertex color of described object to be rendered, described object to be rendered is played up.
The accelerated method of the illumination system that the embodiment of the present invention provides and video card, code corresponding to illumination system is performed by the video card in Mobile solution platform, determine and the surface color of object to be rendered and vertex color, and the code preset and play up strategy correspondence is performed by video card, treat rendering objects to play up, due to the physical form and the volume that utilize illumination to describe object to be rendered, improve the validity of object to be rendered, on the one hand, avoid the code being performed illumination system by central processing unit, the processing power of central processing unit is not shared by the illumination calculation process in heavy illumination system, the resource of central processing unit has been saved in the environment that this hardware performance of Mobile solution platform is limited, on the other hand, avoiding central processing unit transfers in video card by the surface color of object to be rendered and vertex color, the surface color of object to be rendered and the calculating of vertex color is born by the video card being more suitable for illumination calculation, like this, directly can be played up by video card, without the need to the data interaction frequently of central processing unit and video card, ensure that the real-time treated rendering objects and carry out photo-irradiation treatment and play up, illumination system is accelerated from hardware, optimize the performance of illumination system, again on the one hand, because the code in video card adopts shader script to realize, on stream without the need to revising the code of illumination system, do not increase the complexity of the treatment scheme of illumination system, in addition, owing to not adopting the illumination system solidified in image rendering DLL (dynamic link library), illumination system can be modified easily, optimize and innovation.
Accompanying drawing explanation
In order to be illustrated more clearly in the present invention, introduce doing one to the accompanying drawing used required in the present invention simply below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The process flow diagram of the accelerated method of a kind of illumination system that Fig. 1 provides for the embodiment of the present invention one.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, be described in further detail the technical scheme in the embodiment of the present invention below in conjunction with accompanying drawing, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Be understandable that; specific embodiment described herein is only for explaining the present invention; but not limitation of the invention; based on the embodiment in the present invention; those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.It also should be noted that, for convenience of description, illustrate only part related to the present invention in accompanying drawing but not full content.
Embodiment one
Refer to Fig. 1, the process flow diagram of the accelerated method of a kind of illumination system provided for the embodiment of the present invention one.The method comprises: step 110 ~ step 120.
The video card configured in step 110, Mobile solution platform calls illumination system, determines and the surface color of object to be rendered and vertex color.
Wherein, Mobile solution platform can be the mobile device such as smart mobile phone or panel computer.
This step specifically video card based on the optical model in illumination system, specifically can according to the light source set, material and the surface direction relative to light source, determine surface color and the vertex color of object to be rendered, in other words, perform code corresponding to illumination system by video card, do not relate to the code that amendment illumination system is corresponding.
It should be noted that, the illumination system in this step exists independent of image rendering DLL (dynamic link library), and namely illumination system is not solidificated in image rendering DLL (dynamic link library) yet.
Step 120, described video card, according to the surface color of described object to be rendered and vertex color, are played up described object to be rendered.
In this step, the effect of video card is similar to graphics engine.
Wherein, can adopt existing Rendering algorithms, according to surface color and the vertex color of described object to be rendered, play up described object to be rendered, the present embodiment does not limit this.
The technical scheme of the present embodiment, code corresponding to illumination system is performed by the video card in Mobile solution platform, determine and the surface color of object to be rendered and vertex color, and the code preset and play up strategy correspondence is performed by video card, treat rendering objects to play up, due to the physical form and the volume that utilize illumination to describe object to be rendered, improve the validity of object to be rendered, on the one hand, avoid the code being performed illumination system by central processing unit, the processing power of central processing unit is not shared by the illumination calculation process in heavy illumination system, the resource of central processing unit has been saved in the environment that this hardware performance of Mobile solution platform is limited, on the other hand, avoiding central processing unit transfers in video card by the surface color of object to be rendered and vertex color, the surface color of object to be rendered and the calculating of vertex color is born by the video card being more suitable for illumination calculation, like this, directly can be played up by video card, without the need to the data interaction frequently of central processing unit and video card, ensure that the real-time treated rendering objects and carry out photo-irradiation treatment and play up, illumination system is accelerated from hardware, optimize the performance of illumination system, again on the one hand, because the code in video card adopts shader script to realize, on stream without the need to revising the code of illumination system, do not increase the complexity of the treatment scheme of illumination system, in addition, owing to not adopting the illumination system solidified in image rendering DLL (dynamic link library), illumination system can be modified easily, optimize and innovation.
The technical scheme of the present embodiment is applicable to game application, avoids the phenomenon occurring frame losing and Ka Dun when game running.
Embodiment two
The present embodiment provides a kind of video card, comprises image processor, and described image processor is used for calling illumination system, determines and the surface color of object to be rendered and vertex color;
According to surface color and the vertex color of described object to be rendered, described object to be rendered is played up.
The video card that the embodiment of the present invention provides can perform the accelerated method of the illumination system that the embodiment of the present invention provides, and possesses the corresponding beneficial effect of manner of execution.
Last it is noted that above each embodiment is only for illustration of technical scheme of the present invention, but not be limited; In embodiment preferred embodiment, be not limited, to those skilled in the art, the present invention can have various change and change.All do within spirit of the present invention and principle any amendment, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (2)
1. an accelerated method for illumination system, is characterized in that, comprising:
The video card configured in Mobile solution platform calls illumination system, determines and the surface color of object to be rendered and vertex color;
The calculating of surface color and vertex color
Described video card, according to the surface color of described object to be rendered and vertex color, is played up described object to be rendered.
2. a video card, comprises image processor, it is characterized in that, described image processor is used for calling illumination system, determines and the surface color of object to be rendered and vertex color;
According to surface color and the vertex color of described object to be rendered, described object to be rendered is played up.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410841906.6A CN104574494A (en) | 2014-12-30 | 2014-12-30 | Acceleration method for illumination system and display card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410841906.6A CN104574494A (en) | 2014-12-30 | 2014-12-30 | Acceleration method for illumination system and display card |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104574494A true CN104574494A (en) | 2015-04-29 |
Family
ID=53090459
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410841906.6A Pending CN104574494A (en) | 2014-12-30 | 2014-12-30 | Acceleration method for illumination system and display card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104574494A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101354794A (en) * | 2008-09-10 | 2009-01-28 | 汕头超声仪器研究所 | Light irradiation analogy method of real time three-dimensional image based on pattern processor |
CN102254337A (en) * | 2011-04-26 | 2011-11-23 | 厦门吉比特网络技术股份有限公司 | Method for changing colours of 2D (Two-Dimensional) animation chartlet |
CN102254340A (en) * | 2011-07-29 | 2011-11-23 | 北京麒麟网信息科技有限公司 | Method and system for drawing ambient occlusion images based on GPU (graphic processing unit) acceleration |
CN102663208A (en) * | 2012-04-28 | 2012-09-12 | 浪潮电子信息产业股份有限公司 | Method for carrying out large-eddy simulation real-time rendering by utilizing graphic processing unit (GPU) |
US20140192052A1 (en) * | 2013-01-09 | 2014-07-10 | Advanced Micro Devices, Inc. | 2d rendering on 3d graphics hardware |
-
2014
- 2014-12-30 CN CN201410841906.6A patent/CN104574494A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101354794A (en) * | 2008-09-10 | 2009-01-28 | 汕头超声仪器研究所 | Light irradiation analogy method of real time three-dimensional image based on pattern processor |
CN102254337A (en) * | 2011-04-26 | 2011-11-23 | 厦门吉比特网络技术股份有限公司 | Method for changing colours of 2D (Two-Dimensional) animation chartlet |
CN102254340A (en) * | 2011-07-29 | 2011-11-23 | 北京麒麟网信息科技有限公司 | Method and system for drawing ambient occlusion images based on GPU (graphic processing unit) acceleration |
CN102663208A (en) * | 2012-04-28 | 2012-09-12 | 浪潮电子信息产业股份有限公司 | Method for carrying out large-eddy simulation real-time rendering by utilizing graphic processing unit (GPU) |
US20140192052A1 (en) * | 2013-01-09 | 2014-07-10 | Advanced Micro Devices, Inc. | 2d rendering on 3d graphics hardware |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102590644B1 (en) | Method and apparatus for managing atlas of augmented reality content | |
KR101563098B1 (en) | Graphics processing unit with command processor | |
Arnau et al. | Eliminating redundant fragment shader executions on a mobile gpu via hardware memoization | |
US8823736B2 (en) | Graphics tiling architecture with bounding volume hierarchies | |
US10297003B2 (en) | Efficient saving and restoring of context information for context switches | |
JP2015509776A (en) | online game | |
CN104966312A (en) | Method for rendering 3D model, apparatus for rendering 3D model and terminal equipment | |
TW201706840A (en) | Facilitating dynamic runtime transformation of graphics processing commands for improved graphics performance at computing devices | |
US10672362B2 (en) | Systems and methods for digital content creation and rendering | |
US9396564B2 (en) | Atlas generation based on client video configuration | |
JP2015509227A (en) | Graphics rendering alignment for displays | |
US20140176569A1 (en) | Graphics processing unit employing a standard processing unit and a method of constructing a graphics processing unit | |
CN104571993A (en) | Processing method of particle system, display card and mobile application platform | |
US20220005257A1 (en) | Adaptive ray tracing suitable for shadow rendering | |
EP3427229B1 (en) | Visibility information modification | |
CN105023234A (en) | Figure acceleration method based on storage optimization of embedded system | |
CN101783021B (en) | Method for speeding up DR image processing by using operation of GPU | |
US20190005703A1 (en) | Automated graphics and compute tile interleave | |
WO2017053022A1 (en) | Speculative scalarization in vector processing | |
CN113870399A (en) | Expression driving method and device, electronic equipment and storage medium | |
CN104574494A (en) | Acceleration method for illumination system and display card | |
US10620980B2 (en) | Techniques for native runtime of hypertext markup language graphics content | |
US20090322768A1 (en) | Compile-time type-safe composable state objects | |
CN114756334A (en) | Server and server-based graphic rendering method | |
CN110033406B (en) | Method and apparatus for processing image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150429 |
|
RJ01 | Rejection of invention patent application after publication |