How to convert (x,y,z)
coordinates from inside the perspective pyramid, to (x',y',z')
coordinates inside the perspective cube? (in a right hand coordinate system)
I tried to multiply this perspective matrix with the (x,y,z)
vector, but the result isn't what I expected.
I tried it with: fov=70°, aspect=4/3, near=100, far=100; x=100, y=100, z=-300;
The result was (158.28, 211.05, -344.44)
All I want is this:
Thanks in advance,