It appears that the new generation algorithm works well. The tree structure is intact and the relative pointers look correct. I'll write a validator when I get a chance

This commit is contained in:
MitchellHansen
2017-06-30 02:37:40 -07:00
parent b82d543479
commit 04842dd597
6 changed files with 33 additions and 160 deletions

View File

@@ -24,8 +24,6 @@ public:
Map(uint32_t dimensions);
void dump_logs();
void setVoxel(sf::Vector3i position, int val);
bool getVoxelFromOctree(sf::Vector3i position);
@@ -44,9 +42,6 @@ private:
void generate_octree(unsigned int dimensions);
// Generate children is the main recursive function
uint64_t generate_children(sf::Vector3i pos, int dim);
char* voxel_data;
};