摘要
当前的室内点光源阴影生成方法无法计算每个采样点的光照强度,且没有考虑阴影背景颜色影响,导致该方法应用具有局限性,且耗时较长。提出虚拟现实环境室内点光源阴影实时生成方法。在无障碍物和有障碍物情况下获取点光源位置信息;建立光强衰减函数,通过标志球,获取照射区域的点光源采样点,结合特征矢量,计算出每个采样点的光照强度;构建虚拟点光源集合,确定光源的膨胀与腐蚀区域,设定融合因子,经过多次膨胀腐蚀操作,计算阴影部分颜色,实时生成点光源阴影;将对数分割与平均分割算法相结合得出最佳分割点,调节采样距离,避免阴影出现锯齿走样现象。仿真结果证明,所提方法适应性较好,且执行速度较快。
The current shadow generation method of indoor point light source can not calculate the illumination intensity of each sampling point,and does not consider the influence of shadow background color,which makes the application of this method limited and takes a long time.This study proposes a real-time generation method of indoor point light shadow in a virtual reality environment.The position information of the point light source is obtained without or with obstacles.The light intensity attenuation function is established,and the sampling points of the point light source in the illumination area are obtained through the marker ball.Combined with the feature vector,the light intensity of each sampling point is calculated.The virtual point light source set is constructed,the expansion and corrosion areas of the light source are determined,and the fusion factor is set.After several expansion and corrosion operations,the color of the shadow part is calculated,and the shadow of the point light source is generated in real-time.The logarithmic segmentation and average segmentation algorithm are combined to get the best segmentation point,and the sampling distance is adjusted to avoid aliasing.Simulation results show that the proposed method has good adaptability and fast execution speed.
作者
杜状
徐鹤桐
王媛
DU Zhuang;XU He-tong;WANG Yuan(College of Humanities&Information Changchun University of Technology,Changchun Jilin 130000,China)
出处
《计算机仿真》
北大核心
2022年第8期190-194,共5页
Computer Simulation
基金
吉林省教育厅“十三五”社会科学项目(JJKH20181373SK)
新形势下混合教学模式在艺术设计专业教学中的应用研究(JGJX2021D499)
吉林省教育厅社会科学研究规划项目(JJKH20221283SK)。
关键词
虚拟现实环境
点光源
阴影实时生成
膨胀腐蚀
锯齿走样
Virtual reality environment
Point source
Shadow generation in real-time
Expansion corrosion
Sawtooth aliasing