hhergeth / CudaTracerLib

A library for ray tracing based rendering algorithms using CUDA
GNU General Public License v3.0
50 stars 9 forks source link

Redesign Traversal and BVHRebuilder for root leaf nodes #5

Closed hhergeth closed 6 years ago

hhergeth commented 8 years ago

Currently the BVHRebuilder will create a dummy internal node when in fact only a single leaf would suffice. The SplitBVHBuilder will do the same. The traversal algorithms (the generic ones as well as the optimzed speculative kernel one) have no real dependency for this. Redesigning the BVHRebuilder will be the bulk of the work. Simplifying the SplitBVHBuilder will also be necessary.