Hallo everybody,
I want to Program an ESP for Arma3. I read a lot about this. Now i have the Position of all Players.
I use the following WorldToScreen function:
Code:
Vector3 W2S(Vector3 _in)
{
Vector3 temp = Vector3.Subtract(_in, InvViewTranslation);
Vector3 _out = new Vector3();
float x = Vector3.Dot(temp, InvViewRight);
float y = Vector3.Dot(temp, InvViewUp);
float z = Vector3.Dot(temp, InvViewForward);
_out.X = ViewPortMatrix.X * (1 + (x / ProjD1.X / z));
_out.Y = ViewPortMatrix.Z * (1 - (y / ProjD2.Y / z));
_out.Z = z;
return _out;
}
Where I can find InvViewTranslation, InvViewRight, InvViewForward?
Must be from Transformation + 0xE4?
I read a lot but I have still Problems to understand it.