A statechart diagram is created for:()
A. a single class.
B. a single use case.
C. an activity on an activity diagram.
D. a group of classes connected with relationships.
查看答案
Which is () one of the four basic symbols used to chart data movement on data flow diagrams?()
A. an oval
B. arrow
C. rectangle with rounded corners
D. open-ended rectangle
Consider that we are using an area light source. How do we combine the different samples obtained by taking multiple ray samples to the light source?
A. Take the minimum value.
B. Average the values.
C. Take the maximum value.
D. Take the most frequent value.
If we were to define an equivalent scene in OpenGL, and used the same Phong Illumination Model, what would doing our lighting (without shadows or reflections) in a ray tracing framework be equivalent to in an OpenGL context?
A. Lighting in the vertex shader.
B. Lighting in the fragment shader.
C. Lighting on the host program, then sending the colors as an attribute.
We often specify different matrices for different objects in our scene. When we use a ray tracer, we may like to use the absolute value of \( t \) as distance if our ray was formulated as \( \vec{r} = \vec{r}_0 + t\vec{r}_d \). In this case, should we normalize \( \vec{r}_d \)? If so, where should we do the normalization?(Note that \( M \) is the model transformation for a specific object)
A. Do not normalize.
B. Normalize after applying \( M^{-1} \).
C. Normalize after we find the world-space direction, and before we apply \( M^{-1} \).
D. Normalize after we find the world-space direction, and again after we apply \( M^{-1} \).