Required Image 1:
Required Image 2:

These images were both generated using a 3D viewing pipeline.
To create the pipeline, first we redefined the relative location of all points in the image to regard the
place of the "camera" as the origin, and redefined the basic cardinal directions to fit those of the camera view.
We then shrunk everything within range of the camera so that it would fit inside a unit box, then expanded the coordinates
to fit the size of the image.
In addition to these basic steps used to translate basic world coordinates, we took a few extra steps when creating a
3D view. Before scaling up, we adjusted x and y coordinates of all points to reflect how far "away" the coordinates were from
the camera. Also, we only choose to clip away parts of the world which are too close or too far away to register.
The 8 (x, y) values of the points on the cube ended up as follows (after scaling by the view matrix):
75, 75
75, 75
25, 75
75, 25
30, 70
30, 30
70, 30
70, 70
Increasing the projection distance enlarges and appears to flatten the cube. Changing VUP rotates the cube (along the Z-axis
if you rotate VUP along the Z-axis) . Decreasing the size of the view window shifts the cube more towards the origin and shrinks
it.
|
|