govil-pai - principles of computer graphics

297 325 0
govil-pai - principles of computer graphics

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... 1.2 Primitive definition Meaning GL-POINTS individual points of GL-LINES - - - - - pair- -vertices defining-a-line GL-LINE-STRIP of - series- -connected-lines GL-TRIANGLES - -strip - linked triangles of vertices-define a simple convex polygon GL-POLY GON - I - p - r - - 1 - Table 1.2: OpenGL geometric primitive types Note that primitives are all straight-line primitives There are algorithms... glBlendFunc(GL-SRC-ALPHA,GL-ONE-MINUS-SRC-ALPHA); glHintlGL-LINE-SMOOTH-HINT I G - O Y O - M O HHN , LP L G NS O T - I T GL-DONT-CARE); You can find the entire source code in Examplel-4/Examplel-4.cpp.When you run this example, look at the hands carefully You will notice they seem smoother than from Examplel-3 (Note that the polygons are still not antialiased as they need further treatment.) The actual details of. .. passing in GL-POINT-SMOOTH or GL-LINE-SMOOTH, as appropriate 2 We also need to enable blending by using a blending factor The blending factors you most likely want to use are GL-SRC-ALPHA (source) and GL-ONE-MINUS-SRC-ALPHA (destination) To anti-alias our stick figure, we add a few more calls in the init function from Examplel-3, as shown in the code below: glEnable (GL-LINE-SMOOTH); glEnable (GL-BLEND);... pervasive in every aspect of our lives The time to get acquainted with it is now—so read on! Section I The Basics Imagine how the world would be if computers had no way of drawing pictures on the screen The entire field of Computer Graphics- flight simulators, CAD systems, video games, 3D movies-would be unavailable Computers would be pretty much what they were in the 1960s - just processing machines... Today, computers do draw pictures It's important to understand how computers actually store and draw graphic images The process is very different from the way people do it First, there's the problem of getting the image on the screen A computer screen contains thousands of little dots of light called pixels To display a picture, the computer must be able to control the color of each pixel Second, the computer. .. emerging and changing every day For example, these days, sub-division surfaces, radiosity, and vertex shaders are in vogue We cannot hope to cover every technology in this book The aim of the book is to empower you with the basics of CG-providing the stepping-stone to pick up on any CG concept that comes your way A key tenet of this book is that computer graphics is fun Learning about it should be fun too... popular algorithms used to draw basic shapes such as lines and circles on the computer These days, three-dimensional graphics is in vogue As a reader, you too must be eager to get on to creating gee-whiz effects using these same principles It is important, however, to realize that all 3D graphics principles are actually extensions of their 2D counterparts Understanding concepts in a 2D world is much easier... Display Systems The computer display, or the monitor, is the most important device on the computer It provides visual output from the computer to the user In the Computer Graphics context, the display is everything Most current personal computers and workstations use Cathode Ray Tube (CRT) technology for their displays As shown in Fig 1.1, a CRT consists of An electron gun that emits a beam of electrons (cathode... resolution of the display (and correspondingly that of the image) is such a big deal You may have heard the term dpi, which stands for dots per inch The word dot is really referring to a pixel The higher the number of dots per inch of the Fig.l.3: Computer display: rows and columns of pixels screenlimage, the higher the resolution and hence the crisper the image We have seen we can represent a computer. .. the intensity of the electron gun for each of the red, green, and blue phosphors, respectively of the actual pixel on the screen Our eye perceives the final pixel color to be the color combination of the three colors Each pixel color can be set independent of the other pixels The total number of colors that can be displayed on the screen at one time, however, is limited by the number of bits used to . h0" alt="" Principles of Computer Graphics Teo/y and Practice Using OpenGL and /Maya@ Principles of Computer Graphics Theow and Practice Using OpenGL and ~a~a* Shalini Govil-Pai Sunnyvale,. Computer Graphics: Theory and Practice Using OpenGL and Maya@ / Shalini Govil-Pai p.cm. Includes bibliographical references and index. ISBN: 0-3 8 7-9 550 4-6 (HC) e-ISBN 0-3 8 7-2 5479-X Printed. a - Springer Shalini Govil-Pai 896 Savory Drive, Sunnyvale, CA 94087 Email: sgovil @gmail.com Library of Congress Cataloging-in-Publication Data Govil-Pai, Shalini Principles of Computer

Ngày đăng: 03/04/2014, 12:22

Từ khóa liên quan

Mục lục

  • cover-image-large.jpg

  • front-matter.pdf

  • front-matter_001.pdf

  • fulltext.pdf

  • fulltext_001.pdf

  • fulltext_002.pdf

  • fulltext_003.pdf

  • front-matter_002.pdf

  • fulltext_004.pdf

  • fulltext_005.pdf

  • fulltext_006.pdf

  • fulltext_007.pdf

  • front-matter_003.pdf

  • fulltext_008.pdf

  • fulltext_009.pdf

  • fulltext_010.pdf

  • back-matter.pdf

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan