Bounding volume hierarchy

An example of a bounding volume hierarchy using rectangles as bounding volumes

A bounding volume hierarchy (BVH) is a tree structure on a set of geometric objects. All geometric objects, which form the leaf nodes of the tree, are wrapped in bounding volumes. These nodes are then grouped as small sets and enclosed within larger bounding volumes. These, in turn, are also grouped and enclosed within other larger bounding volumes in a recursive fashion, eventually resulting in a tree structure with a single bounding volume at the top of the tree. Bounding volume hierarchies are used to support several operations on sets of geometric objects efficiently, such as in collision detection and ray tracing.

Although wrapping objects in bounding volumes and performing collision tests on them before testing the object geometry itself simplifies the tests and can result in significant performance improvements, the same number of pairwise tests between bounding volumes are still being performed. By arranging the bounding volumes into a bounding volume hierarchy, the time complexity (the number of tests performed) can be reduced to logarithmic in the number of objects. With such a hierarchy in place, during collision testing, children volumes do not have to be examined if their parent volumes are not intersected (for example, if the bounding volumes of two bumper cars do not intersect, the bounding volumes of the bumpers themselves would not have to be checked for collision).

BVH design issues

The choice of bounding volume is determined by a trade-off between two objectives. On the one hand, bounding volumes that have a very simple shape need only a few bytes to store them, and intersection tests and distance computations are simple and fast. On the other hand, bounding volumes should fit the corresponding data objects very tightly. One of the most commonly used bounding volumes is an axis-aligned minimum bounding box. The axis-aligned minimum bounding box for a given set of data objects is easy to compute, needs only few bytes of storage, and robust intersection tests are easy to implement and extremely fast.

There are several desired properties for a BVH that should be taken into consideration when designing one for a specific application:[1]

  • The nodes contained in any given sub-tree should be near each other. The lower down the tree, the nearer the nodes should be to each other.
  • Each node in the BVH should be of minimum volume.
  • The sum of all bounding volumes should be minimal.
  • Greater attention should be paid to nodes near the root of the BVH. Pruning a node near the root of the tree removes more objects from further consideration.
  • The volume of overlap of sibling nodes should be minimal.
  • The BVH should be balanced with respect to both its node structure and its content. Balancing allows as much of the BVH as possible to be pruned whenever a branch is not traversed into.

In terms of the structure of BVH, it has to be decided what degree (the number of children) and height to use in the tree representing the BVH. A tree of a low degree will be of greater height. That increases root-to-leaf traversal time. On the other hand, less work has to be expended at each visited node to check its children for overlap. The opposite holds for a high-degree tree: although the tree will be of smaller height, more work is spent at each node. In practice, binary trees (degree = 2) are by far the most common. One of the main reasons is that binary trees are easier to build.[2]

Construction

There are three primary categories of tree construction methods: top-down, bottom-up, and insertion methods.

Top-down methods proceed by partitioning the input set into two (or more) subsets, bounding them in the chosen bounding volume, then keep partitioning (and bounding) recursively until each subset consists of only a single primitive (leaf nodes are reached). Top-down methods are easy to implement, fast to construct and by far the most popular, but do not result in the best possible trees in general.

Bottom-up methods start with the input set as the leaves of the tree and then group two (or more) of them to form a new (internal) node, proceed in the same manner until everything has been grouped under a single node (the root of the tree). Bottom-up methods are more difficult to implement, but likely to produce better trees in general. Some recent studies[3] indicate that in low-dimensional space, the construction speed can be largely improved (which matches or outperforms the top-down approaches) by sorting objects using space-filling curve and applying approximate clustering based on this sequential order.

Both top-down and bottom-up methods are considered off-line methods as they both require all primitives to be available before construction starts. Insertion methods build the tree by inserting one object at a time, starting from an empty tree. The insertion location should be chosen that causes the tree to grow as little as possible according to a cost metric. Insertion methods are considered on-line methods since they do not require all primitives to be available before construction starts and thus allow updates to be performed at runtime.

Usage

Ray tracing

BVHs are often used in ray tracing to eliminate potential intersection candidates within a scene by omitting geometric objects located in bounding volumes which are not intersected by the current ray.[4] Additionally, as a common performance optimization, when only the closest intersection of the ray is of interest, while the ray tracing traversal algorithm is descending nodes, and multiple child nodes are intersecting the ray, the traversal algorithm will consider the closer volume first, and if it finds an intersection there, which is definitively closer than any possible intersection in a second (or other) volume (i.e. volumes are non-overlapping), it can safely ignore the second volume. Similar optimizations during BVH traversal can be employed when descending into child volumes of the second volume, to restrict further search space and thus reduce traversal time.

Additionally, many specialized methods were developed for BVHs, especially ones based on AABB (axis-aligned bounding boxes), such as parallel building, SIMD accelerated traversal, good split heuristics (SAH - surface-area heuristic is often used in ray tracing), wide trees (4-ary and 16-ary trees provide some performance benefits, both in build and query performance for practical scenes), and quick structure update (in real time applications objects might be moving or deforming spatially relatively slowly or be still, and same BVH can be updated to be still valid without doing a full rebuild from scratch).

Scene-graph management

BVHs also naturally support inserting and removing objects without full rebuild, but with resulting BVH having usually worse query performance compared to full rebuild. To solve these problems (as well as quick structure update being sub-optimal), the new BVH could be built asynchronously in parallel or synchronously, after sufficient change is detected (leaf overlap is big, number of insertions and removals crossed the threshold, and other more refined heuristics).

BVHs can also be combined with scene graph methods, and geometry instancing, to reduce memory usage, improve structure update and full rebuild performance, as well as guide better object or primitive splitting.

Collision detection

BVHs are often used for accelerating collision detection computation. In the context of cloth simulation, BVHs are used to compute collision between a cloth and itself as well as with other objects. [5]

Distance calculation between set of objects

Another powerful use case for BVH is pair-wise distance computation. A naive approach to find the minimum distance between two set of objects would compute the distance between all of the pair-wise combinations. A BVH allows us to efficiently prune many of the comparisons without needing to compute potentially elaborate distance between the all objects. Pseudo code for computing pairwise distance between two set of objects and approaches for building BVH, well suited for distance calculation is discussed here [6]

Hardware-enabled BVH acceleration

Accelerating ray tracing

BVH can significantly accelerate ray tracing applications by reducing the number of ray-surface intersection calculations. Hardware implementation of BVH operations such as traversal can further accelerate ray-tracing. Currently, real-time ray tracing is available on multiple platforms. Hardware implementation of BVH is one of the key innovations making it possible.

Nvidia RT Cores

In 2018, Nvidia introduced RT Cores with their Turing GPU architecture as part of the RTX platform. RT Cores are specialized hardware units designed to accelerate BVH traversal and ray-triangle intersection tests.[7] The combination of these key features enables real-time ray tracing that can be use for video games.[8] as well as design applications.

AMD RDNA 2/3

AMD's RDNA (Radeon DNA) architecture, introduced in 2019, has incorporated hardware-accelerated ray tracing since its second iteration, RDNA 2. The architecture uses dedicated hardware units called Ray Accelerators to perform ray-box and ray-triangle intersection tests, which are crucial for traversing Bounding Volume Hierarchies (BVH).[9] In RDNA 2 and 3, the shader is responsible for traversing the BVH, while the Ray Accelerators handle intersection tests for box and triangle nodes.[10]

Usage of HW enabled BVH beyond ray tracing

Originally designed to accelerate ray tracing, researchers are now exploring ways to leverage fast BVH traversal to speed up other applications. These include determining the containing tetrahedron for a point,[11] enhancing grannular matter simulations,[12] and performing nearest neighbor calculations.[13] Some methods repurpose Nvidia's RT core components by reframing these tasks as ray-tracing problems.[12] This direction seems promising as substantial speedups in performance are reported across the various applications.

See also

References

  1. ^ Ericson, Christer (2005). "§6.1 Hierarchy Design Issues". Real-Time collision detection. Morgan Kaufmann Series in Interactive 3-D Technology. Morgan Kaufmann. pp. 236–7. ISBN 1-55860-732-3.
  2. ^ Ericson 2005, p. 238
  3. ^ Gu, Yan; He, Yong; Fatahalian, Kayvon; Blelloch, Guy (2013). "Efficient BVH Construction via Approximate Agglomerative Clustering" (PDF). HPG '13: Proceedings of the 5th High-Performance Graphics Conference. ACM. pp. 81–88. CiteSeerX 10.1.1.991.3441. doi:10.1145/2492045.2492054. ISBN 9781450321358. S2CID 2585433.
  4. ^ Günther, J.; Popov, S.; Seidel, H.-P.; Slusallek, P. (2007). "Realtime Ray Tracing on GPU with BVH-based Packet Traversal". 2007 IEEE Symposium on Interactive Ray Tracing. IEEE. pp. 113–8. CiteSeerX 10.1.1.137.6692. doi:10.1109/RT.2007.4342598. ISBN 978-1-4244-1629-5. S2CID 2840180.
  5. ^ Bridson, Robert; Fedkiw, Ronald; Anderson, John (25 June 1997). "Robust treatment of collisions, contact and friction for cloth animation". ACM Trans. Graph. 21 (3). Berlin: Association for Computing Machinery: 594–603. doi:10.1145/566654.566623.
  6. ^ Ytterlid, Robin; Shellshear, Evan (January 27, 2015). "BVH Split Strategies for Fast Distance Queries". Journal of Computer Graphics Techniques. 4 (1): 1–25. ISSN 2331-7418. Retrieved October 13, 2024.
  7. ^ "NVIDIA Turing GPU Architecture" (PDF). NVIDIA. Retrieved 2024-10-20.
  8. ^ "The NVIDIA Turing GPU Architecture Deep Dive: Prelude to GeForce RTX". AnandTech. Retrieved 2024-10-20.
  9. ^ "RDNA 2 hardware raytracing". Interplay of Light. 27 December 2020. Retrieved 2024-10-20.
  10. ^ "Raytracing on AMD's RDNA 2/3, and Nvidia's Turing and Pascal". Chips and Cheese. 2023-03-22. Retrieved 2024-10-20.
  11. ^ Wald, Ingo; Usher, Will; Morrical, Nathan; Lediaev, Laura; Pascucci, Valerio (2019). "RTX Beyond Ray Tracing: Exploring the Use of Hardware Ray Tracing Cores for Tet-Mesh Point Location". High-Performance Graphics - Short Papers: 7 pages. doi:10.2312/HPG.20191189. ISBN 978-3-03868-092-5. ISSN 2079-8687.
  12. ^ a b Zhao, Shiwei; Zhao, Jidong (November 1, 2023). "Revolutionizing granular matter simulations by high-performance ray tracing discrete element method for arbitrarily-shaped particles". Computer Methods in Applied Mechanics and Engineering. 416: 116370. doi:10.1016/j.cma.2023.116370.
  13. ^ Zhu, Yuhao (2022-04-02). "RTNN: Accelerating neighbor search using hardware ray tracing". Proceedings of the 27th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming. ACM. pp. 76–89. doi:10.1145/3503221.3508409. ISBN 978-1-4503-9204-4.

Read other articles:

Wijayakusuma Klasifikasi ilmiah Kerajaan: Plantae Ordo: Caryophyllales Famili: Cactaceae Subfamili: Cactoideae Tribus: Hylocereeae Genus: Disocactus Spesies: D. anguliger Nama binomial Disocactus anguliger Sinonim[1][2] Cereus mexicanus Lem. ex C.F.Först. Epiphyllum anguliger (Lem.) G.Don Epiphyllum darrahii (K.Schum.) Britton & Rose Phyllocactus anguliger Lem. Phyllocactus darrahii K.Schum. Phyllocactus mexicanus (Lem. ex C.F.Först.) Salm-Dyck ex Labour. Phyllocac...

 

Tarusbawaᮒᮛᮥᮞ᮪ᮘᮝTohaan di SundaRaja Sunda ke 1Berkuasa669 - 723PenerusSanjaya dari Mataram atau Sanjaya dari SundaInformasi pribadiKelahirantidak diketahuiSundapura, TarumanagaraNama takhtaSri Maharaja Tarusbawa Darmawaskita Manumanggalajaya Sundasembawa Sri Maharaja Tarusbawa yaitu Raja pertama di Kerajaan Sunda. Ia menjadi Raja di Kerajaan Sunda dari tahun 669 Masehi sampai 723 Masehi.[1] Biografi Peta Kerajaan Sunda. Pada tahun 669 M, Maharaja Linggawarman, Raja Tarum...

 

Pour les articles homonymes, voir Valence. Valence De haut en bas et de gauche à droite : le parc Jouvet ; le kiosque Peynet ; le pont Frédéric-Mistral ; le port de l'Épervière ; le clocher de la cathédrale Saint-Apollinaire. Blason Administration Pays France Région Auvergne-Rhône-Alpes Département Drôme (préfecture) Arrondissement Valence(chef-lieu) Intercommunalité Valence Romans Agglo(siège) Maire Mandat Nicolas Daragon 2020-2026 Code postal 26000 Cod...

Oposum telinga putih Status konservasi Risiko Rendah  (IUCN 3.1)[1] Klasifikasi ilmiah Kerajaan: Animalia Filum: Chordata Kelas: Mamalia Infrakelas: Marsupialia Ordo: Didelphimorphia Famili: Didelphidae Genus: Didelphis Spesies: D. albiventris Nama binomial Didelphis albiventrisLund, 1840 Persebaran Oposum telinga putih Oposum telinga putih (Didelphis albiventris) adalah spesies oposum yang berasal dari Amerika Selatan. Biasanya dapat ditemukan di Argentina, Bolivia, Brasil...

 

この項目には、一部のコンピュータや閲覧ソフトで表示できない文字が含まれています(詳細)。 数字の大字(だいじ)は、漢数字の一種。通常用いる単純な字形の漢数字(小字)の代わりに同じ音の別の漢字を用いるものである。 概要 壱万円日本銀行券(「壱」が大字) 弐千円日本銀行券(「弐」が大字) 漢数字には「一」「二」「三」と続く小字と、「壱」「�...

 

Intangible goods that exist in digital form If you pay to watch a web conference on your computer screen, you have bought a digital good. Digital goods or e-goods are intangible goods that exist in digital form.[1] Examples are Wikipedia articles; digital media, such as e-books, downloadable music, internet radio, internet television and streaming media; fonts, logos, photos and graphics; digital subscriptions; online ads (as purchased by the advertiser); internet coupons; electronic ...

CGI-121crystal structure of pfu-542154 conserved hypothetical proteinIdentifiersSymbolCGI-121PfamPF08617InterProIPR013926SCOP21zd0 / SCOPe / SUPFAMAvailable protein structures:Pfam  structures / ECOD  PDBRCSB PDB; PDBe; PDBjPDBsumstructure summary In molecular biology, the kinase binding protein CGI-121 family of proteins includes the kinase binding protein CGI-121 and its homologues. CGI-121 has been shown to bind to the p53-related protein kinase (PRPK).[1] CGI-121 is part...

 

Влюблённая пара: Вишну вместе с богиней Лакшми. Храм Адинатха, Кхаджурахо, Мадхья-Прадеш. Шри-вайшнавизм, шри-вишнуизм (IAST: Śrīvaiṣṇavism) — одна из шести основных традиций вайшнавизма, охватывающая философию и убеждения, литературу, ритуалы и духовные практики. Вместе �...

 

Liga MX FemenilBadan yang mengaturFederasi Sepak Bola MeksikoNegara MeksikoKonfederasiCONCACAFDibentuk5 Desember 2016; 7 tahun lalu (2016-12-05)Jumlah tim18Tingkat pada piramida1Piala domestikCopa MX Femenil Campeón de CampeonesJuara bertahan ligaUANL (gelar ke-5) (Apertura 2022)Klub tersuksesUANL(5 gelar)Televisi penyiarESPN[1] Fox Sports[2]Televisa[3]TVC Deportes[4] TV Azteca[5] TVPSitus webWebsite Liga MX Femenil 2022–2023 Liga MX Femeni...

Proposed theory on the origins of COVID-19This article is about the hypothesis proposing SARS-CoV-2 came from a laboratory. For bioweapon conspiracy theories, see COVID-19 misinformation § Bio-weapon. The Wuhan Institute of Virology in Wuhan, China The COVID-19 lab leak theory, or lab leak hypothesis, is the idea that SARS-CoV-2, the virus that caused the COVID-19 pandemic, came from a laboratory. This claim is highly controversial; most scientists believe the virus spilled into human p...

 

County in Tennessee, United States County in TennesseeCumberland CountyCountyCumberland County Courthouse in Crossville SealLocation within the U.S. state of TennesseeTennessee's location within the U.S.Coordinates: 35°57′N 85°00′W / 35.95°N 85°W / 35.95; -85Country United StatesState TennesseeFoundedNovember 16, 1855[1]Named forCumberland Mountains[2]SeatCrossvilleLargest cityCrossvilleArea • Total685 sq mi (1,77...

 

Peternakan di Indonesia merupakan salah satu subsektor dalam sektor pertanian yang cukup berkontribusi pada ekonomi Indonesia. Jenis ternak yang diternakkan di Indonesia dikelompokkan menjadi ternak besar (sapi, kerbau, dan kuda), ternak kecil (domba, kambing, dan babi), ternak unggas (ayam dan itik), dan aneka ternak (kelinci dan burung puyuh). Peternakan berperan dalam pemenuhan kebutuhan konsumsi pangan asal hewan, seperti daging, susu, dan telur di Indonesia. Jenis ternak Di Indonesia, je...

British publisher (1893–1967) This article is about the person. For the company he founded, see Victor Gollancz Ltd. SirVictor GollanczGollancz in the late 1940sBorn(1893-04-09)9 April 1893Maida Vale, London, EnglandDied8 February 1967(1967-02-08) (aged 73)London, EnglandNationalityBritishEducationSt Paul's School, LondonAlma materNew College, OxfordOccupation(s)Publisher and humanitarianOrganisationVictor Gollancz LtdSpouse Ruth Lowy ​(m. 1919)​Childr...

 

1998 film by Walter Salles Central StationTheatrical release posterPortugueseCentral do Brasil Directed byWalter SallesScreenplay by João Emanuel Carneiro Marcos Bernstein Story byWalter SallesProduced by Arthur Cohn Martine de Clermont-Tonnerre Robert Redford Starring Fernanda Montenegro Marília Pêra Vinícius de Oliveira CinematographyWalter CarvalhoEdited byFelipe LacerdaMusic by Antonio Pinto Jaques Morelenbaum Stewart Copeland Productioncompanies VideoFilmes MACT Productions Distribut...

 

Semi-feudal manor system of French Canada This article's lead section may be too long. Please read the length guidelines and help move details into the article's body. (December 2019) A typical layout for a feudal manor in New France[1] The manorial system of New France, known as the seigneurial system (French: Régime seigneurial), was the semi-feudal system of land tenure used in the North American French colonial empire.[1] Economic historians have attributed the wealth gap...

Bahasa TunjungDituturkan diIndonesiaWilayah  Kalimantan Timur Penutur50.000 (Wurm and Hattori 1981) Rumpun bahasaAustronesia Melayu-PolinesiaBarito RayaBarito-MahakamBahasa Tunjung Kode bahasaISO 639-1-ISO 639-2-ISO 639-3tjgGlottologtunj1244[1]IETFtjg Status pemertahanan C10Kategori 10Kategori ini menunjukkan bahwa bahasa telah punah (Extinct)C9Kategori 9Kategori ini menunjukkan bahwa bahasa sudah ditinggalkan dan hanya segelintir yang menuturkannya (Dormant)C8bKategori 8bKa...

 

American baseball player and manager (1876-1924) For other people named Pat Moran, see Pat Moran (disambiguation). Baseball player Pat MoranCatcher / ManagerBorn: (1876-02-07)February 7, 1876Fitchburg, Massachusetts, U.S.Died: March 7, 1924(1924-03-07) (aged 48)Orlando, Florida, U.S.Batted: RightThrew: RightMLB debutMay 15, 1901, for the Boston BeaneatersLast MLB appearanceJune 30, 1914, for the Philadelphia PhilliesMLB statisticsBatting average.235Home runs...

 

この項目では、学位について説明しています。聖公会における用法については「修道士」をご覧ください。 修士(しゅうし、英語: Master's degree)とは大学院における修士課程もしくは博士課程の前期課程を修了することで得られる学位である。 英語圏ではmaster、ドイツ語圏ではマギスターまたはマギステル (Magister)、中華人民共和国や台湾(中華民国)、大韓民国等...

Pemilihan Umum Bupati Tanjung Jabung Barat 2020201520249 Desember 2020[1]Kandidat   MULIA BERKAH BEDA Calon Mulyani Siregar Anwar Sadat Muklis Partai PDI-PGolkarPPP PANGerindraPKS PKBNasDemPBB Pendamping M. Amin Hairan Supardi Suara rakyat 51.837 67.434 31.501 Persentase 34,38% 44,73% 20,89% Peta persebaran suara Peta Jambi yang menyoroti Kabupaten Tanjung Jabung Barat Bupati Tanjung Jabung Barat dan Wakil Bupati Tanjung Jabung Barat petahanaSafrial dan Amir Sakib Partai De...

 

Questa voce sull'argomento ciclisti francesi è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Segui i suggerimenti del progetto di riferimento. Lloyd HildebrandNazionalità Regno Unito/ Francia Ciclismo SpecialitàPista CarrieraSquadre di club ?Cercle des Sports Palmarès  Giochi olimpici ArgentoParigi 1900Mezzofondo   Modifica dati su Wikidata · Manuale Lloyd Augustin Biden[1] Hildebrand (Londra, 25 dicembre 1870 – ...