计算机与现代化 ›› 2010, Vol. 1 ›› Issue (3): 15-4.doi: 10.3969/j.issn.1006-2475.2010.03.005

• 图像处理 • 上一篇    下一篇

基于多核处理器的三维场景并行化探讨

吴玮欣,陆达   

  1. 厦门大学计算机科学系,福建 厦门 361005
  • 收稿日期:2009-10-27 修回日期:1900-01-01 出版日期:2010-03-20 发布日期:2010-03-20

Research on Parallelization of Threedimensional Scene Based on Multicore Processors

WU Wei-xin,LU Da   

  1. Dept. of Computer Science, Xiamen University, Xiamen 361005, China
  • Received:2009-10-27 Revised:1900-01-01 Online:2010-03-20 Published:2010-03-20

摘要:

提高三维场景的运行速度一直以来都是程序开发人员需要面临的一大难题,随着面向主流应用的多核处理器的出现与普及,利用处理器提供的多个内核而不通过编写多线程的方法来提高程序的并行性成为了一种可能。本文介绍虚拟现实开发工具OpenGL和共享存储系统并行编程接口OpenMP;分析OpenGL绘制三维场景的一般过程;并以纹理映射为例着重探讨在OpenGL程序中使用OpenMP来提高程序并行性的方法。

关键词: 虚拟现实, 多核, OpenGL, OpenMP, 并行化

Abstract:

Improving the speed of threedimensional scene has always been a major challenge which programmers need to face. With the appearance and popularization of the multicore processor, using the cores on processor instead multithreading methods to improve parallelism of the program has become a possibility. This article introduces the development of virtual reality tools OpenGL and parallel programming interface OpenMP which is a sharedmemory systems, analyzes the general process of using OpenGL to draw up the threedimensional scene, and takes the texturemapping as an example to discuss how to used OpenMP in the OpenGL program to enhance the parallelism.

Key words: virtual reality, multicore, OpenGL, OpenMP, parallelization