检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:王彦[1]
出 处:《计算机工程》2011年第8期291-292,F0003,共3页Computer Engineering
摘 要:Direct3D提供的线性、指数与指数平方3种雾化参数可便捷地渲染场景,但仅有的参数限制了雾化的多样性。雾化因子在定义参数的公式中起决定作用,顶点着色器则具有单独渲染顶点的能力。为此,结合两者特性,提出一种雾化因子定义方法,并给出一个根据顶点高度、观察距离及雾的密度产生雾化效果的实例。实验结果表明,该方法突破了原有参数的限制,能灵活模拟现实中的雾化环境。Fog effect can enhance the realism and distance of scene.Linear,exponential and exponential-squared fog parameters are enumerated in Direct3D,and they make the real-time rendering rapid and convenient,however,the various transformations of fog are limited by the only three parameters.Fog factor is the key to define the formula of parameters,and vertex shader has the ability to render vertex separately.This paper discusses a way to reconstruct the formula of fog factor by combination of the features above,gives an example,which can implement the fog effect according to the altitude of scene,the distance between observer and scene and the density of fog.Experimental results show that the restriction of original parameters can be improved in this way,and fog effect in reality can be imitated freely.
关 键 词:Direct3D图形系统 顶点着色器 雾化因子 雾化效果
分 类 号:TP311.5[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.148.200.110