25
Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Embed Size (px)

Citation preview

Page 1: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Classical Viewing

CS4395: Computer Graphics 1

Mohan SridharanBased on slides created by Edward Angel

Page 2: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Objectives

• Introduce classical views.

• Compare computer-based image formation with how images have been formed by architects, artists, and engineers.

• Learn the benefits and drawbacks of each type of view.

CS4395: Computer Graphics 2

Page 3: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Classical Viewing• Viewing requires three basic elements:

– One or more objects.– A viewer with a projection surface.– Projectors that go from the object(s) to the projection

surface.• Classical views based on the relationship among these

elements:– The viewer picks up the object and orients it as he/she

would like to see it.• Each object is assumed to be constructed from flat

principal faces:– Buildings, polyhedra, manufactured objects.

CS4395: Computer Graphics 3

Page 4: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Planar Geometric Projections

• Standard projections project onto a plane.• Projectors are lines that either:

– Converge at a center of projection.– Are parallel.

• Such projections preserve lines:– But not necessarily angles.

• Non-planar projections needed for applications such as map construction.

CS4395: Computer Graphics 4

Page 5: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Classical Projections

CS4395: Computer Graphics 5

Page 6: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Perspective vs. Parallel

• Computer graphics treats all projections the same and implements them with a single pipeline.

• Classical viewing has different techniques for drawing each type of projection.

• Fundamental distinction is between parallel and perspective viewing even though parallel viewing is mathematically the limit of perspective viewing.

CS4395: Computer Graphics 6

Page 7: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Taxonomy of Planar Geometric Projections

parallel

CS4395: Computer Graphics 7

perspective

axonometric multivieworthographic

oblique

isometric dimetric trimetric

2 point1 point 3 point

planar geometric projections

Page 8: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Perspective Projection

CS4395: Computer Graphics 8

Page 9: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Parallel Projection

CS4395: Computer Graphics 9

Page 10: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Taxonomy of Planar Geometric Projections

parallel

CS4395: Computer Graphics 10

perspective

axonometric multivieworthographic

oblique

isometric dimetric trimetric

2 point1 point 3 point

planar geometric projections

Page 11: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Orthographic ProjectionProjectors are orthogonal to projection surface.

CS4395: Computer Graphics 11

Page 12: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Multiview Orthographic Projection

• Projection plane parallel to principal face.• Usually front, top, side views.

CS4395: Computer Graphics 12

isometric (not multivieworthographic view) front

sidetop

in CAD and architecture, we often display three multiviews plus isometric.

Page 13: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Advantages and Disadvantages

• Preserves both distances and angles:– Shapes preserved.– Can be used for measurements:

• Building plans, Manuals.

• Cannot see what object really looks like because many surfaces hidden from view:– Often add the isometric view.

CS4395: Computer Graphics 13

Page 14: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Axonometric Projections

Allow projection plane to move relative to object.

CS4395: Computer Graphics 14

Classify by how many angles ofa corner of a projected cube are the same.

none: trimetric.two: dimetric.three: isometric.

1

32

Page 15: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Types of Axonometric Projections

CS4395: Computer Graphics 15

Page 16: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Advantages and Disadvantages• Lines are scaled (foreshortened) but can find scaling factors.• Lines preserved but angles are not:

– Projection of a circle in a plane not parallel to the projection plane is an ellipse.

• Can see three principal faces of a box-like object.

• Some optical illusions possible:– Parallel lines appear to diverge.

• Does not look real because far objects are scaled the same as near objects.

• Used in CAD applications.

CS4395: Computer Graphics 16

Page 17: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Oblique Projection

• Arbitrary relationship between projectors and projection plane.

CS4395: Computer Graphics 17

Page 18: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Advantages and Disadvantages

• Can pick the angles to emphasize a particular face.– Architecture: plan oblique, elevation oblique.

• Angles in faces parallel to projection plane are preserved while we can still see “around” side.

• In physical world, cannot create with simple camera; possible with bellows camera or special lens (architectural).

CS4395: Computer Graphics 18

Page 19: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Taxonomy of Planar Geometric Projections

parallel

CS4395: Computer Graphics 19

perspective

axonometric multivieworthographic

oblique

isometric dimetric trimetric

2 point1 point 3 point

planar geometric projections

Page 20: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Perspective Projection

• Projectors converge at center of projection.

CS4395: Computer Graphics 20

Page 21: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Vanishing Points

• Parallel lines (not parallel to the projection plan) on the object converge at a single point in the projection (the vanishing point) .

• Drawing simple perspectives by hand uses these vanishing point(s).

CS4395: Computer Graphics 21

vanishing point

Page 22: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Three-Point Perspective

• No principal face parallel to projection plane.• Three vanishing points for cube.

CS4395: Computer Graphics 22

Page 23: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Two-Point Perspective

• One principal direction parallel to projection plane.• Two vanishing points for cube.

CS4395: Computer Graphics 23

Page 24: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

One-Point Perspective

• One principal face parallel to projection plane.• One vanishing point for cube.

CS4395: Computer Graphics 24

Page 25: Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel

Advantages and Disadvantages

• Objects further from viewer are projected smaller than the same objects closer to the viewer (diminution).– Looks realistic.

• Equal distances along a line are not projected into equal distances (non-uniform foreshortening).

• Angles preserved only in planes parallel to the projection plane.

• More difficult to construct by hand than parallel projections (but not difficult by computer).

CS4395: Computer Graphics 25