teofum / rust_raytracer

Following the book "Ray Tracing in One Weekend" by Peter Shirley, implemented in Rust.
0 stars 0 forks source link

Volumes: non-convex boundaries and variable density #3

Open teofum opened 7 months ago

teofum commented 7 months ago

Look into techniques for rendering volumes with a non-convex boundary, and for variable density.

teofum commented 7 months ago

Ideas:

teofum commented 7 months ago

For non-convex boundaries: rather than checking for entry and exit boundary hits,

  1. check for as many hits as there are
  2. build intervals of t that are inside the object
  3. select a random interval and a random point in that interval