All Engineering

Drawing Tools

Interactive references for practicing perspective, form, and more. The first one is a cube you can push around in 1-, 2-, or 3-point perspective.

Drawing Tools is a set of interactive references for practicing drawing. Perspective books show a cube once, from one angle. I wanted one I could move: slide a vanishing point, see the box change, and get a feel for why it changes.

Perspective Cube

The first tool is Perspective Cube. It has a horizon line, vanishing points, and a cube that follows them in 1-, 2-, or 3-point perspective.

  • Drag the colored dots to slide vanishing points.
  • Drag the horizon line to change eye level.
  • Drag anywhere else to move the cube.

Sliders set cube size, viewing distance, rotation, and ground level. Toggles turn on construction lines back to each vanishing point, dashed hidden edges, and a ground grid with drop lines from the cube's corners.

Working backwards to a camera

Most perspective demos do it the usual way: place a camera, render a box, and let the vanishing points fall wherever they fall. Drawing goes the other way. You pick the vanishing points first and build the box from them, so the tool does the same.

Each time you drag, the tool solves for the camera that would produce those vanishing points: the principal point, the focal length, and the cube's orientation. In 2-point perspective, the focal length is the square root of the product of the distances from the principal point to each vanishing point. In 3-point, the three vanishing points form a triangle, and the camera sits over its orthocenter.

That math also explains one of the rules from drawing class. A real camera only exists when the triangle of vanishing points is acute. Drag the third point too close to the horizon and no camera can produce the image, so the tool holds it at the closest point that still works. On paper the same mistake shows up as a cube that looks stretched.

Three.js renders the cube with a projection matrix built directly from those numbers. A 2D canvas on top draws the horizon, the vanishing points, and the construction lines, so the guides line up with the rendered cube.

Built to grow

The site is plain Vite with no framework. Each tool is its own tools/<slug>/index.html with a main.js, and it imports one shared stylesheet for the panel, buttons, and hints. The build picks up every tool folder automatically, and one entry in a list puts the tool on the home page. Form and other perspective studies come next.