With the camera transformation I did not think of the projection matrix. The projection matrix transforms eye coordinates to a unit cube that is used for clipping.
I’ve not used Xith so I don’t know how it works. But the modelview matrix that I’m refering to will transform coordinates in object space into eye (or camera) space.
This matrix includes the camera (View). It might be that you’ve not included the view matrix in your modelview sent in to the unProject function. But I’m only guessing. If so you have to multiply the view matrix with the matrix that transforms object coordinates into world coordinates.
Does this make sens?