Hello everyone,
I’m working on a Three.js application where users can create geometry by drawing directly in a 2D space. Here’s the workflow I’m aiming for:
- In the 3D space, users create axes on the XZ plane.
- When users select a specific axis, they are redirected to the corresponding plane for drawing.
To achieve this, I suppose that I should calculate the plane’s normal vector and its distance from the origin based on the selected axis. No problem for doing this.
My main question is: How should I handle the camera and scene to provide a 2D view where users can focus solely on the selected plane?
- The view should ensure that anything before or behind the plane is hidden.
- The interface should resemble a clean, 2D drawing environment aligned with the defined plane.
At this point, I’m not looking for specific code but rather the key concepts or techniques I should understand to implement this. If there are any existing projects or examples that align with this functionality, I’d love to explore them as well.
Thank you in advance for your insights!