Real-time Rendering on GPU
- Author
- LiuYaoXin
- Advisor
- YangXiaoFan
- School
- Chongqing University
- Major
- Computer Software and Theory
- Classification
- TP391.41 Image recognition device
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 407
- Citations
- 7
Abstract
GPU (Graphics Processing Unit) is equipped with independent processor, independent RAM and independent programming language, which makes GPU programmable like a CPU (Central Processing Unit). Moreover, GPU outperforms CPU in terms of floating-point performance and throughput. As a consequence, GPU is superior to CPU in the area of real-time 3D rendering.Graphics pipeline is the most fundamental and important technical framework in computer graphics. Though GPU has the capability to perform graphics computing at a very high speed, those algorithms implemented on traditional CPU-based graphics pipeline can not be directly transferred to GPU-based graphics pipeline. This is because GPU is based on stream-like hardware architecture and parallel programming model. Therefore, the serial processing model of traditional graphics pipeline needs to adapt to parallel processing model. Only by doing so can GPU-based graphics pipeline fully exert its strengths.This thesis makes a comparative study between the CPU-based graphics pipeline and the GPU-based graphics pipeline.First, the principle in traditional CPU-based graphics pipeline (including object modeling, geometry transformation, lighting model, rasterization, texture mapping and acceleration algorithm) are reviewed. Second, focus is turned to the vertex processor and the fragment shader of GPU-based graphics pipeline. Vertex transformation algorithms that implement animation and environment mapping are described. Some lighting effects, including distance attenuation and spotlight effects, are achieved through our fragment shader algorithms. Some programming tips that can improve graphics program performance are also summarized.Next, a vertex transform algorithm is presented based on the GPU pipeline using OpenGL and CG, which is used to simulate 3D water wave with a single wave source. According to this algorithm, sine function is adopted as the base wave function when constructing the water wave grid, the surge factor of the wave is passed as a uniform argument, and the vertex processor computes the displacements of the vertices on the wave grid for implementing the surge effects.Finally, a fragment shading algorithm is advised based on the GPU pipeline using OpenGL and CG, which computes anisotropic lighting provided there is only one light source in the scene. By this algorithm, a texture is adopted as a look-up table for the correct anisotropic lighting values by storing the pre-calculated diffuse values in the texture’s RGB components and specular values in its alpha component. This style of lighting is very useful for rendering surfaces like brushed steel where the surface is composed of micro facets or microscopic scratches that tend to lay parallel or run in the same direction.
Table of contents
Chinese Abstract 3-5
English summary 5-10
1 Introduction 10-20
1.1 graphics processing pipeline Profile 10-15
1.1.1 3D computer graphics research model 10-13
1.1.2 three-dimensional real-time to draw the major difficulties faced by the technology 13-15
1.2 GPU Technology Overview 15-18
1.2.1 GPU brief history 15-16
1.2.2 graphical programming language Introduction 16-17
1.2.3 GPU on the significance of the three-dimensional real-time rendering technology 17-18
1.3 research content 18-20
2 CPU-based graphics pipeline 20-38
2.1 three-dimensional computer graphics, the basic framework of 20-22
2.1.1 basic mathematical tools 20-22
2.1.2 three-dimensional graphics processing process 22
2.2 three-dimensional object modeling 22-25
The
polygon 2.2.1 three-dimensional objects 22-23
2.2.2 constructive solid geometry 23-24
the
surface patches 2.2.3 bicubic parameters 24-25
2.3 basic geometric transformation 25-26
2.3.1 local coordinate transformation 25
2.3.2 world coordinate transform 25
2.3.3 viewpoint coordinate transformation 25-26
2.3.4 screen coordinates transform 26
2.4 three-dimensional object illumination model 26-30
2.4.1 illumination model basics 26-27
2.4.2 plane illumination model 27-30
2.5 texture mapping technology 30-34
2.5.1 two-dimensional texture mapping principle 30-32
2.5.2 common texture mapping method 32-34
2.6 accelerated algorithm 34-37
2.6.1 visibility judgment based acceleration and 34-35
2.6.2 details simplified acceleration-based thinking 35-36
2.6.3 based image simulation acceleration and 36-37
2.7 This chapter Summary 37-38
3 GPU-based graphics pipeline 38-50
3.1 GPU architecture 38-41
3.1.1 GPU technology framework and acceleration principle 38-39
3.1.2 GPU pipeline two key aspects 39-40
3.1.3 GPU expansion application 40-41
3.1.4 GPU programming model limitations 41
3.2 vertex converter 41-44
3.2.1 standardized device coordinates 41
3.2.2 calculate each vertex lighting 41-42
3.2.3 the vertex transformation animation 42-43
3.2.4 the vertex transform environment mapping 43-44
3.3 fragment shader 44-47
3.3.1 the calculated fragment-based illumination 44-45
3.3.2 distance attenuation and spotlight effects 45-47
3.4 the optimized graphics program performance of certain skills 47-49
3.4.1 only must be colored piece yuan coloring 47
3.4.2 play texture special role 47-48
3.4.3 as much as possible so that the vertex converter and fragment shader load balancing 48
3.4.4 careful selection of the appropriate data type 48
3.4.5 to make use of vector data types 48
3.4.6 full advantage of unified parameters (Uniform) 48
3.4.7 to make use of the standard library functions 48-49
3.5 This chapter Summary 49-50
4 vertices converter and fragment shader algorithm instance 50-54
4.1 vertex converter to simulate three-dimensional water waves 50-51
4.1.1 The basic idea of ??three-dimensional wave simulation 50
the
the transform algorithm 4.1.2 vertices 50-51
4.1.3 Effect Picture 51
4.2 using fragment shaders calculated anisotropic lighting 51-54
4.2.1 The basic idea of ??calculating anisotropic lighting 51-52
4.2.2 fragment coloring algorithm 52-53
4.2.3 Effect Picture 53-54
5 Conclusions and Prospects 54-55
The main conclusions of the
5.1 54
5.2 on subsequent research outlook 54-55
Acknowledgements 55-56
the
References 56-59
the
Appendix A: of papers published during the master's degree directory 59-60
Appendix B: to participate in the research projects of the master's degree during 60
Related dissertations
- Research and Realization of Skeleton Engine Based on GPU
- Design of Graphics Processing Unit for Embedded Systems
- Research of Efficient Computing Method on GPU-based LS-SVM
- Research on Key Technologies of Network Traffic Analysis and System Implementation
- A Study of GPU-based Parallel Learning to Rank
- Optimization of CUDA-based Parallel SOM Algorithm and Its Application
- Research on GPU General Computing on Text Classification
- Research on GPU-based Flame Effects Technology
- Research on Fast Method for Triangular Mesh Recnostruction
- Research and Implementation of FIR Filtering Parallel Algorithm Based on GPU
- Research on Multimodal Visualization of Heart
- Image Super-resolution on Improvig Motion Estimation
- Design and Implementation of Image Matching Based Wavelet Transform
- Research on Osteosarcoma Medical Image Analysis System
- Design and Implementation of Parallel Image Processing Algorithms Based on GPU
- Design and Realization of2D Graphics Acceleration Module
- Research on Text Detecting and Removal in Video Image Based on CUDA
- Rapid Implementation of the Small Infrared Target Detection Algorithm on CUDA
- Parallel Face Detection CUDA Accelerating
- Research on Boundary Face Method Base on GPU-acceleration