Sample_Final_Testx

sploshtribeSoftware and s/w Development

Dec 14, 2013 (3 years and 3 months ago)

70 views

OpenGL

Sample Final Exam


1


Name different types of light that we use in OpenGL.

2


Create the following scenario:



GL_LIGHT0:

o

Directional light (2,3,1), color red

o

Spot light, cut off angle 15 degrees, located at (3,3,3)

o

Light model is two sided



GL_LIGHT1:

o

Positional light, color is green, located at (2,2,2)



A sphere is located at origin that:

o

Is an emissive sphere and emits blue light.

o

Reflects 0.5 of the red component of ambient light.

o

Reflects 0.3 of the green component of ambient light.

o

Reflec
ts 0.4 of the blue component of ambient light.

o

Whose shininess is 5.


3


Prove the following formula as we discussed in class:


(RsSr+RdDr, GsSg+GdDg, BsSb+BdDb, AsSa+AdDa)


Where:



Source and destination blending factors are (Sr, Sg, Sb, Sa) and (Dr, Dg,
Db, Da)



Source and destination color components are: (Rs,Gs,Bs) and (Rd,Gd,Bd)

4


What limitations are applied
when use

display lists in OpenGL?

5

What is
a
hierarchical display list? Is it allowed in OpenGL?

6


Name different types of fog used in OpenG
L and define the steps and configurations we use to
create a fog scenario.

7



Draw the diagram of Pixel Data Flow
.