0% found this document useful (0 votes)
282 views6 pages

Quiz 4

This document is a review of a student's attempts on a texture mapping quiz with 7 multiple choice questions. The student answered all questions correctly on their first attempt, except for question 6 which they got correct on their second attempt, resulting in a total score of 9.5 out of 10.

Uploaded by

Ba Thanh Dinh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
282 views6 pages

Quiz 4

This document is a review of a student's attempts on a texture mapping quiz with 7 multiple choice questions. The student answered all questions correctly on their first attempt, except for question 6 which they got correct on their second attempt, resulting in a total score of 9.5 out of 10.

Uploaded by

Ba Thanh Dinh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

3/26/2020 Quiz-04: Texture Mapping (Due: 5pm, 27th March): Attempt review

Home / My courses / COSC363-20S1 / Sections / Lab material (incl quizzes) / Quiz-04: Texture Mapping (Due: 5pm, 27th March)
Started on Sunday, 22 March 2020, 6 59 AM
State Finished
Completed on Wednesday, 25 March 2020, 8 28 PM
Time taken 3 days 13 hours
Grade 9.50 out of 10.00 (95%)
Question 1 A texture of size 256x256 pixels is shown in Fig. (a). This texture is required to be mapped to a quad as shown in
Correct Fig. (b).
Mark 1.00 out
of 1.00

What are the texture coordinates of the vertex A of the quad given in Fig. (b) above?
Select one:
a. (1, 1)
b. (0, 1)
c. (1, 0) 
d. (256, 0)
e. (0, 256)

Your answer is correct.


Correct
Marks for this submission: 1.00/1.00.

https://learn.canterbury.ac.nz/mod/quiz/review.php?attempt=2284670&cmid=1152700 1/6
3/26/2020 Quiz-04: Texture Mapping (Due: 5pm, 27th March): Attempt review

Question 2 The texture image shown in Fig. (a) is 256 pixels wide and 256 pixels high. A square section of size 112x112 pixels at
Correct the top-right corner of the image is required to be mapped to a quad shown in Fig. (b).
Mark 1.00 out
of 1.00

 What are the texture coordinates of the vertex B  of the quad in Fig. (b) above?
Select one:
a. (0.5625,1) 
b. (112, 0)
c. (0.4375, 1)
d. (144, 256)
e. (1, 0.5)

Your answer is correct.


Correct
Marks for this submission: 1.00/1.00.

Question 3 In the following figure, the texture on the left when mapped to a quad generates the tiled pattern shown on the
Correct right.  What are the texture coordinates of the vertex A?
Mark 1.00 out
of 1.00

Select one:
a. (4, 4)
b. (1, 0.25)
c. (1, 1)
d. (1, 4) 
e. (4, 1)

Correct
Marks for this submission: 1.00/1.00.

https://learn.canterbury.ac.nz/mod/quiz/review.php?attempt=2284670&cmid=1152700 2/6
3/26/2020 Quiz-04: Texture Mapping (Due: 5pm, 27th March): Attempt review

Question 4 In an application, the texture wrap parameters are set as below:


Correct glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S,  GL_CLAMP);
Mark 1.00 out glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T,  GL_REPEAT);
of 1.00 With the above setting, texture coordinates (5.8, 3.8) would be interpreted as:
Select one:
a. (0, 3.8)
b. (1, 0.8) 
c. (0, 3)
d. (1, 3)
e. (0, 0.8)

Correct
Marks for this submission: 1.00/1.00.

Question 5 Consider the texture given below.


Correct
Mark 1.00 out
of 1.00

The following parameters are set for this texture:


glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
With the above setting, what colour would glTexCoord2f(4.8, 6.2) refer to?
 
Select one:
a. Black
b. Green
c. Yellow 
d. Purple
e. Red

Correct
Marks for this submission: 1.00/1.00.

https://learn.canterbury.ac.nz/mod/quiz/review.php?attempt=2284670&cmid=1152700 3/6
3/26/2020 Quiz-04: Texture Mapping (Due: 5pm, 27th March): Attempt review

Question 6 The following texture is used for texture-mapping a quad and also a triangle.
Correct
Mark 0.75 out
of 1.00

The texture environment mode is set as GL_REPLACE, and the texture coordinates for the quad and the triangle
specified as below (Note that the vertices of the triangle do not have any specific texture coords assigned to them):
glBegin(GL_QUADS);
  glTexCoord2f(0., 0.);     glVertex3f(x1, y1, z1);
  glTexCoord2f(0., 1.);     glVertex3f(x2, y2, z2);
  glTexCoord2f(1., 1.);     glVertex3f(x3, y3, z3);
  glTexCoord2f(1., 0.);     glVertex3f(x4, y4, z4);
glEnd();
glBegin(GL_TRIANGLES);
   glVertex3f(x5, y5, z5);
   glVertex3f(x6, y6, z6);
   glVertex3f(x7, y7, z7);
glEnd();
What will be the colour of the triangle from the above mapping?
Select one:
a. Red 
b. Yellow
c. Purple
d. Black
e. Green

Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.75/1.00.

Question 7 Which one of the following parameters must be set to ensure that lighting effects such as colour variations due to
Correct diffuse reflections are visible on a textured polygon?
Mark 1.00 out
of 1.00 Select one:
a. Texture parameter GL_LINEAR
b. Texture environment parameter GL_REPLACE
c. Texture parameter GL_NEAREST
d. Texture environment parameter GL_MODULATE 
e. Texture parameter GL_CLAMP

Correct
Marks for this submission: 1.00/1.00.

https://learn.canterbury.ac.nz/mod/quiz/review.php?attempt=2284670&cmid=1152700 4/6
3/26/2020 Quiz-04: Texture Mapping (Due: 5pm, 27th March): Attempt review

Question 8 With reference to the figure given below, the texture on the left is mapped without borders to the quad. The texture
Correct coordinates at the vertices of the quad are given. The texture wrap parameter is set to GL_CLAMP along both s and
Mark 1.00 out t directions.
of 1.00

Which one of the above patterns will be generated on the quad?


 
Select one:
a. Pattern-1
b. Pattern-2
c. Pattern-3 
d. Pattern-4
◀ CMakeLists.txt e. Pattern-5 Jump to... Lab05_SweepSurfaces.pdf ▶
Correct
Marks for this submission: 1.00/1.00.

Question 9 Which one of the following image artefacts is usually produced by selecting the GL_NEAREST option in a texture
Correct magnification filter?
Mark 1.00 out
of 1.00 Select one:
a. Blockiness 
b. Black dots
c. Warping
d. Blurring
e. Grey stripes

Correct
Marks for this submission: 1.00/1.00.

Question 10 What mode of lighting does the following statement enable?


Correct glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR);
Mark 0.75 out
of 1.00 Select one:
a. The specular colour component is stored separately and added to a fragment's colour after texturing. 
b. The illumination model uses a specular colour that is different from light's ambient and diffuse colours.
c. Specular highlights are suppressed on a textured surface.
d. For each material, the specular colour must be different from its ambient and diffuse colours.
e. Specular components are not calculated or set to zero.

Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.75/1.00.

https://learn.canterbury.ac.nz/mod/quiz/review.php?attempt=2284670&cmid=1152700 5/6
3/26/2020 Quiz-04: Texture Mapping (Due: 5pm, 27th March): Attempt review

https://learn.canterbury.ac.nz/mod/quiz/review.php?attempt=2284670&cmid=1152700 6/6

You might also like