• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            牽著老婆滿街逛

            嚴以律己,寬以待人. 三思而后行.
            GMail/GTalk: yanglinbo#google.com;
            MSN/Email: tx7do#yahoo.com.cn;
            QQ: 3 0 3 3 9 6 9 2 0 .

            關于Sweep and Prune 算法

            在第一階段的檢測(BroadPhase)中所需要的算法就是Sweep and Prune,因為從未接觸過此類的東西,所以不知道到底是個什么東西,今天終于找到具體資料了,一看,暈倒掉了.原來就是<游戲編程精粹2>里面所提及到的 逐維遞歸分組法...
            貌似如果有人搜索相關詞匯是能夠搜索到我的blog的,特別留下此文以防止有哥們走我同樣的彎路了...


            順便放一個英文東西:
            來自于:http://parallel.vub.ac.be/documentation/pvm/Example/Marc_Ramaekers/node3.html
            Sweep and Prune
            Given a number N of objects, O(N2) object pairs have to be checked for collision. In general, the objects in most of the pairs aren't even close to each other so we should be able to eliminate them quickly. To do this we use a technique called Sweep and Prune ([CLMP95]). In this section I will briefly introduce this technique.

            To determine whether two objects are close enough to potentially collide, the Sweep and Prune checks whether the axis aligned bounding boxes of the respective objects overlap. If they do, further investigation is necessary. If not, the objects can't possibly collide and the algorithm can move on. To determine whether two bounding boxes overlap, the algorithm reduces the 3D problem to three simpler 1D problems. It does so by determining the intervals occupied by the bounding volume along each of the x,y and z axes. If and only if the intervals of two bounding volumes overlap in all of the three dimensions, the objects corresponding to these bounding volumes must overlap. To determine which intervals of the objects along an axis overlap, the list of the intervals is sorted. Normally, using quick-sort, this would be an $O(N \log N)$ process. However, by exploiting frame coherence (the similarity between situations in two subsequent frames) we can sort the lists in an expected (O(N), using insertion sort.

            Another difficult part in the Sweep and Prune approach is the maintenance of the bounding volume. If the objects in the scene move or rotate, the previously calculated bounding boxes are invalid. It is important to be able to update the boxes as quickly as possible. Again, we can do this by exploiting frame coherence.

            The algorithm's performance is of course dependent on the application and the typical situations that occur in that application. Many variations exists, such as reducing the overlap problem by only 1 dimension and using a rectangle intersection test. It is also possible to choose other types of bounding volumes that might be faster to update but produce a less accurate approximation of the object.

            posted on 2008-01-15 15:35 楊粼波 閱讀(4184) 評論(2)  編輯 收藏 引用

            評論

            # re: 關于Sweep and Prune 算法 2010-01-18 15:44 狂沙

            我看到了,感謝!  回復  更多評論   

            # re: 關于Sweep and Prune 算法 2011-06-26 18:55 tankin

            @狂沙
            感謝,希望看到更多有意義內容的blog  回復  更多評論   

            97久久国产亚洲精品超碰热 | 久久午夜无码鲁丝片秋霞| 国产亚州精品女人久久久久久 | 漂亮人妻被中出中文字幕久久| 久久精品免费网站网| 一级女性全黄久久生活片免费 | 精品熟女少妇a∨免费久久| 青青草原综合久久| 久久久无码精品亚洲日韩京东传媒 | 国产婷婷成人久久Av免费高清| 国产精品久久久久久福利69堂| 久久精品亚洲男人的天堂| 亚洲国产另类久久久精品黑人| 亚洲国产精品久久久久| 亚洲日本va中文字幕久久| 久久精品国产一区二区三区不卡 | 久久亚洲日韩看片无码| 色综合久久久久网| 无码精品久久久久久人妻中字| 久久国产视屏| 国产福利电影一区二区三区久久老子无码午夜伦不 | 久久精品国产亚洲av高清漫画| 欧美大战日韩91综合一区婷婷久久青草 | 一本色道久久综合狠狠躁| 欧美久久久久久午夜精品| 国产精品视频久久| 久久天天躁狠狠躁夜夜躁2O2O| 精品国产乱码久久久久软件| 国产精品va久久久久久久| 久久国产精品久久久| 久久精品国产亚洲AV无码麻豆 | 一极黄色视频久久网站| 天天综合久久一二三区| 国内精品伊人久久久久网站| 久久免费小视频| 999久久久国产精品| 97久久精品人人澡人人爽| 狠狠色丁香婷婷综合久久来来去| 国产精品美女久久久久av爽| 国产三级精品久久| 青青久久精品国产免费看|