Update video demo, tweaking my refactor of the maps. Working on downwards navigation in the oct traversal

This commit is contained in:
MitchellHansen
2017-10-18 22:10:31 -07:00
parent c35f867c76
commit 3f09515c0a
7 changed files with 131 additions and 48 deletions

View File

@@ -8,14 +8,14 @@ ArrayMap::ArrayMap(sf::Vector3i dimensions) {
voxel_data = new char[dimensions.x * dimensions.y * dimensions.z];
for (int i = 0; i < dimensions.x * dimensions.y * dimensions.z; i++) {
voxel_data[i] = 0;
voxel_data[i] = 1;
}
for (int x = 0; x < dimensions.x; x++) {
for (int y = 0; y < dimensions.y; y++) {
setVoxel(sf::Vector3i(x, y, 1), 5);
}
}
//for (int x = 0; x < dimensions.x; x++) {
// for (int y = 0; y < dimensions.y; y++) {
// setVoxel(sf::Vector3i(x, y, 1), 5);
// }
//}
}