In a previous thread I made I was told to look at different data structures for my game. As far as I can tell, using octrees seems to be the way to go for me.
http://www.xnawiki.com/index.php/Octree
Im using this as a base for my class. I know how they work and what their purpose is, I just don't know how to implement them into my game for things like occlusion culling and picking.
Right now I'm just going to have one octree for each 20x20x20 chunk. All my cubes will easily fit into one leaf so there's no hassle with more than one object in a leaf.
When I want to do something like occlusion culling, how would I start? Do I just check the nodes in the tree against other nodes?