The Research and Implementation of CUDA-based Loop Mesh Subdivision Algorithm

Author
LvHuaFeng
Advisor
WangZhiYan , SuXinDong
School
South China University of Technology
Major
Software Engineering
Classification
TP391.41 Image recognition device
Degree
Master's thesis
Year
2010
Downloads
111
Citations
0

Request the full text

Abstract

As an important part of Surface Modeling, Mesh Subdivision used to smooth an initial control mesh several times using some method, until up to the specified degree of smoothness. Loop Scheme is a typical representative of Mesh Subdivision, which been applied to building models as to its simple implementation, accurate calculating of Limit point and tangent plane.The shortcomings of the CPU-based Loop Subdivision are increasingly obvious as models are more and more complex. For a mesh consist of more than 40,000 vertexes and 80,000 triangular faces, need 7.69 hours to complete subdivision; but real model much more complex, so the efficiency is not unacceptable. In view of this, we propose CUDA-based Loop subdivision scheme on the GPU, to improve the subdivision efficiency.Compared to CPU, GPU has been designed for compute-intensive, highly parallel computing. CUDA just take full advantage of parallel capability of GPU, which is a kind of scalable parallel computing model launched by the NVIDIA. The execute model of single instruction, multiple threads (SIMT) of CUDA is very suitable for parallel to execute the same operations for large-scale data; So CUDA-based Loop subdivision can subdivision real-time for simple models; also can significantly accelerate subdivision for complex models.Based on CUDA programming model and Pinned memory storage model, we firstly implemented entirely GPU-based Loop scheme. For model consist of 19,012 triangular faces just need 1.571778 seconds; while CPU-based need 70.245313 seconds, efficiency promoted by 44 times. The core function would access violation when the three preparations that need Multi-Threads concurrent access the same memory in the GPU. So in optimization chapter, Firstly, storage face array in textures, get a higher efficiency, but does not solve conflicts. Then, move preparations to the CPU, solveed the problem, but reduce the efficiency. Last, use local information to build face neighbor, perfectly solve the problem and promote efficiency.Experimental results show that the optimized algorithm can significantly accelerated the subdivision process of complex models. The previous model that need 7.69 hours on the CPU, only need 58.23 seconds on the GPU, efficiency promoted by 475 times.

Table of contents

Abstract 5-6 Abstract 6-9 first chapter 9-19 1.1 Profile of the grid segments 10-13 1.1.1 Subdivision history 10-12 1.1.2 segmentation method of classification 12-13 1.2 Loop subdivision method the mathematical foundations of 13-15 1.2.1 geometric point of generation rules 14-15 1.2.2 topological connection rules 15 1.3 general purpose parallel computing architecture 15-17 1.3.1 CUDA Introduction 16-17 1.3.2 CUDA-enabled execution mode 17 1.4 In this paper, the content 17-19 1.4.1 of the traditional GPU-based segmentation algorithm 18 1.4.2 CUDA-based subdivision algorithm 18-19 the second chapter of the relevant knowledge and work to prepare 19-26 2.1 model data preparation 19-21 2.1.1 Universal grid data acquisition interface 19-20 2.1.2 access to the data model data structure 20 2.1.3 access to model data class diagram 20-21 2.2 CUDA programming model 21-22 2.3 select storage mode 22-24 2.4 programmable shaders 24-25 2.5 Summary 25-26 Chapter III Loop subdivision algorithm on the CUDA design 26-37 3.1 calculate the new vertex 28-32 3.1.1 to calculate the new vertex number 28-31 3.1.2 to calculate the new vertex 31-32 3.2 calculate the new surface and modify the original surface 32-36 3.2.1 before the new surface preparation work 33-35 3.2.2 calculate the new surface and modify the original surface 35-36 3.3 to modify the original vertex 36 3.4 Summary 36-37 Chapter IV algorithm 37-43 4.1 kernel function to perform configuration determine 37-39 framework for the preparation of the 4.2 kernel function 39-40 4.3 kernel function CreateNewVertex the implementation of 40-41 4.4 model colors calculated 41-42 4.5 Summary 42-43 the fifth chapter of the algorithm testing and experimental results 43-46 5.1 test environment 43 5.2 Experimental results 43-44 5.3 performance improvements 44-45 5.4 Summary 45-46 Chapter VI algorithm optimization 46-60 6.1 texture memory storage array of the face of concurrent access 46-50 6.1.1 texture memory storage surface an array of steps 47-48 6.1.2 Experimental results 48-50 6.2 CPU pretreatment preparations 50-54 6.2.1 to calculate all the surface of the part surface neighbor 50 6.2.2 calculate the vertex point neighbors 50-52 6.2.3 Experimental results 52-54 6.3 using the local information to establish face adjacency relations 54-59 6.3.1 limit the scope of the establishment of surface neighbors 55-57 6.3.3 Experimental results 57-59 6.4 Summary 59-60 conclusions 60-61 References 61-64 research results obtained during the master's degree 64-65 Acknowledgements 65

Related dissertations

  1. Research of Efficient Computing Method on GPU-based LS-SVM
    BaoWenLei ·Harbin Institute of Technology ·2012 ·Master's thesis
  2. Optimization of CUDA-based Parallel SOM Algorithm and Its Application
    ZhangJinChao ·Harbin Institute of Technology ·2012 ·Master's thesis
  3. Research on GPU General Computing on Text Classification
    LiZhiLong ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  4. Research and Implementation of FIR Filtering Parallel Algorithm Based on GPU
    XiaoZuo ·Northeastern University ·2011 ·Master's thesis
  5. Research on Text Detecting and Removal in Video Image Based on CUDA
  6. Rapid Implementation of the Small Infrared Target Detection Algorithm on CUDA
  7. Parallel Face Detection CUDA Accelerating
  8. Research on Boundary Face Method Base on GPU-acceleration
    YuLieXiang ·Hunan University ·2013 ·Master's thesis
  9. Research on Applying GPU Parallel Computation to Medical Image Processing
    LiYingMin ·Tianjin University ·2012 ·Master's thesis
  10. Research of Image Registration and Mosaic Technology Based on GPU
    ZouGang ·Tianjin University ·2012 ·Master's thesis
  11. Research and Implementation of Parallel Resampling Algorithm Based on GPU
    YuYinPing ·Northeastern University ·2013 ·Master's thesis
  12. The CAPTCHA Machine Pattern Recognition Technology Based on GPU Research and Application
  13. Study of Visual Tracking Algorithm Based on CUDA
    ZhangPing ·Beijing Jiaotong University ·2014 ·Master's thesis
  14. Improved Push-Relabel Algorithm for Graph Cuts And Design and Implementation on the GPU
    LiZuo ·Beijing Jiaotong University ·2014 ·Master's thesis
  15. Research and Implementation of Hashalgorithm Library on GPU
    LiKai ·South China University of Technology ·2013 ·Master's thesis
  16. Design and GPU Implementation of the DSP Algorithm in the Coherent Receiver of Fiber Communication
  17. Research of Real-time Acoustic Imaging Array Positioning Technology
    YuLiZhi ·Xiangtan University ·2013 ·Master's thesis
  18. Research on Simulation Methods Based on GPU for Small Delay Faults
    PengMingMing ·Hunan University ·2013 ·Master's thesis
  19. Hyperspectral image mixed pixel decomposition parallel optimization based on GPU
  20. High-Order Difference Forward Modeling and Reverse-Time Migration Based on CUDA
    XiangFei ·Ocean University of China ·2013 ·Master's thesis