Hello,
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[0]); ShaderUtils::scalePoseMatrix(kObjectScale, kObjectScale, kObjectScale, &modelViewMatrix.data[0]); ShaderUtils::multiplyMatrix(&qUtils.projectionMatrix.data[0], &modelViewMatrix.data[0], &modelViewProjection.data[0]); NSLog(@"Running rotation"); ShaderUtils::rotatePoseMatrix(180, 0, 0, 1, &modelViewMatrix.data[0]);
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?
I want to grab and rotate the teapot with java how can i do that?