JustinPrivitera / Real_Time_Ray_Tracer

final project for csc 572, graduate graphics
1 stars 0 forks source link

importance sampling #6

Open JustinPrivitera opened 3 years ago

kkevlar commented 3 years ago

Hmmm I wonder what this means

JustinPrivitera commented 3 years ago

this is an optimization that should make our ray tracer run much faster

to boil it down, we could/will implement a kind of importance sampling where, before casting any rays, we can prove for a set of pixels that any rays cast from those pixels will hit no scene objects. With that information, we can skip ray creation for those pixels, and thus skip a lot of ray collision detection that we would normally need to do, which is the most computationally expensive part of ray tracing.