I am trying to register a data/parameterhandle in C# to get access to those values. But at the moment I am quite stuck at an exception error.
First: I would like to get the position of the camera. As I understood, the origin of the 'cameraspace' is where the user does the T-stance. So that means that the camera has a position in that space that is not (0, 0, 0). I only found "SCENE.CALIBRATION.EDITING.CameraX" (same for Y and Z) as a reference to the camera position. Isn't there a Vector3 value that defines it?
Next to that, I am trying to get that data into C#. So I register a ParameterHandle to a value, I wait for a new frame (device.UpdateFrame(true);) and I try to get the value from the handle: handle.Value (which should be a float).
No problem while compiling, but when I execute, I get an exception error saying that
System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
I have uploaded my entire code, to make it more clear: http://pastebin.com/hPmAD19B
This exception happens at line 84. So, what I conclude is that cam_x is null, but it should get values assigned by Iisu. What is going wrong? If I compare my code to the one in the Skeleton NET example, it seems the same, but it doesn't work (while the Skeleton does work)
I hope you can help me out.