-
Motion + cameraMatrixAtTime
Hello.
At last I know how to get camera position from Motion thanks to fxplug:id 3dnow = [_apiManager apiForProtocol:@protocol(Fx3DAPI)];NSData* camData = [3dnow cameraMatrixAtTime:renderInfo.frame];
double camMatrix [4][4];
[camData getBytes:&camMatrix
length:16 * sizeof (double)];NSString *string = [NSString stringWithFormat:
@"Camera position:\n\nX: %f\nY: %f\nZ: %f",
camMatrix [0][3],camMatrix [1][3], camMatrix [2][3]];
Can anybody tell me how to get light position in motion? I don’t know what command gives me that possibility.
Thanks!