Docsity

Computer Graphics: Components, Modeling, Primitives, and Continuity, Exercises of Computer Graphics

Toggle sidebar
bg1
MASINDE MULIRO UNIVERSITY OF SCIENCE AND TECHNOLOGY
FACULTY OF SCIENCE
NAME:JOAN BIWOTT
REGNO:COM/0008/11
DEPARTMENT OF COMPUTER SCIENCE
BSC. COMPUTER SCIENCE
CSC 420 COMPUTER GRAPHICS CAT I & II
a)Discuss the four components of computer graphics [2Mks]
Thee are four components of computer graphics this include:
• Imaging which represents 2D images
• Modeling representing 3D objects
• Rendering a process of making 2D images from 3D models
• Animation a process of describing how objects move through kinematics ,dynamic ,planning
b) Describe the process of generating graphics. [5Mks]
c) Modelers are used in computer
graphics to create 3D Models, explain
while giving examples the categories of
the modelers. [3Mks]
•Interactive Modelers
This is where the designer sits
in front of a terminal with a
keyboard and mouse, and
manipulates shapes on the
screen. Because the image is only two-dimensional, different systems have different
conventions to allow you to manipulate objects in 3D.Interactive modelers typically
contain a variety of design aids to help you achieve some precision in your model:
a common example is to \snap" points son the model to other model points or to an
invisible grid.
•Scripted Modelers
Another class of modeler is relies on an input script to define the model. This is
typically a text file that has been created by the designer using any conventional
text editor. The script specifies the shapes in the model one by one, identifying
each one by its primitive, and the parameters that specify that instance. Because
scripted modelers allow you to specify operations numerically rather than
interactively, they are ideal for very precise modeling. For example, it might be
difficult to interactively place one block at a 37:5_ angle to another, but it's trivial to
specify when you can type that angle in.
•Other Modelers
There are other ways to build models, for example by digitizing existing 3D
structures, or by analyzing photographs. We will return to these techniques near the
end of this paper.
pf3
pf4
pf5

Partial preview of the text

Download Computer Graphics: Components, Modeling, Primitives, and Continuity and more Exercises Computer Graphics in PDF only on Docsity!

MASINDE MULIRO UNIVERSITY OF SCIENCE AND TECHNOLOGY

FACULTY OF SCIENCE

NAME:JOAN BIWOTT

REGNO:COM/0008/

DEPARTMENT OF COMPUTER SCIENCE

BSC. COMPUTER SCIENCE

CSC 420 COMPUTER GRAPHICS CAT I & II

a)Discuss the four components of computer graphics [2Mks] Thee are four components of computer graphics this include:

  • Imaging which represents 2D images
  • Modeling representing 3D objects
  • Rendering a process of making 2D images from 3D models
  • Animation a process of describing how objects move through kinematics ,dynamic ,planning b) Describe the process of generating graphics. [5Mks]

c) Modelers are used in computer graphics to create 3D Models, explain

while giving examples the categories of

the modelers. [3Mks]

• Interactive Modelers

This is where the designer sits

in front of a terminal with a

keyboard and mouse, and

manipulates shapes on the

screen. Because the image is only two-dimensional, different systems have different

conventions to allow you to manipulate objects in 3D.Interactive modelers typically

contain a variety of design aids to help you achieve some precision in your model:

a common example is to \snap" points son the model to other model points or to an

invisible grid.

• Scripted Modelers

Another class of modeler is relies on an input script to define the model. This is

typically a text file that has been created by the designer using any conventional

text editor. The script specifies the shapes in the model one by one, identifying

each one by its primitive, and the parameters that specify that instance. Because

scripted modelers allow you to specify operations numerically rather than

interactively, they are ideal for very precise modeling. For example, it might be

difficult to interactively place one block at a 37:5_ angle to another, but it's trivial to

specify when you can type that angle in.

• Other Modelers

There are other ways to build models, for example by digitizing existing 3D

structures, or by analyzing photographs. We will return to these techniques near the

end of this paper.

d) During 3D modeling several linear operations are performed on objects. Explain these operations.

[3Mks]

  • Translation operation- this translates an object from an initial position to a new position based on a linear shift
  • scaling operation – this shifts an object from an initial position to a new position based on scaling
  • rotation operation- this operation shifts an object from an initial position to a new position based on a rotation about a given axis e) What is Model Primitives? Discuss while giving examples the types of primitives that are make up a model. [4Mks] model primitives are the building blocks of models

• 0 Dimensions: Points

• 1 Dimension: Lines

• 2 Dimensions: Surfaces

• 3 Dimensions: Volumes

f) While defining patches, one must use several levels of continuity. Explain using examples 3 Levels of continuity. [3Mks]

• 0-order- this is for creating a ‘closed model’ either for prototype or manufacturer into a real,

physical object or for transfer into a solid modeling CAD system.it is important for data transfer

• 1-order- a tangent break of less than 0.1 degrees will not normally be visible on most products and

so working within this limits makes sure that there are no unwanted ‘sharp’ edges between surface

patches that should represent a smooth shape. This is important for physical smoothness.

• 2-order- this is used for internal calculations but isn’t really useful for designer. This is important

for visual smoothness.

g) Describe four types of patches. [4Mks]

  • Bezier is a patch that is used in two dimensional graphic applications
  • B-spline is a surface extension of the b-spline curve
  • Bicubic is a 3D curved surface created from a mesh of triangles
  • NURBS is a mathematical model commonly used in computer graphics for generating and representing curves and surfaces.

h) What do you understand by Constructive Solid Geometry (CSG)? Explain different rules

followed in CSG. [4Mks]

Constructive Solid Geometry is a model representation based on a set of primitive

geometric shapes which may be transformed spatially and combined in a tree-

structured fashion by Boolean operations. The resulting model is a tree with the

primitives as the leaves, Boolean operations as the non-leaf nodes, and edges as

transformations.

Rules followed in CSG

• Union-joining of two objects e.g. A+B

• Intersection-point where the two object intersect

• Difference-Removing of a part of an object from in a object e.g. A-B

i) Procedural Models are used to come up with 3D Models. Explain any three examples of procedural

models. [3Mks]

  • Fractals –these are shapes with self similarity and infinite resolution used for modelling shapes
  • Graphtals are models used for data amplification, useful for plant and organic forms

• Shape Grammars Shapes that turn into other shapes also used for data amplification.

j) Define 3D Modeling. [2Mks ]

In 3D computer graphics, 3D modeling (or modelling) is the process of developing a mathematical

representation of any three-dimensional surface of an object (either inanimate or living) via specialized

software. The product is called a 3D model.

k) Describe the structure of a model. [3Mks]

The process of creating and recording images which change over time. Though often interpreted as implying only two-dimensional image changes, it may be applied in general to any model or scene changes in three dimensions as well. p) Explain any six approaches to Animation. [3Mks]

  • Image interpolation and Morphing In image interpolation the two-dimensional drawing of an object's boundary and features is transformed over time by moving (interpolating) points of the drawing between specified positions of those points in a sequence of key frames. Areas are manipulated by moving their boundary shapes.
  • Kinematics This is where the motion of the object is controlled by functions of position, velocity, or acceleration .By allowing motion information to be described relative to some other, perhaps moving, coordinate reference frame one can describe the motion of a part with respect to a parent object. For example, car wheels rotate with respect to the car axles which are attached to the car frame transformations.
  • Inverse kinematics this refers to the positioning of a jointed structure, such as an arm, torso, or leg, by defining the Cartesian space goal(3D position and 3D orientation) for an end effector and using an algorithm to determine reasonable positions and orientations for the intermediate joints of the linkage.
  • Constraints The use of end effector goals and inverse kinematics leads naturally to a desire to specify other types of goals for objects and articulated figure parts .Since specifying several goals may easily lead to over constrained systems (more constraints than degrees of freedom), a solution is usually obtained by some "non-procedural" minimization or iterative process. The constraints may take several forms, including relationships, boundary conditions, formulas, potential functions, or spring forces. They aid kinematic specifications and offer global control subject to local variation.
  • Dynamics A dynamics approach to animation uses forces and moments to drive the motion of objects. The benefit is in producing motions that are physically reasonable and correct; the limitation is that all the forces must be determined. Any animation using dynamics must essentially rely on a frame-by-frame simulation to compute the incremental positions of the involved.
  • Simulation In simulation, a model of some process is built in a suitable representation, then executed incrementally. Changes in the state of the process cause variations in the course of the simulation. The dynamic nature of the simulation process allows very general situations to be modeled and animated. Simulations usually offer discrete or continuous models; the latter are comparable to the requirements for dynamics animation. Other formalisms such as Petri nets and dataflow diagrams may be used and compiled into discrete simulation models q) What is rendering. [2Mks] The process of taking a geometric model, a lighting model, a camera view, and other image generation parameters and computing an image. The choice of rendering algorithm is dependent on the model representation and the degree of realism (interpretation of object and lighting attributes) desired. r) Explain two approaches to rendering while stating advantages and disadvantages of each approach. [2Mks] l
  • Simulate Nature Advantages
  • Precise goal
  • Path is clear
  • Practical value Disadvantages
  • Ignores other styles
  • l Anything else s) Logical input devices are used to get graphics into modelers. Explain four categories of logical input devices. [5Mks] Choice Return a choice that has been made ,Often provide sensorial feedback: lights, clicks, feel,... Examples: function keypad, button box, foot switch - Keyboard Returns keys with specific meanings e.g. Letters, numbers, etc. - Valuators Return a value for something ,Can usually specify gain, minimum, and maximum All locators can also double as valuators Example: knobs - Locators Return the location of the screen cursor, Display-to-Input ratio Examples: mouse, tablet, trackball ,touchscreen

REFERENCES

  • lectures notes
  • guide book
  • www.google.com