Prev | A Tool
for Generating Perspective Grids - Page 2 (of 2) |
Neil Huggett's Gallery | Home Page Menu | Writing Menu Page
A Tool for Generating Perspective Grids 2 |
5th November 2004 I need a perspective grid for the drawing I’m working on, and I
feel that it should be a relatively easy thing to get a computer to produce
from some basic information. |
|
To be able to set up a perspective grid of squares, I should only need:
|
The rest should be able to be calculated from these specifications. Eg. the vanishing point for the diagonals should be able to be calculated from these. The computer could calculate the lines with great accuracy, removing the need for long rulers to wide vanishing points. Such a tool for calculating perspective grids would be useful for many future drawings as well. I like the idea of creating such tools. Maybe, it would be more useful to start with different variables,
based on distance measurements that could be more easily made from the
drawing I want to produce the grid for.
What results then did I want to get back? How would the grid be drawn on my drawing. The dimensions along the paper edge might be necessary as well.
For simplicity, it would be best to use the horizon as the main reference line. This should work well, and be useful for many future drawings. Unfortunately, I found the mathematics tricky to develop. I could work out the positions of the Vanishing Points easily enough, but I couldn’t see an easy way to determine the grid measurements along each each line to the vanishing points. It also seemed to be vitally important to know where the vanishing point for the diagonals was located along the horizon, but calculating this seemed very complex. |
In October 2005, I started looking again at producing the mathematics
for generating perspective grids from minimal measurements from a drawing: |
Eventually, I came up with a schema for the procedure:
I was determined to crack the task. It felt like it should be possible
within my understanding of perspective, and geometry. |
|
|
|
|
|
|
|
I firstly worked with a spreadsheet for checking some of the formulae I was developing. What I realised was that at some point, I’d have to determine the parameters of a model that could then be used to generate the perspective grid - parameters such as how far away the model is from the viewer, how high the viewer is above the model, the anticlockwise rotation angle of the model of unit squares, the scale factor for the unit squares, and a horizontal offset dimension for the model, from the viewpoint. To determine the parameters for the model, I’d have to work backwards through the process of generating the perspective grid, from the measurements taken from the drawing. By using generic mathematical definitions for the points of the model and applying the mathematics required to produce the perspective results, I could then try to solve values for the above parameters. I firstly solved values for how high the viewer was above the model, and the horizontal offset. I was then able to determine the anticlockwise rotation angle of the model, and its distance away from the viewer. This was all very pleasing. The scale factor proved to be too complex to calculate by solving for a single value within the formulae I had developed. Instead, I implemented a way of calculating an approximate value, based on trial and error. I firstly started with a scale factor, calculated the resulting points, and then measured the distance between them. If the distance was too small, I increased the scale factor by 1, and recalculated the perspective point positions and the distance between them, etc. If the distance was too big, I then removed 1 from the scale factor, and started a similar series of calculations using 0.1 increments, then 0.01 increments, and finally 0.001 increments. It may sound like it would take a while to do all of these calculations, but today’s computers can do those calculations very quickly indeed. |
|
|
|
|
|
After developing the spreadsheet to get good results, I then decided to create a tool that could show the grid, and provide the measurements required to transfer the grid back onto the drawing the parameters came from. Download the tool from here (right-click on the link and "save as" to your computer for running it from there). |
Prev | A Tool
for Generating Perspective Grids - Page 2 (of 2) |