Problem O-1. Give the main classification of the projections used to make
(a) the picture of the earth in Figure .
(b) our usual drawing of axes (with
vertical,
horizontal, and
slanted);
(c) the 3-d engineering graph paper shown at the end of this handout;
(d) the map of Math Sciences and Boelter Hall displayed by the elevator in the MS 5th floor lobby off the breezeway.
Problem O-2. In the article by Carlbom and Paciorek [1] , two picture captions have accidentally been switched. Which ones?
Problem O-3. Imagine a large cubical storage shed, 10 feet in each dimension and open in the front. It sits on horizontal ground. Sketch views of the shed as seen from these locations, and say what kind of projection each is. (No computations expected. Classify by major kind (orthographic, oblique, perspective) and by subclassification if relevant. Imagine a viewplane perpendicular to the line of sight described.)
(a) with your eye at ground level, 30 feet in front of the shed, looking directly toward it (in other words, along a line on the ground going to the middle of the front of the shed).
(b) Corner-on from 40 feet away, along a line passing directly through the top front left corner and the bottom back right corner. (Here ``left'' and ``right'' are interpreted with respect to you.)
(c) From very far away, along the same line as in (b). (``Very far'' = ``from infinity''. Imagine using a telescope, so the shed still does not appear tiny.)
(d) From very far away, along a vertical line of sight.
Problem
O-4. Find a right-handed orthonormal coordinate
frame
v w
n for a viewplane with normal
N
and up-vector
U
k
.
Problem
O-5. Find a right-handed orthonormal coordinate
frame
v w
n for a viewplane with normal
N
, using
k
as an up-vector. Assume
. (Be sure to use the unit
normal
n where needed. Of course, your answer will be
in terms of letters. It is easiest to normalize lengths last.)
Problem
O-6. (a) For a perspective projection from an arbitrary
viewpoint onto the
-plane, by what
matrix should the homogeneous coordinates of the
points of the object be transformed?
(b) Compute and sketch a picture of the standard
tetrahedron, with vertices
e e
e
,
and the origin, as projected on the
-plane from
.
Problem
O-7. Consider the cube
, viewplane
, and up-vector
k
.
(a) Find the coordinate frame and rotation matrix that go with this setup.
(b) Find expressions for the images of the vertices in the
-plane, after rotation, using an orthographic
projection. Your answer may be left as a matrix product
(with the first matrix being a row vector). The matrix on
the right can be
, since the missing third
column has the effect of discarding the third entry.
(c) Repeat (b) using a perspective projection with
viewpoint (before rotation). You may leave the
answers in homogeneous coordinates. (In other words, after
doing the same rotation as for the orthographic problem,
multiply by an additional viewing transformation to take care
of the perspective, and finally project orthographically to two dimensions.
The last two steps can be combined by taking the
matrix for the viewing transformation and then deleting the
third column and use the resulting
matrix.)
(In all parts, you may combine cases by using .)
Problem
O-8. Consider the ``standard unit cube'' in
R, in
other words, the cube whose vertices have coordinates with
entries 0 and/or
only. Give the main and
sub-classification of each of the following projections of
the cube. You are not asked to compute images.
(a) viewplane
, viewpoint
;
(b) viewplane
, viewpoint
;
(c) viewplane
, viewpoint
;
(d) viewplane
, viewpoint
;
(e) viewplane , viewpoint
;
(f) viewplane , viewpoint
.
Problem
O-9. The three-dimensional analogue of a window in user
(world) coordinates is a box-shaped viewing volume. Parts
of the object that are in front of the viewing volume or in
back of it would not be shown. Suppose your viewing volume
is
,
,
, and you are making a perspective projection on the
-plane with viewpoint
. After you apply
the projective transformation in
P
to move the
viewpoint to infinity on the
-axis, where has each of
the corners of the viewing volume moved to?
Problem
O-10. Consider a perspective projection on the
-plane from the viewpoint
, and the
projective transformation on
P
that moves the
viewpoint to infinity on the
-axis (the viewing
transformation).
(a) Under the projection, what ultimately happens to the viewpoint itself? (Apply the projective transformation and then the orthographic projection to the viewpoint and interpret what your answer means.)
(b) In (a), what happens to other points where
are not both zero?
(c) Under just the viewing transformation, as the
viewpoint is being taken to at infinity, the point
is being taken to some other point. What point?
Problem
O-11. In our usual setup for a perspective projection, the
viewplane is the plane and the viewpoint is at
. As in formula
, the result of the
projecting is
.
What formula is obtained instead if the viewplane is the plane
and the viewpoint is the origin?
Suggestion: Instead of trying to do this from the beginning,
make the transformation
that trades the
and
planes and then use formula
(so you
put
for
in that formula). Simplify algebraically.
Problem
O-12. Suppose that a car is represented in three
dimensions in a coordinate system for which the positive
-axis is horizontal and points forward on the car, the
positive
-axis is horizontal and points to the left,
and the positive
-axis is up. For the origin, take
some point that is roughly in the center of the car, and for
the units use meters.
(a) Is this coordinate system right-handed or left-handed?
(b) Suppose you want to make an a view of the car from the
outside, looking toward the right front corner of the car (right
as seen by the driver). Specifically, suppose that you use an
orthographic projection along rays slanted at to the
ground and at
sideways from forward. Give an
appropriate normal vector for the viewplane and an appropriate
up-vector. (You may leave your answer as a matrix product.)
(c) Suppose you want to make successive views as if you are walking around the car in a circle five meters in radius and centered on the ground under the origin you chose. Use a perspective projection with a viewpoint at your eyes, one meter higher than the origin. For a viewplane normal, use the line from your eyes to the origin. Give the viewplane normal, the distance of the viewpoint from the viewplane, and the up-vector to use. (You may leave your answer in the form of a matrix product. The normal will be in terms of some angle or time parameter.)
Problem
O-13. A puzzle: Figure , similar to one
in Carlbom and Paciorek [1], shows two oblique projections of the
same I-beam, but with different faces being undistorted and with
possibly different foreshortening ratios. Find these
foreshortening ratios and (if relevant) give the name(s) of the
projection(s). (Measure the pictures with a ruler in
millimeters and use what logic you can. A good idea is to find a
distance that is shown undistorted in both pictures and use that
as a ``unit'', in terms of which to measure all distances on the
picture and on the object. One catch is that the pictures are
not to the same scale.)
Problem
O-14. Reconstruction of a cube from its image: the
orthographic case. Consider a cube with one vertex at the
origin in
R but otherwise in no special position or
orientation and of no special size. Suppose that this cube
is projected orthographically on the
-plane, and
consider the problem of reconstructing the cube from just
knowing its image. Specifically, let the vertices adjacent
to the vertex at the origin be
,
, and
. Looking
at the image, you can see the pairs
for each
, but the values of the
are not obvious. This
problem shows how the
can be found.
It is handy to define the three vectors
x
,
y
, and
z
, even though these have
no obvious pictorial interpretation in terms of the original
cube. (If the cube is a unit cube, they are triples
consisting of the cosines of the angles that the axes of the
cube make with the
-,
-, and
-axes.)
(a) Show that if the cube is a unit cube then
x and
y are orthogonal to each other and of length 1, and
that
z is plus or minus
x y.
(Method: Write the original vertices as rows of a
matrix. What is special about this matrix?
x and
y are two of its columns.)
(b) Explain why if the cube is not necessarily a unit
cube,
x and
y are still orthogonal to each other
and have equal lengths , where
is the length of
the sides of the cube. (Method:
x
,
y
,
z
are as in (a).)
(c) Invent a way of finding
(except for
a factor of
) from a knowledge of the three image
points
. (The factor of
is needed
because if you have one solution then its reflection in the
-plane is another solution. The method is the same
idea as in (b).)
Problem
O-15. Reconstruction of a cube from its image: the
general parallel case. Suppose a picture of a cube with
sides of length is using with a parallel projection on
the
-plane from the viewpoint
. If
and
are 0, the projection is orthographic;
otherwise, it is oblique. In either case, allow the cube to
be tilted with respect to the viewplane. (In the oblique
case this is contrary to our usual guarantee that we won't
use oblique projections unless one face is parallel to the
viewplane.)
As in Problem O-, let one vertex of the cube be
the origin and let the adjacent vertices be
for
. This time, since the projection
rays might be slanted, the images in the viewplane are not
just the first two coordinates of the points, so let the
images be called
for
. As in
Problem O-
, define vectors
u
and
w
.
(a) It is a fact that
u x
z and
w
y
z. These sound similar to something you know for oblique
projections, but notice that these are vector equations, not
scalar equations. Why are they true? (Method: Think
coordinatewise.)
(b) For short, let
u
u,
w
w,
u
w. Explain why, if the projection is
orthographic, then
and
. (You may quote
what you need from (b) of Problem O-
, which makes
this very easy.)
(c) Show that, conversely, if and
,
then the projection is orthographic. (Method: You may
quote what you need from Problem O-
. Start by
finding
in terms of
x
y
z, carefully
using rules for dot products that are like rules of
high-school algebra. Then use what you know about
x
y
z.)
Note. By (b) and (c), you can tell just from the image of a cube whether a parallel projection is orthographic or oblique, if you're willing to measure the coordinates of the images of the vertices. (In fact, since it's also easy to see if a projection is perspective, all three of the possibilities orthographic, oblique, and perspective can be determined from the image alone.)
Problem
O-16. This problem carries Problem O- further
for the case of a unit cube,
. Show how to compute
the points
and the oblique projection
direction
just from the image points
. In other words, from an oblique image of a tilted
unit cube show how to reconstruct the whole projection setup
precisely.
(It is not required to find a formula for everything in
terms of the image points; rather, you can solve for
unknowns in stages, with a recipe for a solution at each
stage in terms of quantities already computed at preceding
stages. Outline: In the notation of Problem O-,
(c) of that problem gives
,
,
, so you can solve for
and
up to a
factor of
. Next concentrate on finding
z, the
list of
coordinates, as follows. Using the equations
of (a) of Problem O-
and facts about
x,
y,
z, you get
z
u
,
z
w
. Notice that these are equations of planes in
R
; since
z is of length 1, it lies where the
line of intersection of these planes cuts the unit sphere
. [There could be two
possibilities. To find them, you'd need to represent the
line parametrically, then substitute coordinates in the
equation for the sphere and simplify to get a quadratic
equation in
; solve.] Then, knowing
z, how can you
get
x,
y?)
Problem
O-17. This problem generalizes Problem O- by
allowing a cube of any side
. Show how to compute the
points
and the oblique projection
direction
just from the image points
. In other words, from an oblique image of a tilted
cube show how to reconstruct the whole projection setup
precisely, even without knowing the length of the side of
the cube.
(Method: With notation as in Problem O- and
Problem O-
you get
,
,
. Here
,
, and
are constants known from the coordinates of the images of the
vertices, and
are unknown. For convenience let
and
, so that
,
,
. Then
and
are two
equations in just the unknowns
. Solve the second for
and substitute in the first to get an equation in
alone, which clears to a quadratic equation in
. Solve
for
using the quadratic formula. Then use
to
solve for
. You should get
. Now, knowing
, try to reduce
everything to Problem O-
.)
Problem
O-18. You wish to view the earth from above Los Angeles,
which is approximately at latitude , longitude
. What rotation should you use? (You may leave
your answer as a product of standard rotations, without explicit
entries. Don't bother to convert to radians.)
Problem
O-19. If you use the latitude-longitude method to make
a picture of the earth from above a point in the southern
hemisphere, does the north pole come out at the top of your
picture (i.e., after being rotated does it project to the
positive -axis), or at the bottom (negative
-axis)?
Problem
O-20. (a) Find a rotation formula, similar to the one in
formula , for a viewing direction with altitude
and azimuth
. (b) Find a rotation formula for
a viewing direction with co-latitude
and longitude
.