基于OSG的镜面反射特效的实现  被引量:1

Implementation of Mirror Reflection Effect Based on OSG

在线阅读下载全文

作  者:曹莉[1] 李绍彬[2] 申闫春[1] 

机构地区:[1]北京信息科技大学,北京100192 [2]中国传媒大学,北京100024

出  处:《计算机仿真》2009年第8期208-211,215,共5页Computer Simulation

基  金:北京市教育委员会科技计划项目(KM200811232006)

摘  要:针对虚拟现实领域中如何提高渲染性能的问题,提出采用OSG(Open Scene Graph)图形开发接口实现镜面反射特效。由于镜面反射特效中的反射映像需通过绘制被反射物体的镜像拷贝来实现,而OSG的场景图技术支持对象实例的重用,它可以在一次加载几何体模型的情况下,给模型添加多个父节点,用以绘制不同状态的模型。同时,OSG采用StateSet类管理渲染状态,每个StateSet对象可以自动优化状态设置,使状态转变量最小,从而提升渲染性能。实验证明,用OSG开发库可以快速模拟出真实的镜面反射现象,并有效避免了冗余状态的设置。In view of the problem of how to improve the render performance in the virtual reality fields ,this paer presents API of OSG( Open Scene Graph) to realize the special effect of mirror reflection. Because the image of the effect is the copy of the reflected geometry mirrored, and the scene graph of OSG can support reusing the object instanced ,it may load geometry model only once ,then add some parent nodes to the model ,finally draw models with different states. Meanwhile , the StateSet class of OSG can manage the render state , every StateSet object may optimize the state set automatically , minimize the times of switching state , and improve the render performance. The experiment proved that the real phenomenon of mirror reflection can be simulated via the development library of OSG , and redundant state sets are avoided

关 键 词:开放式视景图形 镜面反射 场景图 

分 类 号:TP317.4[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象