Help........ -________________________________________________-
For those who don't have them yet, this is what Yourself's Convert_2D script looks like. It converts an onscreen position to a 3D position.
screenx = 2 * argument0 / view_wview[argument5] - 1;
screeny = 1 - 2 * argument1 / view_hview[argument5];
mX = dX + ( uX * screeny ) + ( vX * screenx );
mY = dY + ( uY * screeny ) + ( vY * screenx );
mZ = dZ + ( uZ * screeny ) + ( vZ * screenx );
if ( mZ != 0 )
{
x_3d = argument2 - argument4 * mX / mZ;
y_3d = argument3 - argument4 * mY / mZ;
}
else
{
x_3d = argument2 - argument4 * mX;
y_3d = argument3 - argument4 * mY;
}The problem is, it converts only at z=0. I can't figure out what needs to be changed to make it an arbitrary z.



Find content
Male



