文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > Real-time occlusion culling for models with large occluders
侵权投诉

Real-time occlusion culling for models with large occluders

Efficiently identifying polygons that are visible from a dynamic synthetic viewpoint is an important problem in computer graphics. Typically, visibility determination is performed using the z-buffer algorithm. As this algorithm must examine every triangle

single occluder and two consecutive viewpoints. Note that using the hierarchy exploits spatial coherence by avoiding further testing of nodes that are completely occluded (e.g., node 1) or that are completely visible (e.g., node 2). Temporal Coherence For a moving observer, the algorithm c

aches the occlusion relations{ a list of supporting and separating planes{ at each visited kD-tree node. When the viewpoint changes, the algorithm need only check existing occlusion relations, and update those kD-tree nodes whose visibility status has changed. For example, in Figure 10, nodes in the dark region (e.g., node 3) are checked against the occluder in both the traversals. For such nodes, the separating and supporting planes that are needed to determine their visibility status are computed only at the rst viewpoint and reused later. The cache entries corresponding to a node are maintained until the node is no longer involved in the visibility calculation (i.e., until an ancestor node becomes fully occluded or fully visible). Frustum Culling View frustum culling can be incorporated into the algorithm in a straightforward way, by rst checking whether the kD-tree node is inside the viewing frustum before invoking the visibility algorithm. However, any supporting and separating planes computed for nodes outside the viewing frustum are still retained in the cache so that they can be reused later. 3.1 Dynamic Occluder Selection The algorithm as described maintains the state of each kD-tree node with respect to a xed set of occluders. As the viewpoint moves, it is crucial to update this occluder set to contain those polygons that are\large" in the image, and therefore likely to occlude substantial portions of the model. Likewise, polygons that become small in apparent size should be ejected from the set. A simple metric for the occlusion potential of a polygon from a given position is the solid angle it subtends at that position. A reasonable estimate of solid-angle is the quantity

solid angle of the polygon, making it a useful approximation. First, larger polygons have larger area-angle. Second, the area-angle falls as the square of the distance from the viewpoint, as does subtended angle. Third, maximum area-angle occurs when the viewing direction D is\head-on" with the occluder, and falls with the dot product as the occluder is viewed obliquely. While this metric di ers from the solidangle in that it does not consider the actual shape of the occluder, it is much simpler to compute, and serves as a useful heuristic to identify large occluders near the viewpoint. A

O

V

D N

Figure 11: Parameters in the area-angle metric. Given a discretization of all possible viewing directions, the occluder preprocessing algorithm uses the area-angle metric to associate each kD-tree leaf and viewing direction with those k occluders likely to be most e ective from viewpoints in that leaf. The number of occluders k is a parameter supplied to the preprocessing stage. When interactive model viewing begins, the algorithm locates the kD-tree leaf which contains the initial viewpoint. The algorithm then uses the set of k occluders associated with the kD-tree leaf and discrete viewing direction closest to the current viewing direction. When the viewpoint move

s outside the kD-tree cell or the viewing direction changes substantially, the set of occluders is modi ed to correspond to the current viewing position and direction. Note that if the observer is moving smoothly, the set of occluders e ective from the current viewpoint is likely to be similar to the set of occluders e ective from the next viewpoint, and little or no changes need be made to the occluder set. 3.2 Detail Objects Much of the polygon complexity in urban and architectural models arises due to the presence of small\detail" objects (e.g., furniture in a building, foliage in a city). As they are also part of the kD-tree hierarchy, these objects may be culled by the hierarchical culling algorithm. Objects that are not culled are subjected to additional tests. Each such object is tested against occluders that are\near" the object (Figure 12). These tests can cull objects even if there are no large occluders near the viewpoint. 6

~~?A(N V )~ k2 kD~ where A represents the area of the occluder, N repre~ represents the viewing direction, sents the normal, V~ and D represents the vector from the viewpoint to the center of the occluder (Figure 11). This\area-angle" metric captures several properties of the subtended

上一页第6页

你可能喜欢

热门文档

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email