From aee27bfc168d7ba2c2e47e6d987c5651de4fd622 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Mon, 8 Apr 2013 11:18:07 -0700 Subject: [PATCH] Hmmm, when painting, X and Z are not flipped? I'm totally confused, but now but LOD and painting seems to work. --- interface/src/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/interface/src/main.cpp b/interface/src/main.cpp index 7ae2fc2a10..ecb7d3a152 100644 --- a/interface/src/main.cpp +++ b/interface/src/main.cpp @@ -500,9 +500,10 @@ void simulateHead(float frametime) glm::vec3 headPos = myHead.getPos(); - ::paintingVoxel.x = headPos.z/-10.0; // voxel space x is negative z head space - ::paintingVoxel.y = headPos.y/-10.0; // voxel space y is negative y head space - ::paintingVoxel.z = headPos.x/-10.0; // voxel space z is negative x head space + // For some reason, we don't want to flip X and Z here. + ::paintingVoxel.x = headPos.x/-10.0; + ::paintingVoxel.y = headPos.y/-10.0; + ::paintingVoxel.z = headPos.z/-10.0; unsigned char* bufferOut; int sizeOut;