1. 03 5月, 2021 1 次提交
    • M
      Generalize GPU rendering path to run on both CPU and GPU (#125) · e90458fb
      Matt Pharr 提交于
      * Generalize GPU rendering path to run on both CPU and GPU
      
      Now we have a WavefrontIntegrator that can both run on the CPU (backed by
      ParallelFor() for parallelization and pbrt's aggregates for ray
      intersection acceleration) and on the GPU (backed by GPUParallelFor() for
      parallelization and OptiX for ray intersection on NVIDIA GPUs.)
      
      Beyond generalizing the code, this refactor allows CPU-side debugging and
      testing of the wavefront integrator.  Doing so allows further isolation of
      the GPU-specific code into a few source files, now just ~2.5k lines of code.
      
      This includes a bug fix in the wavefront medium code to resolve MixMaterials
      to one of their constituent materials before enqueuing material evaluation
      and shading work.
      
      Note that on the CPU, the wavefront integrator runs 5-10x more slowly than
      pbrt's regular CPU integrators, so it is not recommended for regular use...
      Co-authored-by: NWenzel Jakob <wenzel.jakob@epfl.ch>
      e90458fb
  2. 01 5月, 2021 1 次提交
  3. 30 4月, 2021 1 次提交
  4. 29 4月, 2021 1 次提交
  5. 28 4月, 2021 5 次提交
  6. 26 4月, 2021 1 次提交
    • M
      Improve handling of alpha-masked area lights. · faf3a4f8
      Matt Pharr 提交于
      Alpha textures now act on emission the same way they do for visibility:
      alpha masked regions of the surface do not emit illumination.
      
      Area lights with a constant alpha of zero are (begrudgingly) special cased
      so that it is still possible to specify an invisible area light source.  A
      hack in DiffuseAreaLight causes those to be sampled with light sampling
      only for direct lighting in integrators so that now they are rendered
      correctly. (Before, they would be MIS weighted accounting for the chance of
      a BSDF-sampled ray intersecting them even though it was impossible for BSDF
      sampled rays to do so...)
      faf3a4f8
  7. 25 4月, 2021 3 次提交
  8. 24 4月, 2021 7 次提交
  9. 23 4月, 2021 6 次提交
  10. 22 4月, 2021 2 次提交
  11. 21 4月, 2021 4 次提交
  12. 18 4月, 2021 8 次提交