Loading...
Logo
Processing Forum
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

Replies(2)

Not sure about model(), but you should be able to add your relative x,y,z to the translated location to get the true positions.
not sure what you mean by that...?do you mean just do the opposite translations and rotations to the new point and it should give me the point in the original space? sorry i meant modelX() modelY() and modelZ()