Basics of Computer Graphics
Basics of Computer Graphics
Computer Graphics
Declaration:
void initgraph(int *graphdriver, int *graphmode, char *pathtodriver);
eg: void initgraph(&gd,&gm,”path of bgi file”);
Course Coordinator : Mrs Deshmukh A.P.
Initgraph Arguments:
• *graphdriver: Integer that specifies the
graphics driver to be used.
(cathode ray)
Advantages of LED’s
• The cost of LED’s is less and they are tiny.
• By using the LED’s the electricity is controlled.
• The intensity of the LED differs with the help of the microcontroller.
• The LED are available which emits light in the different colors like
red, yellow, green and amber.
Disadvantages of LED
• The LED consume more power as compared to LCD, and their cost is
Course Coordinator : Mrs Deshmukh A.P.
high. Also, it is not used for making the large display.
Liquid-crystal display
(LCD)
• It is combination of two states of matter, the solid
and the liquid.
• LCD uses a liquid crystal to produce a visible image.
• Liquid crystal displays are super-thin technology
display screen that are generally used in laptop
computer screen, TVs, cell phones and portable
video games.
• LCD’s technologies allow displays to be much
thinner when compared to cathode ray tube (CRT)
technology. Course Coordinator : Mrs Deshmukh A.P.
Simple facts that should be considered while making an LCD:
• The basic structure of LCD should be controlled by
changing the applied current.
• We must use a polarized light.
• Liquid crystal should able be to control both of the
operation to transmit or can also able to change the
Course Coordinator : Mrs Deshmukh A.P.
polarized light.
Advantages of an LCD’s:
• LCD’s consumes less amount of power compared to CRT and LED
• LCDs are of low cost
• Provides excellent contrast
• LCD’s are thinner and lighter when compared to cathode ray
tube and LED
Disadvantages of an LCD’s:
• Require additional light sources
• Range of temperature is limited for operation
• Low reliability
• Speed is very low
Applications of Liquid Crystal Display
• Liquid crystal thermometer ,Optical imaging, Used in the
medical applications Course Coordinator : Mrs Deshmukh A.P.
Plasma Display Panel (PDP)
• A plasma display panel (PDP) is a type of flat panel
display common to large TV displays 30 inches (76 cm) or
larger.
• They are called "plasma" displays because they use
small cells containing electrically charged ionized gases,
which are plasmas.
• Plasma displays are thinner than cathode ray tube
( CRT ) displays and brighter than liquid crystal
displays ( LCD).
setLinetype (It)
where parameter I t is assigned a positive integer
value of 1,2,3, or 4 to generate lines that are,
respectively, solid, dashed, dotted, or dash-dotted.
void closegraph();
closegraph function closes the graphics mode,
deallocates all memory allocated by graphics
system and restores the screen to the mode it
was in before you called initgraph.
Course Coordinator : Mrs Deshmukh A.P.
Virtual Reality
• Virtual reality (VR) means experiencing things
through our computers that don't really exist.
• A believable, interactive 3D computer-created
world that you can explore so you feel you really
are there, both mentally and physically.
Windows on World(WoW)
– Also called Desktop VR.
– Using a conventional computer monitor to display the
3D virtual world.
Immersive VR
– Completely immerse the user's personal viewpoint
inside the virtual 3D world.
– The user has no visual contact with the physical word.
– Often equipped with a Head Mounted Display (HMD).
Distributed VR
– A simulated world runs on several computers which are
connected over network and the people are able to interact in
real time, sharing the same virtual world.
Input Rendering
Processor Processor
Simulation
Processor
World Database
Course Coordinator : Mrs Deshmukh A.P.
Components of VR System (Cont’d)
Input Processor
– Control the devices used to input information
to the computer. The object is to get the
coordinate data to the rest of the system with
minimal lag time.
– Keyboard, mouse, 3D position trackers, a
voice recognition system, etc.
Simulation Processor
– Core of a VR system.
– Takes the user inputs along with any tasks
programmed into the world and determine
the actions that will take place in the virtual
world.
Rendering Processor
– Create the sensations that are output to
the user.
– Separate rendering processes are used for
visual, auditory, haptic and other sensory
systems. Each renderer take a description
of the world stat from the simulation
process or derive it directly from the World
Database for each time step.
Course Coordinator : Mrs Deshmukh A.P.
Components of VR System (Cont’d)
Data Glove
– Outfitted with sensors on the fingers as well as an overall
position/orientation tracking equipment.
– Enables natural interaction with virtual objects by hand gesture
recognition.