wahn / rs_pbrt

Rust crate to implement a counterpart to the PBRT book's (3rd edition) C++ code. See also https://www.rs-pbrt.org/about ...
https://www.rs-pbrt.org
Other
811 stars 59 forks source link

Reverse mapping of light pointers #125

Closed wahn closed 4 years ago

wahn commented 4 years ago

After the book was published they added reverse mapping for light pointers:

    // Compute a reverse mapping from light pointers to offsets into the                                
    // scene lights vector (and, equivalently, offsets into                                             
    // lightDistr). Added after book text was finalized; this is critical                               
    // to reasonable performance with 100s+ of light sources.                                           

This was done for the BDPTIntegrator as well as for the MLTIntegrator. So far we did not optimize this because we didn't render scenes with that many lights and the algorithms work without this optimization.

wahn commented 4 years ago

Closing for now ... maybe it should be re-opened in the future ...