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

D1 O1 O2

D2

O3 D3

Figure 12: Detail objects D1; D2; D3 and occluders used to determine their visibility. Occluders that are near detail objects can be determined as follows. First, as detail objects are usually limited in spatial extent, they can be usefully approximated as a single point (e.g., the center of the object). Second, the problem of determining if the detail object is visible from the viewpoint is identical to the problem of determining if the viewpoint is visible from the detail object (i.e., visibility between two points is re exive ). Thus, occluders that are large when viewed from the center of the object (in a viewing direction toward the viewpoint) are good candidates to test. These are identi ed and stored for each object using the data structure computed in Section 3.1. Of course, once these occluders are determined, it is necessary to perform the visibility test on the entire detail object using separating and supporting planes, instead of just on its midpoint. 4 Results We have implemented the algorithm described above, as well as tools for visualizing its operation. For models consisting of a few thousand large occluders (and hundreds of additional detail objects), the algorithm maintains interactive rates on an SGI OnyxTM workstation (with a 250 MHz R4400 processor, 512 MB of main memory and an SGI RealityEngine2TM graphics pipeline), and culls a signi cant fraction of all models on average. Figure 13 (color plate) shows snapshots from several interactive walkthroughs. We studied the performance of the algorithm on two models: the fth oor of Berkeley's Soda Hall building with furniture (Soda) and a city from Viewpoint Datalabs (City). In our implementation, the kD-tree is constructed by splitting

the current kDtree node alternately in each of the three dimensions, and choosing a splitting plane that results in a roughly balanced partitioning of the polygons. The kD-tree is of height 8 (around 250 nodes) and the number of occluders is xed at 32 per direction (for 8 directions) 7

in these experiments. Initialization and kD-tree construction used about 5 seconds of CPU time. The results reported below are averaged over the viewpoints visited during smooth\ gure 8" walkthroughs of the models. Table 1 shows the e cacy of the culling algorithm. Occlusion culling reduces the rendering load (in terms of polygons drawn) by a factor of six to eight over frustum culling. The speedup obtained due to this reduction of rendering load depends on the performance of the hardware graphics pipeline{ the lower the performance, the higher the bene t of occlusion culling. Table 2 shows the time spent in culling and drawing these two models; we report these times for the Onyx as well as an SGI Indigo2 ElanTM workstation (with a 200 MHz R4400 processor), which has less powerful graphics hardware. Note that the algorithm reduces total rendering time by a factor of 2 on the Onyx, and by a factor of 5 on the Elan. Scene Polygons Frustum Occlusion Soda 134,832 19.7 2.6 City 108,841 36.9 5.6 Table 1: The column Frustum shows the percentage of polygons drawn after only view frustum culling, and the column Occlusion shows the percentage of polygons drawn after frustum and occlusion culling. Scene Soda City Soda City Frustum Occlusion Cull Draw Total Cull Draw Total Onyx 12 83 95 27 10 37 11 102 113 29 16 45 Elan 13 435 448 32 57 89 12 482 494 34 77 101

Table 2: The columns labeled Frustum show culling and drawing times after only view frustum culling. The columns labeled Occlusion show culling and drawing times after frustum and occlusion culling. All times are reported in milliseconds. 4.1 Spatial and Temporal Coherence The visibility algorithm maintains (and tests) only 27{35 kD-tree nodes per frame (30{40% of the kDtree nodes in viewing frustum), re ecting the spatial coherence exploited by the algorithm. Its use of temporal coherence is indicated in Table 3, which shows the time spent in the algorithm Visible (excluding frustum culling) as the speed of the observer is varied. In this experiment, the observer moves along the\ gure 8" path with di erent speeds. The algorithm spends lesser time for more slow moving observers,

Real-time occlusion culling for models with large occluders

上一页第7页

你可能喜欢

热门文档

相关文档

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