I'm having a problem succesfully rotating the teapot or moving it for that matter. I have the following code below in the EAGLView.mm file (inside -renderFrameQCAR):
// OpenGL 2 QCAR::Matrix44F modelViewProjection; ShaderUtils::translatePoseMatrix(0.0f, 0.0f, kObjectScale, &modelViewMatrix.data); ShaderUtils::scalePoseMatrix(kObjectScale, kObjectScale, kObjectScale, &modelViewMatrix.data); ShaderUtils::multiplyMatrix(&qUtils.projectionMatrix.data, &modelViewMatrix.data, &modelViewProjection.data); NSLog(@"Running rotation"); ShaderUtils::rotatePoseMatrix(180, 0, 0, 1, &modelViewMatrix.data);
I put the Log to check to see if it is indeed continuously updating and running the code and I get the print continuously per frame of the live camera feed. So i do know that its running the code but the teapot doesn't budge at all. Is there an anchor that I'm missing that need to comment out or are there additional lines of cde I need to include?