节点文献

基于OSG的镜面反射特效的实现

Implementation of Mirror Reflection Effect Based on OSG

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 曹莉李绍彬申闫春

【Author】 CAO Li 1,LI Shao-bin 2,SHEN Yan-chun 1(1.Beijing Information Science & Technology University,Beijing 100192,China;2.Communication University of China,Beijing 100024,China)

【机构】 北京信息科技大学中国传媒大学

【摘要】 针对虚拟现实领域中如何提高渲染性能的问题,提出采用OSG(Open Scene Graph)图形开发接口实现镜面反射特效。由于镜面反射特效中的反射映像需通过绘制被反射物体的镜像拷贝来实现,而OSG的场景图技术支持对象实例的重用,它可以在一次加载几何体模型的情况下,给模型添加多个父节点,用以绘制不同状态的模型。同时,OSG采用StateSet类管理渲染状态,每个StateSet对象可以自动优化状态设置,使状态转变量最小,从而提升渲染性能。实验证明,用OSG开发库可以快速模拟出真实的镜面反射现象,并有效避免了冗余状态的设置。

【Abstract】 In view of the problem of how to improve the render performance in the virtual reality fields,this paper 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.

【基金】 北京市教育委员会科技计划项目(KM200811232006)
  • 【文献出处】 计算机仿真 ,Computer Simulation , 编辑部邮箱 ,2009年08期
  • 【分类号】TP391.9
  • 【被引频次】4
  • 【下载频次】285
节点文献中: 

本文链接的文献网络图示:

本文的引文网络