0

Vector3().project(Camera()) projects a position from world space to camera space.

The .x and .y values are normalized to the drawing area.

The .z value is also set. At first, I thought it might be depth in scene units, but it's clearly not.

It stays close to but never seems to exceeds 1.0, suggesting that it might just be a side effect of how the .x and .y values are calculated. But its variance is also much greater than I would expect from rounding errors in a mathematically consistent process.

What is the z value from Vector3().project() in THREE.JS?

Will Chen
  • 325
  • 3
  • 11
  • @WestLangley That doesn't actually contradicted anything I asserted in my question— NDC space is relative to the camera, which is itself mapped to the drawing area. And even if it did, it's tangential to the actual point of what the `.z` value does and how it's calculated in this context. – Will Chen Jul 03 '21 at 16:48

0 Answers0