文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > 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

Visible (OccluderSet S, kD-Tree TestOcclusion (S, T, P )

;

Node

T,

Viewpoint

P,

PolygonSet

OS )

if (S does not occlude T ) then Gather (T; OS ); else if (T is occluded) then return; else if (T is a leaf) then Gather (T; OS ); else S 0= fg; for (Ai 2 S ) do if (Ai partially occludes S 0= S 0 0fAi g for each child T of T do

// all of subtree T is visible; report// all of subtree T is invisible; omit// conservative; report T as visible

T)

then

// determine occluder set S 0

0

Visible (S; T; P; OS ) 0 0

// apply S to subtrees of T

Figure 9: The visibility algorithm. 3 The Visibility Algorithm Applying the visibility test to every possible visual interaction (which could consume O(n2 ) resources, for n polygons) is expensive. Instead, we use two techniques to reduce the number of visibility tests performed. First, the algorithm operates on a hierarchical data-structure: a kD-tree 3] organizing all model polygons. Second, only a small, dynamically maintained set of occluders near the viewpoint is used to determine occlusion (Section 3.1). Given a kD-tree, the visibility algorithm (Figure 9) reports those polygons in the kD-tree that are not occluded by the speci ed occluders. In the algorithm, Gather (T; OS ) simply collects all polygons reachable from a kD-tree node T and unions them to the set OS . TestOcclusion (S; T; P ) determines the visibility status of T with respect to occluders in the set S when viewed from P, using the algorithm described in Section 2. The visibility algorithm recursively applies the conservative visibility test to determine the visibility status of each kD-tree node. First, the conservative visibility test is applied to determine whether the current node is invisible. If so, the algorithm returns without performing any further work{ the entire subtree rooted at the current node is occluded. If it fails, the algorithm recurses with those occluders that partially occlude the kD-tree node, since only these occluders can occlude any descendant kD-tree node. Complexity The complexity of this algorithm is O(kv), where v is the number of kD-tree nodes visited and k is the 5 number of occluders. In the worst-case, this complexity could be O(kn) if the algorithm tests all kD-tree nodes against all occluders. In practice, the complexity is lower, as only a fraction of the kD-tree nodes are tested against each occluder (see Section 4 for further details).

3 1

O 2

Figure 10: kD-tree nodes classi ed with respect to a single occluder (O) and two consecutive viewpoints. For clarity, subdivision in the kD-tree is assumed to occur at the center of each kD-tree node. Spatial Coherence Figure 10 shows kD-tree nodes visited during visibility classi cation of a hierarchy with respect to a

Real-time occlusion culling for models with large occluders

上一页第5页

你可能喜欢

热门文档

相关文档

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