Computer Engineering and Applications ›› 2012, Vol. 48 ›› Issue (1): 199-201.

• 图形、图像、模式识别 • Previous Articles     Next Articles

Improved ray casting algorithm based on GPU programming

KANG Jianchao, KANG Baosheng, FENG Jun, WANG Guodong, TANG Bin, ZHAO Jiandong   

  1. School of Information Science and Technology, Northwest University, Xi’an 710127, China
  • Received:1900-01-01 Revised:1900-01-01 Online:2012-01-01 Published:2012-01-01

一种改进的基于GPU编程的光线投射算法

康健超,康宝生,冯 筠,王国栋,唐 斌,赵建东   

  1. 西北大学 信息科学与技术学院,西安 710127

Abstract: For the low sampling efficiency and poor sampling efficiency in the traditional ray casting algorithm, a volume rendering algorithm with a new sample synthesis function is proposed. This algorithm applies Blinn-Phong illumination model and uses early opacity termination. It’s implemented by vertex programs and fragment programs in Cg language. The results of experiment show that this algorithm can not only enhance the effect of traditional ray-casting algorithm, but also accelerate the speed of the algorithm.

Key words: volume rendering, ray casting, Blinn-Phong illumination model, Graphic Processing Unit(GPU)

摘要: 针对传统光线投射算法采样效率低、绘制精度差等缺点,提出一种新的体绘制算法,所给算法采用新的采样合成函数,并结合经典的Blinn-Phong光照模型,采用不透明度提前截止判断光线终止。整个过程使用Cg语言编写顶点程序和片段程序来实现。实验结果表明算法既可以增强传统光线投射算法的绘制效果,也可以加快算法的速度。

关键词: 体绘制, 光线投射算法, Blinn-Phong光照模型, 图形处理器