Hello,
I use BABYLON.Vector3.Project to compute the normalized screen coordinates of my sphere
I assume that is the X component of the output of BABYLON.Vector3.Project is less than 0, the sphere is outside my frustrum / to left from the camera; and if it is greater than 1, the sphere is outside my frustrum / to tight from the camera.
Y component is analogous , but for the vertical direction.
However, it is not clear meaning of Z component. It apprears that I see my sphere only when 0.0 < Z < 1.0.
So my questions are
- Can I assume that center of my sphere is outside the frustrum is if Z < 0 or Z > 1?
- Is that correct to assume that the center of the sphere being to the left / right of frustrum purely depends on sign of X or it also depends on value of Z?
thank you,
David