Search This Blog

Tuesday, 27 May 2014

CS2401-COMPUTER GRAPHICS - KEY



VII - SEMESTER- CS2401-COMPUTER GRAPHICS - KEY

PART-A
1.         Write the scale transformation matrix.
2.         List out some advantages of DDA algorithm.
It is simplest the algorithm and it does nto require special skill for implemantation
It is faster method
I t eleminates the multiplication in the equation by making use of raster characteristics
3.         List out any two properties of Bezier curve.
Any curve position is simply the weighted sum of the control point position
The convex hull property of a bezier ensures that the polynomial smoothly follows the control points without erratic oscillations.
4.         Give examples for Quadratic surfaces.
Spheres,ellipsoids ,torus,paraboloidsand hyperboloids.

5.         What is DAG?
Directed acyclic graph. used to represent the scene of complex object.
6.         List the viewing functions of OPENGL.
glortho()
gkortho2d()
glviewport()
7.         Write the types of Shader.
GL-VERTEX-SHADER
GL-FRAGMENT-SHADER
GL-DELETE-SHADER
GL-ATTACH-SHADER
8.         What is known as lateral inhibition?
Edges between faces appear more pronounced than they would be on an actual physical object because of  a phenomenon in the eye known as lateral inhibition.

9.         Give some examples of fractals.
clouds, grass,fire,branches of tree,cracks in the pavement
10.       What is known as peano curve?
A space filling curve is a curve whose fractal dimention is 2 and it completely fills a region of space.
 space filling curves in the 2 dinmentional plane are commonly called peano curves.

PART- B
11.       a)         Explain in detail about the polygon clipping with example.

 Clip a polygon by processing the polygon boundary as a whole against each window edge. Each and every vertex in polygon is checked against the clipping boundary.
draw sample diagrams
clipping procedure
1.If  1st vertex is outside, 2 nd vertex is inside the boundary  point
intersection point and 2 nd vertex will be taken in the output list.
2.If both vertex are inside, only 2 nd vertex is taken in output vertex.
3.If 1 st vertex is inside ,2 nd vertex in outside boundary  only the intersection point is taken
2.If both are outside , nothing will be stored.


b)         Explain the various attributes of output primitives with example.

Explain line, point,text , filling attributes
color tables and buffer should be explained


12.       a)         Briefly explain about the 3D viewing and clipping with suitable example.

Explain what is viewing
draw viwing pipeline
transformation of world and viewing coordinates
explain projection concepts
clipping concepts.

b)         Explain the properties of beziercurve. How it is differ from B-Spline.

Bezier curves are used in computer graphics to produce curves which appear reasonably smooth at all scales (as opposed to polygonal lines, which will not scale nicely). Mathematically, they are a special case of cubic Hermite interpolation (whereas polygonal lines use linear interpolation). What this means is that curves are constructed as a sequence of cubic segments, rather than linear ones. But whereas Hermite interpolating polynomials are constructed in terms of derivatives at endpoints, Bezier curves use a construction due to Sergei Bernstein, in which the interpolating polynomials depend on certain control points. The mathematics of these curves is classical, but it was a French automobile engineer Pierre Bezier who introduced their use in computer graphics.

Roughly speaking, to each set of four points P0, P1, P2, P3 we associate a curve with the following properties:
* It starts at p0 and ends at p3.
* When it starts from p0 it heads directly towards p1, and when it arrives at p3 it is coming from the direction of p2.
* The entire curve is contained in the quadrilateral whose corners are the four given points (their convex hull).
13.       a)         What is animation? Explain the steps to design an animation sequence.
An animation sequence is designed with the following steps.
Story board layout 
Object definition
Key frame specification
Generation of in between frames

b)         How do you implement morphing animation technique? Discuss with an example.
Morphing is a special effect in motion pictures and animations that changes (or morphs) one image into another through a seamless transition. Most often it is used to depict one person turning into another through technological means or as part of a fantasy or surreal sequence.

14.       a)         Discuss about the process of creating shaded objects with example.
b)         Explain briefly about how to do shadows to objects.

15.       a)         What is iterated function system(IFS)? Explain in detail.

IFS stands for Iterated Function System. Fractals of this type are created by applying one of a number of functions, chosen randomly from the rules set up for the IFS, repeatedly to an intitial point, and graphing each new point. IFS stands for Iterated Function System. Fractals of this type are created by applying one of a number of functions, chosen randomly from the rules set up for the IFS, repeatedly to an intitial point, and graphing each new point.

b)         Explain in detail about the Julia set.



CS2401-COMPUTER GRAPHICS - KEY



VII - SEMESTER- CS2401-COMPUTER GRAPHICS - KEY
PART-A
  1. Write the two phases in Cohen Sutherland algorithm.
Identify those lines which intersect the clipping window and no need to clipped
Perform the clipping
  1. Write the formula for viewport transformation.
(Xv-Xvmin)/(Xvmax-Xvmin)= (Xw-Xwmin)/(Xwmax-Xwmin)
  1. Specify two advantages of B-splines curves.
The degree of a B spline polynomial can be set independently of the number of control points.
B-Spline allow local control over the shape of aspline curve or a surface.
  1. What are quadratic surfaces?
The quadratic surfaces are the describe with second degree equations.
  1. What is OPENGL?
OpenGL stands for Open Grapics Library. OpenGL provides a set of commands to render a three dimention scene.
  1. Write the types of library available for OPENGL.
OpenGL Utility Library(GLU)
OpenGL Utility Toolkit (GLUT)
  1. State the Lamber's law.
The relationship between brightness and surface orientation
  1. What is shadow buffer?
An auxillary second depth buffer, is employed for each light source.It contains "depth picture" for the scene from the point of view  of the light source.
  1. Give the rules for dragon curves.
the rules that used X and Y for dragon curves
F ? F
X ? X+YF+
Y?-FX-Y
Atom=FX
F means "draw forward"
-means "turn left 90 degree"
+ means turn right 90 degree"
  1. What is known as surface texure?
Surface texure, also known surface finish, is the characteristics of a surface in which computer generated images is made more likvely and realistic by paining texture on various surfaces.

PART-B


  1. a)         Explain in detail about the Cohen Sutherland line clipping.

Process that identifies the portion of a picture that are either inside or outside of a specified region is referred as clipping
conditions followed
1. Tw end points are coming inside the boundary of clipping window
2.Two enpoints are coming outside with 2 intersection
3.One end point coming outside with one intersection
4.Two end points are coming outside with no intersection
Draw diagram for all these conditions
finding region code for each end point
1- represents that the point is inside tha clipping boundary
0- represents that the point is outside the clipping boundary

Find the intersection point using formula
Y = Y1+M(X-X1)
M= (Y2-Y1)/(X2-X1)
X=X1+(Y-Y1)/M

b)         Briefly explain the polygon clipping with suitable example.

 Clip a polygon by procesing the polygon boundary as a whole against each window edge. Each and every vertex in polygon is checked against the clippinng boundary.
draw sample diagrams
clipping procedure
1.If  1 st vertex is outside,2 nd vertex is inside the boundary  point
intersection point and 2 nd vertex will be taken in the output list.
2.If both vertex are inside, only 2 nd vertex is taken in output vertex.
3.If 1 st vertex is inside ,2 nd vertex in outside boundary  only the intersection point is taken
4.If both are outside , nothing will be stored.


  1. a)         Discuss briefly about the visualization of data set.

b)         Explain in detail about the different 3D projections with example.
13. a)         What is animation? Explain the steps to design an animation sequence.
An animation sequence is designed with the following steps.
Story board layout 
Object definition
Key frame specification
Generation of in between frames

b)         Explain briefly about the basic graphics primitives of OPENGL.
OpenGL is designed as a streamlined, hardware-independent interface to be implemented on many different hardware platforms. To achieve these qualities, no commands for performing windowing tasks or obtaining user input are included in OpenGL; instead, you must work through whatever windowing system controls the particular hardware you're using. Similarly, OpenGL doesn't provide high-level commands for describing models of three-dimensional objects. Such commands might allow you to specify relatively complicated shapes such as automobiles, parts of the body, airplanes, or molecules. With OpenGL, you must build up your desired model from a small set of geometric primitives - points, lines, and polygons.
Order of Operations


14. a)         Explain how to add surface texture to faces of a mesh object.
b)         Describe about the procedure to create and manipulate the camera in OpenGL.
 programming.
15. a)         What is iterated function system(IFS)? Explain in detail.

IFS stands for Iterated Function System. Fractals of this type are created by applying one of a number of functions, chosen randomly from the rules set up for the IFS, repeatedly to an intitial point, and graphing each new point. IFS stands for Iterated Function System. Fractals of this type are created by applying one of a number of functions, chosen randomly from the rules set up for the IFS, repeatedly to an intitial point, and graphing each new point.

b)         Explain  in detail about the Julia set.


CS2401-COMPUTER GRAPHICS - KEY



VII - SEMESTER- CS2401-COMPUTER GRAPHICS - KEY

PART-A
  1. What is called output primitives?
Graphics programming packages provide functions to describe a scene in terms of the basic geometric structures are called output primitives
  1. What are the types of text clipping?
all or none character clipping
all or none string clipping
  1. Differentiate interpolation and approximation splines.
Interpolation curves are used to digitize drawings or to specify animation paths
Approximation curves are used as design tools to structure object surfaces
  1. Define convex hull.
The convex polygon boundary that encloses a set of control points is called the convex hull.
  1. Define morphing.
Transformation of one shape to another shape.
  1. Write different phases of animation development.
·         Story board layout
·         keyframe generation
·         Inbetween frame generation
·         Object Definition
  1. Specify types of reflection mapping.
chrome mapping
environment mapping
  1. Write the applications of texure rendering.
·         Repeating a rendered image multiple times in a scene
·         simulating reflection effects , like a mirror or lake in a scene.
·         simualting shadows effects in a scene.
·         Post proceeding effects such as motion blur or antialiasing
·         compositing a rendering image in to a 3D GUI
encounters with virtual objects.
  1. What are the three types of self similarity found in fractals?
Exactly self similar
quasi self similarity
statistically self similar
  1. What is known as L system?
L system (also known as Lin denmayer systems or parallel string - rewrite systems) is a simple approch to generate a large number of complex curves by refining the line segments baesd on a simple set of rules.


PART-B

  1. a)         Explain briefly about the midpoint algorithm for drawing ellipse.

read rx ,ry and center point (xc,yc)
Fellipse(x,y)=ry2x2  +rx2y2-rx 2ry 2
Fellipse(x,y)={<0 if (x,y) is inside the ellipse    , =0  if (x,y) is on the ellipse ,  >0 if  (x,y) is outside of ellipse}
derive decition parameter for region 1 p10=ry2 -rx2ry+1/4 rx2
derive decition parameter for region 2 p20=ry2(x0+1/2)2+rx2(y0 -1)2-rx2ry2
write algorithm with midpoint diagram

b)         Discuss in detail about the 2D transformation with suitable example.

Translation
Rotation
Scaling
Reflection
Shearing
write definition,formula,matrix,diagram.

  1. a)         Explain the properties of Beziercurve. How it is differ from B-Spline.

Bezier curves are used in computer graphics to produce curves which appear reasonably smooth at all scales (as opposed to polygonal lines, which will not scale nicely). Mathematically, they are a special case of cubic Hermite interpolation (whereas polygonal lines use linear interpolation). What this means is that curves are constructed as a sequence of cubic segments, rather than linear ones. But whereas Hermite interpolating polynomials are constructed in terms of derivatives at endpoints, Bezier curves use a construction due to Sergei Bernstein, in which the interpolating polynomials depend on certain control points. The mathematics of these curves is classical, but it was a French automobile engineer Pierre Bezier who introduced their use in computer graphics.

Roughly speaking, to each set of four points P0, P1, P2, P3 we associate a curve with the following properties:
* It starts at p0 and ends at p3.
* When it starts from p0 it heads directly towards p1, and when it arrives at p3 it is coming from the direction of p2.
* The entire curve is contained in the quadrilateral whose corners are the four given points (their convex hull).

  1. a)         Explain in detail about the basic graphics primitives of OPENGL.
OpenGL is designed as a streamlined, hardware-independent interface to be implemented on many different hardware platforms. To achieve these qualities, no commands for performing windowing tasks or obtaining user input are included in OpenGL; instead, you must work through whatever windowing system controls the particular hardware you're using. Similarly, OpenGL doesn't provide high-level commands for describing models of three-dimensional objects. Such commands might allow you to specify relatively complicated shapes such as automobiles, parts of the body, airplanes, or molecules. With OpenGL, you must build up your desired model from a small set of geometric primitives - points, lines, and polygons.
Order of Operations


b)         How do you implement morphing animation technique? Discuss with an example.

Morphing is a special effect in motion pictures and animations that changes (or morphs) one image into another through a seamless transition. Most often it is used to depict one person turning into another through technological means or as part of a fantasy or surreal sequence.


  1. a)         Describe about the procedure to create and manipulate the camera in OpenGL .          
                       
 Programming.

b)         Explain in detail about flat and smooth shading with example.

15. a)         Explain briefly about the Julia set with suitable example.

b)         Explain in detail about the adding surface texure.