ok, after lots of blind tries, i got it working.. but i don't know how

here's the working code:

[pascal]procedure SavePosition;
var
ModM, B : TMatrix;
begin
glGetFloatv(GL_MODELVIEW_MATRIX, @ModM[0]);
savedvect.x:=modm[12];
savedvect.y:=modm[13];
savedvect.z:=modm[14];
CAMMATRIX := MatrixInverse(CAMMATRIX);
SAVEDVECT := VectorMatrixMult(CAMMATRIX, SAVEDVECT);
end;
[/pascal]

Where CAMMATRIX is the modelview matrix saved just after camera setup.
Now if i spawn an object at SAVEDVECT, it goes to the right position

Who knows how it works ? :mrgreen: