MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER GRAPHICS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What does glMaterialf( ____ ) do?
A
Turns material properties on.
B
Defines the material properties of a drawn object for visual effects
C
Switches to material mode to add visual effects.
D
Gets the current material properties of a drawn object
Explanation: 

Detailed explanation-1: -The glMaterialf function assigns values to material parameters. There are two matched sets of material parameters. One, the front-facing set, is used to shade points, lines, bitmaps, and all polygons (when two-sided lighting is disabled), or just front-facing polygons (when two-sided lighting is enabled).

Detailed explanation-2: -What does glMaterialf(…) do? Turns material properties on. Switches to material mode to add visual effects.

Detailed explanation-3: -glVertex is used to draw OpenGL primitives.

Detailed explanation-4: -The OpenGL light model presumes that the light that reaches your eye from the polygon surface arrives by four different mechanisms: AMBIENT-light that comes from all directions equally and is scattered in all directions equally by the polygons in your scene.

There is 1 question to complete.