Font Size: a A A

Research On Soft Shadow Algorithm Based On Shadow Mapping

Posted on:2024-08-05Degree:MasterType:Thesis
Country:ChinaCandidate:N WangFull Text:PDF
GTID:2568307058453264Subject:Master of Electronic Information (Professional Degree)
Abstract/Summary:PDF Full Text Request
In the current field of computer graphics,shadow rendering is a popular research topic,and many researchers have proposed various related algorithms.However,currently popular shadow algorithms cannot balance the real-time performance and visual effects of shadow rendering well,especially when occluders in virtual environments have complex occlusion relationships,the complexity of shadow rendering increases due to the need to compute complex object occlusion relationships,making it impossible to produce normal and correct soft shadows while ensuring real-time performance.Therefore,this paper will conduct research and analysis on enhancing shadow rendering quality while ensuring real-time performance.In view of the above research objectives,this paper studies the related algorithms of soft shadow rendering.Through the analysis and comparison of various shadow algorithms,because the implementation process of the layered variance shadow map algorithm based on shadow mapping is relatively simple,and it is a linear algorithm,it can be filtered in the stage of generating shadow maps,which is more in line with this paper.The research content,so the algorithm is studied,and the algorithm is improved.This algorithm has good real-time performance,but in scenes with complex occlusion relations,it usually produces wrong and abnormal artifacts due to uneven layering.A soft shadow generation algorithm combining the Lloyd k-means clustering algorithm and the hierarchical variance shadow map algorithm.By using the clustering algorithm to determine the correct layer segmentation point and realize the uniform layering of the layer,and the algorithm is verified,the final experimental results show that the algorithm in this paper eliminates the incorrect lighting formed by the original algorithm when drawing shadows Gradient artifacts,and the real-time requirement of 30 frames per second is guaranteed.Since the layered variance shadow map algorithm can perform pre-filtering,this paper also proposes a hybrid algorithm that combines box filtering technology with Gaussian filtering.The algorithm can adaptively reduce the sampling rate to improve the filtering speed,and also guarantees Blur effect for shadow edges.The final experimental results show that the algorithm proposed in this paper reduces the time consumption while ensuring the blur effect,and achieves the purpose of this experiment.
Keywords/Search Tags:Soft shadow, variance shadow mapping, box filter, k-means clustering algorithm
PDF Full Text Request
Related items