首页 | 本学科首页   官方微博 | 高级检索  
     检索      

模拟器视景系统中太阳及镜头光晕的绘制
引用本文:任鸿翔,金一丞,尹勇.模拟器视景系统中太阳及镜头光晕的绘制[J].大连海事大学学报(自然科学版),2007,33(2):124-128.
作者姓名:任鸿翔  金一丞  尹勇
作者单位:大连海事大学航海动态仿真与控制实验室 辽宁大连116026
基金项目:国家“973”计划基金资助项目(2002CB312103)
摘    要:为解决现有航海模拟器视景系统中对太阳及镜头光晕的模拟不完善、无法显示太阳、不能控制太阳及镜头光晕效果等问题,提出基于OpenGL和Cg绘制太阳及镜头光晕的方法.讨论光晕分布、纹理及融合等技术,并引入光晕边界的概念,实现光晕的淡入淡出.采用光线投射方法判断太阳与其他物体的遮挡关系,解决了z缓冲区方法无法判断视见体外物体的可见性问题,并利用顶点着色器技术对该方法进行优化.结果显示,该法简单,易于实现,绘制效果真实,满足航海模拟器对视景系统的实时性和逼真度要求.

关 键 词:航海模拟器  视景系统  镜头光晕  光晕边界  顶点着色器
文章编号:1006-7736(2007)02-0124-05
修稿时间:2006-10-09

Rendering the sun and lens flare in visual system of simulator
REN Hong-xiang,JIN Yi-cheng,YIN Yong.Rendering the sun and lens flare in visual system of simulator[J].Journal of Dalian Maritime University,2007,33(2):124-128.
Authors:REN Hong-xiang  JIN Yi-cheng  YIN Yong
Institution:Laboratory of Marine Dynamic Simulation and Control, Dalian Maritime University, Dalian 116026, China
Abstract:A new method of rendering the sun and lens flare based on OpenGL and Cg was presented to make up the imperfections which the sun was not rendered and the effect of lens flare could not be controlled in present marine simulator.The techniques were discussed including the flare's distribution,texture and blending.A conception of flare border was applied to achieve the fade-in and fade-out of lens flare.When the sun was between the flare border and the screen border,the flare's intensity was varying.As z-buffer algorithm could not judge the visibility of objects which is outside viewing volume,the ray casting algorithm was adopted to solve the visibility of the sun.The algorithm has been implemented within vertex shader, and can meet the real-time requirements of marine simulator.
Keywords:marine simulator  visual system  lens flare  flare border  vertex shader
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号