Viewing and Projections
Total Page:16
File Type:pdf, Size:1020Kb
Load more
										Recommended publications
									
								- 
												  CS 543: Computer Graphics Lecture 7 (Part I): Projection EmmanuelCS 543: Computer Graphics Lecture 7 (Part I): Projection Emmanuel Agu 3D Viewing and View Volume n Recall: 3D viewing set up Projection Transformation n View volume can have different shapes (different looks) n Different types of projection: parallel, perspective, orthographic, etc n Important to control n Projection type: perspective or orthographic, etc. n Field of view and image aspect ratio n Near and far clipping planes Perspective Projection n Similar to real world n Characterized by object foreshortening n Objects appear larger if they are closer to camera n Need: n Projection center n Projection plane n Projection: Connecting the object to the projection center camera projection plane Projection? Projectors Object in 3 space Projected image VRP COP Orthographic Projection n No foreshortening effect – distance from camera does not matter n The projection center is at infinite n Projection calculation – just drop z coordinates Field of View n Determine how much of the world is taken into the picture n Larger field of view = smaller object projection size center of projection field of view (view angle) y y z q z x Near and Far Clipping Planes n Only objects between near and far planes are drawn n Near plane + far plane + field of view = Viewing Frustum Near plane Far plane y z x Viewing Frustrum n 3D counterpart of 2D world clip window n Objects outside the frustum are clipped Near plane Far plane y z x Viewing Frustum Projection Transformation n In OpenGL: n Set the matrix mode to GL_PROJECTION n Perspective projection: use • gluPerspective(fovy,
- 
												  Viewing in 3DViewing in 3D Viewing in 3D Foley & Van Dam, Chapter 6 • Transformation Pipeline • Viewing Plane • Viewing Coordinate System • Projections • Orthographic • Perspective OpenGL Transformation Pipeline Viewing Coordinate System Homogeneous coordinates in World System zw world yw ModelViewModelView Matrix Matrix xw Tractor Viewing System Viewer Coordinates System ProjectionProjection Matrix Matrix Clip y Coordinates v Front- xv ClippingClipping Wheel System P0 zv ViewportViewport Transformation Transformation ne pla ing Window Coordinates View Specifying the Viewing Coordinates Specifying the Viewing Coordinates • Viewing Coordinates system, [xv, yv, zv], describes 3D objects with respect to a viewer zw y v P v xv •A viewing plane (projection plane) is set up N P0 zv perpendicular to zv and aligned with (xv,yv) yw xw ne pla ing • In order to specify a viewing plane we have View to specify: •P0=(x0,y0,z0) is the point where a camera is located •a vector N normal to the plane • P is a point to look-at •N=(P-P)/|P -P| is the view-plane normal vector •a viewing-up vector V 0 0 •V=zw is the view up vector, whose projection onto • a point on the viewing plane the view-plane is directed up Viewing Coordinate System Projections V u N z N ; x ; y z u x • Viewing 3D objects on a 2D display requires a v v V u N v v v mapping from 3D to 2D • The transformation M, from world-coordinate into viewing-coordinates is: • A projection is formed by the intersection of certain lines (projectors) with the view plane 1 2 3 ª x v x v x v 0 º ª 1 0 0 x 0 º « » «
- 
												  Implementation of ProjectionsCS488 Implementation of projections Luc RENAMBOT 1 3D Graphics • Convert a set of polygons in a 3D world into an image on a 2D screen • After theoretical view • Implementation 2 Transformations P(X,Y,Z) 3D Object Coordinates Modeling Transformation 3D World Coordinates Viewing Transformation 3D Camera Coordinates Projection Transformation 2D Screen Coordinates Window-to-Viewport Transformation 2D Image Coordinates P’(X’,Y’) 3 3D Rendering Pipeline 3D Geometric Primitives Modeling Transform into 3D world coordinate system Transformation Lighting Illuminate according to lighting and reflectance Viewing Transform into 3D camera coordinate system Transformation Projection Transform into 2D camera coordinate system Transformation Clipping Clip primitives outside camera’s view Scan Draw pixels (including texturing, hidden surface, etc.) Conversion Image 4 Orthographic Projection 5 Perspective Projection B F 6 Viewing Reference Coordinate system 7 Projection Reference Point Projection Reference Point (PRP) Center of Window (CW) View Reference Point (VRP) View-Plane Normal (VPN) 8 Implementation • Lots of Matrices • Orthographic matrix • Perspective matrix • 3D World → Normalize to the canonical view volume → Clip against canonical view volume → Project onto projection plane → Translate into viewport 9 Canonical View Volumes • Used because easy to clip against and calculate intersections • Strategies: convert view volumes into “easy” canonical view volumes • Transformations called Npar and Nper 10 Parallel Canonical Volume X or Y Defined by 6 planes
- 
												  Orthographic and Perspective Projection—Part 1 Drawing AsI N T R O D U C T I O N T O C O M P U T E R G R A P H I C S I N T R O D U C T I O N T O C O M P U T E R G R A P H I C S From 3D to 2D: Orthographic and Perspective Projection—Part 1 •History • Geometrical Constructions 3D Viewing I • Types of Projection • Projection in Computer Graphics Andries van Dam September 15, 2005 3D Viewing I Andries van Dam September 15, 2005 3D Viewing I 1/38 I N T R O D U C T I O N T O C O M P U T E R G R A P H I C S I N T R O D U C T I O N T O C O M P U T E R G R A P H I C S Drawing as Projection Early Examples of Projection • Plan view (orthographic projection) from Mesopotamia, 2150 BC: earliest known technical • Painting based on mythical tale as told by Pliny the drawing in existence Elder: Corinthian man traces shadow of departing lover Carlbom Fig. 1-1 • Greek vases from late 6th century BC show perspective(!) detail from The Invention of Drawing, 1830: Karl Friedrich • Roman architect Vitruvius published specifications of plan / elevation drawings, perspective. Illustrations Schinkle (Mitchell p.1) for these writings have been lost Andries van Dam September 15, 2005 3D Viewing I 2/38 Andries van Dam September 15, 2005 3D Viewing I 3/38 1 I N T R O D U C T I O N T O C O M P U T E R G R A P H I C S I N T R O D U C T I O N T O C O M P U T E R G R A P H I C S Most Striking Features of Linear Early Perspective Perspective • Ways of invoking three dimensional space: shading • || lines converge (in 1, 2, or 3 axes) to vanishing point suggests rounded, volumetric forms; converging lines suggest spatial depth
- 
												  EX NIHILO – Dahlgren 1EX NIHILO – Dahlgren 1 EX NIHILO: A STUDY OF CREATIVITY AND INTERDISCIPLINARY THOUGHT-SYMMETRY IN THE ARTS AND SCIENCES By DAVID F. DAHLGREN Integrated Studies Project submitted to Dr. Patricia Hughes-Fuller in partial fulfillment of the requirements for the degree of Master of Arts – Integrated Studies Athabasca, Alberta August, 2008 EX NIHILO – Dahlgren 2 Waterfall by M. C. Escher EX NIHILO – Dahlgren 3 Contents Page LIST OF ILLUSTRATIONS 4 INTRODUCTION 6 FORMS OF SIMILARITY 8 Surface Connections 9 Mechanistic or Syntagmatic Structure 9 Organic or Paradigmatic Structure 12 Melding Mechanical and Organic Structure 14 FORMS OF FEELING 16 Generative Idea 16 Traits 16 Background Control 17 Simulacrum Effect and Aura 18 The Science of Creativity 19 FORMS OF ART IN SCIENTIFIC THOUGHT 21 Interdisciplinary Concept Similarities 21 Concept Glossary 23 Art as an Aid to Communicating Concepts 27 Interdisciplinary Concept Translation 30 Literature to Science 30 Music to Science 33 Art to Science 35 Reversing the Process 38 Thought Energy 39 FORMS OF THOUGHT ENERGY 41 Zero Point Energy 41 Schools of Fish – Flocks of Birds 41 Encapsulating Aura in Language 42 Encapsulating Aura in Art Forms 50 FORMS OF INNER SPACE 53 Shapes of Sound 53 Soundscapes 54 Musical Topography 57 Drawing Inner Space 58 Exploring Inner Space 66 SUMMARY 70 REFERENCES 71 APPENDICES 78 EX NIHILO – Dahlgren 4 LIST OF ILLUSTRATIONS Page Fig. 1 - Hofstadter’s Lettering 8 Fig. 2 - Stravinsky by Picasso 9 Fig. 3 - Symphony No. 40 in G minor by Mozart 10 Fig. 4 - Bird Pattern – Alhambra palace 10 Fig. 5 - A Tree Graph of the Creative Process 11 Fig.
- 
												  CS 4204 Computer Graphics 3D Views and ProjectionCS 4204 Computer Graphics 3D views and projection Adapted from notes by Yong Cao 1 Overview of 3D rendering Modeling: * Topic we’ve already discussed • *Define object in local coordinates • *Place object in world coordinates (modeling transformation) Viewing: • Define camera parameters • Find object location in camera coordinates (viewing transformation) Projection: project object to the viewplane Clipping: clip object to the view volume *Viewport transformation *Rasterization: rasterize object Simple teapot demo 3D rendering pipeline Vertices as input Series of operations/transformations to obtain 2D vertices in screen coordinates These can then be rasterized 3D rendering pipeline We’ve already discussed: • Viewport transformation • 3D modeling transformations We’ll talk about remaining topics in reverse order: • 3D clipping (simple extension of 2D clipping) • 3D projection • 3D viewing Clipping: 3D Cohen-Sutherland Use 6-bit outcodes When needed, clip line segment against planes Viewing and Projection Camera Analogy: 1. Set up your tripod and point the camera at the scene (viewing transformation). 2. Arrange the scene to be photographed into the desired composition (modeling transformation). 3. Choose a camera lens or adjust the zoom (projection transformation). 4. Determine how large you want the final photograph to be - for example, you might want it enlarged (viewport transformation). Projection transformations Introduction to Projection Transformations Mapping: f : Rn Rm Projection: n > m Planar Projection: Projection on a plane.
- 
												  Bridges Conference PaperBridges 2020 Conference Proceedings Dürer Machines Running Back and Forth António Bandeira Araújo Universidade Aberta, Lisbon, Portugal; [email protected] Abstract In this workshop we will use Dürer machines, both physical (made of thread) and virtual (made of lines) to create anamorphic illusions of objects made up of simple boxes, these being the building blocks for more complex illusions. We will consider monocular oblique anamorphosis and then anaglyphic anamorphoses, to be seen with red-blue 3D glasses. Introduction In this workshop we will draw optical illusions – anamorphoses – using simple techniques of orthographic projection derived from descriptive geometry. The main part of this workshop will be adequate for anyone over 15 years of age with an interest in visual illusions, but it is especially useful for teachers of perspective and descriptive geometry. In past editions of Bridges and elsewhere at length [1, 6] I have argued that anamorphosis is a more fundamental concept than perspective, and is in fact the basic concept from which all conical perspectives – both linear and curvilinear – are derived, yet in those past Bridges workshops I have used anamorphosis only implicitly, in the creation of fisheye [4] and equirectangular [3] perspectives . This time we will instead focus on a sequence of constructions of the more traditional anamorphoses: the so-called oblique anamorphoses, that is, plane anamorphoses where the object of interest is drawn at a grazing angle to the projection plane. This sequence of constructions has been taught at Univ. Aberta in Portugal since 2013 in several courses to diverse publics; it is currently part of a course for Ph.D.
- 
												  Shortcuts GuideShortcuts Guide One Key Shortcuts Toggles and Screen Management Hot Keys A–Z Printable Keyboard Stickers ONE KEY SHORTCUTS [SEE PRINTABLE KEYBOARD STICKERS ON PAGE 11] mode mode mode mode Help text screen object 3DOsnap Isoplane Dynamic UCS grid ortho snap polar object dynamic mode mode Display Toggle Toggle snap Toggle Toggle Toggle Toggle Toggle Toggle Toggle Toggle snap tracking Toggle input PrtScn ScrLK Pause Esc F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 SysRq Break ~ ! @ # $ % ^ & * ( ) — + Backspace Home End ` 1 2 3 4 5 6 7 8 9 0 - = { } | Tab Q W E R T Y U I O P Insert Page QSAVE WBLOCK ERASE REDRAW MTEXT INSERT OFFSET PAN [ ] \ Up : “ Caps Lock A S D F G H J K L Enter Delete Page ARC STRETCH DIMSTYLE FILLET GROUP HATCH JOIN LINE ; ‘ Down < > ? Shift Z X C V B N M Shift ZOOM EXPLODE CIRCLE VIEW BLOCK MOVE , . / Ctrl Start Alt Alt Ctrl Q QSAVE / Saves the current drawing. C CIRCLE / Creates a circle. H HATCH / Fills an enclosed area or selected objects with a hatch pattern, solid fill, or A ARC / Creates an arc. R REDRAW / Refreshes the display gradient fill. in the current viewport. Z ZOOM / Increases or decreases the J JOIN / Joins similar objects to form magnification of the view in the F FILLET / Rounds and fillets the edges a single, unbroken object. current viewport. of objects. M MOVE / Moves objects a specified W WBLOCK / Writes objects or V VIEW / Saves and restores named distance in a specified direction. a block to a new drawing file.
- 
												  Anamorphosis: Optical Games with Perspective’S Playful ParentAnamorphosis: Optical games with Perspective's Playful Parent Ant´onioAra´ujo∗ Abstract We explore conical anamorphosis in several variations and discuss its various constructions, both physical and diagrammatic. While exploring its playful aspect as a form of optical illusion, we argue against the prevalent perception of anamorphosis as a mere amusing derivative of perspective and defend the exact opposite view|that perspective is the derived concept, consisting of plane anamorphosis under arbitrary limitations and ad-hoc alterations. We show how to define vanishing points in the context of anamorphosis in a way that is valid for all anamorphs of the same set. We make brief observations regarding curvilinear perspectives, binocular anamorphoses, and color anamorphoses. Keywords: conical anamorphosis, optical illusion, perspective, curvilinear perspective, cyclorama, panorama, D¨urermachine, color anamorphosis. Introduction It is a common fallacy to assume that something playful is surely shallow. Conversely, a lack of playfulness is often taken for depth. Consider the split between the common views on anamorphosis and perspective: perspective gets all the serious gigs; it's taught at school, works at the architect's firm. What does anamorphosis do? It plays parlour tricks! What a joker! It even has a rather awkward dictionary definition: Anamorphosis: A distorted projection or drawing which appears normal when viewed from a particular point or with a suitable mirror or lens. (Oxford English Dictionary) ∗This work was supported by FCT - Funda¸c~aopara a Ci^enciae a Tecnologia, projects UID/MAT/04561/2013, UID/Multi/04019/2013. Proceedings of Recreational Mathematics Colloquium v - G4G (Europe), pp. 71{86 72 Anamorphosis: Optical games.
- 
												  Perspective As Ideologyperspective as ideology Perspective, far from being the ‘way that we naturally see’, is a highly constructed set of visual conventions that charges the visual fi eld — in and out of graphic representation occasions — with ideological mandates and presup- positions. Through the ‘instructive’ function of perspectival scenery in popular culture (print, fi lm, photography, etc.), everyday visual perception carries over the habits introduced by graphic convention. Trained to ‘see’ through ideology, perception creates the categories and identities that are readily fi lled in sense encounters, ‘proving’ the ideological basis to be ‘empirically valid’ although the ‘data’ has been ‘fi xed from the start’. It is possible to use Lacan’s L-scheme to recover the forensic pattern of ideological structuring that creates the ‘uncanny’ reversal of cause and effect so that perception appears to ‘endorse’ ideological signifi cations. 1. the cone of vision In the consolidation of ‘rules of perspective’ for application in draughting and painting, the model of the cone of vision was used to demonstrate how visual rays eminating f from the single, fi xed, open eye (binocularity would not work in perspective) could ‘cut’ imagined through an imaginary or actual picture plane to mark the relative position of objects alternative lying beyond. In this way, objects actually did represent accurately the spherical quality observer of the visual fi eld, where ‘straight’ edges appeared to be curved, as they actually were vanishing point on the surface of the retina. Geometric perspective was used to ‘correct’ this curvature and, by projecting parallel straight lines, locate vanishing points that could subsequently $ be used to regulate other lines parallel to the fi rst.
- 
												  Perpective Presentation2.PdfProjections transform points in n-space to m-space, where m<n. Projection is 'formed' on the view plane (planar geometric projection) rays (projectors) projected from the center of projection pass through each point of the models and intersect projection plane. In 3-D, we map points from 3-space to the projection plane (PP) (image plane) along projectors (viewing rays) emanating from the center of projection (COP): TYPES OF PROJECTION There are two basic types of projections: Perspective – center of projection is located at a finite point in three space Parallel – center of projection is located at infinity, all the projectors are parallel Plane geometric projection Parallel Perspective Orthographic Axonometric Oblique Cavalier Cabinet Trimetric Dimetric Single-point Two-point Three-point Isometric PARALLEL PROJECTION • center of projection infinitely far from view plane • projectors will be parallel to each other • need to define the direction of projection (vector) • 3 sub-types Orthographic - direction of projection is normal to view plane Axonometric – constructed by manipulating object using rotations and translations Oblique - direction of projection not normal to view plane • better for drafting / CAD applications ORTHOGRAPHIC PROJECTIONS Orthographic projections are drawings where the projectors, the observer or station point remain parallel to each other and perpendicular to the plane of projection. Orthographic projections are further subdivided into axonom etric projections and multi-view projections. Effective in technical representation of objects AXONOMETRIC The observer is at infinity & the projectors are parallel to each other and perpendicular to the plane of projection. A key feature of axonometric projections is that the object is inclined toward the plane of projection showing all three surfaces in one view.
- 
												  Viewing and Projection Viewing and ProjectionViewing and Projection The topics • Interior parameters • Projection type • Field of view • Clipping • Frustum… • Exterior parameters • Camera position • Camera orientation Transformation Pipeline Local coordinate Local‐>World World coordinate ModelView World‐>Eye Matrix Eye coordinate Projection Matrix Clip coordina te others Screen coordinate Projection • The projection transforms a point from a high‐ dimensional space to a low‐dimensional space. • In 3D, the projection means mapping a 3D point onto a 2D projection plane (or called image plane). • There are two basic projection types: • Parallel: orthographic, oblique • Perspective Orthographic Projection Image Plane Direction of Projection z-axis z=k x 1000 x y 0100 y k 000k z 1 0001 1 Orthographic Projection Oblique Projection Image Plane Direction of Projection Properties of Parallel Projection • Definition: projection directions are parallel. • Doesn’t look real. • Can preserve parallel lines Projection PlllParallel in 3D PlllParallel in 2D Properties of Parallel Projection • Definition: projection directions are parallel. • Doesn’t look real. • Can preserve parallel lines • Can preserve ratios t ' t Projection s s :t s' :t ' s' Properties of Parallel Projection • Definition: projection directions are parallel. • Doesn’t look real. • Can preserve parallel lines • Can preserve ratios • CANNOT preserve angles Projection Properties of Parallel Projection • Definition: projection directions are parallel. • Doesn’t look real. • Can preserve parallel