首页 | 本学科首页   官方微博 | 高级检索  
相似文献
 共查询到19条相似文献,搜索用时 125 毫秒
1.
郝钰  李毅 《计算机工程与设计》2012,33(10):3882-3886
为在大规模场景中产生良好的阴影效果,提出一种基于层的改进型CSM(级联阴影图)算法,通过GPU(可编程图形处理硬件)、几何着色器和层渲染的使用,分割视椎体,对每个视椎体生成阴影图,渲染阴影,解决传统的单Pass阴影图算法的走样问题和多Pass的阴影图算法CSM由于多Pass的原因使得应用的帧率几乎是以Pass数线性降低,而限制了其在大规模场景中应用的问题。实验结果表明该方法在大规模仿真系统(塔台模拟系统)下能够高效真实的渲染出阴影效果,有较高的绘制效率和真实感。  相似文献   

2.
为了解决大规模场景中阴影生成的真实性和实时性问题,通过平均分割和对数分割相结合的方法,利用平行于视觉投影面的分割面将视截体划分成不同的深度部分;然后对每个分割部分生成对应的阴影图;最后利用多个阴影图代替单个阴影图进行渲染。这种方法既减少了运行时的缓冲空间,又提高了阴影质量,尤其适合于动态大规模环境中实时阴影的生成。用VS2005和OpenSceneGraph实现了算法的绘制,达到满意的视觉效果和生成速度。  相似文献   

3.
李军 《福建电脑》2014,(5):24-26
阴影绘制中,阴影图算法因不依赖于场景,绘制效率高已成为了大规模实时阴影绘制的主流算法。针对平行分割阴影图算法存在首个分割区域过小,而方差阴影图存在"光渗"问题,细致分析了在大规模场景中,实时阴影绘制的各种改进算法,提出了一种基于平行分割阴影图算法和方差阴影图算法结合的混合算法。实验结果表明,新的混合算法既提高了阴影绘制效率,又明显改善了阴影的质量。  相似文献   

4.
基于阴影映射算法,提出一种利用反向投影实现的实时软阴影的新算法。算法对每个光源都产生对应的阴影图,使用阴影图作为对场景的离散化表示,引入可见因子来计算场景点的亮度信息,并采用GPU片元着色、层次阴影图、自适应精度等方法加速阴影渲染。实验表明,算法非常适合于实时渲染复杂、动态的场景,可以很好地处理遮挡物的融合,并且很容易在可编程图形硬件上实现。  相似文献   

5.
吴婷  程亚奇  张延军 《计算机工程与设计》2011,32(10):3435-3437,3469
为解决透视阴影图算法中,物体被非线性比例导致愈加明显的自阴影或表面波纹现象,提出一种基于GPU的实时反走样透视阴影图改进算法。该算法结合透视阴影图算法以及D.Weiskopf的dual depth layers算法,通过采用GPU深度剥离技术采样场景的双层深度值信息,并引入自适应偏移量zbias来计算场景的深度偏移量。该算法采用C语言实现,同时使用GPU顶点渲染器和像素渲染器编程有效避免程序复杂度。实验结果表明,该改进算法较好解决了透视阴影图的自阴影问题,提高了渲染阴影质量。  相似文献   

6.
GPU在实时阴影绘制中的应用   总被引:1,自引:1,他引:0  
实时阴影在增强三维场景真实感方面起着非常重要的作用。阴影体算法是实时阴影绘制中效果非常理想的一种方法。但是随着场景复杂度的增加,该算法计算量比较大,将导致绘制效率的降低。另一方面,随着可编程GPU技术的发展,GPU的渲染速度远远大于CPU,为提高三维场景的渲染效率提供了更大的空间。在此基础上,介绍了一种在GPU上生成阴影体的方法,加速实时阴影绘制。利用图形硬件的图形处理单元(GPU)的运算能力和可编程性,将生成阴影体的大量计算从CPU转移到GPU,从而有效地提高实时阴影的绘制效率。  相似文献   

7.
提出了一种实时全局光照的计算方法。该方法支持任意视点下动态光源的一次间接光照计算,并且物体表面材质可实时编辑,该算法预计算了各面片上的形状因子来解决遮挡问题,并记录形状因子较大的重要性面片作为间接光源。渲染时先从光源方向对场景记录了一个扩展的阴影图,包含了光源照射到的面片ID和其光通量,再根据采样好的间接光源来计算间接光照。使用CUDA,整个光照计算过程在GPU中完成,可以对静态场景进行实时渲染,并能达到逼真的渲染效果。  相似文献   

8.
在三维阴影绘制中,平行分割阴影图( PSSM)算法存在第一个分割区域过小而导致锯齿现象的缺陷,方差阴影图( VSM)算法则会引起严重的光渗现象。针对以上不足,提出一种结合PSSM与VSM的混合算法。通过设置扩大系数解决PSSM算法首个分割区域不足的问题,加入模糊处理,重复渲染过渡区域,以减少边界锯齿现象,采用MRT技术减少VSM算法在渲染时引起的光渗现象。由分割方法、渐进方式、纹理大小及混合算法阴影图绘制效果等方面的实验结果表明,与PSSM等算法相比,该算法绘制的阴影图质量有较大提高。  相似文献   

9.
针对带有微结构表面的几何模型建模困难、模型复杂度高,导致现有阴影绘制算法效率差的问题,提出一种基于高度梯度图的阴影实时绘制方法.为实现实时渲染,首先给出一种微结构描述模型,通过将微结构高度场映射到低精度模型表面来描述复杂微结构模型;然后定义微结构高度梯度图,并据此构建可见点的局部最高点集合.在阴影绘制阶段,通过实时计算梯度空间局部最高点集合遮挡来生成细节阴影.整个阴影绘制算法在图像空间完成,较好地利用了延迟着色的思想和GPU并行计算的特点,可呈现可变形物体在动态场景中的自阴影效果.  相似文献   

10.
GPU实时构建四叉树的快速地形渲染算法   总被引:3,自引:0,他引:3  
针对传统四叉树场景渲染CPU占用率高、带宽开销大的缺陷,提出一种适合于GPU实现的四叉树场景分割和渲染算法.利用纹理和像素着色器实时构建四叉树,使用几何着色器实现GPU对四叉树的遍历和场景分割;针对已有的动态构建算法中裂缝消除算法难以用GPU实现的缺点,通过在四叉树构建中引入"过渡集"的概念,有效地消除了不同分辨率层次之间可能出现的裂缝.实验结果证明,与传统的动态构建算法相比,文中算法易于GPU实现,无需CPU干预,并降低了带宽开销,可以达到较高的帧速率.  相似文献   

11.
Owing to its generality and efficiency.Cascaded Shadow Maps(CSMs) has an important role in real-time shadow rendering in large scale and complex virtual environments.However,CSMs suffers from redundant rendering problem—objects are rendered undesirably to different shadow map textures when view direction and light direction are not perpendicular.In this paper,we present a light space cascaded shadow maps algorithm.The algorithm splits a scene into non-intersecting layers in light space,and generates one shadow map for each layer through irregular frustum clipping and scene organization,ensuring that any shadow sample point never appears in multiple shadow maps.A succinct shadow determination method is given to choose the optimal shadow map when rendering scenes.We also combine the algorithm with stable cascaded shadow maps and soft shadow algorithm to avoid shadow flicking and produce soft shadows.The results show that the algorithm effectively improves the efficiency and shadow quality of CSMs by avoiding redundant rendering. and can produce high-quality shadow rendering in large scale dynamic environments with real-time performance.  相似文献   

12.
Shadow maps sample scene visibility in the light source space and offer an efficient solution to generate hard shadows.However,they suffer from aliasing artifacts because of discretization errors,inadequate resolution and projection distortion.In this paper,we propose the shadow geometry map method,where a shadow depth map is augmented by storing geometry information about scenes.This leads to a new shadowrendering algorithm that combines a supersampling filter,a geometry-aware reconstruction kernel and an irregular sampling filter.Our method produces high quality alias-free and subpixel supersampling shadow rendering and retains the simplicity and the efficiency of shadow maps.We show that the algorithm pipeline is efficiently parallelized using current programmable graphics hardware and that our method is capable of generating high quality hard shadows.  相似文献   

13.
Shadow mapping has been subject to extensive investigation, but previous shadow map algorithms cannot usually generate high-quality shadows with a small memory footprint. In this paper, we present compressed shadow maps as a solution to this problem. A compressed shadow map reduces memory consumption by representing lit surfaces with endpoints of intermediate line segments as opposed to the conventional array-based pixel structures. Compressed shadow maps are only discretized in the vertical direction while the horizontal direction is represented by floating-point accuracy. The compression also helps with the shadow map self-shadowing problems. We compare our algorithm against all of the most popular shadow map algorithms and show, on average, order of magnitude improvements in storage requirements in our test scenes. The algorithm is simple to implement, can be added easily to existing software renderers, and lets us use graphics hardware for shadow visualization.  相似文献   

14.
Generating soft shadows in real time is difficult. Exact methods (such as ray tracing, and multiple light source simulation) are too slow, while approximate methods often overestimate the umbra regions. In this paper, we introduce a new algorithm based on the shadow map method to quickly and highly accurately render soft shadows produced by a light source. Our method builds inner and outer translucent fins on objects to represent the penumbra area inside and outside hard shadows, respectively. The fins are traced into multilayered light space maps to store illuminance adjustment to shadows. The viewing space illuminance buffer is then calculated using those maps. Finally, by blending illuminance and shading, a scene with highly accurate soft shadow effects is produced. Our method does not suffer from umbra overestimation. Physical relations between light, objects and shadows demonstrate the soundness of our approach.  相似文献   

15.
In this paper we present a novel image based algorithm to render visually plausible anti‐aliased soft shadows in a robust and efficient manner. To achieve both high visual quality and high performance, it employs an accurate shadow map filtering method which guarantees smooth penumbrae and high quality anisotropic anti‐aliasing of the sharp transitions. Unlike approaches based on pre‐filtering approximations, our approach does not suffer from light bleeding or losing contact shadows. Discretization artefacts are avoided by creating virtual shadow maps on the fly according to a novel shadow map resolution prediction model. This model takes into account the screen space frequency of the penumbrae via a perceptual metric which has been directly established from an appropriate user study. Consequently, our algorithm always generates shadow maps with minimal resolutions enabling high performance while guarantying high quality. Thanks to this perceptual model, our algorithm can sometimes be faster at rendering soft shadows than hard shadows. It can render game‐like scenes at very high frame rates, and extremely large and complex scenes such as CAD models at interactive rates. In addition, our algorithm is highly scalable, and the quality versus performance trade‐off can be easily tweaked.  相似文献   

16.
阴影图是当前实时阴影绘制中的一种经典算法。该算法基于图像空间,当有限分辨率的阴影图映射到较大场景中时,就会由于采样不足造成锯齿形变走样。提出了一种实时的反走样阴影图算法,该算法首先获取当前视点所能够看到的场景范围,然后绘制该范围内的阴影图,并映射到场景中生成实时阴影。该方法同经典的阴影图算法相比,避免了场景中不必要的阴影绘制,提高了阴影图的利用率,反走样的效果很好。而且,该方法只需要绘制一到两幅阴影图,算法的实时性很强,可以满足一个上百万面片的大规模场景中实时阴影绘制的需要。  相似文献   

17.
方差阴影图中的光渗现象消除算法   总被引:3,自引:2,他引:1  
方差阴影图算法使用概率的方法计算像素被遮挡的上限概率,通过对深度图滤波的方法来有效地减少阴影图算法中的走样问题,但在深度比较复杂的场景中方差阴影图算法会出现光渗现象,即在应该是阴影的区域却有了亮度.文中使用最小-最大阴影图来辅助消除方差阴影图中的光渗现象,在对深度纹理进行滤波的同时生成一个最小-最大阴影图;在实时绘制场景时,利用最小-最大阴影图来辅助判断当前片元是否完全处在阴影区域内部,由此生成更真实、更准确的阴影.该算法可以很容易地添加到已有的方差阴影图算法的片元处理程序中,并且不会对原有阴影的柔和边界以及绘制的帧率产生影响.  相似文献   

18.
阴影图算法可以简单、快速地渲染硬阴影,但该算法渲染的硬阴影会在边缘区域出现锯齿状走样。受此影响,基于阴影图算法渲染的柔和阴影,在小尺寸半影区域依然可能会出现锯齿状走样。因此,要渲染无走样的柔和阴影,需要精确计算阴影边缘区域的着色点对点光源的可见性。深度划分阴影体算法可以精确地计算着色点对点光源的可见性,但其不仅在效率上不及阴影图算法,还无法实现柔和阴影渲染。针对上述问题,提出一种融合阴影图和深度划分阴影体的阴影渲染算法,对处于阴影边缘区域的着色点,使用深度划分阴影体算法精确计算该着色点对点光源的可见性;对其他着色点,使用阴影图算法快速计算该着色点对点光源的可见性。最后,将着色点的可见性值存储在可见性图中并滤波即可实现无走样柔和阴影的渲染。  相似文献   

19.
This paper introduces an accurate real‐time soft shadow algorithm that uses sample based visibility. Initially, we present a GPU‐based alias‐free hard shadow map algorithm that typically requires only a single render pass from the light, in contrast to using depth peeling and one pass per layer. For closed objects, we also suppress the need for a bias. The method is extended to soft shadow sampling for an arbitrarily shaped area‐/volumetric light source using 128‐1024 light samples per screen pixel. The alias‐free shadow map guarantees that the visibility is accurately sampled per screen‐space pixel, even for arbitrarily shaped (e.g. non‐planar) surfaces or solid objects. Another contribution is a smooth coherent shading model to avoid common light leakage near shadow borders due to normal interpolation.  相似文献   

设为首页 | 免责声明 | 关于勤云 | 加入收藏

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