计算机科学 ›› 2014, Vol. 41 ›› Issue (Z6): 181-183.

• 模式识别与图像处理 • 上一篇    下一篇

基于逆向光线跟踪与图像绘制的运动水面反射场景绘制

李纲,罗玉军   

  1. 川北医学院基础医学院计算机教研室 南充637007;川北医学院基础医学院计算机教研室 南充637007
  • 出版日期:2018-11-14 发布日期:2018-11-14
  • 基金资助:
    本文受四川省教育厅科研项目(13ZA0094),川北医学院科研发展计划资助

Rendering of Moving Water Reflection Based on Backward Ray Tracing and Image Based Rendering

LI Gang and LUO Yu-jun   

  • Online:2018-11-14 Published:2018-11-14

摘要: 提出了一种结合图像绘制和逆向光线跟踪的绘制算法来生成水面反射场景。首先,采用逆向光线跟踪方法获得视点所见水面反射场景点;然后在反射光线与场景相交点求解时,采用场景图像平面搜索,并将搜索到的图像平面象素点反向投影到观察坐标系求取光线与场景物体相交点以获取反射物颜色;最后按照Fresnel公式计算获得视点所见的水面上某点的颜色,通过对整个图像平面进行遍历,获得水面反射场景。使用该方法绘制的水面反射场景能够物理真实地模拟水面反射效果。对于波动水面附近或漂浮于水面上物体的反射场景,该方法较其它方法能够更好地获得物理真实的绘制结果。

关键词: 水面反射,图像绘制,逆向光线跟踪 中图法分类号TP391.7文献标识码A

Abstract: A water reflection algorithm was presented based on image based rendering (IBR) and backward ray tracing.At first,backward ray tracing method was used to find the reflection point set of water surface which can be seen by eye.Then the scene image plane research was used to find out the cross point of reflected light ray and the scene objects and the cross point in the image plane was projected inversely to the view coordination system to find the color of reflected things.Finally,the point color which can be seen by eye was calculated by Fresnel equation.The algorithm can physically simulate the water reflection effect especially when there are things nearby or floating on the moving water.

Key words: Water reflection,IBR,Reverse ray tracing

[1] Johanson C.Real-time water rendering [D].Master of Science thesis,2004
[2] 李起成,等.动态天空环境下的实时海洋渲染[J].计算机辅助设计与图形学学报,2007,19(2):172-177
[3] Natterlund M.Water Surface Rendering[D].Master’s Thesis in Computing Science,Umea University,2008
[4] 任鸿翔,等.大规模海浪场景的真实感绘制[J].计算机辅助设计与图形学学报,2008,0(12):1617-1622
[5] 李一兵,等.基于Irrlicht引擎的实时浅水效果模拟[J].计算机工程与科学,2011,33(8):102-105
[6] 谭同德,等.应用折射反射纹理的实时水面仿真技术[J].郑州大学学报:工学版,2011,2(2):88-92
[7] 张文辉,等.实时水面渲染[J].计算机与数字工程,2011,9(3):114-117
[8] McMillan L.An Image Based Approach to Three DimensionalComputer Graphics[D].University of North Carolina,Chapel Hill,NC,USA,1997
[9] Popescu V,et al.The WarpEngine:An architecture for the post-polygonal[C]∥Proc the SIGGRAPH’2000.New Orleans,La,2000:433-442
[10] Arvo J.Backward Ray Tracing[C]∥SIGGRAPH’86Course Note,Developments in Ray Tracing.1986:259-263
[11] Christen M.Ray Tracing on GPU[D].Master’s thesis,University of Applied Sciences Basel,2005
[12] Karlsson F,Ljungstedt C J.Ray Tracing Fully Implemented on Programmable Graphics Hardware[D].Master’s thesis,Chalmers University of Technology,2004
[13] Wikipedia.Fresnel equations [EB/OL].http://en.wikipedia.org/wiki/Fresnel_equations

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!