Added octree palette generation