1. Home
  2. Explore
  3. Computer Science
  4. Ray Marching Distance Functions

Study methods

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

Ray Marching Distance Functions

  • 15Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Ray Marching Basics
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What technique allows for rendering complex shapes by repeatedly moving a ray in small steps until an intersection is found?

Tap to flipClick to flipspace

Ray marching.

Or swipe the card

15 cards

  1. What technique allows for rendering complex shapes by repeatedly moving a ray in small steps until an intersection is found?

    Ray marching.

  2. Who developed the formula for calculating the distance between two points, which is fundamental to ray marching?

    Pythagoras.

  3. How is the distance from a point to a circle calculated?

    The distance between the point and the circle's center, minus the radius of that circle.

  4. What is a 'signed distance function' (SDF) and why is it useful in ray marching?

    An SDF returns a negative distance if a point is inside a shape, zero if on the surface, and positive if outside. This negativity inside the shape is useful for operations like inverting shapes or cutting away parts of objects.

  5. How can the nearest surface distance be determined for a point in a scene containing multiple shapes?

    By looping over all shapes, calculating their individual distances, and returning the smallest of those values.

  6. Why is an intersection function typically avoided in ray marching for arbitrary shapes?

    Because it would limit the system to using only shapes whose intersection functions are known or can be calculated.

  7. Describe the core process of ray marching to find a collision with a surface.

    It involves repeatedly calculating the distance to the scene from the current ray position, which provides a safe radius to move the point along the ray. This process is repeated until the distance becomes extremely small, indicating a collision.

  8. What is the specific type of ray marching that uses the calculated sphere/circle radius as the step size to speed up the process?

    Sphere tracing.

  9. What does a distance function that returns the minimum of two shape distances represent?

    The union of the two shapes, meaning it calculates the distance to the nearest surface of either shape.

  10. What does a distance function that returns the maximum of two shape distances represent?

    The intersection of the two shapes. The new shape only exists where both original shapes overlap.

  11. How can the distance function be manipulated to 'invert' a shape in ray marching?

    By multiplying the shape's distance function by negative 1 (e.g., −1×dsphere-1 \times d_{sphere}−1×dsphere​).

  12. Why is it useful for a signed distance function to return negative values when a point is inside a shape?

    This property allows for operations like inverting shapes or cutting away parts of other objects when combined with boolean operations like 'max'.

  13. What happens when a 'smooth min' function is used instead of a standard 'min' function between two shape distance functions?

    Objects that are close together will be blended together, creating a smooth transition rather than a sharp intersection.

  14. How can a glowing outline be generated around objects in ray marching 'free of charge'?

    By utilizing the dramatically increased number of ray march steps that occur as the ray gets very close to the edge of a shape.

  15. What fractal was mentioned as being renderable with a distance function in 3D?

    The Mandelbulb.

Card 1 of 15
Card 1 of 15

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent