1. Home
  2. Explore
  3. Computer Science
  4. Ray Tracing Basics

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Ray Tracing Basics

  • 71Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Ray Tracing Introduction
The speaker previously experimented with
matching, which is related to ray tracing.

71 questions

  1. 1
    The speaker previously experimented with
    _____
    matching, which is related to ray tracing.
    Hint

    Think about a technique that involves sending out 'beams' but in a different way than traditional ray tracing.

    Answer

    Ray

  2. 2
    The project is being built inside a game engine to leverage its convenience for scene
    _____
    and object manipulation.
    Hint

    The engine provides a visual space to arrange elements.

    Answer

    view

  3. 3
    To ensure accurate comparison, the custom ray tracer must render things with the same
    _____
    as the built-in game camera.
    Hint

    Consider the viewpoint from which the scene is observed.

    Answer

    perspective

  4. 4
    The height of the projection plane is calculated using the field of view and
    _____
    .
    Hint

    This mathematical branch deals with relationships between angles and sides of triangles.

    Answer

    trigonometry

  5. 5
    After calculating the projection plane's dimensions, a grid of points is generated and transformed to match the camera's position and
    _____
    .
    Hint

    This refers to the camera's rotational alignment.

    Answer

    orientation

  6. 6
    The 'Ancient Greek style' approach in ray tracing involves shooting light beams out of our
    _____
    .
    Hint

    This is a conceptual reversal of how light actually travels in reality.

    Answer

    eyes

  7. 7
    The vast majority of light emitted from sources will
    _____
    our eyes in reality, making a direct simulation highly inefficient.
    Hint

    Consider the probability of random light rays actually reaching the observer.

    Answer

    miss

  8. 8
    Only rays that end up at a
    _____
    source can contribute to the image in the ray tracing process.
    Hint

    These are the objects that emit illumination.

    Answer

    light

  9. 9
    Sending out millions of rays is a task well-suited for the
    _____
    , which handles parallel processing efficiently.
    Hint

    This hardware component is optimized for graphics processing.

    Answer

    GPU

  10. 10
    The Ray Tracing Manager script sends camera information to a
    _____
    which then runs and draws the results.
    Hint

    This program runs on the GPU and determines the color of each pixel.

    Answer

    Shader

  11. 11
    The coordinate of the
    _____
    pixel is a vital piece of information used by the shader.
    Hint

    Each individual point being rendered on the screen has its own unique position.

    Answer

    current

  12. 12
    Returning the x-coordinate from the shader results in a horizontal
    _____
    from 0 on the left to 1 on the right.
    Hint

    This is a smooth transition of color or intensity.

    Answer

    gradient

  13. 13
    A ray structure holds an origin point and a
    _____
    .
    Hint

    These two components define a line in space.

    Answer

    direction

  14. 14
    Visualizing ray directions as colors, looking along the positive X direction should make things appear more
    _____
    .
    Hint

    Think of the standard RGB color mapping for XYZ axes.

    Answer

    red

  15. 15
    The equation for a sphere centered at zero is x2+y2+z2=radius2x^2 + y^2 + z^2 = \text{radius}^2x2+y2+z2=radius2, meaning the squared length of a vector equals the squared
    _____
    .
    Hint

    This is the distance from the center to any point on the sphere's surface.

    Answer

    radius

  16. 16
    If the part under the square root in the sphere intersection equation is negative, the ray has
    _____
    the sphere.
    Hint

    A negative value under a square root for real numbers indicates no solution.

    Answer

    missed

  17. 17
    If the part under the square root is zero, the ray
    _____
    the sphere at just one point.
    Hint

    This signifies a tangential interaction.

    Answer

    touches

  18. 18
    If the part under the square root is positive, the ray
    _____
    the sphere at two points.
    Hint

    This implies crossing through the object.

    Answer

    intersects

  19. 19
    The normal vector indicates the direction that would be '
    _____
    ' if you were standing on the surface.
    Hint

    This vector is perpendicular to the surface at a given point.

    Answer

    up

  20. 20
    To handle spheres at different positions, the technique used is to conceptually keep the sphere centered at zero and just move the
    _____
    away instead.
    Hint

    This is a common mathematical simplification to standardize calculations.

    Answer

    ray

  21. 21
    The RayTracingMaterial structure currently just describes the
    _____
    of an object.
    Hint

    This attribute determines the visible appearance.

    Answer

    color

  22. 22
    The Sphere structure holds a position, radius, and
    _____
    .
    Hint

    This refers to the object's surface properties.

    Answer

    material

  23. 23
    The rayCollision function loops over every sphere and performs an
    _____
    test.
    Hint

    This test determines if the ray crosses the sphere.

    Answer

    intersection

  24. 24
    If a material is very smooth, a ray might bounce off it with the same angle going out as it had coming in, which is called a
    _____
    reflection.
    Hint

    This type of reflection is associated with shiny, mirror-like surfaces.

    Answer

    specular

  25. 25
    If a material is rough, incoming light could scatter out in any direction, which is known as a
    _____
    reflection.
    Hint

    This type of reflection is associated with matte or non-shiny surfaces.

    Answer

    diffuse

  26. 26
    The pixel index, a value from 0 up to the total number of pixels, can be used as a
    _____
    to generate pseudo-random numbers.
    Hint

    This initial value starts a sequence of seemingly random numbers.

    Answer

    seed

  27. 27
    To generate multiple random values per pixel, an inout argument type can be used to apply changes to the original
    _____
    value.
    Hint

    This ensures the random number generator's state updates with each call.

    Answer

    seed

  28. 28
    Generating three random values scaled between -1 and 1 creates a point inside a
    _____
    , which is then normalized if it falls within a sphere.
    Hint

    This geometric shape encloses the sphere.

    Answer

    cube

  29. 29
    A potential issue with while(true) loops for generating random points is getting
    _____
    inside, leading to crashes or visual glitches.
    Hint

    This implies an infinite loop, preventing the program from progressing.

    Answer

    stuck

  30. 30
    Using uniform random numbers means every value has an
    _____
    chance of appearing.
    Hint

    This describes a flat distribution.

    Answer

    equal

  31. 31
    Using random numbers in a
    _____
    distribution helps distribute points uniformly randomly over the surface of a sphere.
    Hint

    This bell-shaped distribution is common in statistics.

    Answer

    normal

  32. 32
    When a ray hits a surface, it picks a random direction in the
    _____
    oriented around the normal vector.
    Hint

    This is half of a sphere, indicating directions 'above' the surface.

    Answer

    hemisphere

  33. 33
    If the dot product between the normal vector and the random direction is negative, the random direction is
    _____
    to be in the correct hemisphere.
    Hint

    This action reverses the direction of the vector.

    Answer

    inverted

  34. 34
    The trace function takes the ray from the camera and traces its path as it bounces randomly through the scene, hoping to reach a
    _____
    source.
    Hint

    This is the ultimate goal for illuminating a pixel.

    Answer

    light

  35. 35
    The ray's path tracing continues until either the maximum
    _____
    limit is reached or the ray misses everything.
    Hint

    This limits how many times the ray can reflect.

    Answer

    bounce

  36. 36
    The rayColor variable starts as pure
    _____
    and is multiplied by the object color whenever the ray hits something.
    Hint

    This represents the initial absence of any color absorption.

    Answer

    white

  37. 37
    The light variable accumulates the emitted light from objects and is tinted based on the
    _____
    of all objects the ray has encountered.
    Hint

    This ensures the light reflects the path it has taken.

    Answer

    color

  38. 38
    The core of the shader calculates a
    _____
    for random numbers, creates a ray, and traces its path to determine the pixel's color.
    Hint

    This is the starting point for generating random sequences.

    Answer

    seed

  39. 39
    A light source object's material has its emission color set to black and emission strength increased, so it is only
    _____
    light, not reflecting it.
    Hint

    This is the act of giving off light.

    Answer

    emitting

  40. 40
    With the bounce limit set to one, the ray from the camera must hit an object and then bounce directly into a
    _____
    to be illuminated.
    Hint

    This implies a single reflection directly towards an emitter.

    Answer

    light

  41. 41
    Increasing the bounce limit allows the back sides of spheres to receive
    _____
    illumination.
    Hint

    This refers to light that reaches a surface after reflecting off other surfaces.

    Answer

    indirect

  42. 42
    The main problem with a single ray per pixel is that the image is extremely
    _____
    .
    Hint

    This refers to unwanted visual speckles or graininess.

    Answer

    noisy

  43. 43
    To reduce noise, the shader loops multiple times, sending out many rays per pixel, and then
    _____
    their contributions.
    Hint

    This mathematical operation combines multiple values to find a representative central value.

    Answer

    averages

  44. 44
    To improve quality over time without slowing down the editor, results are
    _____
    over multiple frames.
    Hint

    This method combines current and previous frame data to smooth out noise.

    Answer

    averaged

  45. 45
    For temporal averaging, the random number
    _____
    needs to change with each frame to ensure rays bounce differently.
    Hint

    This input to the random number generator must vary for new sequences.

    Answer

    seed

  46. 46
    When a ray misses everything, the trace function now gathers some kind of background
    _____
    lighting instead of just going into a void.
    Hint

    This light comes from the surrounding scene, not specific objects.

    Answer

    environment

  47. 47
    The background lighting function blends between a ground color and two sky colors based on the
    _____
    axis of the ray direction.
    Hint

    This typically refers to the Y or Z axis in a 3D coordinate system.

    Answer

    vertical

  48. 48
    A beam of light coming in at an angle to the surface will be more
    _____
    out, meaning overall light received will be weaker.
    Hint

    This relates to how the energy is distributed over an area.

    Answer

    spread

  49. 49
    The strength of light received is calculated as the
    _____
    of the angle between the surface normal and the direction towards the light.
    Hint

    This trigonometric function accounts for the angle of incidence in Lambertian reflection.

    Answer

    cosine

  50. 50
    To keep the brightness the same after applying the cosine rating, the rayColor is multiplied by
    _____
    .
    Hint

    This is a simple scaling factor to counteract the darkening effect.

    Answer

    two

  51. 51
    Removing the light strength calculation is possible by using a cosine
    _____
    distribution for random bounce directions.
    Hint

    This means directions with more light contribution are favored.

    Answer

    weighted

  52. 52
    From humble
    _____
    , one can build pretty much whatever 3D model is desired.
    Hint

    These are the fundamental building blocks of most 3D meshes.

    Answer

    triangles

  53. 53
    To optimize triangle intersection, the ray quickly tests if it intersects the object's
    _____
    box before looking at all individual triangles.
    Hint

    This is a simple, usually axis-aligned, volume enclosing the object.

    Answer

    bounding

  54. 54
    The test scene for triangles is described as a 'classic Cornell
    _____
    ', a common setup for lighting tests.
    Hint

    This enclosed room typically has colored walls and a light source.

    Answer

    box

  55. 55
    To make the room completely enclosed but still visible, a
    _____
    mesh is used for the front wall so it's invisible from the backside.
    Hint

    This refers to a four-sided polygon, often rendered as two triangles.

    Answer

    quad

  56. 56
    After setting the ceiling as a light source, the Majestic night gradually emerges from the
    _____
    .
    Hint

    This refers to the grainy appearance before enough samples are rendered.

    Answer

    noise

  57. 57
    Specular reflections occur on very
    _____
    surfaces, like a mirror, where light bounces off perfectly.
    Hint

    This describes the texture of a surface that reflects light cleanly.

    Answer

    smooth

  58. 58
    The perfect reflection direction can be calculated based on the normal vector and the
    _____
    direction.
    Hint

    This refers to the direction the light ray is traveling before it hits the surface.

    Answer

    incoming

  59. 59
    The ray's new direction blends from diffuse to specular based on the
    _____
    property of the material.
    Hint

    This material attribute determines how much light is reflected versus scattered.

    Answer

    smoothness

  60. 60
    Setting a low smoothness value results in very
    _____
    reflections, while a high value creates crisp, mirror-like reflections.
    Hint

    Think about how rough surfaces scatter reflections.

    Answer

    blurry

  61. 61
    When two fully reflective balls are opposite each other, they create
    _____
    reflections within each other.
    Hint

    This phenomenon occurs when reflections are endlessly nested.

    Answer

    infinite

  62. 62
    The
    _____
    highlights on a red tomato are white (or the color of the light) because they bounce off a transparent protective coating.
    Hint

    These are the bright spots seen on shiny surfaces.

    Answer

    specular

  63. 63
    The specular probability in the material determines if the ray should bounce off some imaginary
    _____
    .
    Hint

    This refers to an outer, often transparent, layer.

    Answer

    coating

  64. 64
    The specular color is typically left
    _____
    most of the time for the coating effect.
    Hint

    This ensures the reflections are untinted.

    Answer

    white

  65. 65
    Depth of field allows choosing a
    _____
    at which things appear in focus, with objects outside that distance appearing blurry.
    Hint

    This parameter defines the plane of sharpest focus.

    Answer

    distance

  66. 66
    To create blur, rays for each pixel need to
    _____
    a little bit, heading out in slightly different directions.
    Hint

    This means to spread apart from a common point.

    Answer

    diverge

  67. 67
    To randomly nudge the viewpoint, a random point needs to be generated inside a
    _____
    .
    Hint

    This shape represents the aperture of a camera lens.

    Answer

    circle

  68. 68
    The square root of a random value is used to ensure points
    _____
    out nicely inside the circle, rather than clustering towards the center.
    Hint

    This mathematical operation helps achieve a uniform distribution.

    Answer

    spread

  69. 69
    Randomly offsetting the ray origin instead of the viewpoint causes the rays to all
    _____
    on the focal plane.
    Hint

    This means to come together at a single point.

    Answer

    converge

  70. 70
    If a model moves past the
    _____
    plane, it will start getting blurry again.
    Hint

    This is the plane of sharpest focus.

    Answer

    focal

  71. 71
    Setting the blur strength extremely low helps to smooth out
    _____
    edges, providing anti-aliasing.
    Hint

    These are staircase-like artifacts on diagonal lines.

    Answer

    jaggedy

1 of 71
Question 1 of 71

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent