Octree works out to 128x128 as is, and performance seems very promising. Traversal or octree generation fixes will be next

This commit is contained in:
MitchellHansen
2017-09-24 18:28:32 -07:00
parent 305ef917e0
commit ed250d1291
5 changed files with 18 additions and 18 deletions

View File

@@ -12,11 +12,11 @@ Map::Map(uint32_t dimensions, Old_Map* array_map) {
// randomly set the voxel data for testing
for (uint64_t i = 0; i < dimensions * dimensions * dimensions; i++) {
if (rand() % 10000 < 3)
voxel_data[i] = 1;
else
//if (rand() % 10000 < 3)
// voxel_data[i] = 1;
//else
voxel_data[i] = 0;
}
}
char* char_array = array_map->get_voxel_data();
sf::Vector3i arr_dimensions = array_map->getDimensions();