Using Model(x) with PeasyCam
in
Contributed Library Questions
•
1 year ago
Hi all
I am trying to convert a 3d point from one space to another. I have a kinect cloud and i am drawing this after a few translates and rotates withing a popMatrix()/pushMatrix(), i do this so that the pointcloud is in the right space if the original origin is my point i want to draw and stl mode(but thats not important). Anyway.. after pusing my matrix and translating and rotating i find the centre of gravity of a person in the kinect cloud, but those x,y,z are relative to the new rotated/translated origin. I was under the impresion that calling model(x)/(y)/(z) would convert that point to the original co-ordinate system??? but when i do it it doesnt give me the right point. I then noticed that when i moved the camera with peasycam the converted point changes...
Maybe i dont understand the Push/popmatrix() or the model(x) or the coordinate system?
Does anyone know what im doing wrong or knows how to do this?
Thanks
Robert
1