Does anyone know how to use the mesh space to draw virtual objects?
I'm trying to put some virtual objects in the mesh space like meshRender does in Scanner sample. In the sample it uses "renderMeshFromViewpoint" to draw the mesh with parameters "cameraViewpoint" and "cameraGLProjection".
My question is how to use these two parameters to setup my OpenGL projectionMatrix and modelViewMatrix. I tried some ways like
GLKMatrix4 modelViewMatrix = GLKMatrix4Identity;
modelViewMatrix = GLKMatrix4Multiply(modelViewMatrix, cameraGLProjection);
modelViewMatrix = GLKMatrix4Multiply(modelViewMatrix, cameraViewpoint);
But not working at all.
So is that possible to know how does function "renderMeshFromViewpoint" use these two parameters?