0

Is there a way to determine the max / min values for height and width in the threejs coordinate system?

I'm (kinda) aware of the Frustum / Projection matrix thing, but I can't quite see the whole picture, I'd be glad if someone could illuminate me on this, with some practical example, since I'm pretty new to all this and I'm struggling a little to get my head around it.

The first think that came to my head to solve this problem was to create a mesh and use it as a dummy to detect the boundaries of the canvas, but I was wondering if it would be a more convenient way to achieve this.

Just FYI I need this for a script that should draw a 2d grid of lines, with a fixed camera.

Community
  • 1
  • 1
holographix
  • 2,497
  • 2
  • 32
  • 46

0 Answers0