From f109916125debfa09ff6d291a6bd0e1c6f0c4c98 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 28 Mar 2013 15:30:14 -0700 Subject: [PATCH] move the voxel tree back to origin --- interface/src/VoxelSystem.cpp | 1 - voxel/src/main.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/interface/src/VoxelSystem.cpp b/interface/src/VoxelSystem.cpp index c592d8fd07..9c30754f0d 100644 --- a/interface/src/VoxelSystem.cpp +++ b/interface/src/VoxelSystem.cpp @@ -219,7 +219,6 @@ void VoxelSystem::render() { // draw the number of voxels we have glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, vboIndicesID); - glTranslatef(40, 0, 40); glScalef(10, 10, 10); glDrawElements(GL_TRIANGLES, 36 * voxelsRendered, GL_UNSIGNED_INT, 0); diff --git a/voxel/src/main.cpp b/voxel/src/main.cpp index bb4a558778..90ae4aff53 100644 --- a/voxel/src/main.cpp +++ b/voxel/src/main.cpp @@ -122,7 +122,7 @@ void *distributeVoxelsToListeners(void *args) { unsigned char *voxelPacket = new unsigned char[MAX_VOXEL_PACKET_SIZE]; unsigned char *voxelPacketEnd; - float treeRoot[3] = {-40, 0, -40}; + float treeRoot[3] = {0, 0, 0}; while (true) { gettimeofday(&lastSendTime, NULL);