com215
com215
Graphics are visual presentations on some surface, such as a wall, canvas, computer
screen, paper, or stone to brand, inform, illustrate, or entertain.
Examples
Graphics often combine text, illustration, and color. Graphic design may consist of the
deliberate selection, creation, or arrangement of typography alone, as in a brochure,
flier, poster, web site, or book without any other element.
Computer graphics are graphics created by computers and, more generally, the
representation and manipulation of pictorial data by a computer.
The term computer graphics includes almost everything on computers that is not text
or sound. Today nearly all computers use some graphics and users expect to control
their computer through icons and pictures rather than just by typing. The term
Computer Graphics has several meanings:
There are two types of computer graphics: raster graphics, where each pixel is
separately defined (as in a digital photograph), and vector graphics, where
mathematical formulas are used to draw lines and shapes, which are then interpreted
at the viewer's end to produce the graphic. Using vectors results in infinitely sharp
graphics and often smaller files, but, when complex, vectors take time to render and
may have larger file sizes than a raster equivalent.
Today computers and computer-generated images touch many aspects of our daily
life. Computer imagery is found on television, in newspapers, in weather reports, and
during surgical procedures. A well-constructed graph can present complex statistics in
a form that is easier to understand and interpret. Such graphs are used to illustrate
papers, reports, theses, and other presentation material. A range of tools and facilities
are available to enable users to visualize their data, and computer graphics are used in
many disciplines.
Modern computer systems, dating from the 1980s and onwards, often use a graphical
user interface (GUI) to present data and information with symbols, icons and pictures,
rather than text. Graphics are one of the five key elements of multimedia technology.
2D computer graphics
2D computer graphics are mainly used in applications that were originally developed
upon traditional printing and drawing technologies, such as typography, cartography,
technical drawing, advertising, etc.. In those applications, the two-dimensional image
is not just a representation of a real-world object, but an independent artifact with
added semantic value; two-dimensional models are therefore preferred, because they
give more direct control of the image than 3D computer graphics, whose approach is
more akin to photography than to typography.
Pixel art
Pixel art is a form of digital art, created through the use of raster graphics software,
where images are edited on the pixel level. Graphics in most old (or relatively limited)
computer and video games, graphing calculator games, and many mobile phone
games are mostly pixel art.
Vector graphics
3D computer graphics
Despite these differences, 3D computer graphics rely on many of the same algorithms
as 2D computer vector graphics in the wire frame model and 2D computer raster
graphics in the final rendered display. In computer graphics software, the distinction
between 2D and 3D is occasionally blurred; 2D applications may use 3D techniques
to achieve effects such as lighting, and primarily 3D may use 2D rendering
techniques.
3D computer graphics are often referred to as 3D models. Apart from the rendered
graphic, the model is contained within the graphical data file. However, there are
differences. A 3D model is the mathematical representation of any three-dimensional
object (either inanimate or living). A model is not technically a graphic until it is
visually displayed. Due to 3D printing, 3D models are not confined to virtual space. A
model can be displayed visually as a two-dimensional image through a process called
3D rendering, or used in non-graphical computer simulations and calculations.
Computer animation
Computer animation is the art of creating moving images via the use of computers. It
is a subfield of computer graphics and animation. Increasingly it is created by means
of 3D computer graphics, though 2D computer graphics are still widely used for
stylistic, low bandwidth, and faster real-time rendering needs. Sometimes the target of
the animation is the computer itself, but sometimes the target is another medium, such
as film. It is also referred to as CGI (Computer-generated imagery or computer-
generated imaging), especially when used in films.
1. Image
2. Pixel
In the enlarged portion of the image individual pixels are rendered as squares and can
be easily seen.
In digital imaging, a pixel is the smallest piece of information in an image. Pixels are
normally arranged in a regular 2-dimensional grid, and are often represented using
dots or squares. Each pixel is a sample of an original image, where more samples
typically provide a more accurate representation of the original. The intensity of each
pixel is variable; in color systems, each pixel has typically three or four components
such as red, green, and blue, or cyan, magenta, yellow, and black.
3. Rendering
5. Ray tracing
Ray tracing is a technique for generating an image by tracing the path of light through
pixels in an image plane. The technique is capable of producing a very high degree of
photorealism; usually higher than that of typical scanline rendering methods, but at a
greater computational cost.
6. Shading
Example of shading.
7. Texture mapping
8. Volume rendering
Usually these are acquired in a regular pattern (e.g., one slice every millimeter) and
usually have a regular number of image pixels in a regular pattern. This is an example
of a regular volumetric grid, with each volume element, or voxel represented by a
single value that is obtained by sampling the immediate area surrounding the voxel.
• Computational biology
• Computational physics
• Computer-aided design
• Computer simulation
• Digital art
• Desktop publishing
• Education
• Graphic design
• Infographics
• Information visualization
• Scientific visualization
• Video Games
• Virtual reality
• Web design
In this course, we shall discuss briefly two application areas, namely, computer-aided
design and desktop publishing.
COMPUTER AIDED DESIGN (CAD)
Drafting can be done in two dimensions ("2D") and three dimensions ("3D"). Drafting
is the integral communication of technical or engineering drawings and is the
industrial arts sub-discipline that underlies all that is involved in technical endeavors.
In representing complex, three-dimensional objects in two-dimensional drawings,
these objects have traditionally been represented by three projected views at right
angles.
CAD is used in the design of tools and machinery used in the manufacture of
components, and in the drafting and design of all types of buildings, from small
residential types (houses) to the largest commercial and industrial structures (hospitals
and factories).
Today most CAD computers are Windows based PCs. Some CAD systems also run
on one of the Unix operating systems and with Linux. Some CAD systems such as
QCad or NX provide multiplatform support including Windows, Linux, UNIX and
Mac OS X.
This tutorial is designed to show you how all of the AutoCAD Draw commands work.
If you just need information quickly, use the QuickFind toolbar below to go straight
to the command you want or select a topic from the contents list above. Not all of the
Draw commands that appear on the Draw toolbar are covered in this tutorial. Blocks,
Hatch and Text for example are all tutorial topics in their own right!
The Draw commands can be used to create new objects such as lines and circles. Most
AutoCAD drawings are composed purely and simply from these basic components. A
good understanding of the Draw commands is fundamental to the efficient use of
AutoCAD.
The sections below cover the most frequently used Draw commands such as Line,
Polyline and Circle as well as the more advanced commands like Multiline and
Multiline Style. As a newcomer to AutoCAD, you may wish to skip the more
advanced commands in order to properly master the basics. You can always return to
this tutorial in the future when you are more confident.
In common with most AutoCAD commands, the Draw commands can be started in a
number of ways. Command names or short-cuts can be entered at the keyboard,
commands can be started from the Draw pull-down menu, shown on the right or from
the Draw toolbar. The method you use is dependent upon the type of work you are
doing and how experienced a user you are. Don't worry too much about this, just use
whatever method feels easiest or most convenient at the time. Your drawing technique
will improve over time and with experience so don't expect to be working very
quickly at first.
If you are working with the pull-down menus, it is worth considering the visual
syntax that is common to all pull-downs used in the Windows operating system. For
example, a small arrow like so " " next to a menu item means that the item leads to a
sub-menu that may contain other commands or command options. An ellipsis, "…"
after a menu item means that the item displays a dialogue box. These little visual
clues will help you to work more effectively with menus because they tell you what to
expect and help to avoid surprises for the newcomer.
Lines
Lines are probably the most simple of AutoCAD objects. Using the Line command, a
line can be drawn between any two points picked within the drawing area. Lines are
usually the first objects you will want to draw when starting a new drawing because
they can be used as "construction lines" upon which the rest of your drawing will be
based. Never forget that creating drawings with AutoCAD is not so dissimilar from
creating drawings on a drawing board. Many of the basic drawing methods are the
same.
Anyone familiar with mathematics will know that lines drawn between points are
often called vectors. This terminology is used to describe the type of drawings that
AutoCAD creates. AutoCAD drawings are generically referred to as "vector
drawings". Vector drawings are extremely useful where precision is the most
important criterion because they retain their accuracy irrespective of scale.
The Line Command
Toolbar Draw
Pull-down Draw Line
Keyboard LINE short-cut L
With the Line command you can draw a simple line from one point to another. When
you pick the first point and move the cross-hairs to the location of the second point
you will see a rubber band line which shows you where the line will be drawn when
the second point is picked. Line objects have two ends (the first point and the last
point). You can continue picking points and AutoCAD will draw a straight line
between each picked point and the previous point. Each line segment drawn is a
separate object and can be moved or erased as required. To end this command, just hit
the key on the keyboard.
Command Sequence
Command: LINE
Specify first point: (pick P1)
Specify next point or [Undo]: (pick P2)
Specify next point or [Undo]: (to end)
You can also draw lines by entering the co-ordinates of their end points at the
command prompt rather than picking their position from the screen. This enables you
to draw lines that are off screen, should you want to. (See Using Co-ordinates for
more details). You can also draw lines using something called direct distance entry.
See the Direct Distance Entry tutorial for details.
The Construction Line Command
Toolbar Draw
Pull-down Draw Construction Line
Keyboard XLINE short-cut XL
The Construction Line command creates a line of infinite length which passes through
two picked points. Construction lines are very useful for creating construction
frameworks or grids within which to design.
Construction lines are not normally used as objects in finished drawings, it is usual,
therefore, to draw all your construction lines on a separate layer which will be turned
off or frozen prior to printing. See the Object Properties tutorial to find out how to
create new layers. Because of their nature, the Zoom Extents command option ignores
construction lines.
Command Sequence
Command: XLINE
Specify a point or [Hor/Ver/Ang/Bisect/Offset]: (pick a point)
Specify through point: (pick a second point)
Specify through point: (to end or pick another point)
You may notice that there are a number of options with this command. For example,
the "Hor" and "Ver" options can be used to draw construction lines that are truly
horizontal or vertical. In both these cases, only a single pick point is required because
the direction of the line is predetermined. To use a command option, simply enter the
capitalised part of the option name at the command prompt. Follow the command
sequence below to see how you would draw a construction line using the Horizontal
option.
Command Sequence
Command: XLINE
Hor/Ver/Ang/Bisect/Offset/<From point>: H
Through point: (pick a point to position the line)
Through point: (to end or pick a point for another horizontal line)
Command Sequence
Command: RAY
Specify start point: (pick the start point)
Specify through point: (pick a second point to determine direction)
Specify through point: (to end or pick another point)