Professional Documents
Culture Documents
CG UNIT-I
CG UNIT-I
Output device
Input devices
Image formed in FB
The electron beam is swept across the screen, one row at a time from
top to bottom. As the electron beam moves across each row, the
beam intensity is turned on and off to create a pattern of illuminated
spots.
Advantages:
Inexpensive way to produce color in Random
Scan Monitors
disadvantages:
only four colors are possible
quality of picture is not as good as other methods
Srinu CSE VITS
24
Color CRT Monitors(cont..)
Shadow Mask method:
• Shadow-mask methods are commonly used in raster scan
systems (including color TV) because they produce a much
wider range of colors than the beam penetration method
• A shadow-mask CRT has three phosphor color dots at
each pixel position.
• One phosphor dot emits a red light, another emits a green
light, and the third emits a blue light.
• This type of CRT has three electron guns, one for each
color dot, and a shadow-mask grid just behind the
phosphor-coated screen.
wireframe representation
of sun object
Basics
Objectives
• Development of the OpenGL API
• OpenGL Architecture
– OpenGL as a state machine
• Functions
– Types
– Formats
• Simple program
application program
OpenGL Motif
widget or similar GLUT
GLX, AGL
or WGL GLU
Texture
Memory
Pixel
Operations
07/11/24 09:48 AM Narendra V G CSE MIT 53
OpenGL Functions
• Primitives
– Points
– Line Segments
– Polygons
• Attributes
• Transformations
– Viewing
– Modeling
• Control (GLUT)
• Input (GLUT)
• Query
07/11/24 09:48 AM Narendra V G CSE MIT 54
OpenGL State
• OpenGL is a state machine
• OpenGL functions are of two types
– Primitive generating
• Can cause output if primitive is visible
• How vertices are processed and appearance of
primitive are controlled by the state
– State changing
• Transformation functions
• Attribute functions
glVertex3f(x,y,z)
glVertex3fv(p)
p is a pointer to an array