IRREGULAR SPATIAL ENUMERATION Flashcards
What is Spatial cohesion
the idea that things often clump together in the real world
Thus
This effect makes the octree more effective than the gridcell
The octree cannot however take into account that things are not spread evenly
What are Hierarchical Bounding Volumes
Start with objects and wrap them increasingly bigger spaces - like the opposite of octrees
idea is that we use a simple shape to encapsulate a more complex one
- if we miss the bounding shape we cannot have hit the object within
However we may get a false positive hitting the bounding shape but not the object
Cons of hierarchical bounding volumes
The actual shape is not the same as the bounding shape
higher chance of false positive
lot of empty space inside the bounding shape
Bounding boxes as a hierarchical tree
Given a scene
We can place each object in a bounding box
Then the close bounding boxes in larger bounding boxes until eventually the whole scene has a big bounding box
This means we can send a ray and know if it has not even hit the scene
If it has we have a hierarchical tree to test which object (box) it is hitting
What is binary space partitioning
Splits space into 2
starts with a horizontal separation
we can build a binary tree along with the recursive separations
Each ‘split in 2’ does not necessarily result in equal halves, the line will split to try and separate objects (but not always)
Axis aligned binary partitioning
a simple type of Binary partitioning where the world axis is used to split the spaces in two (perpendicular lines)
The advantage of this approach is that it preserves the relative positions of objects in different regions (Eg left and right) so by traversing the tree we can find an objects relative position
What is the space and time complexity for grid based enumeration
space: O(N)
time: O(1)
What is the space and time complexity for quadtree enumeration
space: O(N)
time: O(N) or O(N+K)
What is the space and time complexity for octree enumeration
space: O(N)
time: O(N) for unbalanced
What is the space and time complexity for binary space partitioning (BSP) enumeration
space: O(N)
time: O(log N) or O(N) for unbalances