1. Put a bounding box around all objects (this is the root of the octree).
2. Subdivide each node into 8 voxels. These will be the children of the node. Put each object in the respective node.
3. For each node, subdivide again recursively, until MAX_LEVEL has been reached or there is no object left in the node.
*The node B is shown.